1 2004-10-23 Andrew Pinski <pinskia@physics.uc.edu>
3 * testsuite/ext/mt_allocator/deallocate_global-2.c:
4 s/value_t/value_type/. s/traits_t/traits_type/.
5 s/policy_t/policy_type/. s/allocator_t/allocator_type/.
6 s/string_t/string_type/. s/list_t/list_type/.
7 * testsuite/ext/mt_allocator/deallocate_global-4.cc: Likewise.
8 * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: Likewise.
9 * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: Likewise.
10 * testsuite/ext/mt_allocator/deallocate_local-2.cc: Likewise.
11 * testsuite/ext/mt_allocator/deallocate_local-4.cc: Likewise.
12 * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: Likewise.
13 * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: Likewise.
15 2004-10-21 Benjamin Kosnik <bkoz@redhat.com>
17 * include/tr1/array (array): Make safe for zero-sized arrays.
18 (array::end): Return one past the end.
19 (array::at): Use __throw_out_of_range, include functexcept.h.
20 (operator==): Implement.
26 * testsuite/tr1/6_containers/array/capacity/(empty.cc,
27 max_size.cc, size.cc): New.
28 * testsuite/tr1/6_containers/array/comparison_operators/(equal.cc,
29 greater.cc, greater_or_equal.cc, less.cc, less_or_equal.cc,
31 * testsuite/tr1/6_containers/array/cons/aggregate_initialization.cc:
33 * testsuite/tr1/6_containers/array/element_access/at_out_of_range.cc:
35 * testsuite/tr1/6_containers/array/iterators/end_is_one_past.cc: New.
36 * testsuite/tr1/6_containers/array/requirements/(contiguous.cc,
37 instantiate, typedefs, zero_size_arrays): New.
39 2004-10-21 Paolo Carlini <pcarlini@suse.de>
40 Benjamin Kosnik <bkoz@redhat.com>
42 * include/bits/basic_string.h (_M_set_length_and_sharable): New.
43 * include/bits/basic_string.tcc (_S_construct, assign(const _CharT*,
44 size_type), _M_mutate, _M_clone): Use it.
45 (_Rep::_S_create): Don't set/call _M_length/_M_set_sharable here.
47 2004-10-21 Paolo Carlini <pcarlini@suse.de>
48 Dhruv Matani <dhruvbird@gmx.net>
49 Nathan Myers <ncm@cantrip.org>
51 * include/bits/vector.tcc (_M_insert_aux, _M_fill_insert,
52 _M_range_insert): Check at the outset that we are not trying
53 to exceed max_size, then deal properly with __len overflows.
54 * testsuite/23_containers/vector/modifiers/insert/1.cc: New.
56 * testsuite/testsuite_allocator.h: Remove redundant include.
58 2004-10-20 Paolo Carlini <pcarlini@suse.de>
60 * include/ext/bitmap_allocator.h (allocate): Throw std::bad_alloc
62 * include/ext/malloc_allocator.h (allocate): Likewise.
63 * include/ext/mt_allocator.h (allocate): Likewise.
64 * include/ext/new_allocator.h (allocate): Likewise.
65 * include/ext/array_allocator.h: Use __throw_bad_alloc().
66 * include/ext/pool_allocator.h: Use __builtin_expect.
67 * testsuite/ext/array_allocator/check_allocate_max_size.cc: New.
68 * testsuite/ext/bitmap_allocator/check_allocate_max_size.cc: Likewise.
69 * testsuite/ext/malloc_allocator/check_allocate_max_size.cc: Likewise.
70 * testsuite/ext/mt_allocator/check_allocate_max_size.cc: Likewise.
71 * testsuite/ext/new_allocator/check_allocate_max_size.cc: Likewise.
72 * testsuite/ext/pool_allocator/check_allocate_max_size.cc: Likewise.
73 * testsuite/testsuite_allocator.h (check_allocate_max_size): New test.
75 2004-10-19 Paolo Carlini <pcarlini@suse.de>
77 * testsuite/performance/20_util/allocator/list_sort_search.cc:
78 Include <ext/new_allocator.h>.
79 * testsuite/performance/20_util/allocator/map_mt_find.cc: Likewise.
81 2004-10-18 Paolo Carlini <pcarlini@suse.de>
83 * include/bits/basic_string.tcc (_M_mutate): Do not reallocate
84 unnecessarily when _M_rep() == &_S_empty_rep() and __new_size
85 == capacity() (== 0): is ok to just leave everything unchanged.
87 * include/bits/basic_string.h: Minor formatting fixes.
88 * include/bits/basic_string.tcc: Likewise.
90 2004-10-17 Benjamin Kosnik <bkoz@redhat.com>
92 * include/ext/mt_allocator.h (__pool::_M_get_align): New.
93 (__mt_alloc::allocate): Use it.
94 * src/mt_allocator.cc (__pool::_M_reclaim_block): Use it.
95 (__pool::_M_reserve_block): Simplify block allocation.
97 2004-10-17 Dhruv Matani <dhruvbird@gmx.net>
98 Paolo Carlini <pcarlini@suse.de>
100 * include/ext/bitmap_allocator.h: Change unsigned int -> size_t: this
101 makes the code 64-bit correct and also fixes (together with using at
102 the beginning a bitmap 2 * size_t bytes wide) alignment issues: now
103 8 is guaranteed, easily tunable to 16 via _BALLOC_ALIGN_BYTES.
104 Fix pthread-rope7.cc fail by nulling out __mini_vector<> destructor.
105 * src/bitmap_allocator.cc: Change to size_t.
106 * config/linker-map.gnu: Adjust.
108 2004-10-16 Benjamin Kosnik <bkoz@redhat.com>
110 * include/tr1/array: Don't use layout_type.
112 2004-10-16 Sashan Govender <sashang@gmail.com>
114 * include/tr1/array (array::end const): Fix casting from iterator
117 2004-10-15 Paolo Carlini <pcarlini@suse.de>
119 * include/ext/bitmap_allocator.h: Qualify ::operator delete.
120 * src/bitmap_allocator.cc: Likewise.
121 * src/mt_allocator.cc: Use ::operator delete, not delete,
122 consistently with ::operator new.
124 * include/ext/bitmap_allocator.h (deallocate): Check for null
126 * testsuite/ext/bitmap_allocator/check_deallocate_null.cc: New.
127 * testsuite/testsuite_allocator.h (check_deallocate_null): Add test.
129 2004-10-14 Benjamin Kosnik <bkoz@redhat.com>
131 * include/ext/mt_allocator.h (__mt_alloc::deallocate): Check for
133 * include/ext/pool_allocator.h (debug_allocator::deallocate):
135 * include/ext/debug_allocator.h (debug_allocator::deallocate):
136 Throw exceptions, don't abort.
137 * include/ext/array_allocator.h
138 (array_allocator_base::deallocate): Remove unused parameters.
139 * testsuite/testsuite_allocator.h (check_deallocate_null): New.
140 * testsuite/ext/mt_allocator/check_deallocate_null.cc: New.
141 * testsuite/ext/mt_allocator/check_deallocate_null_thread.cc: New.
142 * testsuite/ext/array_allocator/check_deallocate_null.cc: New.
143 * testsuite/ext/debug_allocator/check_deallocate_null.cc: New.
144 * testsuite/ext/malloc_allocator/check_deallocate_null.cc: New.
145 * testsuite/ext/new_allocator/check_deallocate_null.cc: New.
146 * testsuite/ext/pool_allocator/check_deallocate_null.cc: New.
148 * testsuite/testsuite_allocator.h (check_new): Add instance argument.
149 * testsuite/ext/array_allocator/check_new.cc: New.
151 2004-10-14 Paolo Carlini <pcarlini@suse.de>
153 * include/ext/bitmap_allocator.h (bitmap_allocator::_Alloc_block):
154 Rename __unused to __M_unused.
156 2004-10-14 Benjamin Kosnik <bkoz@redhat.com>
158 * testsuite/ext/headers.cc: Add includes, compile only.
159 * testsuite/ext/hash_map.cc: Move to...
160 * testsuite/ext/hash_map/1.cc: ...here.
161 * testsuite/ext/14648.cc: Move to...
162 * testsuite/ext/hash_map/14648.cc: ...here.
163 * testsuite/ext/hash_map/instantiate.cc: Add.
164 * testsuite/ext/hash_set.cc: Move to...
165 * testsuite/ext/hash_set/1.cc: ...here.
166 * testsuite/ext/hash_set_explicit_instantiation.cc: Move to...
167 * testsuite/ext/hash_set/instantiate.cc: ...here.
168 * testsuite/ext/hash_check_construct_destroy.cc: Move to...
169 * testsuite/ext/hash_set/check_construct_destroy.cc: ...here.
170 * testsuite/ext/slist_check_construct_destroy.cc: Move to...
171 * testsuite/ext/slist/check_construct_destroy.cc: ...here.
172 * testsuite/ext/slist_explicit_instantiation.cc: Move to...
173 * testsuite/ext/slist/instantiate.cc: ...here.
175 2004-10-14 Benjamin Kosnik <bkoz@redhat.com>
177 * include/ext/mt_allocator.h: Tweaks.
178 * src/mt_allocator.cc: Same.
180 2004-10-14 Dhruv Matani <dhruvbird@gmx.net>
182 * ext/bitmap_allocator.h: Clean-up add/remove functions.
183 * src/bitmap_allocator.cc: New file. Contains the out-of-line
184 function definitions, static initialization of variables, and
185 explicit instantiations needed for the allocator.
186 * src/Makefile.am: Add.
187 * src/Makefile.in: Regenerate.
188 * config/linker.map.gnu: Add the necessary symbols.
190 2004-10-13 Paolo Carlini <pcarlini@suse.de>
192 * include/bits/basic_string.tcc (_S_create): Use consistently
193 the exponential policy, simplify.
194 * testsuite/performance/21_strings/string_append_2.cc: New.
196 * include/ext/array_allocator.h (allocate): Fix bad_alloc check.
197 * testsuite/ext/array_allocator/2.cc: Fix wrt 64-bit archs (in
198 that case sizeof(_Rep) == 24).
200 2004-10-12 Paolo Carlini <pcarlini@suse.de>
203 * include/bits/stl_tree.h (erase(iterator, iterator)): Revert
204 wrong commit of 2004-10-07.
206 2004-10-12 Scott Snyder <snyder@fnal.gov>
209 * testsuite/23_containers/set/modifiers/17948.cc: New.
211 2004-10-11 Benjamin Kosnik <bkoz@redhat.com>
213 * include/bits/stl_deque.h: Correct for over-long lines.
215 2004-10-11 Benjamin Kosnik <bkoz@redhat.com>
218 * include/ext/mt_allocator.h (__pool::_M_destroy): New.
219 * src/mt_allocator.cc (__pool::~__pool): Change definitions to
221 * acconfig.h: Remove _GLIBCXX_USE___CXA_ATEXIT.
222 * acinclude.m4 (GLIBCXX_ENABLE_CXA_ATEXIT): Remove.
223 * configure.ac: Remove call to GLIBCXX_ENABLE_CXA_EXIT.
224 * configure: Regenerate.
225 * config/linker-map.gnu: Tweak exports.
226 * docs/html/ext/mt_allocator.html: Update docs.
227 * testsuite/ext/mt_allocator/deallocate_global-2.cc: Fix.
228 * testsuite/ext/mt_allocator/deallocate_global-4.cc: Fix.
229 * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: Fix.
230 * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: Fix.
231 * testsuite/ext/mt_allocator/deallocate_local-2.cc: Fix.
232 * testsuite/ext/mt_allocator/deallocate_local-4.cc: Fix.
233 * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: Fix.
234 * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: Fix.
236 2004-10-11 Benjamin Kosnik <bkoz@redhat.com>
238 PR libstdc++/16614 continued.
239 * include/ext/mt_allocator.h
240 (__per_type_pool_policy::_S_get_pool): Use saner defaults based on
241 specific type characteristics.
242 (__pool_base): Add constructor that takes a _Tune argument.
244 * testsuite/ext/mt_allocator/tune-2.cc: Adjust default.
245 * testsuite/ext/mt_allocator/tune-4.cc: Same.
246 * testsuite/ext/mt_allocator/tune-3.cc: Same.
248 2004-10-11 Joachim Kuebart <kuebart@mathematik.uni-ulm.de>
249 Paolo Carlini <pcarlini@suse.de>
251 * src/pool_allocator.cc (__pool_alloc_base::_M_allocate_chunk):
252 Deal properly with exceptions thrown by ::operator new(size_t).
253 * testsuite/ext/pool_allocator/allocate_chunk.cc: New.
255 * include/ext/pool_allocator.h: Include <cstdlib>.
257 2004-10-10 Benjamin Kosnik <bkoz@redhat.com>
259 * include/bits/functexcept.h: Add guards.
261 * acinclude.m4 (GLIBCXX_ENABLE_THREADS): Tweak test.
262 * configure: Regenerate.
264 2004-10-10 Paolo Carlini <pcarlini@suse.de>
266 * config/locale/gnu/monetary_members.cc (_S_construct_pattern):
267 Give __ret a default value, thus avoiding spurious warnings.
269 * testsuite/performance/27_io/filebuf_sgetn_unbuf.cc: Open either
270 words or linux.words, otherwise exit.
271 * testsuite/performance/27_io/ifstream_getline.cc: Slighlty tweak.
273 2004-10-09 Paolo Carlini <pcarlini@suse.de>
275 * include/std/std_memory.h (__get_temporary_buffer): Don't use
276 INT_MAX, prefer numeric_limits<ptrdiff_t>::max(), ok on 64-bit
278 * testsuite/20_util/memory/auto_ptr/assign_neg.cc: Adjust dg-error
281 2004-10-08 Benjamin Kosnik <bkoz@redhat.com>
283 * acconfig.h: Add _GLIBCXX_USE___CXA_ATEXIT.
284 * acinclude.m4 (GLIBCXX_ENABLE_CXA_ATEXIT): New.
285 * configure.ac: Call GLIBCXX_ENABLE_CXA_EXIT.
286 * configure: Regenerate.
287 * src/mt_allocator.cc (__pool::~__pool): Make conditional on
288 _GLIBCXX_USE___CXA_ATEXIT macro.
289 * docs/html/ext/mt_allocator.html: Add note about deallocation.
290 * testsuite/ext/mt_allocator/deallocate_local-2.cc: Guard checks
291 with _GLIBCXX_USE___CXA_ATEXIT.
292 * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: Same.
293 * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: Same.
294 * testsuite/ext/mt_allocator/deallocate_global-4.cc: Same.
295 * testsuite/ext/mt_allocator/deallocate_global-2.cc: Same.
296 * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: Same.
297 * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: Same.
298 * testsuite/ext/mt_allocator/deallocate_local-4.cc: Same.
300 2004-10-07 Phil Edwards <phil@codesourcery.com>
302 * testsuite/lib/libstdc++.exp: Update list of undefined functions.
304 2004-10-07 Paolo Carlini <pcarlini@suse.de>
306 * include/bits/list.tcc (operator=): Avoid iterator postincrement.
307 * include/bits/stl_tree.h (erase(iterator, iterator)): Likewise.
309 2004-10-07 Benjamin Kosnik <bkoz@redhat.com>
312 * include/tr1/array: New.
313 * include/Makefile.am (tr1_headers): New.
315 (install-headers): New.
316 (allstamped): Add stamp-tr1.
318 * include/ext/array_allocator.h: New.
319 * include/Makefile.am: Add.
320 * include/Makefile.in: Regenerate.
321 * testsuite/ext/array_allocator/1.cc: New.
322 * testsuite/ext/array_allocator/2.cc: New.
324 2004-10-07 Richard Earnshaw <rearnsha@arm.com>
326 * testsuite/lib/libstdc++.exp (libstdc++_exit): New proc.
328 2004-10-07 Roger Sayle <roger@eyesopen.com>
331 * configure.ac: Newlib does not provide strtold.
332 * configure: Regenerate.
334 2004-10-06 Benjamin Kosnik <bkoz@redhat.com>
336 * acinclude.m4 (GLIBCXX_ENABLE_THREADS): Set enable_thread.
337 (GLIBCXX_CONFIGURE_TESTSUITE): Use it.
338 * configure: Regenerated.
339 * testsuite/Makefile.am (CLEANFILES): Add TEST for
340 check-performance executables.
343 * testsuite/Makefile.in: Regenerate.
344 * scripts/create_testsuite_files: Filter thread tests.
346 * testsuite/thread/pthread1.cc: Remove macro conditionals: this
347 file will only be run by thread enabled configurations.
348 * testsuite/thread/pthread7-rope.cc: Same, add rope_type typedef.
349 * testsuite/thread/pthread6.cc: Same.
350 * testsuite/thread/pthread5.cc: Same.
351 * testsuite/thread/pthread4.cc: Same.
352 * testsuite/thread/pthread3.cc: Same.
353 * testsuite/thread/pthread2.cc: Same.
355 * testsuite/ext/mt_allocator/instantiate.cc: Add in __GTHREADS guard.
356 * testsuite/ext/mt_allocator/deallocate_global-1.cc: Move to...
357 * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: ...here.
358 * testsuite/ext/mt_allocator/deallocate_global-3.cc: Move to...
359 * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: ...here.
360 * testsuite/ext/mt_allocator/deallocate_local-1.cc: Move to...
361 * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: ...here.
362 * testsuite/ext/mt_allocator/deallocate_local-3.cc: Move to...
363 * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: ...here.
365 2004-10-06 Benjamin Kosnik <bkoz@redhat.com>
366 Paolo Carlini <pcarlini@suse.de>
369 * src/mt_allocator.cc (__pool<true>::_M_reserve_block): Revert
370 to old locking order.
372 2004-10-06 Paolo Carlini <pcarlini@suse.de>
374 * include/std/std_sstream.h (_M_sync): When the caller is
375 setbuf, don't trust _M_string.capacity() to be the size of
376 the buffer area, use _M_string.size() in this case.
377 * testsuite/27_io/basic_stringbuf/setbuf/char/4.cc: New.
378 * testsuite/27_io/basic_stringbuf/setbuf/wchar_t/4.cc: Likewise.
380 * include/bits/sstream.tcc (overflow): Avoid calling string::assign
381 unnecessarily when the current _M_string is empty.
383 2004-10-06 Paolo Carlini <pcarlini@suse.de>
385 * include/bits/stl_algo.h (__reverse(bidirectional_iterator_tag)):
386 Avoid iterator postincrement.
387 (__rotate): Likewise.
389 * include/bits/stl_algo.h: Minor formatting tweaks.
391 2004-10-06 Christopher Jefferson <caj@cs.york.ac.uk>
393 * include/bits/stl_algo.h (__reverse(random_access_iterator_tag)):
394 Avoid iterator postincrement; fix swapping middle element with
395 itself on odd-length inputs.
397 2004-10-05 Benjamin Kosnik <bkoz@redhat.com>
400 * include/ext/mt_allocator.h (__pool_base::_Tune): Add default
401 options as compile-time constant enums.
402 (__pool_base::_Tune::is_default): New.
403 (__pool_base::_Block_address): New.
404 (__pool_base): Rearrange data members.
405 (__pool::_M_reserve_memory): To _M_reserve_block.
406 (__pool::_M_reclaim_memory): To _M_reclaim_block.
407 (__pool::_Bin_record): Add _Block_address data member.
408 (__pool<false>): Add _M_thread_freelist_initial.
409 (__pool::~__pool): Declare.
410 (__common_pool_policy): Move static data member to...
411 (__common_pool_policy::_S_get_pool): ...here, make static local.
412 (__per_type_pool_policy): Move static data member to...
413 (__per_type_pool_policy::_S_get_pool): ...here, make static local.
414 (__mt_alloc::__mt_alloc): Call __policy_type::_S_get_pool.
415 Remove static member definitions. Use define for __default_policy.
416 * src/mt_allocator.cc: Same.
417 * config/linker-map.gnu: Don't export _S_get_pool. Renames.
418 * testsuite/ext/new_allocator: New.
419 * testsuite/ext/new_allocator/instantiate.cc: New.
420 * testsuite/ext/new_allocator/check_new.cc: New.
421 * testsuite/ext/new_allocator/deallocate_global.cc: New.
422 * testsuite/ext/new_allocator/deallocate_local.cc: New.
423 * testsuite/ext/mt_allocator/instantiate.cc: Instantiate all
425 * testsuite/ext/mt_allocator/deallocate_global-1.cc: New.
426 * testsuite/ext/mt_allocator/deallocate_global-2.cc: New.
427 * testsuite/ext/mt_allocator/deallocate_global-3.cc: New.
428 * testsuite/ext/mt_allocator/deallocate_global-4.cc: New.
429 * testsuite/ext/mt_allocator/deallocate_local-1.cc: New.
430 * testsuite/ext/mt_allocator/deallocate_local-2.cc: New.
431 * testsuite/ext/mt_allocator/deallocate_local-3.cc: New.
432 * testsuite/ext/mt_allocator/deallocate_local-4.cc: New.
433 * testsuite/ext/mt_allocator/deallocate.cc: New.
434 * testsuite/ext/malloc_allocator/deallocate.cc: New.
435 * testsuite/ext/malloc_allocator/deallocate_global.cc: New.
436 * testsuite/ext/malloc_allocator/deallocate_local.cc: New.
438 2004-10-05 Ulrich Weigand <uweigand@de.ibm.com>
440 * configure.host (abi_baseline_pair): Define for s390-*-linux* and
442 * config/abi/s390-linux-gnu/baseline_symbols.txt: Add missing symbols.
443 * config/abi/s390x-linux-gnu/baseline_symbols.txt: New file.
445 2004-10-05 Christopher Jefferson <caj@cs.york.ac.uk>
447 * include/bits/stl_algobase.h (iter_swap): delegate to swap via
448 __iter_swap when iterator's value_types are equal.
449 (struct __iter_swap): New.
451 2004-10-04 Benjamin Kosnik <bkoz@redhat.com>
453 * configure.ac (libtool_VERSION): To 6:3:0.
454 * configure: Regnerate.
455 * testsuite/testsuite_abi.cc (check_version): Add 3.4.3.
457 2004-10-04 Roger Sayle <roger@eyesopen.com>
458 Eric Botcazou <ebotcazou@libertysurf.fr>
461 * config/linker-map.gnu: Synchronize the current list of stub
462 functions from libmath.
464 2004-10-03 Roger Sayle <roger@eyesopen.com>
466 * config/locale/generic/c_locale.cc (__convert_to_v): Use
467 _GLIBCXX_HAVE_STRTOF instead _GLIBCXX_USE_C99 to check for strtof.
468 Likewise, use _GLIBCXX_HAVE_STRTOLD instead of _GLIBCXX_USE_C99
469 to check for presence of strtold.
471 2004-10-03 Paolo Carlini <pcarlini@suse.de>
473 * include/bits/stl_list.h: Trivial formatting fixes.
474 * include/bits/stl_tree.h: Likewise.
476 2004-10-03 Paolo Carlini <pcarlini@suse.de>
478 * include/bits/sstream.tcc (seekpos): In case of success, just
481 2004-10-01 Paolo Carlini <pcarlini@suse.de>
483 * include/bits/sstream.tcc (pbackfail): Implement correctly
484 27.7.1.3/2, bullet 2: if mode & ios_base::out is false do not
486 * testsuite/27_io/basic_stringbuf/pbackfail/char/1.cc: New.
487 * testsuite/27_io/basic_stringbuf/pbackfail/char/2.cc: Likewise.
488 * testsuite/27_io/basic_stringbuf/pbackfail/wchar_t/1.cc: Likewise.
489 * testsuite/27_io/basic_stringbuf/pbackfail/wchar_t/2.cc: Likewise.
490 * testsuite/27_io/basic_istream/putback/char/1.cc: Tweak consistently.
492 2004-10-01 Paolo Carlini <pcarlini@suse.de>
494 * include/bits/sstream.tcc (seekpos): Minor rearrangement of two
495 conditionals consistently with seekoff.
496 * include/std/std_sstream.h (setbuf): Avoid a string temporary.
497 (_M_sync): Simplify a bit, clean-up comment.
499 2004-09-30 Paolo Carlini <pcarlini@suse.de>
501 PR libstdc++/10975 (DR 453)
502 * include/bits/sstream.tcc (seekoff): Don't fail if __beg == 0
504 * docs/html/ext/howto.html: Add an entry for DR 453.
505 * testsuite/27_io/basic_stringbuf/seekoff/char/10975.cc: New.
506 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/10975.cc: Likewise.
507 * testsuite/27_io/basic_istream/tellg/char/1.cc: Tweak consistently.
508 * testsuite/27_io/basic_ostream/tellp/char/1.cc: Likewise.
509 * testsuite/27_io/basic_ostream/tellp/char/2.cc: Likewise.
510 * testsuite/27_io/basic_istream/seekg/char/2346-fstream.cc: Fix and
512 * testsuite/27_io/basic_istream/seekp/char/2346-fstream.cc: ... here.
513 * testsuite/27_io/basic_istream/seekg/char/2346-sstream.cc: Fix and
515 * testsuite/27_io/basic_istream/seekp/char/2346-sstream.cc: ... here.
517 2004-09-29 Paolo Carlini <pcarlini@suse.de>
519 * include/std/std_sstream.h (basic_stringbuf(ios_base::openmode)):
520 Don't use _M_stringbuf_init, keep the pointers null, per 27.7.1.1.
521 (str()): Slightly tweak, protect from pptr() == 0.
522 (_M_update_egptr()): Likewise.
523 * include/bits/sstream.tcc (ssekoff, seekpos): In order to check
524 for an empty buffer use __beg instead of _M_string.capacity().
525 * testsuite/27_io/basic_stringbuf/cons/char/1.cc: New.
526 * testsuite/27_io/basic_stringbuf/cons/wchar_t/1.cc: Likewise.
528 * testsuite/27_io/basic_filebuf/cons/char/1.cc: New.
529 * testsuite/27_io/basic_filebuf/cons/wchar_t/1.cc: Likewise.
530 * testsuite/27_io/basic_streambuf/cons/char/1.cc: Update.
531 * testsuite/27_io/basic_streambuf/cons/wchar_t/1.cc: Likewise.
533 2004-09-29 Paolo Carlini <pcarlini@suse.de>
534 Benjamin Kosnik <bkoz@redhat.com>
536 * testsuite/testsuite_io.h (class constraint_buf): New, extended
537 and templatized version of constraint_filebuf; add typedefs for
538 streambuf/stringbuf/filebuf and wchar_t counterparts.
540 2004-09-28 Paolo Carlini <pcarlini@suse.de>
543 * include/bits/basic_string.h (_M_dispose, _M_refcopy,
544 basic_string()): When _GLIBCXX_FULLY_DYNAMIC_STRING is defined,
545 don't deal with _S_empty_rep.
546 * include/bits/basic_string.tcc (_S_construct, _M_destroy,
547 _M_leak_hard, _M_mutate): Likewise.
548 * acinclude.m4 (GLIBCXX_ENABLE_FULLY_DYNAMIC_STRING): New.
549 * acconfig.h: Add corresponding undef.
550 * configure.ac: Use GLIBCXX_ENABLE_FULLY_DYNAMIC_STRING.
551 * docs/html/configopts.html: Document --enable-fully-dynamic-string.
552 * configure: Regenerate.
553 * config.h.in: Likewise.
555 2004-09-28 Benjamin Kosnik <bkoz@redhat.com>
556 Paolo Carlini <pcarlini@suse.de>
558 * testsuite/21_strings/basic_string/operations/char/1.cc: New.
559 * testsuite/21_strings/basic_string/operations/wchar_t/1.cc: New.
560 * testsuite/21_strings/basic_string/element_access/char/empty.cc: New.
561 * testsuite/21_strings/basic_string/element_access/wchar_t/empty.cc:
564 2004-09-28 Paolo Carlini <pcarlini@suse.de>
566 * README: Remove obsolete entry about include/c_shadow.
568 2004-09-24 H.J. Lu <hongjiu.lu@intel.com>
571 * testsuite/lib/libstdc++.exp: Don't use global ld_library_path.
573 2004-09-24 Paolo Carlini <pcarlini@suse.de>
575 * src/localename.cc (locale::locale(const char*)): Minor tweaks:
576 rename a variable, move an assignment.
577 (locale::_Impl::_Impl(const char*, size_t)): Likewise, minor tweak.
579 2004-09-24 Paul Brook <paul@codesourcery.com>
581 * testsuite/27_io/basic_filebuf/sgetn/char/1-in.cc: XFAIL more arm
583 * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: Ditto.
584 * testsuite/27_io/basic_filebuf/sgetn/char/2-in.cc: Ditto.
585 * testsuite/27_io/basic_filebuf/sgetn/char/2-io.cc: Ditto.
586 * testsuite/27_io/basic_istream/readsome/char/6746-2.cc: Ditto.
587 * testsuite/ext/stdio_filebuf/char/10063-2.cc: Ditto.
588 * testsuite/ext/stdio_filebuf/char/10063-3.cc: Ditto.
590 2004-09-23 Zack Weinberg <zack@codesourcery.com>
592 * testsuite/20_util/memory/auto_ptr/assign_neg.cc
593 * testsuite/23_containers/map/operators/1_neg.cc
594 * testsuite/23_containers/set/operators/1_neg.cc:
595 Update locations and/or regexps of dg-error markers.
597 2004-09-23 P.J. Darcy <darcypj@us.ibm.com>
599 * include/Makefile.am (thread_host_headers): Add gthr-tpf.h.
600 Add rule to build ${host_builddir}/gthr-tpf.h.
601 * include/Makefile.in: Regenerate.
603 2004-09-23 Paolo Carlini <pcarlini@suse.de>
604 Magnus Fromreide <magfr@lysator.liu.se>
606 * include/bits/boost_concept_check.h (struct _SequenceConcept):
607 Remove wrong requirement, i.e., not present in Table 67.
609 2004-09-21 Paolo Carlini <pcarlini@suse.de>
611 PR libstdc++/12882 (cont)
612 * acinclude.m4 (GLIBCXX_CHECK_LFS): Check for fstat64 too.
613 * configure: Regenerate.
614 * config/io/basic_file_stdio.cc (__basic_file<>::showmanyc): When
615 _GLIBCXX_USE_LFS use fstat64 and lseek64, thus providing a non
616 trivial showmanyc for large files too.
618 2004-09-17 Jonathan Wakely <redi@gcc.gnu.org>
620 * include/bits/stl_algo.h (remove): Remove too restrictive
623 2004-09-17 Paolo Carlini <pcarlini@suse.de>
625 * include/bits/fstream.tcc (xsgetn): Slightly tweak conditional,
626 as per Nathan's original suggestion.
628 2004-09-17 Paolo Carlini <pcarlini@suse.de>
630 * testsuite/ext/mt_allocator/tune-1.cc: Use VERIFY, clean
632 * testsuite/ext/mt_allocator/tune-2.cc: Likewise.
633 * testsuite/ext/mt_allocator/tune-3.cc: Likewise.
634 * testsuite/ext/mt_allocator/tune-4.cc: Likewise.
636 2004-09-17 Paolo Carlini <pcarlini@suse.de>
637 Andrea Arcangeli <andrea@suse.de>
639 * config/io/basic_file_stdio.cc (__basic_file<>::close)): Don't
640 call unnecessarily sync, that is fflush: the library, since 3.4.0
641 does not use buffered fread/fwrite.
642 * include/bits/fstream.tcc (basic_filebuf<>::overflow): Likewise.
644 2004-09-15 Mark Mitchell <mark@codesourcery.com>
646 * config/cpu/arm/cxxabi_tweaks.h (__cxa_cdtor_return_type):
648 * config/cpu/generic/cxxabi_tweaks.h (__cxa_cdtor_return_type):
650 * libsupc++/cxxabi.h (__cxa_cdtor_return_type): New type.
651 (__cxa_vec_new): Use it.
652 (__cxa_vec_new2): Likewise.
653 (__cxa_vec_new3): Likewise.
654 (__cxa_vec_cdtor): Likewise.
655 (__cxa_vec_cctor): Likeiwse.
656 (__cxa_vec_dtor): Likewise.
657 (__cxa_vec_cleanup): Likewise.
658 (__cxa_vec_delete2): Likewise.
659 (__cxa_vec_delete3): Likewise.
660 * libsupc++/vec.cc (__cxa_vec_new): Likewise.
661 (__cxa_vec_new2): Likewise.
662 (__cxa_vec_new3): Likewise.
663 (__cxa_vec_cdtor): Likewise.
664 (__cxa_vec_cctor): Likeiwse.
665 (__cxa_vec_dtor): Likewise.
666 (__cxa_vec_cleanup): Likewise.
667 (__cxa_vec_delete2): Likewise.
668 (__cxa_vec_delete3): Likewise.
669 (__aeabi_vec_ctor_nocookie_nodtor): New function.
670 (__aeabi_vec_ctor_cookie_nodtor): Likewise.
671 (__aeabi_vec_cctor_nocookie_nodtor): Likewise.
672 (__aeabi_vec_new_cookie_noctor): Likewise.
673 (__aeabi_vec_new_nocookie): Likewise.
674 (__aeabi_vec_new_cookie_nodtor): Likewise.
675 (__aeabi_vec_new_cookie): Likewise.
676 (__aeabi_vec_dtor): Likewise.
677 (__aeabi_vec_dtor_cookie): Likewise.
678 (__aeabi_vec_delete): Likewise.
679 (__aeabi_vec_delete3): Likewise.
680 (__aeabi_vec_delete3_nodtor): Likewise.
681 (__aeabi_atexit): Likewise.
683 2004-09-14 Nathan Myers <ncm@cantrip.org>
685 * include/bits/fstream.tcc (xsgetn): Slightly tweak the recent fix
686 for 11722: copy can replace move; the common case is __avail == 0.
688 2004-09-14 Paolo Carlini <pcarlini@suse.de>
690 * include/bits/cpp_type_traits.h: Rename __is_trivially_copyable
691 to __is_scalar, more clear and consistent with "tr1" naming.
692 * include/bits/stl_algobase.h: Update consistently throughout.
694 2004-09-13 Paolo Carlini <pcarlini@suse.de>
697 * include/std/std_fstream.h (xsgetn): Declare only.
698 * include/bits/fstream.tcc (xsgetn): Define, optimize for the
699 always_noconv() case: when __n > __buflen, copy the available
700 buffer and issue a direct read.
701 * testsuite/performance/27_io/filebuf_sgetn_unbuf.cc: New.
703 * include/bits/fstream.tcc (xsputn): Minor tweak, reorder a
706 2004-09-13 Hans-Peter Nilsson <hp@bitrange.com>
708 * testsuite/lib/libstdc++.exp: Use gcc wrapper.exp and call
709 libstdc++_maybe_build_wrapper instead of using local code.
711 2004-09-08 Benjamin Kosnik <bkoz@redhat.com>
713 * config/linker-map.gnu (GLIBCXX_3.4.3): New, adjust symbol exports.
715 2004-09-03 Jan Beulich <jbeulich@novell.com>
717 * crossconfig.m4: Add NetWare as a target.
718 * configure: Regenerate.
720 2004-09-02 Mark Mitchell <mark@codesourcery.com>
722 * libsupc++/typeinfo: Honor __GXX_MERGED_TYPEINFO_NAMES if already
725 2004-09-02 Benjamin Kosnik <bkoz@redhat.com>
726 Simon Richter <Simon.Richter@hogyros.de>
729 * include/bits/istream.tcc: Add extern template for iostream
730 char and wchar_t instantiations.
732 2004-09-02 Benjamin Kosnik <bkoz@redhat.com>
733 Leland Wang <llwang@infor.org>
736 * include/ext/ropeimpl.h (rope::_S_compare): Use
737 _Rope_constants::_S_leaf.
739 2004-09-02 Benjamin Kosnik <bkoz@redhat.com>
742 * include/Makefile.am (ext_headers): Remove demangle.h.
743 * include/Makefile.in: Regenerate.
744 * include/ext/demangle.h: Remove.
746 2004-09-01 Benjamin Kosnik <bkoz@redhat.com>
749 * include/ext/mt_allocator.h (__mt_base): Not type dependent,
751 (__pool): New, specialize.
752 (__common_pool): New, static bits here.
753 (__per_type_pool): New, and here.
754 (__mt_alloc_base): New.
755 (__mt_alloc): Add template parameter, inherit from it.
756 * src/allocator.cc: Split this...
757 * src/allocator-inst.cc: And this...
758 * src/pool_allocator.cc: ...into this.
759 * src/mt_allocator.cc: ... and this. Add definitions for
761 * src/Makefile.am (sources): Split allocator.cc to
762 pool_allocator.cc and mt_allocator.cc.
763 * src/Makefile.in: Regenerate.
764 * config/linker-map.gnu: Add symbols.
765 * docs/html/ext/mt_allocator.html: Document new design.
766 * testsuite/ext/mt_allocator/tune-1.cc: New.
767 * testsuite/ext/mt_allocator/tune-2.cc: New.
768 * testsuite/ext/mt_allocator/tune-3.cc: New.
769 * testsuite/ext/mt_allocator/tune-4.cc: New.
771 * testsuite/testsuite_allocator.h (__gnu_test::check_new): New.
772 * testsuite/ext/allocators.cc: Use check_new, split into...
773 * testsuite/ext/mt_allocator/check_new.cc: this.
774 * testsuite/ext/pool_allocator/check_new.cc: this.
775 * testsuite/ext/malloc_allocator/check_new.cc: this.
776 * testsuite/ext/debug_allocator/check_new.cc: this.
777 * testsuite/ext/mt_allocator/instantiate.cc: this.
778 * testsuite/ext/pool_allocator/instantiate.cc: this.
779 * testsuite/ext/malloc_allocator/instantiate.cc: this.
780 * testsuite/ext/debug_allocator/instantiate.cc: this.
782 2004-08-30 Phil Edwards <phil@codesourcery.com>
784 * docs/html/install.html: Update locales list (from Paolo).
785 Remove other redundant information and point to the GCC install
788 2004-08-30 Benjamin Kosnik <bkoz@redhat.com>
790 * include/ext/pool_allocator.h: Rename __pool_base to
792 * src/allocator.cc: Same.
793 * config/linker-map.gnu: Same.
795 2004-08-30 Paolo Carlini <pcarlini@suse.de>
796 Kenneth C. Schalk <ken@xorian.net>
799 * config/io/basic_file_stdio.cc (__basic_file<char>::close()):
800 Check the return value of fclose/sync, loop on EINTR.
801 (__basic_file<char>::sys_open): Likewise, for sync.
803 2004-08-29 Paolo Carlini <pcarlini@suse.de>
805 * include/bits/locale_facets.tcc (time_get<>::_M_extract_via_format,
806 case 'S'): Allow for at least one leap-second (as per C99, 7.23.1
807 and 7.23.3.5), two if !_GLIBCXX_USE_C99.
808 * testsuite/22_locale/time_get/get_time/char/4.cc: New.
809 * testsuite/22_locale/time_get/get_time/wchar_t/4.cc: Likewise.
811 2004-08-27 Jason Merrill <jason@redhat.com>
814 * libsupc++/guard.cc (static_mutex): Internal class implementing a
815 recursive mutex which controls initialization of local statics.
816 (__gnu_cxx::recursive_init): New exception class.
817 (__cxa_guard_acquire): Deal with locking and recursion detection.
818 (acquire_1, __cxa_guard_abort, __cxa_guard_release): Likewise.
820 2004-08-27 Matthias Klose <doko@debian.org>
822 * configure.host: For mips*-*-linux* update cpu_include_dir
823 after atomicity_dir is set.
825 2004-08-27 Matthias Klose <doko@debian.org>
827 * config/abi/arm-linux-gnu/baseline_symbols.txt: New.
828 * config/abi/mips-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
829 * configure.host: Set abi_baseline_pair for arm*-*-linux* and
832 2004-08-27 Paolo Carlini <pcarlini@suse.de>
834 * testsuite/27_io/manipulators/adjustfield/wchar_t/1.cc: New.
835 * testsuite/27_io/manipulators/adjustfield/wchar_t/2.cc: Likewise.
836 * testsuite/27_io/manipulators/basefield/wchar_t/1.cc: Likewise.
837 * testsuite/27_io/manipulators/standard/wchar_t/1.cc: Likewise.
838 * testsuite/27_io/manipulators/standard/wchar_t/2.cc: Likewise.
840 * testsuite/27_io/manipulators/adjustfield/char/1.cc: Minor
842 * testsuite/27_io/manipulators/adjustfield/char/2.cc: Likewise.
843 * testsuite/27_io/manipulators/basefield/char/1.cc: Likewise.
844 * testsuite/27_io/manipulators/standard/char/1.cc: Likewise.
845 * testsuite/27_io/manipulators/standard/char/2.cc: Likewise.
847 2004-08-25 Paolo Carlini <pcarlini@suse.de>
849 PR libstdc++/17038 (partial)
850 * include/bits/locale_facets.tcc (time_put<>::do_put): Increase
852 * include/bits/locale_facets.h (class __timepunct): Add FIXME
853 comment about _M_put.
854 * config/locale/generic/time_members.cc (_M_put): Always null
856 * config/locale/gnu/time_members.cc (_M_put): Likewise.
857 * testsuite/22_locale/time_put/put/char/17038.cc: New.
858 * testsuite/22_locale/time_put/put/wchar_t/17038.cc: New.
860 2004-08-24 Paolo Carlini <pcarlini@suse.de>
862 * testsuite/27_io/basic_istringstream/rdbuf/wchar_t/2832.cc: New.
863 * testsuite/27_io/basic_istringstream/str/wchar_t/1.cc: Likewise.
864 * testsuite/27_io/basic_ostringstream/cons/wchar_t/3.cc: Likewise.
865 * testsuite/27_io/basic_ostringstream/rdbuf/wchar_t/2832.cc: Likewise.
866 * testsuite/27_io/basic_ostringstream/str/wchar_t/1.cc: Likewise.
867 * testsuite/27_io/basic_ostringstream/str/wchar_t/2.cc: Likewise.
869 * testsuite/27_io/basic_istringstream/rdbuf/char/2832.cc: Trim excess
871 * testsuite/27_io/basic_istringstream/str/char/1.cc: Likewise.
873 2004-08-22 Matthias Klose <doko@debian.org>
875 * config/abi/m68k-linux-gnu/baseline_symbols.txt: New.
876 * config/abi/sparc-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
878 2004-08-23 Paolo Carlini <pcarlini@suse.de>
880 * configure.ac: Specify version 1.9.1 in AM_INIT_AUTOMAKE.
881 * aclocal.m4: Regenerate with automake-1.9.1.
882 * configure: Regenerate.
883 * Makefile.in: Likewise.
884 * include/Makefile.in: Likewise.
885 * libmath/Makefile.in: Likewise.
886 * libsupc++/Makefile.in: Likewise.
887 * po/Makefile.in: Likewise.
888 * src/Makefile.in: Likewise.
889 * testsuite/Makefile.in: Likewise.
891 2004-08-22 Paolo Carlini <pcarlini@suse.de>
893 * include/bits/locale_facets.tcc (num_put<>::do_put(bool)): Cast
894 to a signed type, long according to the resolution of DR 359.
895 * testsuite/22_locale/num_put/put/char/9.cc: New.
896 * testsuite/22_locale/num_put/put/wchar_t/9.cc: New.
898 * include/bits/locale_facets.tcc (num_put<>::do_put(const void*)):
899 Simplify a bit: no need to clear showpos.
901 2004-08-21 Paolo Carlini <pcarlini@suse.de>
903 * include/bits/char_traits.h (struct _Char_traits_match): Remove,
906 2004-08-21 Paolo Carlini <pcarlini@suse.de>
908 * testsuite/22_locale/money_put/put/wchar_t/1.cc: Use proper
909 wchar_t type for the fill argument; minor formatting tweaks.
910 * testsuite/22_locale/money_put/put/wchar_t/12971.cc: Likewise.
911 * testsuite/22_locale/money_put/put/wchar_t/2.cc: Likewise.
912 * testsuite/22_locale/money_put/put/wchar_t/3.cc: Likewise.
913 * testsuite/22_locale/money_put/put/wchar_t/4.cc: Likewise.
914 * testsuite/22_locale/money_put/put/wchar_t/5.cc: Likewise.
915 * testsuite/22_locale/money_put/put/wchar_t/6.cc: Likewise.
917 2004-08-21 Paolo Carlini <pcarlini@suse.de>
919 * include/bits/basic_ios.tcc (basic_ios<>::copyfmt): Don't deal
920 with _M_word != _M_local_word two times, redundantly.
922 2004-08-20 Jason Merrill <jason@redhat.com>
924 * include/Makefile.am (${host_builddir}/gthr.h): Don't add
925 _GLIBCXX_ to #pragma lines.
926 * include/Makefile.in: Update.
928 2004-08-20 Paolo Carlini <pcarlini@suse.de>
930 PR libstdc++/7219 (continued)
931 * include/bits/ios_base.h (class ios_base): Expose Annex D.6
933 * testsuite/27_io/types/1.cc: Remove #if _GLIBCXX_DEPRECATED.
934 * testsuite/27_io/ios_base/cons/assign_neg.cc: Tweak dg-error
936 * testsuite/27_io/ios_base/cons/copy_neg.cc: Likewise.
938 2004-08-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
940 * cpu/hppa/atomicity.h (__exchange_and_add, __atomic_add): Add memory
941 barrier to locking asm.
943 2004-08-20 Paolo Carlini <pcarlini@suse.de>
945 * include/c_std/cmath.tcc (__cmath_power): Revert previous commit:
946 actually the warning is a front-end bug (c++/17120).
948 2004-08-20 Matthias Klose <doko@debian.org>
950 * config/abi/s390-linux-gnu/baseline_symbols.txt: New.
952 2004-08-20 Paolo Carlini <pcarlini@suse.de>
954 * include/c_std/cmath.tcc (__cmath_power): Suppress assignment
955 used as truth value warning.
957 2004-08-20 Paolo Carlini <pcarlini@suse.de>
959 * config/abi/x86_64-linux-gnu/32/baseline_symbols.txt: Add 32 bit
962 2004-08-20 Paolo Carlini <pcarlini@suse.de>
964 * config/abi/x86_64-linux-gnu/baseline_symbols.txt: Fix it.
966 2004-08-19 Benjamin Kosnik <bkoz@redhat.com>
968 * testsuite/22_locale/time_put/put/char/3.cc (test03): Don't check
970 * testsuite/22_locale/time_put/put/wchar_t/3.cc (test03): Same.
972 2004-08-19 Paolo Carlini <pcarlini@suse.de>
974 * testsuite/performance/20_util/allocator/insert.cc: For std::map
975 instantiate the allocator for a correct pair type.
976 * testsuite/performance/20_util/allocator/insert_insert.cc: Likewise.
977 * testsuite/performance/20_util/allocator/map_thread.cc: Likewise.
978 * testsuite/performance/20_util/allocator/producer_consumer.cc:
981 * testsuite/performance/20_util/allocator/list_sort_search.cc: Very
982 minor formatting fixes.
983 * testsuite/performance/20_util/allocator/map_mt_find.cc: Likewise.
985 2004-08-19 Paolo Carlini <pcarlini@suse.de>
987 * testsuite/22_locale/time_put/put/char/1.cc: Add VERIFY on the
989 * testsuite/22_locale/time_put/put/char/2.cc: Likewise.
990 * testsuite/22_locale/time_put/put/char/3.cc: Likewise.
991 * testsuite/22_locale/time_put/put/char/4.cc: Likewise.
992 * testsuite/22_locale/time_put/put/wchar_t/1.cc: Likewise.
993 * testsuite/22_locale/time_put/put/wchar_t/2.cc: Likewise.
994 * testsuite/22_locale/time_put/put/wchar_t/3.cc: Likewise.
995 * testsuite/22_locale/time_put/put/wchar_t/4.cc: Likewise.
997 2004-08-19 Paolo Carlini <pcarlini@suse.de>
999 * config/abi/x86_64-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1001 2004-08-18 Matthias Klose <doko@debian.org>
1003 * config/abi/hppa-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1004 * config/abi/i386-linux-gnu/baseline_symbols.txt: New.
1005 * config/abi/powerpc-linux-gnu/baseline_symbols.txt: New.
1007 2004-08-17 Paolo Carlini <pcarlini@suse.de>
1009 * config/abi/alpha-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1011 2004-08-17 Paolo Carlini <pcarlini@suse.de>
1013 * config/abi/ia64-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1015 2004-08-17 Benjamin Kosnik <bkoz@redhat.com>
1017 * config/abi/i486-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1019 2004-08-16 Paolo Carlini <pcarlini@suse.de>
1021 * include/bits/indirect_array.h: Trivial formatting fixes.
1022 * include/bits/valarray_after.h: Likewise.
1023 * include/bits/valarray_array.h: Likewise.
1024 * src/valarray-inst.cc: Likewise.
1026 2004-08-15 Paolo Carlini <pcarlini@suse.de>
1028 * testsuite/27_io/basic_stringstream/rdbuf/char/2832.cc: Remove junk.
1029 * testsuite/27_io/basic_stringstream/str/char/1.cc: Likewise.
1030 * testsuite/27_io/basic_stringstream/str/char/3.cc: Likewise.
1032 * testsuite/27_io/basic_stringstream/rdbuf/wchar_t/2832.cc: New.
1033 * testsuite/27_io/basic_stringstream/str/wchar_t/1.cc: Likewise.
1034 * testsuite/27_io/basic_stringstream/str/wchar_t/2.cc: Likewise.
1035 * testsuite/27_io/basic_stringstream/str/wchar_t/3.cc: Likewise.
1036 * testsuite/27_io/basic_stringstream/str/wchar_t/4.cc: Likewise.
1038 2004-08-15 Paolo Carlini <pcarlini@suse.de>
1040 * include/bits/deque.tcc: Trivial formatting fixes.
1042 2004-08-15 Paolo Carlini <pcarlini@suse.de>
1044 * include/bits/deque.tcc: Trivial formatting fixes.
1046 * include/bits/locale_facets.tcc (num_get<>::do_get(&bool)):
1047 Remove unneded typedef.
1049 * include/bits/locale_facets.tcc: Very minor tweaks.
1051 * testsuite/22_locale/time_put/put/wchar_t/1.cc: Use proper
1052 type for the fill argument.
1053 * testsuite/22_locale/time_put/put/wchar_t/10.cc: Likewise.
1054 * testsuite/22_locale/time_put/put/wchar_t/2.cc: Likewise.
1055 * testsuite/22_locale/time_put/put/wchar_t/3.cc: Likewise.
1056 * testsuite/22_locale/time_put/put/wchar_t/4.cc: Likewise.
1057 * testsuite/22_locale/time_put/put/wchar_t/5.cc: Likewise.
1058 * testsuite/22_locale/time_put/put/wchar_t/6.cc: Likewise.
1059 * testsuite/22_locale/time_put/put/wchar_t/7.cc: Likewise.
1060 * testsuite/22_locale/time_put/put/wchar_t/8.cc: Likewise.
1062 2004-08-13 Paolo Carlini <pcarlini@suse.de>
1064 * src/debug.cc (_Error_formatter::_M_print_string): Fix thinko,
1065 memmove is not needed, memcpy suffices.
1067 2004-08-13 Paolo Carlini <pcarlini@suse.de>
1069 * include/std/std_fstream.h (class basic_ifstream,
1070 class basic_ofstream, class basic_fstream): Add const overloads
1071 of is_open, as per DR 365 [WP].
1072 * docs/html/ext/howto.html: Add an entry for DR 365.
1074 2004-08-12 Paolo Carlini <pcarlini@suse.de>
1076 * configure.ac: Specify version 1.8.5 in AM_INIT_AUTOMAKE.
1078 2004-08-12 Paolo Carlini <pcarlini@suse.de>
1081 * include/bits/sstream.tcc (basic_stringbuf<>::seekoff): Add __off
1082 to the returned value, reorganize a bit.
1083 * testsuite/27_io/basic_stringbuf/seekoff/char/16956.cc: New.
1084 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/16956.cc: New.
1086 * testsuite/27_io/basic_stringbuf/seekoff/char/1.cc: Remove junk.
1087 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc: Likewise.
1088 * testsuite/27_io/basic_stringbuf/seekpos/char/1.cc: Likewise.
1089 * testsuite/27_io/basic_stringbuf/seekpos/wchar_t/1.cc: Likewise.
1091 2004-08-12 Paul Brook <paul@codesourcery.com>
1093 * config/cpu/arm/cxxabi_tweaks.h: Define __cxa_vec_ctor_return and
1094 _GLIBCXX_CXA_VEC_CTOR_RETURN.
1095 * config/cpu/generic/cxxabi_tweaks.h: Ditto.
1096 * libsupc++/cxxabi.h (__cxa_vec_ctor, __cxa_vec_cctor): Use
1097 __cxa_vec_ctor_return.
1098 * libsupc++/vec.cc (__cxa_vec_ctor, __cxa_vec_cctor): Ditto.
1099 Use _GLIBCXX_CXA_VEC_CTOR_RETURN.
1101 2004-08-12 Kelley Cook <kcook@gcc.gnu.org>
1103 * Makefile.in, aclocal.m4, configure, include/Makefile.in,
1104 libmath/Makefile.in, libsupc++/Makefile.in, po/Makefile.in,
1105 src/Makefile.in, testsuite/Makefile.in: Regenerate
1107 2004-08-12 Jan Beulich <jbeulich@novell.com>
1109 * config/locale/generic/ctype_members.cc
1110 (ctype<wchar_t>::_M_convert_to_wmask): Default case must not use 0 as
1111 initializer for return value, as that is invalid for enumerated types.
1112 * config/locale/gnu/ctype_members.cc
1113 (ctype<wchar_t>::_M_convert_to_wmask): Likewise.
1115 2004-08-11 Paolo Carlini <pcarlini@suse.de>
1117 * testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc: Fix typo.
1119 2004-08-11 Paolo Carlini <pcarlini@suse.de>
1121 * testsuite/27_io/basic_stringbuf/imbue/char/1.cc: Declare test
1123 * testsuite/27_io/basic_stringbuf/imbue/wchar_t/1.cc: Ditto.
1124 * testsuite/27_io/basic_stringbuf/in_avail/char/1.cc: Remove junk.
1125 * testsuite/27_io/basic_stringbuf/in_avail/wchar_t/1.cc: Ditto.
1126 * testsuite/27_io/basic_stringbuf/sbumpc/char/1.cc: Ditto.
1127 * testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc: Ditto.
1128 * testsuite/27_io/basic_stringbuf/setbuf/char/1.cc: Ditto.
1129 * testsuite/27_io/basic_stringbuf/setbuf/wchar_t/1.cc: Ditto.
1130 * testsuite/27_io/basic_stringbuf/sgetc/char/1.cc: Ditto.
1131 * testsuite/27_io/basic_stringbuf/sgetc/wchar_t/1.cc: Ditto.
1132 * testsuite/27_io/basic_stringbuf/sgetn/char/1.cc: Ditto.
1133 * testsuite/27_io/basic_stringbuf/sgetn/wchar_t/1.cc: Ditto.
1134 * testsuite/27_io/basic_stringbuf/snextc/char/1.cc: Ditto.
1135 * testsuite/27_io/basic_stringbuf/snextc/wchar_t/1.cc: Ditto.
1136 * testsuite/27_io/basic_stringbuf/sputbackc/char/1.cc: Ditto.
1137 * testsuite/27_io/basic_stringbuf/sputbackc/wchar_t/1.cc: Ditto.
1138 * testsuite/27_io/basic_stringbuf/sputc/char/1.cc: Ditto.
1139 * testsuite/27_io/basic_stringbuf/sputc/wchar_t/1.cc: Ditto.
1140 * testsuite/27_io/basic_stringbuf/sputn/char/1.cc: Ditto.
1141 * testsuite/27_io/basic_stringbuf/sputn/wchar_t/1.cc: Ditto.
1142 * testsuite/27_io/basic_stringbuf/sungetc/char/1.cc: Ditto.
1143 * testsuite/27_io/basic_stringbuf/sungetc/wchar_t/1.cc: Ditto.
1145 2004-08-11 Paolo Carlini <pcarlini@suse.de>
1146 Petur Runolfsson <peturr02@ru.is>
1149 * src/ios_init.cc (ios_base::sync_with_stdio): Make sure the
1150 standard streams are constructed.
1151 * testsuite/27_io/ios_base/sync_with_stdio/16959.cc: New.
1153 2004-08-09 Paolo Carlini <pcarlini@suse.de>
1155 * include/bits/stl_bvector.h: Trivial formatting fixes.
1157 2004-08-09 Paolo Carlini <pcarlini@suse.de>
1159 * src/ios.cc (ios_base::_M_grow_words): Uglify the names.
1161 2004-08-07 Jonathan Wakely <redi@gcc.gnu.org>
1162 Paolo Carlini <pcarlini@suse.de>
1164 * src/debug.cc (_Error_formatter::_M_print_string): In order
1165 to print individual words from __string, _M_format_word can't
1166 be called since may be just sprintf, thus ignoring completely
1167 __n: instead, use memmove and append '\0' by hand.
1169 2004-08-07 Paolo Carlini <pcarlini@suse.de>
1171 * config/locale/generic/c_locale.h (__convert_from_v): Don't
1172 use a default for __prec, assume __prec >= 0 and simplify.
1173 * config/locale/gnu/c_locale.h (__convert_from_v): Likewise.
1174 * include/bits/locale_facets.tcc (money_put<>::do_put(long double)):
1175 Pass format "%.*Lf" + precision == 0, equivalent to "%.0Lf".
1177 2004-08-04 Phil Edwards <phil@codesourcery.com>
1179 * docs/html/configopts.html: Emphasize that options change.
1180 * docs/html/17_intro/configury.html: Update links.
1182 2004-08-03 Paolo Carlini <pcarlini@suse.de>
1184 * include/bits/list.tcc: Trivial formatting fixes.
1186 2004-08-03 Mark Mitchell <mark@codesourcery.com>
1188 * libsupc++/new_op.cc: Update comments.
1189 * libsupc++/del_op.cc: Likewise.
1191 2004-08-02 Mark Mitchell <mark@codesourcery.com>
1193 * libsupc++/cxxabi.h: Make all declarations have default
1195 * libsupc++/exception: Likewise.
1196 * libsupc++/new: Likewise.
1197 * libsupc++/typeinfo: Likewise.
1198 * libsupc++/unwind-cxx.h: Likewise.
1199 * libsupc++/eh_alloc.cc (__cxa_allocate_exception): Put it into
1200 the __cxxabiv1 namespace.
1201 (__cxa_free_exception): Likewise.
1202 * libsupc++/eh_aux_runtime.cc (__cxa_bad_cast): Likewise.
1203 (__cxa_bad_typeid): Likewise.
1204 * libsupc++/eh_catch.cc (__cxa_begin_catch): Likewise.
1205 (__cxa_end_catch): Likewise.
1206 * libsupc++/eh_globals.cc (__cxa_get_globals_fast): Likewise.
1207 (__cxa_get_globals): Likewise.
1208 * libsupc++/eh_throw.cc (__cxa_throw): Likewise.
1209 (__cxa_rethrow): Likewise.
1210 * libsupc++/pure.cc (__cxa_pure_virtual): Likewise.
1211 * libsupc++/eh_type.cc: Include <cxxabi.h>.
1213 * Makefile.am (hosted_source): Add libmath and testsuite.
1214 (SUBDIRS): Remove them.
1215 * acinclude.m4: (GLIBCXX_ENABLED_HOSTED): Default to freestanding
1216 on arm*-*-symbianelf*.
1217 * crossconfig.m4: Add arm*-*-symbianelf* support.
1218 * include/c_std/std/std_cstdlib.h (stdlib.h): Do not include it
1219 when freestanding. Do not bring names into std:: namespace with
1220 "using" when freestanding. Declare required functions and macros
1222 * libsupc++/Makefile.am (c_sources): Do not include cp-demangle.c
1224 * libsupc++/del_op.cc: Declare "free" only when freestanding.
1225 * libsupc++/eh_alloc.cc (cstring): Include it only when hosted.
1226 (malloc): Declare when freestanding.
1229 (__cxa_allocate_exception): Call malloc, not std::malloc. Likewise
1231 (__cxa_free_exception): Likewise for free.
1232 * libsupc++/new_op.cc: Declare "malloc" when freestanding.
1233 * libsupc++/pure.cc (writestr): Define to nothing when
1235 * libsupc++/vterminate.cc: Do not define anything when
1237 * Makefile.in: Regenerated.
1238 * aclocal.m4: Likewise.
1239 * configure: Likewise.
1240 * include/Makefile.in: Likewise.
1241 * libmath/Makefile.in: Likewise.
1242 * libsupc++/Makefile.in: Likewise.
1243 * po/Makefile.in: Likewise.
1244 * src/Makefile.in: Likewise.
1245 * testsuite/Makefile.in: Likewise.
1247 2004-08-01 Matt Austern <austern@apple.com>
1250 * include/bits/stl_list.h (_M_create_node): Remove unused
1251 zero-argument version.
1252 * include/ext/slist (_M_create_node): Pass two arguments to
1253 allocator's construct() member function.
1254 * testsuite/23_containers/deque/explicit_instantiation.cc: New.
1255 * testsuite/23_containers/list/explicit_instantiation.cc: New.
1256 * testsuite/23_containers/vector/explicit_instantiation.cc: New.
1257 * testsuite/23_containers/map/explicit_instantiation.cc: New.
1258 * testsuite/23_containers/set/explicit_instantiation.cc: New.
1259 * testsuite/23_containers/multimap/explicit_instantiation.cc: New.
1260 * testsuite/23_containers/multiset/explicit_instantiation.cc: New.
1261 * testsuite/ext/hash_set_explicit_instantiation.cc: New.
1262 * testsuite/ext/slist_explicit_instantiation.cc: New.
1264 2004-07-30 Paolo Carlini <pcarlini@suse.de>
1266 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
1267 num_get<>::_M_extract_int): In the main parsing loop delay the
1268 life of __q to the actual use point.
1270 2004-07-29 Paolo Carlini <pcarlini@suse.de>
1273 * include/bits/locale_facets.tcc (num_put<>::_M_insert_float):
1274 Don't clip the precision passed down to __convert_from_v:
1275 22.2.2.2.2 nowhere says so.
1276 * testsuite/22_locale/num_put/put/char/14220.cc: New.
1277 * testsuite/22_locale/num_put/put/wchar_t/14220.c: Likewise.
1279 2004-07-29 Paolo Carlini <pcarlini@suse.de>
1281 * docs/html/ext/lwg-active.html, lwg-defects.html: Import Revision 31.
1283 2004-07-29 Paolo Carlini <pcarlini@suse.de>
1284 Petur Runolfsson <peturr02@ru.is>
1286 PR libstdc++/12658 (continued)
1287 * src/locale_init.cc (locale::locale, locale::global): Use
1288 a single locale_mutex instead of two separate mutexes.
1290 2004-07-29 Paolo Carlini <pcarlini@suse.de>
1293 * include/debug/map.h (insert(_InputIterator, _InputIterator)):
1295 * testsuite/23_containers/map/insert/16813.cc: New.
1297 2004-07-29 Phil Edwards <phil@codesourcery.com>
1299 * docs/html/faq/index.html: Update version references. Make
1300 clear that code from SGI has diverged greatly. Remove references
1301 to library snapshots and what's-new sections.
1302 * docs/html/faq/index.txt: Regenerate.
1304 2004-07-28 Matt Austern <austern@apple.com>
1306 * include/bits/stl_construct.h (_Destroy): New three-argument
1307 overload that takes an allocator argument. Another inline
1308 three-argument overload that takes std::allocator and dispatches
1309 to the two-argument version.
1310 * include/bits/stl_uninitialized.h (__uninitialized_fill_n_aux):
1311 Change return type to void to match uninitialized_fill_n.
1312 (__uninitialized_copy_a_): New function. Like uninitialized_copy
1313 except that it takes an allocator and uses it for construct and
1314 destroy. If the allocator is std::allocator, dispatches to
1316 (__uninitialized_fill_a): Likewise.
1317 (__uninitialized_fill_n_a): Likewise.
1318 (__uninitialized_copy_copy): Give it an allocator argument.
1319 (__uninitialized_fill_copy): Likewise.
1320 (__uninitialized_copy_fill): Likewise.
1321 * include/bits/deque.tcc: Use new forms defined in stl_construct.h
1322 and stl_uninitialized.h. Replace use of single-argument _Construct
1323 and _Destroy with use of allocator's construct and destroy methods.
1324 * include/bits/list.tcc: Likewise.
1325 * include/bits/stl_deque.h: Likewise.
1326 * include/bits/stl_list.h: Likewise.
1327 * include/bits/stl_tree.h: Likewise.
1328 * include/bits/stl_vector.h: Likewise.
1329 * include/bits/vector.tcc: Likewise.
1330 * include/ext/hashtable.h: Use rebind so that allocator_type
1331 has correct type for a container's allocator. Replace use of
1332 single-argument _Construct and _Destroy with use of allocator's
1333 construct and destroy methods.
1334 * include/ext/memory (__uninitialized_copy_n_a): New function.
1335 Like uninitialized_copy_n except that it takes an extra parameter,
1336 an allocator, and uses it for construct and destroy operations.
1337 * include/ext/rope: Use new forms defined in stl_construct.h,
1338 stl_uninitialized.h, and ext/memory. Replace use of single-argument
1339 _Construct and _Destroy with allocator construct and destroy methods.
1340 * include/ext/ropeimpl.h: Likewise.
1341 * include/ext/slist.h: Likewise.
1342 * testsuite/testsuite_allocator.h (check_construct_destroy): New.
1343 * testsuite/testsuite_allocator.cc (check_construct_destroy): New.
1344 * testsuite/23_containers/deque/check_construct_destroy.cc: New.
1345 * testsuite/23_containers/list/check_construct_destroy.cc: New.
1346 * testsuite/23_containers/set/check_construct_destroy.cc: New.
1347 * testsuite/23_containers/vector/check_construct_destroy.cc: New.
1348 * testsuite/ext/hash_check_construct_destroy.cc: New.
1349 * testsuite/ext/slist_check_construct_destroy.cc: New.
1351 2004-07-28 Alexandre Oliva <aoliva@redhat.com>
1353 2003-10-01 Eric Christopher <echristo@redhat.com>
1354 * config/cpu/sh/atomicity.h (__exchange_and_add): Remove 'm'
1356 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
1357 * config/cpu/sh/atomicity.h: New. Use movli and movco on SH4a.
1359 2004-07-23 Benjamin Kosnik <bkoz@redhat.com>
1362 * include/bits/locale_facets.tcc: Fix for -Werror.
1364 2004-07-23 Jonathan Wakely <redi@gcc.gnu.org>
1366 * docs/html/debug.html: Say debug mode only available since 3.4.0.
1368 2004-07-21 Benjamin Kosnik <bkoz@redhat.com>
1370 * docs/doxygen/mainpage.html: Clarify links.
1371 * docs/doxygen/stdheader.cc: Add files.
1372 * docs/doxygen/style.css: Remove bolds, add h2, h3 styles.
1373 * docs/doxygen/user.cfg.in: New options, wrap.
1375 2004-07-20 Danny Smith <dannysmith@users.sourceforge.net>
1377 * include/c_std/std_cwchar.h (wcsstr): Correct signature.
1379 2004-07-19 Benjamin Kosnik <bkoz@redhat.com>
1382 * testsuite/lib/libstdc++.exp (v3-copy-files): Revert.
1384 2004-07-17 Richard Sandiford <rsandifo@redhat.com>
1387 * scripts/create_testsuite_files: Pass -print to find.
1389 2004-07-15 Paolo Carlini <pcarlini@suse.de>
1391 * docs/html/ext/lwg-active.html, lwg-defects.html: Import Revision 30.
1392 * docs/html/ext/howto.html: Tweak entries for DRs 167/253/389/402.
1394 2004-07-15 Jakub Jelinek <jakub@redhat.com>
1397 * acinclude.m4 (glibcxx_shared_libgcc): Correct
1398 glibcxx_shared_libgcc test for multilibs.
1399 * configure: Rebuilt.
1401 2004-07-14 Paolo Carlini <pcarlini@suse.de>
1404 * include/bits/stl_uninitialized.h (uninitialized_fill_n): Fix
1405 the signature to return void, as per 20.4.4.3.
1406 * include/bits/stl_vector.h (vector::vector(size_type,
1407 const value_type&, const allocator_type&), vector::vector(size_type),
1408 vector::_M_initialize_dispatch): Adjust callers.
1409 * include/bits/vector.tcc (vector<>::_M_fill_assign,
1410 vector<>::_M_fill_insert): Likewise.
1411 * testsuite/20_util/memory/16505.cc: New.
1413 2004-07-14 Paolo Carlini <pcarlini@suse.de>
1415 * testsuite/22_locale/locale/cons/12658_thread-1.cc,
1416 12658_thread-2.cc: Use __gnu_test::try_named_locale.
1418 2004-07-13 Benjamin Kosnik <bkoz@redhat.com>
1420 * docs/html/ext/mt_allocator.html: Add docs for _Tune.
1421 * include/ext/mt_allocator.h (__mt_alloc::_S_get_options): Make public.
1422 (__mt_alloc::_S_set_options): Same.
1425 2004-07-13 Benjamin Kosnik <bkoz@redhat.com>
1427 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Add allocator defaults
1429 * configure: Regenerated.
1431 2004-07-13 Paolo Carlini <pcarlini@suse.de>
1433 * testsuite/22_locale/locale/cons/12658_thread.cc: Move/rename
1434 to 12658_thread-1.cc and xfail.
1435 * testsuite/22_locale/locale/cons/12658_thread-2.c: New, much
1436 simpler version of 12658_thread-1.cc, still failing on 3_3 and
1437 not failing on 3_4/mainline - both on single processor and
1438 multiprocessor machines.
1440 2004-07-12 Benjamin Kosnik <bkoz@redhat.com>
1442 * docs/html/abi.html: Remove non-public qualification.
1444 * include/bits/concurrence.h: Tweak comments.
1446 2004-07-11 Paolo Carlini <pcarlini@suse.de>
1448 Add wchar_t counterparts of the basic_streambbuf<char> tests.
1449 * testsuite/27_io/basic_streambuf/cons/wchar_t/1.cc: New.
1450 * testsuite/27_io/basic_streambuf/imbue/wchar_t/1.cc, 9322.cc:
1452 * testsuite/27_io/basic_streambuf/in_avail/wchar_t/9701-3.cc: Likewise.
1453 * testsuite/27_io/basic_streambuf/overflow/wchar_t/1.cc, 2.cc,
1455 * testsuite/27_io/basic_streambuf/sgetc/wchar_t/1.cc: Likewise.
1456 * testsuite/27_io/basic_streambuf/sgetn/wchar_t/1.cc: Likewise.
1457 * testsuite/27_io/basic_streambuf/sputbackc/wchar_t/9538.cc: Likewise.
1458 * testsuite/27_io/basic_streambuf/sputc/wchar_t/1057.cc: Likewise.
1459 * testsuite/27_io/basic_streambuf/sputn/wchar_t/1.cc, 1057.cc:
1461 * testsuite/27_io/basic_streambuf/sync/wchar_t/1057.cc: Likewise.
1463 * testsuite/27_io/basic_streambuf/imbue/char/1.cc, 9322.cc: Minor
1465 * testsuite/27_io/basic_streambuf/overflow/char/2.cc, 3599.cc:
1467 * testsuite/27_io/basic_streambuf/sputn/char/1057.cc: Likewise.
1468 * testsuite/27_io/basic_streambuf/sync/char/1057.cc: Likewise.
1470 2004-07-11 Phil Edwards <phil@codesourcery.com>
1472 * acinclude.m4: Cosmetic shell syntax fixes.
1473 * configure.ac: Bring comment inline with reality.
1474 * configure.host: Both of the above. Move 'arm' case to right
1475 place in host_cpu switch.
1476 * aclocal.m4, configure: Regenerate.
1478 2004-07-09 Paolo Carlini <pcarlini@suse.de>
1480 Add wchar_t counterparts of the basic_stringbuf<char> tests.
1481 * testsuite/27_io/basic_stringbuf/imbue/wchar_t/1.cc, 9322.cc: New.
1482 * testsuite/27_io/basic_stringbuf/in_avail/wchar_t/1.cc: Likewise.
1483 * testsuite/27_io/basic_stringbuf/overflow/wchar_t/1.cc, 2.cc,
1484 3599.cc, 9988.cc: Likewise.
1485 * testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc, 9825.cc:
1487 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc, 2.cc:
1489 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc, 2.cc, 3.cc:
1491 * testsuite/27_io/basic_stringbuf/setbuf/wchar_t/1.cc, 2.cc, 3.cc:
1493 * testsuite/27_io/basic_stringbuf/sgetc/wchar_t/1.cc: Likewise.
1494 * testsuite/27_io/basic_stringbuf/sgetn/wchar_t/1.cc: Likewise.
1495 * testsuite/27_io/basic_stringbuf/snextc/wchar_t/1.cc: Likewise.
1496 * testsuite/27_io/basic_stringbuf/sputbackc/wchar_t/1.cc, 9425.cc:
1498 * testsuite/27_io/basic_stringbuf/sputc/wchar_t/1.cc, 1057.cc,
1499 9404-1.cc: Likewise.
1500 * testsuite/27_io/basic_stringbuf/sputn/wchar_t/1.cc, 1057.cc,
1501 9404-2.cc: Likewise.
1502 * testsuite/27_io/basic_stringbuf/str/wchar_t/1.cc, 2.cc, 3.cc,
1504 * testsuite/27_io/basic_stringbuf/sungetc/wchar_t/1.cc: Likewise.
1505 * testsuite/27_io/basic_stringbuf/sync/wchar_t/1057.cc: Likewise.
1507 2004-07-08 Paolo Carlini <pcarlini@suse.de>
1509 * include/bits/gslice.h: Trivial formatting fixes.
1510 * include/bits/gslice_array.h: Likewise.
1511 * include/bits/indirect_array.h: Likewise.
1512 * include/bits/mask_array.h: Likewise.
1513 * include/bits/slice_array.h: Likewise.
1514 * include/bits/valarray_after.h: Likewise.
1515 * include/bits/valarray_array.h: Likewise.
1516 * include/bits/valarray_before.h: Likewise.
1517 * include/std/std_valarray.h: Likewise.
1519 2004-07-08 Benjamin Kosnik <bkoz@redhat.com>
1522 * include/bits/basic_string.h (basic_string::operator=): Revert.
1524 2004-07-07 Benjamin Kosnik <bkoz@redhat.com>
1526 * configure.ac (libtool_VERSION): To 6:2:0.
1527 * configure: Regenerated.
1529 * testsuite/testsuite_abi.cc (check_version): Add 3.4.2.
1531 2004-07-07 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
1534 * config/linker-map.gnu: Add stdio_sync_filebuf::file exports.
1536 2004-07-07 Benjamin Kosnik <bkoz@redhat.com>
1538 * docs/html/abi.html: Updates for 3.4.1 release. Add summary of
1541 2004-07-07 Paolo Carlini <pcarlini@suse.de>
1544 * include/bits/sstream.tcc (overflow): When reallocating _M_string
1545 use an exponential grow policy.
1546 * testsuite/27_io/basic_stringbuf/overflow/char/1.cc: New.
1547 * testsuite/performance/27_io/stringbuf_overflow.cc: New.
1549 2004-07-06 Anssi Hannula <anssi.hannula@mbnet.fi>
1552 * crossconfig.m4: Add in bits for djgpp.
1553 * configure: Regenerate.
1555 2004-07-05 Jonathan Wakely <redi@gcc.gnu.org>
1557 * testsuite/23_containers/{set,multiset}/14340.cc: Fix typos in
1558 instantiation of set and multiset (functor param given as int).
1560 2004-07-04 Paolo Carlini <pcarlini@suse.de>
1562 * include/bits/basic_string.h: Trivial formatting fixes and/or
1563 const-ification of some variables.
1564 * include/bits/deque.tcc: Likewise.
1565 * include/bits/stl_algobase.h: Likewise.
1566 * include/bits/stl_bvector.h: Likewise.
1567 * include/bits/stl_construct.h: Likewise.
1568 * include/bits/stl_deque.h: Likewise.
1569 * include/bits/stl_pair.h: Likewise.
1570 * include/bits/stl_vector.h: Likewise.
1571 * include/bits/vector.tcc: Likewise.
1573 2004-07-04 Paolo Carlini <pcarlini@suse.de>
1575 * testsuite/25_algorithms/copy/1.cc: Add instantiations for
1576 systems with no COMDAT or weak support.
1577 * testsuite/25_algorithms/copy/2.cc: Likewise.
1578 * testsuite/25_algorithms/copy/3.cc: Likewise.
1579 * testsuite/25_algorithms/copy/4.cc: Likewise.
1581 2004-07-03 Paul Brook <paul@codesourcery.com>
1583 * configure.ac: Set ABI_TWEAKS_SRCDIR.
1584 * configure.host: Set abi_tweaks_dir. Check for atomicity.h when
1585 setting atomicity_dir. Override type_cpu for arm based targets.
1586 * include/Makefile.am (host_headers): Add cxxabi_tweaks.h.
1587 * libsupc++/cxxabi.h: Include bits/cxxabi.h. Don't declare __guard.
1588 * libsupc++/guard.cc: Use definitions from cxxabi_tweaks.h.
1589 * libsupc++/vec.cc: Ditto.
1590 * config/cpu/arm/cxxabi_tweaks.h: New file.
1591 * config/cpu/generic/cxxabi_tweaks.h: New file.
1592 * */Makefile.in: Regenerate.
1593 * configure: Regenerate.
1595 2004-07-02 Paolo Carlini <pcarlini@suse.de>
1597 * include/bits/type_traits.h (_Is_normal_iterator): Move...
1598 * include/bits/cpp_type_traits.h: ... here, renamed to
1599 __is_normal_iterator and consistent with the other traits.
1600 * include/bits/stl_algobase.h (__copy_ni1, __copy_ni2): Convert
1601 to the struct __copy_normal and three specializations.
1602 (__copy_backward_output_normal_iterator,
1603 __copy_backward_input_normal_iterator): Likewise, convert to
1604 the struct __copy_backward_normal and three specializations.
1605 (copy, copy_backward): Use the latter.
1606 (__copy_aux, __copy_backward_aux): Very minor tweaks.
1608 2004-07-01 Paolo Carlini <pcarlini@suse.de>
1610 * include/bits/stl_algobase.h (__copy_trivial): Remove.
1611 (__copy_aux2): Rewrite as __copy_aux to use __is_pointer,
1612 __is_trivially_copyable, __are_same and __copy::copy.
1613 (__copy): Rewrite as a class template and two specializations.
1614 (__copy_ni2): Simplify, just call __copy_aux.
1616 * include/bits/stl_algobase.h (__copy_backward_aux): Add __are_same
1618 * testsuite/25_algorithms/copy/1.cc, 2.cc, 3.cc, 4.cc: Test also
1619 for destination value type != source value type.
1621 2004-07-01 Benjamin Kosnik <bkoz@redhat.com>
1622 Per Bothner <per@bothner.com>
1623 Mohan Embar <gnustuff@thisiscool.com>
1626 * include/bits/concurrence.h (__glibcxx_mutex_type): New.
1627 (__glibcxx_mutex): Encapsulate mutex init function into type for
1628 threaded configurations without __GTHREAD_MUTEX_INIT.
1629 (lock::lock): Make device member a reference.
1630 (lock::~lock): Same.
1631 * include/ext/pool_allocator.h (__pool_base::_M_get_mutex): Change
1633 * src/allocator.cc: Same.
1635 2004-06-30 Brad Spencer <spencer@infointeractive.com>
1637 * include/ext/mt_allocator.h: Handle allocations at static
1638 initialization that happen before _S_options is (automatically)
1639 constructed; set _S_init even if _M_force_new is true.
1641 2004-06-30 Benjamin Kosnik <bkoz@redhat.com>
1643 * config/linker-map.gnu: Revert new exports.
1645 2004-06-30 Benjamin Kosnik <bkoz@redhat.com>
1646 Stuart Anderson <anderson@netsweng.com>
1648 * config/linker-map.gnu: Add destructor exports for abstract base
1649 classes to conform to LSB.
1651 2004-06-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
1652 Paolo Carlini <pcarlini@suse.de>
1654 * include/bits/cpp_type_traits.h: Add __is_pointer and
1655 __is_trivially_copyable.
1656 * include/bits/stl_algobase.h (fill, fill_n): Slightly
1657 tweak to use the latter.
1658 (__copy_backward_dispatch): Remove.
1659 (__copy_backward_aux): Rewrite to use __is_pointer and
1660 __is_trivially_copyable and __copy_backward::copy_b.
1661 (__copy_backward): Rewrite as a class template and two
1664 2004-06-30 Paolo Carlini <pcarlini@suse.de>
1666 * testsuite/25_algorithms/copy.cc: Move to...
1667 * testsuite/25_algorithms/copy/1.cc: ... here, extend.
1668 * testsuite/25_algorithms/copy/2.cc: New.
1669 * testsuite/25_algorithms/copy/3.cc: New.
1670 * testsuite/25_algorithms/copy/4.cc: New.
1672 2004-06-29 Paul Brook <paul@codesourcery.com>
1674 * libsupc++/vec.cc (__cxa_vec_new2, __cxa_vec_new3): Store the
1675 element size in the cookie.
1677 2004-06-28 Paolo Carlini <pcarlini@suse.de>
1679 * include/bits/cpp_type_traits.h: Move the additions to
1680 namespace __gnu_internal outside of namespace std; trivial
1683 2004-06-28 Benjamin Kosnik <bkoz@redhat.com>
1685 * include/debug/safe_base.h (__gnu_debug::_Safe_sequence_base):
1686 Revert -Weffc++ changes that defined copy ctory and or assignment
1688 * libsupc++/tinfo.cc (__upcast_result): Same.
1690 2004-06-28 Paolo Carlini <pcarlini@suse.de>
1692 * src/localename.cc (locale::_Impl::_Impl): Slightly improve
1693 the algorithm used to name the categories.
1695 2004-06-28 Paolo Bonzini <bonzini@gnu.org>
1697 * include/Makefile.am: Give a .gch extension to
1698 the PCH files, not only to the directory.
1699 * include/Makefile.in: Regenerate.
1701 2004-06-28 Paolo Carlini <pcarlini@suse.de>
1703 * config/locale/gnu/monetary_members.cc
1704 (moneypunct<wchar_t>::_M_initialize_moneypunct): Clean up
1705 assignments of _M_decimal_point and _M_thousands_sep.
1707 2004-06-27 Paolo Carlini <pcarlini@suse.de>
1709 * docs/html/17_intro/contribute.html: Update some links.
1710 * docs/html/17_intro/porting-howto.html: Likewise.
1711 * docs/html/17_intro/porting-howto.xml: Likewise.
1712 * docs/html/18_support/howto.html: Likewise.
1713 * docs/html/21_strings/howto.html: Likewise.
1714 * docs/html/27_io/howto.html: Likewise.
1715 * docs/html/configopts.html: Likewise.
1716 * docs/html/ext/howto.html: Likewise.
1717 * docs/html/faq/index.html: Likewise.
1718 * docs/html/install.html: Don't mention 2.x compilers.
1720 2004-06-27 Paolo Carlini <pcarlini@suse.de>
1722 * include/ext/rope: Trivial formatting fixes.
1723 * include/ext/ropeimpl.h: Likewise.
1725 2004-06-26 Paolo Carlini <pcarlini@suse.de>
1728 * acinclude.m4 (GLIBCXX_ENABLE_LONG_LONG): Do not check for the
1729 availability of strto(u)ll, not used anymore in the iostreams.
1730 * configure: Regenerate.
1732 2004-06-25 Benjamin Kosnik <bkoz@redhat.com>
1735 * linkage.m4 (GLIBCXX_CHECK_BUILTIN_MATH_DEC): Revert to
1737 * configure: Regenerate.
1739 2004-06-25 Paul Brook <paul@codesourcery.com>
1741 * libsupc++/cxxabi.h: Define __ARM_EABI__
1743 * libsupc++/guard.h (__cxa_guard_acquire, __cxa_guard_release): Ditto.
1745 2004-06-25 Paul Brook <paul@codesourcery.com>
1747 * include/bits/concurrence.h: Still create mutex object when
1750 2004-06-25 Paolo Carlini <pcarlini@suse.de>
1752 * include/bits/stl_algobase.h (fill, fill_n): Revert last
1753 change: actually we need to copy construct an object of type
1754 _Tp, not of type iterator_traits<>::value_type, therefore the
1757 2004-06-25 Paolo Carlini <pcarlini@suse.de>
1759 * include/bits/stl_algobase.h (fill, fill_n): Tighten the
1760 dispatch: use iterator_traits<>::value_type, not _Tp.
1762 2004-06-25 Paolo Carlini <pcarlini@suse.de>
1764 * testsuite/25_algorithms/fill/1.cc: Tweak instantiations.
1765 * testsuite/25_algorithms/fill/2.cc: Likewise.
1767 2004-06-25 Dan Nicolaescu <dann@ics.uci.edu>
1768 Paolo Carlini <pcarlini@suse.de>
1770 * include/bits/stl_algobase.h (__fill, __fill_n): New helpers
1771 for fill and fill_n, respectively: when copying is cheap, use a
1772 temporary to avoid a memory read in each iteration.
1774 2004-06-25 Paolo Carlini <pcarlini@suse.de>
1776 * testsuite/25_algorithms/fill/1.cc: New.
1777 * testsuite/25_algorithms/fill/2.cc: Likewise.
1779 2004-06-25 Benjamin Kosnik <bkoz@redhat.com>
1781 * include/debug/formatter.h (__gnu_debug::_Error_formatter):
1782 Remove copy constructor and assignment operator.
1784 2004-06-24 Benjamin Kosnik <bkoz@redhat.com>
1786 * include/bits/concurrence.h (__gnu_cxx::lock): New.
1787 * include/ext/pool_allocator.h (__pool_base::_Lock::_S_lock): Remove.
1788 (__pool_base::_M_get_mutex): New.
1789 * include/bits/allocator.h: Tweak.
1790 * src/allocator.cc (__pool_base::_M_get_free_list): Correct offset.
1791 * config/linker-map.gnu: Remove __pool_base::_Lock::_S_lock.
1792 * include/bits/stl_threads.h: Remove.
1793 * include/Makefile.am: Also here.
1794 * include/Makefile.in: Regenerate.
1796 * src/locale_init.cc: Use __gnu_cxx::lock.
1798 * src/allocator.cc: Move all instantiations...
1799 * src/allocator-inst.cc: ...here.
1801 2004-06-23 Andrew Pinski <apinski@apple.com>
1803 * linkage.m4: Remove check for libmx.
1804 * configure: Regenerate.
1806 2004-06-23 Paolo Carlini <pcarlini@suse.de>
1809 * include/bits/boost_concept_check.h (struct _TrivialIteratorConcept):
1810 Don't require the _DefaultConstructibleConcept.
1811 (struct _ForwardIteratorConcept): Require it here.
1813 2004-06-22 Alexandre Oliva <aoliva@redhat.com>
1815 * include/bits/istream.tcc (getline): Make sure arguments passed
1816 to min/max have the same type.
1817 * include/bits/locale_facets.tcc (__verify_grouping): Likewise.
1818 * include/bits/stl_deque.h (_Deque_base::_Deque_base): Likewise.
1820 2004-06-22 Benjamin Kosnik <bkoz@redhat.com>
1822 * docs/html/abi.html: Update links.
1824 2004-06-22 Paolo Carlini <pcarlini@suse.de>
1826 * testsuite/26_numerics/complex_inserters_extractors.cc,
1827 complex_value.cc, buggy_complex.cc: Move to...
1828 * testsuite/26_numerics/complex/: ... here.
1829 * testsuite/26_numerics/c99_classification_macros_c++.cc,
1830 c99_classification_macros_c.cc, c_math.cc, c_math_dynamic.cc,
1831 fabs_inline.cc: Move to...
1832 * testsuite/26_numerics/cmath/: ... here.
1833 * testsuite/26_numerics/binary_closure.cc, slice.cc,
1834 slice_array_assignment.cc, valarray.cc, valarray_const_bracket.cc,
1835 valarray_name_lookup.cc, valarray_operators.cc,
1836 valarray_subset_assignment.cc: Move to...
1837 * testsuite/26_numerics/valarray/: ... here (new dir).
1838 * testsuite/26_numerics/sum_diff.cc: Move to...
1839 * testsuite/26_numerics/numeric/: ... here (new dir).
1841 2004-06-22 Paolo Carlini <pcarlini@suse.de>
1843 * include/std/std_istream.h (ignore(streamsize __n = 1,
1844 int_type __delim = traits_type::eof())): Split into...
1845 (ignore(), ignore(streamsize __n), ignore(streamsize __n,
1846 int_type __delim)): The first two can be much more simpler
1847 and efficient than the fully general case; also, the last
1848 two can take advantage of the same mechanism already used
1850 * include/bits/istream.tcc (ignore(streamsize __n = 1,
1851 int_type __delim = traits_type::eof()): Remove.
1852 (ignore(), ignore(streamsize __n), ignore(streamsize __n,
1853 int_type __delim)): New.
1855 2004-06-21 Loren J. Rittle <ljrittle@acm.org>
1857 * config/linker-map.gnu: Use wildcards for
1858 __basic_file::sys_open(FILE*, _Ios_Openmode).
1860 2004-06-20 Paolo Carlini <pcarlini@suse.de>
1862 * testsuite/27_io/basic_istream/ignore/char/3.cc: New.
1864 2004-06-18 Paolo Carlini <pcarlini@suse.de>
1866 * include/ext/mt_allocator (__mt_alloc<>::_Tune): Add _M_align,
1867 the alignment requested.
1868 (__mt_alloc<>::_Tune::_Tune): Tweak consistently.
1869 (__mt_alloc<>::allocate): Use it instead of sizeof(_Block_record).
1870 (__mt_alloc<>::deallocate): Likewise.
1872 2004-06-18 Paolo Carlini <pcarlini@suse.de>
1875 * include/debug/safe_base.h
1876 (_Safe_sequence_base::_Safe_sequence_base(const _Safe_sequence_base&),
1877 _Safe_sequence_base::operator=): Provide definitions.
1878 * testsuite/23_containers/bitset/cons/16020.cc: New.
1880 2004-06-18 Benjamin Kosnik <bkoz@redhat.com>
1882 * include/ext/pool_allocator.h: Qualify __throw_bad_alloc.
1883 (__pool_base): Remove unused template parameter. Add
1884 protected. Move lock data into __pool_base::_Lock. Remove static
1885 on member functions.
1886 (__pool_base::_M_get_free_list): New.
1887 (__pool_alloc): Move _S_force new here.
1888 * src/allocator.cc: Move out of line __pool_base definitions here.
1889 * config/linker-map.gnu: Export bits from __pool_base.
1891 2004-06-18 Paolo Carlini <pcarlini@suse.de>
1893 * config/locale/gnu/numeric_members.cc
1894 (numpunct<wchar_t>::_M_initialize_numpunct): Clean up
1895 assignments of _M_decimal_point and _M_thousands_sep.
1896 * config/locale/gnu/time_members.cc
1897 (__timepunct<wchar_t>::_M_initialize_timepunct): Clean up
1898 and reformat assignments of date and time fields.
1900 2004-06-16 Paolo Carlini <pcarlini@suse.de>
1902 * include/ext/rope (rope(_CharT, const allocator_type&)): Fix
1903 to use _Data_allocate.
1904 * include/ext/ropeimpl.h (rope<>::_S_leaf_concat_char_iter): Likewise.
1905 (rope<>::_S_substring): Likewise.
1906 (rope<>::rope(size_t, _CharT, const allocator_type&)): Likewise.
1907 (rope<>::c_str()): Likewise.
1908 (rope<>::replace_with_c_str()): Likewise.
1910 * include/ext/ropeimpl.h (_Rope_iterator_base<>::_S_setbuf):
1911 Correctly qualify _S_leaf, _S_function, etc., with _Rope_constants::,
1913 (_Rope_iterator_base<>::_S_setcache): Likewise.
1914 (_Rope_iterator_base<>::_S_setcache_for_incr): Likewise.
1915 (rope<>::_S_substring): Likewise.
1916 (rope<>::_S_dump): Likewise.
1917 (rope<>::_S_fetch_ptr): Likewise.
1918 (rope<>::_S_compare): Likewise.
1919 (rope<>::replace_with_c_str()): Likewise.
1921 * testsuite/ext/rope.cc: Rename to testsuite/ext/rope/1.cc.
1922 * testsuite/ext/rope/2.cc: New.
1924 2004-06-16 Paolo Carlini <pcarlini@suse.de>
1925 Matt Austern <austern@apple.com>
1927 * testsuite/ext/rope/3.cc: New.
1929 2004-06-15 Paolo Bonzini <bonzini@gnu.org>
1931 * acinclude.m4: Remove useless multilib configury.
1932 * Makefile.am: Remove useless multilib rules.
1933 * aclocal.m4: Regenerate.
1934 * Makefile.in: Regenerate.
1935 * configure: Regenerate.
1937 2004-06-15 Paolo Carlini <pcarlini@suse.de>
1939 * include/ext/hashtable.h: Trivial formatting fixes.
1940 * include/ext/rb_tree: Likewise.
1942 2004-06-14 Paolo Carlini <pcarlini@suse.de>
1944 * include/ext/hash_map: Trivial formatting fixes.
1945 * include/ext/hash_set: Likewise.
1946 * include/ext/memory: Likewise.
1947 * include/ext/numeric: Likewise.
1949 2004-06-14 Benjamin Kosnik <bkoz@redhat.com>
1951 * Makefile.in: Regenerate with automake 1.8.5.
1953 * include/Makefile.in: Same.
1954 * libmath/Makefile.in: Same.
1955 * libsupc++/Makefile.in: Same.
1956 * po/Makefile.in: Same.
1957 * src/Makefile.in: Same.
1958 * testsuite/Makefile.in: Same.
1960 2004-06-14 Paolo Carlini <pcarlini@suse.de>
1962 * include/ext/slist: Trivial formatting fixes.
1964 2004-06-14 Paolo Carlini <pcarlini@suse.de>
1966 * include/bits/locale_facets.tcc (time_get<>::_M_extract_name):
1967 Don't use the 'magic number' 10 in the computation of __minlen;
1968 never access __name past __minlen; in the loop over __i3, don't
1969 decrease __nmatches and increase __i3 at once, only either of
1972 2004-06-13 Paolo Carlini <pcarlini@suse.de>
1974 * include/bits/locale_facets.tcc (time_get<>::do_get_time,
1975 time_get<>::do_get_date): Use only once _M_extract_via_format,
1976 instead of going through "%X"/"%x" and calling it two times
1979 2004-06-12 Paolo Carlini <pcarlini@suse.de>
1981 * include/ext/algorithm: Trivial formatting fixes.
1982 * include/ext/functional: Likewise.
1983 * include/ext/hash_fun.h: Likewise.
1984 * include/ext/iterator: Likewise.
1986 2004-06-12 Paolo Carlini <pcarlini@suse.de>
1988 * include/bits/basic_string.tcc (find(const _CharT*, size_type,
1989 size_type)): Reimplement using std::search.
1990 * src/string-inst.cc: Instantiate std::search for char/wchar_t.
1992 2004-06-12 Dhruv Matani <dhruvbird@gmx.net>
1994 * testsuite/performance/21_strings/string_find.cc: New.
1996 2004-06-10 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
1998 * include/bits/istream.tcc (istream::ignore): Fix for -Wuninitialized.
2000 2004-06-10 Jan van Dijk <jan@etpmod.phys.tue.nl>
2002 * include/std/std_complex.h (sin(const complex<_Tp>& __z)): Make
2003 this function return a value.
2005 2004-06-09 Paolo Carlini <pcarlini@suse.de>
2008 * include/bits/stl_deque.h: Consistently with stl_set.h, define
2009 pointer as allocator's pointer, likewise for reference,
2010 const_pointer, and const_reference.
2011 * include/bits/stl_list.h: Likewise.
2012 * include/bits/stl_map.h: Likewise.
2013 * include/bits/stl_multimap.h: Likewise.
2014 * include/bits/stl_vector.h: Likewise.
2016 2004-06-09 Benjamin Kosnik <bkoz@redhat.com>
2018 * crossconfig.m4: Remove signbit, signbitf, signbitl.
2019 * linkage.m4: Comment LIBMATHOBJS, tweak others. AC_DEFINES for
2020 builtin math functions instead of AC_DEFINE_UNQUOTED.
2021 * configure: Regenerate.
2023 2004-06-08 Benjamin Kosnik <bkoz@redhat.com>
2025 * docs/doxygen/filter.sed: Rename _GLIBCXX_STD to std.
2026 * docs/doxygen/mainpage.html: Remove links.
2028 2004-06-08 Jason Merrill <jason@redhat.com>
2030 * config/linker-map.gnu: Use wildcards for
2031 __basic_file::{xsgetn,xsputn,seekoff,xsputn_2}.
2033 2004-06-08 Paolo Carlini <pcarlini@suse.de>
2035 * include/ext/pool_allocator.h: Convert to a global free-list,
2036 as per the original SGI/HP design: move the implementation
2037 details to struct __pool_base, from which __pool_alloc derives.
2038 * src/allocator.cc: Instantiate __pool_base.
2040 2004-06-07 Dhruv Matani <dhruvbird@gmx.net>
2041 Paolo Carlini <pcarlini@suse.de>
2043 * testsuite/testsuite_performance.h
2044 (resource_counter::allocated_memory): Make it return the right
2045 number of bytes requested by the allocators/application. This is
2046 the sbrk+mmaped memory.
2048 2004-06-02 Gabriel Dos Reis <gdr@integrable-solutions.net>
2050 * include/std/std_complex.h (log): Tidy.
2052 2004-05-31 Benjamin Kosnik <bkoz@redhat.com>
2054 * config/linker-map.gnu (GLIBCXX_3.4.1): Add.
2055 * testsuite/testsuite_abi.cc: Same.
2056 * configure.ac (libtool_VERSION): Bump to 6:1:0.
2057 * configure: Regenerate.
2058 * aclocal.m4: Regenerate.
2060 2004-05-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
2062 * include/std/std_complex.h (complex<_Tp>): Properly indent
2064 (complex<>::__rep): New.
2065 (__complex_abs): New. Dispatch to built-ins.
2067 (__complex_arg): New. Dispatch to built-ins.
2069 (__complex_cos): New. Dispatch to built-ins.
2071 (__complex_cosh): New. Dispatch to built-ins.
2073 (__complex_exp): New. Dispatch to built-ins.
2075 (__complex_log): New. Dispatch to built-ins.
2077 (__complex_sin): New. Dispatch to built-ins.
2079 (__complex_sinh): New. Dispatch to built-ins.
2081 (__complex_sqrt): New. Dispatch to built-ins.
2083 (__complex_tan): New. Dispatch to built-ins.
2085 (__complex_tanh): New. Dispatch to built-ins.
2087 (__complex_pow): New. Dispatch to built-ins.
2090 2004-05-29 Richard B. Kreckel <Richard.Kreckel@Framatome-ANP.com>
2091 Benjamin Kosnik <bkoz@redhat.com>
2094 * include/ext/stdio_sync_filebuf.h (stdio_sync_filebuf::file): New.
2095 * include/ext/stdio_filebuf.h (stdio_filebuf::file): New.
2096 * config/io/basic_file_stdio.cc (__basic_file::file): New.
2097 * config/io/basic_file_stdio.h: Define.
2099 2004-05-27 Benjamin Kosnik <bkoz@redhat.com>
2102 * docs/html/documentation.html: Update doxygen links for 3.4.0.
2104 2004-05-27 Jan Beulich <jbeulich@novell.com>
2106 * scripts/create_testsuite_files: Tweak.
2108 2004-05-25 Benjamin Kosnik <bkoz@redhat.com>
2111 * scripts/create_testsuite_files: Revert xtype change, add non-GNU
2112 bits to do the same thing.
2114 2004-05-24 Paolo Carlini <pcarlini@suse.de>
2116 * include/bits/istream.tcc (ignore): Correctly deal with
2117 n == numeric_limits<streamsize>::max().
2118 * testsuite/27_io/basic_istream/ignore/char/2.cc: New.
2120 * include/bits/istream.tcc (basic_istream<>::getline): Prefer
2121 '_M_gcount + 1 < __n' to '--__n; _M_gcount < __n', just in case
2122 __n == numeric_limits<>::min().
2124 * include/bits/istream.tcc: Minor tweaks.
2126 * testsuite/21_strings/basic_string/inserters_extractors/char/10.cc:
2128 * testsuite/21_strings/basic_string/inserters_extractors/char/11.cc:
2130 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/10.cc:
2132 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc:
2134 * testsuite/27_io/basic_istream/getline/char/5.cc: Likewise.
2136 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
2139 Fixups for -Weffc++.
2140 * include/bits/basic_string.h (basic_string::operator=): Return
2141 pointer to this instead of result of assign. Although redundant,
2142 this doesn't impact resultant codegen.
2144 * include/bits/locale_facets.h (__numpunct_cache): Declare
2145 assignment opxserator and copy constructor private.
2146 (__timepunct_cache): Same.
2147 (__moneypunct_cache): Same.
2148 (collate): Use member initialization list for _M_c_locale_collate.
2149 * config/locale/gnu/messages_members.h: Same.
2150 * config/locale/gnu/time_members.h (__timepunct): Same.
2151 * src/codecvt.cc: Use member initialization list to initialize
2152 _M_c_locale_codecvt.
2153 * src/ctype.cc: Same, with _M_c_locale_ctype and _M_narrow_ok.
2154 * config/os/gnu-linux/ctype_noninline.h: Same.
2155 * src/locale.cc (_Impl): Same.
2156 * src/locale_init.cc: Same.
2157 * src/localename.cc: Same.
2159 * include/bits/basic_ios.h (basic_ios): Complete member
2160 initialization list.
2161 * include/bits/istream.tcc (basic_istream::sentry): Same.
2162 * include/bits/ostream.tcc (basic_ostream::sentry): Same.
2163 * include/bits/fstream.tcc (basic_filebuf): Add _M_lock and
2164 _M_pback to member initialization list.
2165 * include/std/std_streambuf.h: Same.
2166 * include/std/std_sstream.h: Same, for _M_mode.
2167 * src/ios.cc (ios_base): Same.
2169 * include/ext/rope: Make derived classes match exception
2171 specifications. Add copy constructors and assignment operators.
2173 * include/debug/safe_base.h (_Safe_sequence_base): Declare copy
2174 constructor and assignment operator protected.
2175 (_Safe_iterator_base): Same.
2176 * include/debug/formatter.h (_Error_formatter): Define copy
2177 constructor and assignment operator.
2179 * include/backward/strstream: Declare assignment operator and copy
2180 constructor private.
2182 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
2184 * testsuite/testsuite_hooks.h (func_callback): Declare copy
2185 constructor and assignment operator private.
2186 * testsuite/23_containers/deque/cons/clear_allocator.cc: Match
2187 exception specifications of base class.
2188 * testsuite/23_containers/list/cons/clear_allocator.cc: Same.
2189 * testsuite/23_containers/vector/cons/clear_allocator.cc: Same.
2190 * testsuite/23_containers/vector/bool/clear_allocator.cc: New.
2192 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
2194 * libsupc++/cxxabi.h: Remove duplicated and useless public and
2195 private keywords in class declarations. Format. Use
2196 stddef.h. Expose declarations to "C" compilation.
2197 * libsupc++/tinfo.cc (__upcast_result): Add copy constructor and
2198 assignment operator.
2199 (__dyncast_result): Same.
2200 * libsupc++/vec.cc (uncatch_exception): Same, use member
2201 initialization list.
2203 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
2205 * testsuite/abi_check.cc: Add unistd.h.
2207 2004-05-22 Paolo Carlini <pcarlini@suse.de>
2210 * include/bits/locale_facets.tcc (__int_to_char(unsigned long),
2211 __int_to_char(unsigned long long)): Showpos is not relevant
2213 * testsuite/22_locale/num_put/put/char/15565.cc: New.
2214 * testsuite/22_locale/num_put/put/wchar_t/15565.cc: New.
2216 * testsuite/22_locale/num_put/put/wchar_t/1.cc: Use L for the fill
2218 * testsuite/22_locale/num_put/put/wchar_t/2.cc: Likewise.
2219 * testsuite/22_locale/num_put/put/wchar_t/3.cc: Likewise.
2220 * testsuite/22_locale/num_put/put/wchar_t/4.cc: Likewise.
2221 * testsuite/22_locale/num_put/put/wchar_t/5.cc: Likewise.
2222 * testsuite/22_locale/num_put/put/wchar_t/6.cc: Likewise.
2223 * testsuite/22_locale/num_put/put/wchar_t/8.cc: Likewise.
2225 2004-05-21 Matthias Klose <doko@debian.org>
2227 * docs/doxygen/run_doxygen: Bump required version.
2229 2004-05-21 Benjamin Kosnik <bkoz@redhat.com>
2231 * docs/html/abi.html (libgcc_s): Additions suggested by Matthias Klose.
2232 * docs/doxygen/Intro.3: Subtractions suggested by Phil Edwards.
2234 2004-05-21 Paolo Carlini <pcarlini@suse.de>
2236 * include/bits/istream.tcc (ignore): Remove redundant line.
2237 (readsome): Tidy, closely following 27.6.1.3, p30.
2239 2004-05-20 Paolo Carlini <pcarlini@suse.de>
2241 * include/bits/istream.tcc (operator>>(basic_istream<>&,
2242 basic_string<>&)): Use a temporary buffer, thus avoiding
2243 reallocation for common case.
2244 * testsuite/21_strings/basic_string/inserters_extractors/char/11.cc:
2246 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc:
2249 * include/bits/istream.tcc: Const-ification of a few variables.
2251 * include/bits/ostream.tcc: Trivial formatting fixes and
2252 const-ification of some variables.
2254 2004-05-20 Benjamin Kosnik <bkoz@redhat.com>
2258 * docs/doxygen/Intro.3: Remove Allocators.3.
2259 Add new extension headers, extension namespace list.
2260 * docs/doxygen/run_doxygen (problematic): Remove Allocators.3
2261 Rename GLIBCXXSTD names to std::. Rename __gnu_debug to
2262 __gnu_debug::. Remove __policy_ renames.
2263 * docs/doxygen/guide.html: Add dot note.
2264 * docs/doxygen/stdheader.cc: Edit, add files.
2265 * docs/doxygen/user.cfg.in: Regenerate with Doxygen 1.3.7.
2267 2004-05-18 Jonathan Wakely <redi@gcc.gnu.org>
2269 * include/ext/stdio_filebuf.h: Update comments to reflect PR 11691.
2271 2004-05-18 Jan Beulich <jbeulich@novell.com>
2274 * scripts/create_testsuite_files: Also find source files through
2277 2004-05-18 Jan Beulich <jbeulich@novell.com>
2280 * testsuite/lib/libstdc++.exp: Make test files writable.
2282 2004-05-18 Paolo Carlini <pcarlini@suse.de>
2284 * include/ext/mt_allocator.h:(__mt_alloc::allocate): Minor
2287 2004-05-18 Dhruv Matani <dhruvbird@gmx.net>
2289 * include/ext/mt_allocator.h:(__mt_alloc::allocate): Re-write
2290 allocation loop which removes blocks from the global free list
2291 from O(N) to O(1) when the required blocks are <= the number
2294 2004-05-18 Jonathan Wakely <redi@gcc.gnu.org>
2296 * include/ext/enc_filebuf.h: Move concept-check macro to class scope.
2298 2004-05-17 Benjamin Kosnik <bkoz@redhat.com>
2300 * testsuite/testsuite_hooks.h (__gnu_test::conversion): New class.
2301 * testsuite/23_containers/deque/14340.cc: New.
2302 * testsuite/23_containers/list/14340.cc: New.
2303 * testsuite/23_containers/map/14340.cc: New.
2304 * testsuite/23_containers/multimap/14340.cc: New.
2305 * testsuite/23_containers/multiset/14340.cc: New.
2306 * testsuite/23_containers/set/14340.cc: New.
2307 * testsuite/23_containers/vector/14340.cc: New.
2309 2004-05-17 Douglas Gregor <gregod@cs.rpi.edu>
2312 * include/debug/safe_iterator.h (_Safe_iterator converting
2313 constructor): Only allow declaration to instantiate when the
2314 incoming _Safe_iterator has exactly the right iterator type.
2316 2004-05-17 Jonathan Wakely <redi@gcc.gnu.org>
2318 * include/bits/boost_concept_check.h: Fix old attribute syntax.
2319 * testsuite/23_containers/map/modifiers/swap.cc: Define operator<
2320 to pass concept-checks.
2321 * testsuite/23_containers/multimap/modifiers/swap.cc: Same.
2322 * testsuite/23_containers/set/modifiers/swap.cc: Same.
2323 * testsuite/23_containers/multiset/modifiers/swap.cc: Same.
2325 2004-05-16 Paolo Carlini <pcarlini@suse.de>
2327 * include/std/std_bitset.h: Minor formatting fixes.
2329 2004-05-16 Paolo Carlini <pcarlini@suse.de>
2331 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
2332 Consistently update __bin._M_free[0].
2333 (__mt_alloc<>::allocate): When __bin._M_first[0] != NULL use
2334 __bin._M_free[0] to simplify the while loop (i.e., the number
2335 of iterations becomes known at the outset).
2337 2004-05-15 Paolo Carlini <pcarlini@suse.de>
2339 * include/std/std_bitset.h: Trivial formatting fixes.
2341 2004-05-14 Paolo Carlini <pcarlini@suse.de>
2342 Ivan Godard <igodard@pacbell.net>
2345 * include/std/std_bitset.h (_Base_bitset<_Nw>::_M_do_find_next): Fix.
2346 * testsuite/23_containers/bitset/ext/15361.cc: New.
2348 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
2351 * crossconfig.m4: Add C99 math bits for linux crosses.
2352 * configure: Regenerate.
2354 2004-05-13 Simon Marshall <simon.marshall@misys.com>
2355 Benjamin Kosnik <bkoz@redhat.com>
2358 * include/bits/locale_facets.h: Fix for -fno-for-scope.
2359 * include/debug/safe_sequence.h: Same.
2360 * include/debug/safe_iterator.tcc: Same.
2361 * src/debug.cc: Same.
2362 * src/locale.cc: Same.
2363 * src/locale_init.cc: Same.
2364 * src/localename.cc: Same.
2365 * config/locale/gnu/ctype_members.cc: Same.
2366 * config/locale/gnu/numeric_members.cc: Same.
2367 * testsuite/testsuite_abi.cc: Same.
2368 * testsuite/testsuite_hooks.cc: Same.
2370 2004-05-13 Jonathan Wakely <redi@gcc.gnu.org>
2372 * docs/html/abi.html: Document effect of -fabi-version on value
2373 of __GXX_ABI_VERSION, and that it's defined in c-cppbuiltin.c.
2376 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
2379 * docs/html/faq/index.html: Update docs for libsupc++ usage.
2381 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
2384 * include/bits/stl_threads.h (_GLIBCXX_mutex): Move to namespace
2386 (_GLIBCXX_mutex_address): Same.
2387 (_GLIBCXX_once): Same.
2388 (_GLIBCXX_mutex_init): Same.
2389 (_GLIBCXX_mutex_address_init): Same.
2391 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
2393 * docs/html/abi.html: New.
2394 * docs/html/abi.txt: Remove.
2395 * docs/html/documentation.html: Add link.
2396 * testsuite/Makefile.am: Add files.
2397 * testsuite/Makefile.in: Regenerated.
2398 * testsuite/abi_check.cc: Move and modify code into...
2399 * testsuite/testsuite_abi.cc: Add.
2400 * testsuite/testsuite_abi.h: Add.
2402 * docs/html/17_intro/TODO: Update.
2403 * include/bits/stl_pair.h: Format.
2405 2004-05-06 Matthias Klose <doko@debian.org>
2407 * include/backward/iterator.h: Add GPL copyright info,
2408 with exception clause.
2409 * include/bits/boost_concept_check.h: Likewise.
2411 * libsupc++/tinfo.h: Likewise.
2412 * po/string_literals.cc: Likewise.
2414 2004-05-03 Andreas Tobler <a.tobler@schweiz.ch>
2416 * acinclude.m4: Replace -W with more speaking -Wextra.
2417 * configure: Rebuilt.
2419 2004-05-03 Paolo Carlini <pcarlini@suse.de>
2421 Optimize locale::_M_impl->_M_names for the most common cases:
2422 !_M_names[0] means unnamed; !_M_names[1] means all the categories
2423 the same name (_M_names[0] && _M_names[1] means that the full set
2424 of _M_names must be processed, the general case).
2425 * include/bits/locale_classes.h (locale::_Impl::_M_check_same_name):
2426 Tweak, saving work when !_M_names[1].
2427 (locale::locale(const locale&, _Facet*): Simplify: now just setting
2428 _M_names[0] = 0 means unnamed.
2429 * src/locale.cc (locale::operator==): Deal first with the common,
2430 easy cases, otherwise fall back to locale::name().
2431 (locale::name()): Tweak, if !_M_names[0] just return "*".
2432 (locale::_Impl::_Impl(const _Impl&, size_t): Tweak, early stop
2433 copying __imp._M_names if !__imp._M_names[0] or !__imp._M_names[1].
2434 * src/locale_init.cc (locale::_Impl::_Impl(size_t)): Tweak.
2435 * src/localename.cc (locale::_Impl::_Impl(const char*, size_t):
2436 Simplify when !std::strchr, just updating _M_names[0]; clean up.
2437 (locale::_Impl::_M_replace_categories): When !_M_names[1] prepare
2438 for the general case (full set of names), then do the usual work;
2441 * src/locale.cc (locale::name()): Reserve space in __ret.
2442 * src/locale_init.cc (locale::global(const locale&)): Save
2443 the name in a temporary.
2444 * src/localename.cc (locale::locale(const char*)): Reserve space
2447 2004-04-29 Paolo Carlini <pcarlini@suse.de>
2449 * src/locale.cc (locale::operator==): Always avoid constructing
2450 locale::name(), directly compare pairs of _M_names.
2452 2004-04-26 Paolo Carlini <pcarlini@suse.de>
2454 * include/bits/istream.tcc: Fix comment.
2456 2004-04-26 Paolo Carlini <pcarlini@suse.de>
2458 * include/bits/stl_vector.h: Trivial formatting fixes.
2459 * include/bits/vector.tcc: Likewise.
2461 2004-04-25 Paolo Carlini <pcarlini@suse.de>
2463 PR libstdc++/15002 (continued again)
2464 * include/bits/istream.tcc (getline(basic_istream<>&,
2465 basic_string<>&, _CharT)): Use a temporary buffer, thus
2466 avoiding reallocation for common case.
2468 * include/bits/basic_string.tcc (_S_construct(_InIterator,
2469 _InIterator, const _Alloc&, input_iterator_tag)): Tweak size
2470 of temporary buffer to a power of two.
2472 * testsuite/27_io/basic_istream/getline/char/4.cc: Add comment.
2474 2004-04-25 Paolo Carlini <pcarlini@suse.de>
2476 * testsuite/21_strings/basic_string/inserters_extractors/char/10.cc:
2478 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/10.cc:
2480 * testsuite/27_io/basic_istream/getline/char/5.cc: Likewise.
2482 2004-04-24 Paolo Carlini <pcarlini@suse.de>
2483 Petur Runolfsson <peturr02@ru.is>
2485 PR libstdc++/15002 (continued)
2486 * include/bits/istream.tcc (basic_istream<>::getline(char_type*,
2487 streamsize, char_type)): Use traits::find/copy in a loop to speed
2488 up greatly the function in the common case (I/O buffer size >> 1).
2490 2004-04-24 Paolo Carlini <pcarlini@suse.de>
2492 * testsuite/27_io/basic_istream/getline/char/4.cc: New.
2494 * include/bits/istream.tcc (getline(basic_istream<>&,
2495 basic_string<>&, _CharT)): Change to use sgetc()/snextc() instead
2496 of sbumpc(), consistently with the other functions, thus also
2497 dealing correctly with the case of exceeded string::max_size().
2499 2004-04-24 Matthias Klose <doko@debian.org>
2501 Jonathan Wakely <cow@compsoc.man.ac.uk>
2502 * docs/html/configopts.html: Fix reference to allocator config option.
2504 2004-04-23 Andrew Pinski <pinskia@physics.uc.edu>
2506 * linkage.m4 (GLIBCXX_CHECK_MATH_SUPPORT): Check for libmx also.
2507 * configure: Regenerate.
2509 2004-04-23 Daniel Jacobowitz <drow@mvista.com>
2511 PR libstdc++/15047, libstdc++/11610
2512 * testsuite/lib/libstdc++.exp (v3-copy-files): Use remote_download.
2513 (libstdc++_init): Don't pass outdir to v3-copy-files.
2515 2004-04-21 Paolo Carlini <pcarlini@suse.de>
2517 * include/bits/deque.tcc: Trivial formatting fixes.
2518 * include/bits/stl_deque.h: Likewise.
2519 * include/bits/stl_list.h: Likewise.
2520 * include/bits/stl_tree.h: Likewise.
2522 2004-04-21 Paolo Carlini <pcarlini@suse.de>
2523 Andrew Pinski <pinskia@physics.uc.edu>
2525 * include/bits/basic_string.tcc (_M_mutate): Don't compute
2526 __src unnecessarily.
2528 2004-04-19 Benjamin Kosnik <bkoz@redhat.com>
2530 * testsuite/27_io/basic_istream/extractors_character/char/9555-ic.cc:
2531 Clarify assertion, set test variable to false before assert.
2532 * testsuite/27_io/basic_istringstream/str/char/1.cc: Same.
2533 * testsuite/27_io/basic_stringstream/str/char/1.cc: Same.
2534 * testsuite/27_io/ios_base/storage/2.cc: Same.
2536 * testsuite/27_io/basic_filebuf/imbue/char/13171-4.cc: Fix
2538 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-3.cc: Same.
2539 * testsuite/27_io/fpos/14320-3.cc: Same.
2541 * testsuite/27_io/basic_filebuf/2.cc: Instantiate in namespace std.
2542 * testsuite/27_io/fpos/1.cc: Same.
2543 * testsuite/27_io/basic_stringstream/2.cc: Same.
2544 * testsuite/27_io/basic_stringbuf/4.cc: Same.
2545 * testsuite/27_io/basic_stringbuf/1.cc: Same.
2546 * testsuite/27_io/basic_stringbuf/2.cc: Same.
2547 * testsuite/27_io/basic_streambuf/2.cc: Same.
2548 * testsuite/27_io/basic_ostringstream/2.cc: Same.
2549 * testsuite/27_io/basic_ostream/2.cc: Same.
2550 * testsuite/27_io/basic_ofstream/2.cc: Same.
2551 * testsuite/27_io/basic_istringstream/2.cc: Same.
2552 * testsuite/27_io/basic_istream/2.cc: Same.
2553 * testsuite/27_io/basic_iostream/2.cc: Same.
2554 * testsuite/27_io/basic_ios/2.cc: Same.
2555 * testsuite/27_io/basic_ifstream/2.cc: Same.
2556 * testsuite/27_io/basic_fstream/2.cc: Same.
2557 * testsuite/ext/stdio_filebuf/char/1.cc: Same, in namespace __gnu_cxx.
2559 * testsuite/21_strings/basic_string/capacity/1.cc: Don't compare
2560 unsigned against zero.
2561 * testsuite/21_strings/basic_string/capacity/wchar_t/1.cc: Same.
2562 * testsuite/21_strings/basic_string/capacity/char/1.cc: Same.
2564 * testsuite/18_support/new_delete_placement.cc: Initialize
2565 variables before first use.
2566 * testsuite/21_strings/char_traits/requirements/wchar_t/1.cc: Same.
2567 * testsuite/21_strings/char_traits/requirements/char/1.cc: Same.
2568 * testsuite/21_strings/char_traits/requirements/short/1.cc: Same.
2569 * testsuite/27_io/basic_istream/seekg/char/exceptions_badbit_throw.cc:
2571 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/exceptions_badbit_throw.cc: Same.
2572 * testsuite/27_io/basic_ostream/seekp/char/exceptions_badbit_throw.cc:
2574 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/exceptions_failbit_throw.cc: Same.
2575 * testsuite/27_io/types/2.cc: Same.
2577 * testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc: Fix temporary
2579 * testsuite/27_io/fpos/14775.cc: Same.
2581 2004-04-19 Paolo Carlini <pcarlini@suse.de>
2583 PR libstdc++/15002 (partial)
2584 * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
2585 Special case __n2 == 1, not calling traits_type::assign/copy.
2587 2004-04-17 Benjamin Kosnik <bkoz@redhat.com>
2589 * include/bits/stl_bvector.h: Use _M_impl._M_start.
2591 2004-04-16 Benjamin Kosnik <bkoz@redhat.com>
2593 * include/bits/c++config (_GLIBCXX_STD): New.
2594 * src/list.cc: Use it.
2595 * include/std/std_bitset.h: Same.
2596 * include/bits/vector.tcc: Same.
2597 * include/bits/stl_set.h: Same.
2598 * include/bits/stl_multiset.h: Same.
2599 * include/bits/stl_multimap.h: Same.
2600 * include/bits/stl_map.h: Same.
2601 * include/bits/stl_list.h: Same.
2602 * include/bits/stl_vector.h: Same.
2603 * include/bits/stl_bvector.h: Same.
2604 * include/bits/stl_deque.h: Same.
2605 * include/bits/deque.tcc: Same.
2606 * include/bits/list.tcc: Same.
2607 * include/debug/vector: Same.
2608 * include/debug/set.h: Same.
2609 * include/debug/multiset.h: Same.
2610 * include/debug/multimap.h: Same.
2611 * include/debug/map.h: Same.
2612 * include/debug/list: Same.
2613 * include/debug/deque: Same.
2614 * include/debug/bitset: Same.
2615 * include/debug/formatter.h (__gnu_debug): Remove using directive.
2616 Add using declaration for std::type_info.
2617 * include/debug/safe_iterator.h: Add using declaration for
2618 std::iterator_traits and std::pair.
2619 * src/debug_list.cc: New.
2620 * src/Makefile.am: Add debug_list.cc.
2621 * src/Makefile.in: Regenerate.
2622 * config/linker-map.gnu: Add _List_node_base exports for std and
2625 * include/bits/stl_bvector.h (_Bvector_base): Use _Bvector_impl
2626 idiom that other containers use.
2627 * testsuite/23_containers/vector/bool/clear_allocator.cc: New.
2629 2004-04-16 Paolo Carlini <pcarlini@suse.de>
2632 * include/bits/fstream.tcc (basic_filebuf::imbue): Zero _M_codecvt
2634 * testsuite/27_io/basic_filebuf/imbue/char/14975-1.cc: New.
2635 * testsuite/27_io/basic_filebuf/imbue/wchar_t/14975-2.cc: New.
2637 2004-04-16 Paolo Carlini <pcarlini@suse.de>
2639 * acconfig.h: Remove _GLIBCXX_USE_LONG_DOUBLE entry, not
2641 * config.h.in: Regenerate.
2643 2004-04-16 Paolo Carlini <pcarlini@suse.de>
2645 * config/locale/generic/monetary_members.cc
2646 (moneypunct<wchar_t>::_M_initialize_moneypunct): Avoid calling
2647 btowc unnecessarily, just cast to wchar_t (the concerned chars
2648 all belong to the basic character set).
2649 * config/locale/generic/numeric_members.cc
2650 (numpunct<wchar_t>::_M_initialize_numpunct): Likewise.
2651 * config/locale/gnu/monetary_members.cc
2652 (moneypunct<wchar_t>::_M_initialize_moneypunct): Likewise.
2653 * config/locale/gnu/numeric_members.cc
2654 (numpunct<wchar_t>::_M_initialize_numpunct): Likewise.
2656 2004-04-15 Paolo Carlini <pcarlini@suse.de>
2658 * src/locale.cc (locale::operator==): When _M_impl == __rhs._M_impl
2659 avoid constructing unnecessarily this->name().
2661 2004-04-14 Zack Weinberg <zack@codesourcery.com>
2663 * testsuite/Makefile.am: Add definition of AM_CXXFLAGS.
2664 Change definition of CXX to use $(shell) instead of backticks.
2665 * testsuite/Makefile.in: Regenerate.
2667 2004-04-12 Dhruv Matani <dhruvbird@gmx.net>
2669 * testsuite/performance/20_util/allocator/list_sort_search.cc:
2670 Minor formatting fixes.
2671 * testsuite/performance/20_util/allocator/map_mt_find.cc:
2674 2004-04-12 Paolo Carlini <pcarlini@suse.de>
2676 * config/locale/gnu/numeric_members.cc
2677 (numpunct<wchar_t>::_M_initialize_numpunct): No need to wrap
2678 in __uselocale, since btowc is called for chars belonging to
2679 the basic character set.
2681 2004-04-09 Paolo Carlini <pcarlini@suse.de>
2683 * testsuite/22_locale/messages/members/char/1.cc: Remove junk.
2684 * testsuite/22_locale/messages/members/char/2.cc: Ditto.
2685 * testsuite/22_locale/messages/members/char/3.cc: Ditto.
2686 * testsuite/22_locale/num_get/get/char/1.cc: Ditto.
2687 * testsuite/22_locale/num_get/get/char/2.cc: Ditto.
2688 * testsuite/22_locale/num_get/get/char/3.cc: Ditto.
2689 * testsuite/22_locale/num_get/get/wchar_t/1.cc: Ditto.
2690 * testsuite/22_locale/num_get/get/wchar_t/2.cc: Ditto.
2691 * testsuite/22_locale/num_get/get/wchar_t/3.cc: Ditto.
2692 * testsuite/22_locale/num_put/put/char/1.cc: Ditto.
2693 * testsuite/22_locale/num_put/put/char/2.cc: Ditto.
2694 * testsuite/22_locale/num_put/put/char/3.cc: Ditto.
2695 * testsuite/22_locale/num_put/put/wchar_t/1.cc: Ditto.
2696 * testsuite/22_locale/num_put/put/wchar_t/2.cc: Ditto.
2697 * testsuite/22_locale/num_put/put/wchar_t/3.cc: Ditto.
2698 * testsuite/22_locale/numpunct/members/char/1.cc: Ditto.
2699 * testsuite/22_locale/numpunct/members/wchar_t/1.cc: Ditto.
2701 2004-04-07 Paolo Carlini <pcarlini@suse.de>
2703 * config/locale/generic/time_members.cc
2704 (__timepunct<char>::_M_initialize_timepunct,
2705 __timepunct<wchar_t>::_M_initialize_timepunct): the correct
2706 _M_amonth07 in the "C" locale is "Jul" and L"Jul", respectively.
2707 * config/locale/gnu/time_members.cc
2708 (__timepunct<char>::_M_initialize_timepunct,
2709 __timepunct<wchar_t>::_M_initialize_timepunct): Ditto.
2710 * testsuite/22_locale/time_get/get_monthname/char/4.cc: New.
2711 * testsuite/22_locale/time_get/get_monthname/wchar_t/4.cc: New.
2713 * testsuite/22_locale/time_get/date_order/char/1.cc: Remove junk.
2714 * testsuite/22_locale/time_get/date_order/wchar_t/1.cc: Ditto.
2715 * testsuite/22_locale/time_get/get_date/char/1.cc: Ditto.
2716 * testsuite/22_locale/time_get/get_date/char/2.cc: Ditto.
2717 * testsuite/22_locale/time_get/get_date/wchar_t/1.cc: Ditto.
2718 * testsuite/22_locale/time_get/get_date/wchar_t/2.cc: Ditto.
2719 * testsuite/22_locale/time_get/get_monthname/char/1.cc: Ditto.
2720 * testsuite/22_locale/time_get/get_monthname/char/2.cc: Ditto.
2721 * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Ditto.
2722 * testsuite/22_locale/time_get/get_monthname/wchar_t/2.cc: Ditto.
2723 * testsuite/22_locale/time_get/get_time/char/1.cc: Ditto.
2724 * testsuite/22_locale/time_get/get_time/char/2.cc: Ditto.
2725 * testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Ditto.
2726 * testsuite/22_locale/time_get/get_time/wchar_t/2.cc: Ditto.
2727 * testsuite/22_locale/time_get/get_weekday/char/1.cc: Ditto.
2728 * testsuite/22_locale/time_get/get_weekday/char/2.cc: Ditto.
2729 * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Ditto.
2730 * testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc: Ditto.
2731 * testsuite/22_locale/time_get/get_year/char/1.cc: Ditto.
2732 * testsuite/22_locale/time_get/get_year/wchar_t/1.cc: Ditto.
2733 * testsuite/22_locale/time_put/put/char/1.cc: Ditto.
2734 * testsuite/22_locale/time_put/put/char/2.cc: Ditto.
2735 * testsuite/22_locale/time_put/put/char/3.cc: Ditto.
2736 * testsuite/22_locale/time_put/put/char/4.cc: Ditto.
2737 * testsuite/22_locale/time_put/put/char/5.cc: Ditto.
2738 * testsuite/22_locale/time_put/put/char/6.cc: Ditto.
2739 * testsuite/22_locale/time_put/put/char/7.cc: Ditto.
2740 * testsuite/22_locale/time_put/put/char/8.cc: Ditto.
2741 * testsuite/22_locale/time_put/put/wchar_t/1.cc: Ditto.
2742 * testsuite/22_locale/time_put/put/wchar_t/2.cc: Ditto.
2743 * testsuite/22_locale/time_put/put/wchar_t/3.cc: Ditto.
2744 * testsuite/22_locale/time_put/put/wchar_t/4.cc: Ditto.
2745 * testsuite/22_locale/time_put/put/wchar_t/5.cc: Ditto.
2746 * testsuite/22_locale/time_put/put/wchar_t/6.cc: Ditto.
2747 * testsuite/22_locale/time_put/put/wchar_t/7.cc: Ditto.
2748 * testsuite/22_locale/time_put/put/wchar_t/8.cc: Ditto.
2750 * testsuite/22_locale/time_put/put/char/9780-1.cc: Fix typos.
2752 2004-04-07 Paolo Carlini <pcarlini@suse.de>
2754 * config/locale/gnu/monetary_members.cc
2755 (moneypunct<wchar_t>::_M_initialize_moneypunct): Prefer
2756 _NL_MONETARY_DECIMAL_POINT_WC, _NL_MONETARY_THOUSANDS_SEP_WC,
2757 and __MON_GROUPING to _NL_NUMERIC_DECIMAL_POINT_WC,
2758 _NL_NUMERIC_THOUSANDS_SEP_WC, and GROUPING.
2759 * config/locale/gnu/numeric_members.cc
2760 (numpunct<char>::_M_initialize_numpunct): Prefer DECIMAL_POINT
2761 and THOUSANDS_SEP to the deprecated RADIXCHAR and THOUSEP.
2763 2004-04-06 Benjamin Kosnik <bkoz@redhat.com>
2765 Fixups for EDG front end.
2766 * include/ext/rope: Instead of non-existent function
2767 _Data_allocate, use allocator's allocate. Use this.
2768 (namespace _Rope_constants): Move _S_max_rope_depth, and _Tag
2769 enumerations from _Rope_RopeRep here.
2770 * include/ext/ropeimpl.h: Same.
2771 * src/ext-inst.cc (_S_min_len): Fix up definition.
2773 * config/locale/gnu/ctype_members.cc: Qualify base class members
2775 * config/locale/generic/ctype_members.cc: Same.
2776 * config/locale/gnu/messages_members.h: Same.
2777 * config/locale/generic/messages_members.h: Same.
2778 * src/ctype.cc: Same.
2779 * include/bits/codecvt.h: Same.
2781 * include/bits/boost_concept_check.h: Declare.
2782 (__error_type_must_be_an_unsigned_integer_type): Remove this.
2783 (__error_type_must_be_an_integer_type): Remove this.
2784 (__error_type_must_be_a_signed_integer_type): Remove this.
2786 * config/io/basic_file_stdio.cc (__basic_file::sys_open): Remove cast.
2788 * libsupc++/eh_alloc.cc (__cxa_free_exception): Add exception
2789 specification to definition.
2790 (__cxa_allocate_exception): Same.
2791 * libsupc++/eh_catch.cc (__cxa_begin_catch): Same.
2792 * libsupc++/eh_globals.cc (__cxa_get_globals_fast): Same.
2793 (__cxa_get_globals): Same.
2795 * libsupc++/del_op.cc: Add comment about freestanding.
2797 2004-04-05 Paolo Carlini <pcarlini@suse.de>
2799 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
2800 The critical section is actually very small, only two assignments.
2802 2004-04-04 Paolo Carlini <pcarlini@suse.de>
2803 Petur Runolfsson <peturr02@ru.is>
2805 * testsuite/performance/27_io/filebuf_sputn_unbuf.cc: New,
2806 adapted from libstdc++/11378.
2808 2004-04-03 Paolo Carlini <pcarlini@suse.de>
2810 * include/ext/mt_allocator.h (__mt_alloc<>::allocate): Factor out
2811 some duplicated code.
2812 (__mt_alloc<>::_Bin_record): Spare the space of _M_free and _M_used
2813 in the single threaded case.
2814 * testsuite/performance/20_util/allocator/list_sort_search.cc:
2815 Reorder and renumber the tests consistently with the other testfiles.
2816 * testsuite/performance/20_util/allocator/map_mt_find.cc: Ditto.
2817 * testsuite/performance/20_util/allocator/map_thread.cc: Ditto.
2818 * testsuite/performance/20_util/allocator/producer_consumer.cc: Ditto.
2820 2004-04-02 Paolo Carlini <pcarlini@suse.de>
2822 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
2823 Rearrange arithmetic to avoid computing two divisions at
2826 2004-04-01 Paolo Carlini <pcarlini@suse.de>
2828 * include/ext/mt_allocator.h (__mt_alloc<>::_S_initialize):
2829 Streamline the second half, wrapping it in a single
2830 '#ifdef __GTHREADS if (__gthread_active_p())' and avoiding
2831 conditionals inside loops.
2833 2004-04-01 Paolo Carlini <pcarlini@suse.de>
2836 * acconfig.h: Rename _GLIBCXX_MEM_LIMITS to _GLIBCXX_RES_LIMITS.
2837 * acinclude.m4 (GLIBCXX_CHECK_SETRLIMIT): Call
2838 GLIBCXX_CHECK_SETRLIMIT_ancilliary for FSIZE too, adjust define
2839 to _GLIBCXX_RES_LIMITS.
2840 (GLIBCXX_CHECK_SETRLIMIT_ancilliary): Rename HAVE_MEMLIMIT_* to
2842 * testsuite/testsuite_hooks.h: Declare set_file_limit.
2843 * testsuite/testsuite_hooks.cc: Define it, using getrlimit
2844 and setrlimit(RLIMIT_FSIZE).
2845 * testsuite/27_io/fpos/14775.cc: New.
2846 * config.h.in: Regenerate.
2847 * configure: Likewise.
2849 2004-03-31 Paolo Carlini <pcarlini@suse.de>
2851 * config/locale/generic/c_locale.cc (__convert_to_v(long double&)):
2852 In v3 uses of sscanf, the special floating-point numbers INF,
2853 INFINITY, etc., cannot occur in input, therefore, if the latter
2854 is too large, ERANGE is always stored in errno, no need of finitel.
2856 2004-03-30 Benjamin Kosnik <bkoz@redhat.com>
2859 * include/bits/stl_tree.h: Adjust initialization list order.
2861 2004-03-29 Loren J. Rittle <ljrittle@acm.org>
2863 * testsuite/thread/pthread7-rope.cc: Update comment to reflect test.
2865 2004-03-29 Paolo Carlini <pcarlini@suse.de>
2867 * testsuite/thread/pthread7-rope.cc: Fix, unpredictably, depending
2868 on allocator behavior, the memory pointed by data2 may well be not
2871 2004-03-28 Chavdar Botev <cbotev@yahoo.com>
2874 * include/bits/basic_string.tcc
2875 (basic_string::basic_string(const basic_string&)): Pass to
2876 _Rep::_M_grab the actual allocator of the string being constructed
2877 not the default constructed one.
2879 2004-03-27 Benjamin Kosnik <bkoz@redhat.com>
2882 * config/locale/ieee_1003.1-2001/codecvt_specializations.h
2883 (__enc_traits::_M_destroy): New.
2884 (__enc_traits::~__enc_traits): Use it.
2885 (__enc_traits::operator=): Use _M_destroy, _M_init.
2886 (__enc_traits::__enc_traits): Same.
2888 2004-03-27 Petur Runolfsson <peturr02@ru.is>
2890 * testsuite/ext/enc_filebuf/char/13598.cc: New.
2892 2004-03-27 Paolo Carlini <pcarlini@suse.de>
2894 * include/ext/mt_allocator.h: Uglify consistently names of
2895 variables, members and classes; tidy.
2897 2004-03-27 Dhruv Matani <dhruvbird@gmx.net>
2899 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
2900 Deallocation loop rewrote.
2902 2004-03-26 Paolo Carlini <pcarlini@suse.de>
2904 * include/ext/mt_allocator.h (__mt_alloc<>::allocate,
2905 __mt_alloc<>::deallocate): Protect two instances of
2906 block->thread_id with __GTHREADS.
2908 2004-03-25 Gawain Bolton <gp.bolton@computer.org>
2910 * include/bits/stl_tree.h (_Rb_tree_impl): Add _Node_allocator
2911 default argument in constructors.
2912 (_Rb_tree::_M_empty_initialize): Remove.
2914 2004-03-25 Benjamin Kosnik <bkoz@redhat.com>
2916 * testsuite/23_containers/map/operators/1_neg.cc: Adjust line numbers.
2917 * testsuite/23_containers/set/operators/1_neg.cc: Same.
2919 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
2921 * include/bits/cpp_type_traits.h: Changed __is_pod
2922 completely. Now, it does not use any of the previous type_traits
2923 to detect the pod types, and it also detects function pointers as
2926 * include/bits/stl_tree.h: Introduced a new class _Rb_tree_impl,
2927 which encapsulates the internal implementation of an rb_tree. Made
2928 the allocator a base class of this class instead of the rb_tree,
2929 which was not conforming. This _Rb_tree_impl class is also
2930 specialized on whether the _Compare parameter is a POD type or
2931 not. If so, then it maintains the comparison function as a data
2932 member, otherwise it makes the _Compare parameter a base class of
2933 itself. Also, _M_key_compare is now a function instead of a data
2934 member, so that the above trick can work properly. Delegated the
2935 initialization of the other data members to this newly created
2936 class. Also, now other member functions of rb_tree must refer to
2937 _M_key_compare as _M_impl._M_key_compare(). The other data members
2938 (*) can be referenced to as _M_impl.(*), where
2939 (*) includes _M_header, and _M_node_count.
2941 2004-03-25 Paolo Carlini <pcarlini@suse.de>
2943 * include/ext/mt_allocator.h (__mt_alloc<>::tune):
2944 Add _M_min_bin, the size in bytes of the smallest bin.
2945 (__mt_alloc<>::tune()): Tweak accordingly.
2946 (__mt_alloc<>::tune(size_t, ...)): Likewise.
2947 (__mt_alloc<>::block_record): Change to a union: members next
2948 and thread_id are never used at the same time.
2949 (__mt_alloc<>::allocate): Update consistently.
2950 (__mt_alloc<>::deallocate): Likewise.
2951 (__mt_alloc<>::_S_initialize): Update setups of _S_binmap and
2952 _S_bin_size for the configurable _M_min_size.
2954 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
2956 * include/bits/stl_list.h: Created a _List_impl class and made it
2957 derive from the allocator, instead of the list deriving from the
2958 allocator class, which was not conformant. Changed all references
2959 from this->_M_node to this->_M_impl._M_node * bits/list.tcc: Same
2960 as above (changed all references to the concerned variables).
2962 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
2964 * include/bits/stl_deque.h: Created a _Deque_impl class and made
2965 it derive from the allocator, instead of the deque deriving from
2966 the allocator class, which was not conformant. Changed all
2967 references to the _M_start, _M_finish, _M_map, and _M_map_size to
2969 (_Deque_base<_Tp,_Alloc>::~_Deque_base()): Added this->
2970 qualification in 2 places where it was missing.
2971 (_Deque_base<_Tp,_Alloc>::_M_initialize_map(size_t)): Same as
2973 * include/bits/deque.tcc: Same as above (changed all references to
2974 the concerned variables).
2976 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
2978 * include/bits/stl_vector.h: Created a _Vector_impl class and made
2979 it derive from the allocator, instead of the _Vector_base class,
2980 deriving from the allocator which was not conformant. Changed all
2981 references to the _M_start, _M_finish, and _M_end_of_storage to
2983 * include/bits/vector.tcc: Same as above (changed all references
2984 to the concerned variables).
2986 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
2988 * testsuite/23_containers/deque/cons/clear_allocator.cc: New.
2989 * testsuite/23_containers/list/cons/clear_allocator.cc: New.
2990 * testsuite/23_containers/vector/cons/clear_allocator.cc: New.
2992 2004-03-24 Dhruv Matani <dhruvbird@gmx.net>
2994 * include/ext/malloc_allocator.h: Fixed the construct function to
2995 call global placement new instead of assignment. Added a check
2996 after the return from malloc to check whether returned pointer is
2997 NULL, and if so, throw std::bad_alloc().
2998 * include/ext/debug_allocator.h: Added a check in the deallocate
2999 function to check whether the user has passed a NULL pointer or
3002 2004-03-24 Benjamin Kosnik <bkoz@redhat.com>
3004 * docs/html/20_util/allocator.html: Add bitmap_allocator links.
3006 2004-03-24 Andreas Schwab <schwab@suse.de>
3008 * testsuite/lib/prune.exp (prune_g++_output): Ignore errata
3009 warning from IA64 assembler.
3011 2004-03-24 Dhruv Matani <dhruvbird@gmx.net>
3013 * include/ext/bitmap_allocator.h: (_Bit_scan_forward) -> Made this
3014 function call __builtin_ctz instead of the while loop.
3015 (allocate) -> If condition has __builtin_expect.
3016 (deallocate) -> Ditto.
3017 Renamed a few left-over variables and typedefs according to the
3018 C++STYLE mentioned in the documentation.
3019 Protected calls to __gthread* by __gthread_active_p(), whose value
3020 is cached in the local variable __threads_active.
3022 2004-03-24 Felix Yen <fwy@alumni.brown.edu>
3024 * testsuite/performance/20_util/allocator/producer_consumer.cc:
3025 Use linear algorithm for producer.
3027 2004-03-24 Paolo Carlini <pcarlini@suse.de>
3029 * include/ext/mt_allocator.h (__mt_alloc<>::allocate,
3030 __mt_alloc<>::deallocate): Avoid redundant conditionals.
3032 2004-03-23 Benjamin Kosnik <bkoz@redhat.com>
3034 * include/bits/locale_facets.h: Tweaks for 80 column.
3035 (__numpunct_cache::_M_cache): Move to locale_facets.tcc.
3036 (__moneypunct_cache::_M_cache): Same.
3037 (num_get): Don't inherit from __num_base.
3039 (money_get): Don't inherit from money_base.
3041 (__timepunct::_M_am_pm_format): New.
3042 (time_get::_M_extract_num): Return iterator, use ios_base as argument.
3043 (time_get::_M_extract_name): Same.
3044 (time_get::_M_extract_via_format): Same.
3045 * include/bits/locale_facets.tcc: Tweaks for 80 column.
3046 Use _M_getloc instead of getloc.
3047 * testsuite/22_locale/money_put/put/char/9780-3.cc: New.
3048 * testsuite/22_locale/num_put/put/char/9780-2.cc: New.
3049 * testsuite/22_locale/time_put/put/char/9780-1.cc: New.
3051 2004-03-22 Paolo Carlini <pcarlini@suse.de>
3053 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Add pool_allocator.
3054 * configure: Regenerate.
3055 * config/allocator/pool_allocator_base.h: New.
3056 * include/ext/pool_allocator.h: Convert to a standard-conforming
3058 * src/allocator.cc: Tweak instantiations.
3059 * testsuite/performance/20_util/allocator/insert.cc: Add __pool_alloc.
3060 * testsuite/performance/20_util/allocator/insert_insert.cc: Ditto.
3061 * testsuite/performance/20_util/allocator/list_sort_search.cc: Ditto.
3062 * testsuite/performance/20_util/allocator/map_mt_find.cc: Ditto.
3063 * testsuite/performance/20_util/allocator/map_thread.cc: Ditto.
3064 * testsuite/performance/20_util/allocator/producer_consumer.cc: Ditto.
3066 2004-03-22 Hans-Peter Nilsson <hp@axis.com>
3068 * config/cpu/cris/atomicity.h (__atomic_add): Remove "static
3069 inline" and attribute-unused. Qualify parameter __mem with
3071 (__exchange_and_add): Ditto. Add back memory clobber to asm.
3073 2004-03-20 Paolo Carlini <pcarlini@suse.de>
3075 * testsuite/27_io/basic_istream/extractors_arithmetic/char/2.cc:
3077 * testsuite/27_io/basic_istream/extractors_arithmetic/char/3.cc:
3079 * testsuite/27_io/basic_istream/extractors_arithmetic/char/6.cc:
3081 * testsuite/27_io/basic_istream/extractors_arithmetic/char/7.cc:
3083 * testsuite/27_io/basic_istream/extractors_arithmetic/char/8.cc:
3085 * testsuite/27_io/basic_istream/extractors_arithmetic/char/9.cc:
3087 * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
3089 * testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc:
3091 * testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc:
3093 * testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc:
3096 2004-03-20 Paolo Carlini <pcarlini@suse.de>
3098 * include/std/std_valarray.h: Document DR389 [Ready].
3099 * docs/html/ext/howto.html: Add an entry for DR389.
3101 2004-03-19 Michael Eager <eager@mvista.com>
3103 * config/cpu/mips/atomicity.h: Prevent reg loads between LL and
3106 2004-03-19 Paolo Carlini <pcarlini@suse.de>
3108 * testsuite/22_locale/num_get/get/char/11.cc: Remove redundant
3110 * testsuite/22_locale/num_get/get/char/12.cc: Likewise.
3111 * testsuite/22_locale/num_get/get/char/13.cc: Likewise.
3112 * testsuite/22_locale/num_get/get/char/14.cc: Likewise.
3113 * testsuite/22_locale/num_get/get/char/15.cc: Likewise.
3114 * testsuite/22_locale/num_get/get/wchar_t/11.cc: Likewise.
3115 * testsuite/22_locale/num_get/get/wchar_t/12.cc: Likewise.
3116 * testsuite/22_locale/num_get/get/wchar_t/13.cc: Likewise.
3117 * testsuite/22_locale/num_get/get/wchar_t/14.cc: Likewise.
3118 * testsuite/22_locale/num_get/get/wchar_t/15.cc: Likewise.
3120 2004-03-19 Paolo Carlini <pcarlini@suse.de>
3121 Petur Runolfsson <peturr02@ru.is>
3124 * include/ext/stdio_sync_filebuf.h (showmanyc): Remove, there's
3125 no way to find out the conversion used by the underlying FILE*.
3126 * testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc: New.
3127 * testsuite/27_io/objects/char/9.cc: Tweak.
3129 2004-03-19 Paolo Carlini <pcarlini@suse.de>
3132 * include/ext/ropeimpl.h (rope<>::_S_apply_to_pieces): Fix
3133 memory allocation/deallocation calls.
3134 * testsuite/ext/14648.cc: New.
3136 2004-03-19 Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de>
3139 * include/backward/bvector.h (bit_vector): Allocator is in std
3142 2004-03-19 Phil Edwards <phil@codesourcery.com>
3144 * acinclude.m4 (GLIBCXX_CHECK_WCHAR_T_SUPPORT): Set LIBICONV,
3145 not libiconv. SUBST this variable as well.
3146 * testsuite/Makefile.am (site.exp): New target, based on that
3147 created by automake. Also set libiconv.
3149 * configure, Makefile.in, include/Makefile.in, libmath/Makefile.in,
3150 libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in,
3151 testsuite/Makefile.in: Regenerate.
3153 2004-03-16 Benjamin Kosnik <bkoz@redhat.com>
3155 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Default setting is
3156 new_allocator for all hosts.
3157 * configure: Regenerate.
3159 2004-03-16 Paolo Carlini <pcarlini@suse.de>
3161 * testsuite/22_locale/num_put/put/char/4.cc: Fix for 64-bit pointers.
3162 * testsuite/22_locale/num_put/put/wchar_t/4.cc: Likewise.
3164 2004-03-15 Paolo Carlini <pcarlini@suse.de>
3166 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3167 Adjust the logic underlying the parsing of symbol to deal
3168 correctly with an optional sign component (i.e., when either
3169 negative_sign or positive_sign is empty)
3170 * testsuite/22_locale/money_get/get/char/19.cc: New.
3171 * testsuite/22_locale/money_get/get/wchar_t/19.cc: New.
3173 2004-03-15 Paolo Carlini <pcarlini@suse.de>
3175 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3176 Do not accept an incomplete currency symbol.
3177 * testsuite/22_locale/money_get/get/char/18.cc: New.
3178 * testsuite/22_locale/money_get/get/wchar_t/18.cc: New.
3180 2004-03-13 Benjamin Kosnik <bkoz@redhat.com>
3182 * config/allocator: New.
3183 * config/allocator/bitmap_allocator_base.h: New.
3184 * config/allocator/malloc_allocator_base.h: New.
3185 * config/allocator/mt_allocator_base.h: New.
3186 * config/allocator/new_allocator_base.h: New.
3187 * include/bits/allocator.h: Include c++allocator.h.
3188 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): New.
3189 * aclocal.m4: Regenerate.
3190 * configure.ac: Use GLIBCXX_ENABLE_ALLOCATOR.
3191 * configure: Regenerate.
3192 * include/Makefile.am (host_headers_extra): Add c++allocator.h.
3193 * include/Makefile.in: Regenerate.
3194 * docs/html/configopts.html: Add enable-libstdcxx-allocator.
3196 2004-03-12 Benjamin Kosnik <bkoz@redhat.com>
3198 * include/bits/allocator.h: Revert.
3200 2004-03-12 Paolo Carlini <pcarlini@suse.de>
3202 * docs/html/ext/howto.html: Add entry for DR 253 [Ready].
3203 * include/bits/gslice_array.h: Add comment about DR 253.
3204 * include/bits/indirect_array.h: Likewise.
3205 * include/bits/mask_array.h: Likewise.
3206 * include/bits/slice_array.h: Likewise.
3208 2004-03-12 Benjamin Kosnik <bkoz@redhat.com>
3210 * testsuite/20_util/allocator/14176.cc: New.
3211 * include/ext/mt_allocator.h: Formatting fixes.
3213 2004-03-11 Dhruv Matani <dhruvbird@HotPOP.com>
3215 * include/Makefile.am (ext_headers): Add
3216 ${ext_srcdir}/bitmap_allocator.h .
3217 * include/Makefile.in: Regenerate.
3218 * docs/html/ext/ballocator_doc.txt: New file.
3219 * include/ext/bitmap_allocator.h: New file.
3220 * testsuite/performance/20_util/allocator/list_sort_search.cc: Add
3222 * testsuite/performance/20_util/allocator/map_mt_find.cc: Likewise.
3223 * testsuite/performance/20_util/allocator/producer_consumer.cc: Add
3224 test for the bitmap_allocator<>.
3225 * testsuite/performance/20_util/allocator/insert.cc: Likewise.
3226 * testsuite/performance/20_util/allocator/insert_insert.cc: Likewise.
3227 * testsuite/performance/20_util/allocator/map_thread.cc: Likewise.
3229 2004-03-11 Paolo Carlini <pcarlini@suse.de>
3231 * include/std/std_complex.h (pow(const complex&, const _Tp&),
3232 pow(const _Tp&, const complex&), pow(const complex&,
3233 const complex&)): Fully qualify with std:: a few calls.
3234 * testsuite/26_numerics/complex/13450.cc: Minor tweak.
3236 2004-03-11 Steven Bosscher <stevenb@suse.de>
3239 * include/c_std/cmath.tcc (__cmath_power): Define inline.
3241 2004-03-10 Kelley Cook <kcook@gcc.gnu.org>
3243 * configure.ac: Bump AC_PREREQ to 2.59.
3245 2004-03-10 Paolo Carlini <pcarlini@suse.de>
3247 * testsuite/26_numerics/valarray_subset_assignment.cc: Fix typos.
3249 2004-03-10 Paul Kienzle <pkienzle@nist.gov>
3250 Paolo Carlini <pcarlini@suse.de>
3253 * include/std/std_complex.h (pow(const complex&, const _Tp&),
3254 pow(const _Tp&, const complex&)): Use cmath pow only when safe.
3255 * testsuite/26_numerics/complex/13450.cc: New.
3257 * testsuite/26_numerics/cmath/overloads.C: Rename to overloads.cc.
3258 * testsuite/26_numerics/complex/pow.C: Rename to pow.cc and fix.
3260 2004-03-10 Jerry Quinn <jlquinn@optonline.net>
3263 * include/bits/gslice_array.h (gslice_array()): Make public.
3264 (operator=(gslice_array)): Make public. Implement.
3265 * include/bits/indirect_array.h (indirect_array()): Make public.
3266 * include/bits/mask_array.h (mask_array()): Make public.
3267 (operator=(mask_array)): Make public. Implement.
3268 * include/bits/valarray_array.tcc (__valarray_copy):
3269 Comment. Add versions for gslice_array and mask_array.
3270 * testsuite/26_numerics/valarray_subset_assignment.cc: New test.
3272 2004-03-09 Benjamin Kosnik <bkoz@redhat.com>
3274 * testsuite/23_containers/deque/modifiers/swap.cc: Add in bits for
3276 * testsuite/23_containers/vector/modifiers/swap.cc: Same.
3277 * testsuite/23_containers/set/modifiers/swap.cc: Same.
3278 * testsuite/23_containers/multiset/modifiers/swap.cc: Same.
3279 * testsuite/23_containers/multimap/modifiers/swap.cc: Same.
3280 * testsuite/23_containers/map/modifiers/swap.cc: Same.
3281 * testsuite/23_containers/list/modifiers/swap.cc: Same.
3283 * testsuite/22_locale/locale/cons/12658_thread.cc: Catch exceptions.
3285 2004-03-08 Benjamin Kosnik <bkoz@redhat.com>
3288 * testsuite/23_containers/deque/modifiers/swap.cc: New.
3289 * testsuite/23_containers/list/modifiers/swap.cc: New.
3290 * testsuite/23_containers/map/modifiers/swap.cc: New.
3291 * testsuite/23_containers/multimap/modifiers/swap.cc: New.
3292 * testsuite/23_containers/multiset/modifiers/swap.cc: New.
3293 * testsuite/23_containers/set/modifiers/swap.cc: New.
3294 * testsuite/23_containers/vector/modifiers/swap.cc: New.
3296 2004-03-08 Petur Runolfsson <peturr02@ru.is>
3299 * testsuite/22_locale/locale/cons/12658_thread.cc: New.
3301 2004-03-08 Paolo Carlini <pcarlini@suse.de>
3303 * docs/html/ext/howto.html: Add entry for DR 103 [WP].
3304 * include/bits/stl_multiset.h: Add comment about DR 103.
3305 * include/bits/stl_set.h: Likewise.
3307 2004-03-08 Paolo Carlini <pcarlini@suse.de>
3309 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3310 The value _space_ indicates that at least one space is required
3312 * testsuite/22_locale/money_get/get/char/17.cc: New.
3313 * testsuite/22_locale/money_get/get/wchar_t/17.cc: New.
3315 * testsuite/22_locale/money_get/get/char/7.cc: Minor tweaks.
3316 * testsuite/22_locale/money_get/get/wchar_t/7.cc: Likewise.
3318 * include/bits/locale_facets.tcc (money_get<>::do_get(long_double&)):
3319 Remove redundant conditional on __str.size().
3321 2004-03-08 Benjamin Kosnik <bkoz@redhat.com>
3323 * include/bits/allocator.h: Switch defaults to mt_alloc.
3325 2004-03-06 Benjamin Kosnik <bkoz@redhat.com>
3327 * include/ext/mt_allocator.h (_S_initialize): If
3328 !__GTHREAD_MUTEX_INIT, then initialize _S_thread_freelist_mutex.
3330 2004-03-06 Benjamin Kosnik <bkoz@redhat.com>
3333 * src/locale_init.cc (locale::locale): Lock critical regions with
3335 (locale::global): Same.
3336 * include/bits/concurrence.h (__glibcxx_mutex_define_initialized):
3337 Add in once bits for cases without __GTHREAD_MUTEX_INIT.
3338 (__glibcxx_mutex_lock): Same.
3340 * config/cpu/generic/atomicity.h: Remove
3341 _GLIBCXX_NEED_GENERIC_MUTEX, use concurrence.h.
3342 * src/misc-inst.cc: Move all locking bits out of this file.
3344 * config/os/hpux/os_defines.h: Remove _GLIBCXX_INST_ATOMICITY_LOCK.
3345 * src/misc-inst.cc: Same.
3346 * config/cpu/hppa/atomicity.h: Same.
3348 * config/linker-map.gnu: Remove types in the signature of atomic
3349 exports, as they may vary.
3351 2004-03-06 Paolo Carlini <pcarlini@suse.de>
3353 * include/bits/locale_facets.tcc: Tweak the comment preceding
3354 has_facet: doesn't throw.
3356 2004-03-06 Paolo Carlini <pcarlini@suse.de>
3358 * testsuite/22_locale/money_get/get/char/1.cc: Clean up.
3359 * testsuite/22_locale/money_get/get/char/2.cc: Likewise.
3360 * testsuite/22_locale/money_get/get/char/3.cc: Likewise.
3361 * testsuite/22_locale/money_get/get/char/4.cc: Likewise.
3362 * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
3363 * testsuite/22_locale/money_get/get/wchar_t/2.cc: Likewise.
3364 * testsuite/22_locale/money_get/get/wchar_t/3.cc: Likewise.
3365 * testsuite/22_locale/money_get/get/wchar_t/4.cc: Likewise.
3367 2004-03-06 Paolo Carlini <pcarlini@suse.de>
3369 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
3370 num_get<>::_M_extract_int, num_get<>::do_get(bool&),
3371 __pad<>::_S_pad): Prefer plain operator== to traits::eq().
3372 * testsuite/testsuite_character.h (struct __gnu_test::character):
3374 * testsuite/testsuite_hooks.h (struct __gnu_test::pod_char):
3377 2004-03-05 Paolo Carlini <pcarlini@suse.de>
3379 * testsuite/27_io/fpos/14320-2.cc: Remove xfail.
3381 2004-03-04 Benjamin Kosnik <bkoz@redhat.com>
3383 * testsuite/23_containers/multiset/insert/1.cc: Test result string.
3385 * testsuite/23_containers/bitset/invalidation/1.cc: Main always
3387 * testsuite/23_containers/deque/invalidation/4.cc: Same.
3388 * testsuite/23_containers/list/invalidation/1.cc: Same.
3389 * testsuite/23_containers/list/invalidation/2.cc: Same.
3390 * testsuite/23_containers/list/invalidation/3.cc: Same.
3391 * testsuite/23_containers/list/invalidation/4.cc: Same.
3392 * testsuite/23_containers/map/invalidation/2.cc: Same.
3393 * testsuite/23_containers/multimap/invalidation/1.cc: Same.
3394 * testsuite/23_containers/multimap/invalidation/2.cc: Same.
3395 * testsuite/23_containers/multiset/invalidation/1.cc: Same.
3396 * testsuite/23_containers/multiset/invalidation/2.cc: Same.
3397 * testsuite/23_containers/set/invalidation/1.cc: Same.
3398 * testsuite/23_containers/set/invalidation/2.cc: Same.
3399 * testsuite/23_containers/vector/invalidation/1.cc: Same.
3400 * testsuite/23_containers/vector/invalidation/2.cc: Same.
3401 * testsuite/23_containers/vector/invalidation/3.cc: Same.
3402 * testsuite/23_containers/vector/invalidation/4.cc: Same.
3404 2004-03-04 Paolo Carlini <pcarlini@suse.de>
3406 * scripts/testsuite_flags.in: Add "-D_GLIBCXX_ASSERT" to
3408 * testsuite/lib/libstdc++.exp: Don't add it conditionally to
3410 * testsuite/18_support/numeric_limits.cc: Remove "-D_GLIBCXX_ASSERT"
3411 from the dg-options.
3412 * testsuite/23_containers/vector/invalidation/1.cc: Likewise.
3413 * testsuite/23_containers/vector/invalidation/2.cc: Likewise.
3414 * testsuite/23_containers/vector/invalidation/3.cc: Likewise.
3415 * testsuite/23_containers/vector/invalidation/4.cc: Likewise.
3416 * testsuite/23_containers/vector/resize/1.cc: Likewise.
3417 * testsuite/26_numerics/complex_value.cc: Likewise.
3418 * testsuite/27_io/ios_base/storage/1.cc: Likewise.
3419 * testsuite/27_io/ios_base/storage/2.cc: Likewise.
3420 * testsuite/27_io/ios_base/storage/3.cc: Likewise.
3421 * testsuite/27_io/manipulators/standard/char/2.cc: Likewise.
3422 * testsuite/27_io/objects/char/5.cc: Likewise.
3423 * testsuite/27_io/objects/wchar_t/5.cc: Likewise.
3424 * testsuite/backward/11460.cc: Likewise.
3425 * testsuite/thread/pthread7-rope.cc: Likewise.
3427 * testsuite/21_strings/basic_string/compare/char/1.cc: Add
3428 missing test variable.
3429 * testsuite/21_strings/basic_string/compare/wchar_t/1.cc: Add
3430 missing test variable.
3432 2004-03-04 Benjamin Kosnik <bkoz@redhat.com>
3434 * testsuite/20_util/allocator/1.cc: Provide explicit
3435 instantiations for non-weak systems.
3436 * testsuite/20_util/binders.cc: Same.
3437 * testsuite/20_util/allocator/8230.cc: Same.
3438 * testsuite/20_util/allocator/10378.cc: Same.
3439 * testsuite/22_locale/ctype/is/wchar_t/2.cc: Same.
3440 * testsuite/22_locale/ctype/is/char/2.cc: Same.
3441 * testsuite/thread/pthread7-rope.cc: Same.
3442 * testsuite/thread/pthread6.cc: Same.
3443 * testsuite/thread/pthread5.cc: Same.
3444 * testsuite/thread/pthread4.cc: Same.
3445 * testsuite/thread/pthread1.cc: Same.
3446 * testsuite/ext/rope.cc: Same.
3447 * testsuite/ext/hash_set.cc: Same.
3448 * testsuite/ext/hash_map.cc: Same.
3449 * testsuite/ext/concept_checks.cc: Same.
3450 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9874.cc: Same.
3451 * testsuite/25_algorithms/unique/2.cc: Same.
3452 * testsuite/25_algorithms/unique/1.cc: Same.
3453 * testsuite/25_algorithms/rotate.cc: Same.
3454 * testsuite/25_algorithms/min_max.cc: Same.
3455 * testsuite/25_algorithms/equal.cc: Same.
3456 * testsuite/24_iterators/rel_ops.cc: Same.
3457 * testsuite/24_iterators/iterator.cc: Same.
3458 * testsuite/24_iterators/insert_iterator.cc: Same.
3459 * testsuite/24_iterators/front_insert_iterator.cc: Same.
3460 * testsuite/24_iterators/back_insert_iterator.cc: Same.
3461 * testsuite/23_containers/vector/resize/1.cc: Same.
3462 * testsuite/23_containers/vector/modifiers/2.cc: Same.
3463 * testsuite/23_containers/vector/modifiers/1.cc: Same.
3464 * testsuite/23_containers/vector/invalidation/4.cc: Same.
3465 * testsuite/23_containers/vector/invalidation/3.cc: Same.
3466 * testsuite/23_containers/vector/invalidation/2.cc: Same.
3467 * testsuite/23_containers/vector/invalidation/1.cc: Same.
3468 * testsuite/23_containers/vector/element_access/1.cc: Same.
3469 * testsuite/23_containers/vector/cons/6513.cc: Same.
3470 * testsuite/23_containers/vector/cons/3.cc: Same.
3471 * testsuite/23_containers/vector/cons/2.cc: Same.
3472 * testsuite/23_containers/vector/cons/1.cc: Same.
3473 * testsuite/23_containers/vector/capacity/8230.cc: Same.
3474 * testsuite/23_containers/vector/capacity/1.cc: Same.
3475 * testsuite/23_containers/vector/bool/6886.cc: Same.
3476 * testsuite/23_containers/stack/members/7158.cc: Same.
3477 * testsuite/23_containers/set/invalidation/2.cc: Same.
3478 * testsuite/23_containers/set/invalidation/1.cc: Same.
3479 * testsuite/23_containers/queue/members/7157.cc: Same.
3480 * testsuite/23_containers/priority_queue/members/7161.cc: Same.
3481 * testsuite/23_containers/multiset/invalidation/2.cc: Same.
3482 * testsuite/23_containers/multiset/invalidation/2.cc: Same.
3483 * testsuite/23_containers/multiset/insert/1.cc: Same.
3484 * testsuite/23_containers/multimap/invalidation/2.cc: Same.
3485 * testsuite/23_containers/multimap/invalidation/2.cc: Same.
3486 * testsuite/23_containers/map/operators/1.cc: Same.
3487 * testsuite/23_containers/map/invalidation/2.cc: Same.
3488 * testsuite/23_containers/map/invalidation/1.cc: Same.
3489 * testsuite/23_containers/map/insert/1.cc: Same.
3490 * testsuite/23_containers/list/operators/4.cc: Same.
3491 * testsuite/23_containers/list/operators/3.cc: Same.
3492 * testsuite/23_containers/list/operators/2.cc: Same.
3493 * testsuite/23_containers/list/operators/1.cc: Same.
3494 * testsuite/23_containers/list/modifiers/3.cc: Same.
3495 * testsuite/23_containers/list/modifiers/2.cc: Same.
3496 * testsuite/23_containers/list/modifiers/1.cc: Same.
3497 * testsuite/23_containers/list/invalidation/4.cc: Same.
3498 * testsuite/23_containers/list/invalidation/3.cc: Same.
3499 * testsuite/23_containers/list/invalidation/2.cc: Same.
3500 * testsuite/23_containers/list/invalidation/1.cc: Same.
3501 * testsuite/23_containers/list/cons/9.cc: Same.
3502 * testsuite/23_containers/list/cons/8.cc: Same.
3503 * testsuite/23_containers/list/cons/7.cc: Same.
3504 * testsuite/23_containers/list/cons/6.cc: Same.
3505 * testsuite/23_containers/list/cons/5.cc: Same.
3506 * testsuite/23_containers/list/cons/4.cc: Same.
3507 * testsuite/23_containers/list/cons/3.cc: Same.
3508 * testsuite/23_containers/list/cons/2.cc: Same.
3509 * testsuite/23_containers/list/cons/1.cc: Same.
3510 * testsuite/23_containers/list/capacity/1.cc: Same.
3511 * testsuite/23_containers/deque/operators/1.cc: Same.
3512 * testsuite/23_containers/deque/invalidation/4.cc: Same.
3513 * testsuite/23_containers/deque/invalidation/3.cc: Same.
3514 * testsuite/23_containers/deque/invalidation/2.cc: Same.
3515 * testsuite/23_containers/deque/invalidation/1.cc: Same.
3516 * testsuite/23_containers/deque/cons/2.cc: Same.
3517 * testsuite/23_containers/deque/cons/1.cc: Same.
3519 * src/allocator.cc: Add char, wchar_t instantiations
3520 to match extern template declarations in memory.h.
3522 2004-03-03 Paolo Carlini <pcarlini@suse.de>
3524 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
3525 Fix warning regression.
3527 2004-03-03 Paolo Carlini <pcarlini@suse.de>
3529 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
3530 Deal properly with empty __digits and negative frac_digits,
3533 2004-03-03 Jonathan Wakely <redi@gcc.gnu.org>
3535 * docs/html/documentation.html: Regenerate.
3537 2004-03-02 Paolo Carlini <pcarlini@suse.de>
3540 * include/bits/postypes.h (class streamoff): Remove, now
3541 streamoff is just typedef a 64 bit signed integer type.
3542 (class fpos): Tweak consistently.
3543 * testsuite/27_io/fpos/14320-1.cc: New.
3544 * testsuite/27_io/fpos/14320-2.cc: New.
3545 * testsuite/27_io/fpos/14320-3.cc: New.
3546 * testsuite/27_io/fpos/14320-4.cc: New.
3547 * testsuite/27_io/fpos/14320-5.cc: New.
3548 * testsuite/27_io/fpos/mbstate_t/4_neg.cc: xfail for now.
3550 2004-03-02 Paolo Carlini <pcarlini@suse.de>
3552 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3553 Reorganize a bit the main parsing loop, thus early detecting
3554 an empty value component.
3555 * testsuite/22_locale/money_get/get/char/16.cc: New.
3556 * testsuite/22_locale/money_get/get/wchar_t/16.cc: New.
3558 2004-03-02 Benjamin Kosnik <bkoz@redhat.com>
3560 Support automake 1.8.2
3561 * configure.ac (AM_INIT_AUTOMAKE): Add -Wno-override.
3562 * po/Makefile.am (EXTRA_DIST): New.
3563 * po/Makefile.in: Regenerate.
3564 * Makefile.in: Same.
3565 * include/Makefile.in: Same.
3566 * libmath/Makefile.in: Same.
3567 * libsupc++/Makefile.in: Same.
3568 * src/Makefile.in: Same.
3569 * testsuite/Makefile.in: Same.
3571 * include/Makefile.am (${host_builddir}/gthr-posix.h): Use
3572 __GXX_WEAK__ instead of SUPPORTS_WEAK.
3573 (${host_builddir}/gthr-default.h): Same.
3574 (${host_builddir}/gthr.h): Same.
3575 * acinclude.m4 (GLIBCXX_ENABLE_THREAD): Remove
3576 _GLIBCXX_SUPPORTS_WEAK, as this behavior can be modified via
3578 * aclocal.m4: Regenerate.
3579 * acconfig.h: Remove _GLIBCXX_SUPPORTS_WEAK.
3580 * config.h.in: Regenerate.
3583 2004-03-01 Benjamin Kosnik <bkoz@redhat.com>
3585 Support autoconf 2.59
3586 * acinclude.m4: Quote correctly.
3587 * aclocal.m4: Regenerate.
3590 2004-03-01 Benjamin Kosnik <bkoz@redhat.com>
3592 * docs/html/test.html: Add multilib RUNTESTFLAGS example.
3594 * docs/html/18_support/howto.html: Add bit about writing to
3595 stderr, mostly by Zack.
3597 2004-03-01 Paolo Carlini <pcarlini@suse.de>
3599 * include/bits/locale_facets.tcc (money_get<>::_M_extract,
3600 money_get<>::do_get(string_type&)): ... and two more.
3602 2004-03-01 Paolo Carlini <pcarlini@suse.de>
3604 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3605 Fix thinkos in the switch from string_type& to string& as last
3608 2004-03-01 Paolo Carlini <pcarlini@suse.de>
3610 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
3611 Also when parsing exponent sign, first look for thousands_sep
3612 and decimal_point; tweak a bit.
3613 * testsuite/22_locale/num_get/get/char/15.cc: New.
3614 * testsuite/22_locale/num_get/get/wchar_t/15.cc: New.
3616 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
3617 num_get<>::_M_extract_int): Reorder some conditionals.
3619 2004-03-01 Paolo Carlini <pcarlini@suse.de>
3621 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3622 Consistently with numpunct, enforce the requirements in
3623 22.2.6.3, p3 for the thousands separators; tweak a bit.
3624 * testsuite/22_locale/money_get/get/char/15.cc: New.
3625 * testsuite/22_locale/money_get/get/wchar_t/15.cc: New.
3627 2004-03-01 David Billinghurst <David.Billinghurst@riotinto.com>
3629 * testsuite/lib/libstdc++.exp (v3-list-tests): Use
3630 testsuite_files from correct multilib blddir when running
3633 2004-02-29 Phil Edwards <phil@codesourcery.com>
3635 * testsuite/Makefile.am (check-abi, check-abi-verbose): Copy
3636 the summary file to the logfile.
3637 * testsuite/Makefile.in: Regenerate.
3639 2004-02-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3641 * config/cpu/hppa/atomicity.h (__atomic_add): Make first argument
3643 * config/os/hpux/os_defines.h (_GLIBCXX_INST_ATOMICITY_LOCK): Use
3644 __GXX_WEAK__ instead of _GLIBCXX_SUPPORTS_WEAK.
3646 2004-02-28 Paolo Carlini <pcarlini@suse.de>
3648 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
3649 According to 22.2.3.1, p2, 'units' may be followed by 'e' with
3650 no 'decimal-point' in the middle: in this case too we must fix
3651 up __found_grouping; slightly tweak.
3652 * testsuite/22_locale/num_get/get/char/14.cc: New.
3653 * testsuite/22_locale/num_get/get/wchar_t/14.cc: New.
3655 2004-02-27 Eric Christopher <echristo@redhat.com>
3656 Phil Edwards <phil@codesourcery.com>
3658 * testsuite/22_locale/collate/compare/wchar_t/2.cc,
3659 testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc,
3660 testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc,
3661 testsuite/22_locale/collate/hash/wchar_t/2.cc,
3662 testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc,
3663 testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc,
3664 testsuite/22_locale/collate/transform/wchar_t/2.cc,
3665 testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc,
3666 testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
3667 Use dg-require-iconv.
3668 * testsuite/lib/libstdc++.exp: Load target-supports.exp.
3670 2004-02-27 Phil Edwards <phil@codesourcery.com>
3671 Eric Christopher <echristo@redhat.com>
3673 * testsuite/config/default.exp: Update with comments.
3674 (${tool}_target_compile): New wrapper routine.
3675 * testsuite/lib/dg-options.exp: New file, with dg-require-iconv.
3676 * testsuite/lib/libstdc++.exp: Update with comments and cosmetic
3678 (load_gcc_lib, v3track): New routines.
3679 (v3-init): Rename to libstdc++_init.
3680 * testsuite/libstdc++-dg/normal.exp: No longer call v3-init.
3681 Move DEFAULT_CXXFLAGS handling into libstdc++_init.
3683 2004-02-27 Benjamin Kosnik <bkoz@redhat.com>
3685 * config/cpu/hppa/atomicity.h: Include c++config.h to get defines.
3687 * src/misc-inst.cc (_S_atomicity_lock): Move to __gnu_cxx.
3689 * config/os/irix/irix5.2/atomicity.h: Merge..
3690 * config/os/irix/irix6.5/atomicity.h: Merge..
3691 * config/os/irix/atomicity.h: ...into this.
3692 * config/os/irix/atomic_word.h: New.
3693 * configure.host: Set atomic_word_dir for irix.
3695 * hppa/atomicity.h: Change __Atomicity_lock to _Atomicity_lock.
3696 * i386/atomicity.h: Same.
3697 * m68k/atomicity.h: Same.
3698 * sparc/atomicity.h: Same.
3700 2004-02-27 David Edelsohn <edelsohn@gnu.org>
3702 * config/os/aix/atomicity.h: Use __gnu_cxx namespace. Remove
3703 static, and inline keywords.
3705 2004-02-27 Paolo Carlini <pcarlini@suse.de>
3707 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
3708 num_get<>::_M_extract_int, money_get<>::_M_extract): If appropriate,
3709 call reserve on the __tmp_gruping string.
3710 (num_get<>::_M_extract_float): Don't append unnecessarily a
3711 char() to the returned string.
3712 * include/bits/locale_facets.tcc: Trivial reformattings.
3714 2004-02-27 Paolo Carlini <pcarlini@suse.de>
3716 * include/bits/locale_facets.h (money_get<>::_M_extract):
3717 Change signature: now takes a plain string&.
3718 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3719 Update consistently the definition; use the moneypunct cache
3720 to parse the value; use swap to change __units.
3721 (money_get<>::do_get(long double&)): Update call of _M_extract,
3722 avoid ctype::narrow, not correct wrt the standard.
3723 (money_get<>::do_get(string_type&)): Likewise, update call
3724 of _M_extract, use ctype::widen.
3725 * src/locale-inst.cc: Tweak instantiations of _M_extract.
3727 2004-02-26 Ian Lance Taylor <ian@wasabisystems.com>
3729 * testsuite/demangle/abi_examples/01.cc: Expect error -2.
3730 * testsuite/demangle/abi_examples/02.cc: Likewise.
3731 * testsuite/demangle/regression/cw-11.cc: Likewise.
3732 * testsuite/demangle/regression/cw-16.cc: Change two expected
3733 results to match libiberty demangler output.
3735 2004-02-26 Benjamin Kosnik <bkoz@redhat.com>
3738 * libsupc++/Makefile.am: Use libiberty demangler.
3739 (c_sources): Add cp-demangle.c.
3740 * libsupc++/Makefile.in: Regenerate.
3741 * src/Makefile.am (sources): Remove demangle.cc.
3742 * src/Makefile.in: Regenerate.
3743 * include/Makefile.am (bits_headers): Move demangle.h.
3744 (ext_headers): ...here.
3745 * include/Makefile.in: Regenerate.
3746 * include/bits/demangle.h: Move...
3747 * include/ext/demangle.h: ...here.
3748 * src/demangle.cc: Remove.
3750 2004-02-26 Benjamin Kosnik <bkoz@redhat.com>
3752 * include/bits/demangle.h: Add type template parameter to all
3753 templates with just an Allocator template parameter.
3755 2004-02-25 Benjamin Kosnik <bkoz@redhat.com>
3757 * include/bits/atomicity.h: New, forward declarations for __atomic_add
3758 and __exchange_and_add.
3759 * config/cpu/generic/atomic_word.h: New, typdef for atomic word.
3760 * config/cpu/cris/atomic_word.h: Same.
3761 * config/cpu/sparc/atomic_word.h: Same.
3762 * include/bits/ios_base.h (_Callback_list::_M_remove_reference):
3763 Qualifiy with __gnu_cxx.
3764 (_Callback_list::_M_add_reference): Same.
3765 * include/bits/locale_classes.h (locale::facet::_M_add_reference): Add.
3766 (locale::facet::_M_remove_reference): Same.
3767 (locale::_Impl::_M_add_reference): Add.
3768 (locale::_Impl::_M_remove_reference): Same.
3769 * include/bits/basic_string.h (basic_string::_Rep::_M_refcopy): Same.
3770 (basic_string::_Rep::_M_dispose): Same.
3771 * src/ios.cc (ios_base::xalloc): Same.
3772 * src/ios_init.cc (ios_base::Init::Init): Same.
3773 (ios_base::Init::~Init): Same.
3774 * src/locale.cc (locale::id::_M_id): Same.
3775 * config/cpu/i486/atomicity.h: Use __gnu_cxx namespace. Remove
3776 static, and inline keywords.
3777 * config/cpu/alpha/atomicity.h: Same.
3778 * config/cpu/cris/atomicity.h: Same.
3779 * config/cpu/generic/atomicity.h: Same.
3780 * config/cpu/hppa/atomicity.h: Same.
3781 * config/cpu/i386/atomicity.h: Same.
3782 * config/cpu/ia64/atomicity.h: Same.
3783 * config/cpu/m68k/atomicity.h: Same.
3784 * config/cpu/mips/atomicity.h: Same.
3785 * config/cpu/powerpc/atomicity.h: Same.
3786 * config/cpu/s390/atomicity.h: Same.
3787 * config/cpu/sparc/atomicity.h: Same.
3789 * src/Makefile.am (host_sources): Add atomicity.cc.
3790 (atomicity.cc): New rule.
3791 * src/Makefile.in: Regenerate.
3792 * include/Makefile.am (host_headers): Remove host atomicity.h.
3793 (host_headers): Add atomic_word.h.
3794 (bits_headers): Add bits atomicity.h.
3795 Change ATOMICITY_INC_SRCDIR to ATOMICITY_SRCDIR.
3796 * include/Makefile.in: Regenerate.
3797 * configure.host (atomic_word_dir): Add.
3798 * configure.ac: Substitute ATOMIC_WORD_SRCDIR. Change
3799 ATOMICITY_INC_SRCDIR to ATOMICITY_SRCDIR.
3800 * configure: Regenerate.
3801 * config/linker-map.gnu: Export __exchange_and_add, and __atomic_add.
3803 * testsuite/27_io/ios_base/cons/assign_neg.cc: Adjust line numbers.
3804 * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
3806 2004-02-25 Jonathan Wakely <redi@gcc.gnu.org>
3808 * docs/html/20_util/howto.html, docs/html/20_util/allocator.html,
3809 docs/html/ext/howto.html, docs/html/ext/mt_allocator.html:
3810 Fix markup, more <link> tags.
3812 2004-02-25 Carlo Wood <carlo@alinoe.com>
3815 namespace __gnu_cxx::demangler
3816 (session<Allocator>::qualifier_list_Allocator): Add
3817 (session<Allocator>::M_qualifier_list_alloc): Add
3818 (session<Allocator>::decode_type_with_postfix):
3819 Use M_qualifier_list_alloc instead of calling operator new/delete.
3821 2004-02-24 Paolo Carlini <pcarlini@suse.de>
3824 * include/bits/postypes.h (class streamoff): Add operator++(),
3825 operator++(int), operator--() and operator--(int).
3826 * testsuite/27_io/fpos/14252.cc: New.
3828 2004-02-24 Richard Sandiford <rsandifo@redhat.com>
3830 * include/bits/locale_facets.tcc (num_get::_M_extract_int): Fix bounds
3831 error in handling of hex constants.
3833 2004-02-24 Paolo Carlini <pcarlini@suse.de>
3835 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
3836 Prefer basic_string::append to operator+= and a temporary.
3838 2004-02-23 Benjamin Kosnik <bkoz@redhat.com>
3840 * libsupc++/vterminate.cc (__gnu_cxx::__verbose_terminate_handler):
3841 Only use fputs, not write.
3843 2004-02-23 Benjamin Kosnik <bkoz@redhat.com>
3845 * include/ext/malloc_allocator.h: Add operators ==, !=.
3846 * include/ext/new_allocator.h: Add operators ==, !=.
3847 * include/ext/mt_allocator.h (__mt_alloc::tune): New.
3848 (__mt_alloc::_S_get_options): New.
3849 (__mt_alloc::_S_set_options): New.
3850 (__mt_alloc::_S_thread_key_destr): To _S_destroy_thread_key.
3851 (__mt_alloc::_S_no_of_bins): To _S_bin_size.
3852 Move functions out of line, simplify, format.
3853 * src/allocator.cc: Simplify explicit instantiations.
3854 * include/bits/allocator.h: Tweak.
3856 2004-02-22 Paolo Carlini <pcarlini@suse.de>
3858 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
3859 Restructure formatting of value component, first dealing with
3860 the non-decimal digits; use reserve.
3862 2004-02-22 Paolo Carlini <pcarlini@suse.de>
3864 * include/bits/locale_facets.h (class money_get): Inherit
3865 from money_base too; tweak declaration of _M_extract, now
3866 parameterized on _Intl too.
3867 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3868 Update definition to use the cache; call reserve on __res to
3869 avoid multiple reallocations; fix parsing of sign component
3870 according to 22.2.6.1.2, p3.
3871 (money_get<>::do_get(long double&),
3872 money_get<>::do_get(string_type&)): Update calls of _M_extract.
3873 * src/locale-inst.cc: Add instantiations of
3874 money_get::_M_extract<false> and money_get::_M_extract<true>.
3875 * testsuite/22_locale/money_get/get/char/14.cc: New.
3876 * testsuite/22_locale/money_get/get/wchar_t/14.cc: Ditto.
3878 2004-02-21 Mark Mitchell <mark@codesourcery.com>
3880 * libsupc++/vterminate.cc
3881 (__gnu_cxx::__verbose_terminate_handler): Guard against recursive
3883 * src/demangle.cc (__cxa_demangle): Wrap in try-catch block.
3885 * testsuite/testsuite_hooks.cc (__gnu_test::set_memory_limits): Do
3886 not set RLIMIT_AS on HP-UX.
3888 2004-02-21 Mark Mitchell <mark@codesourcery.com>
3890 * testsuite/testsuite_hooks.cc (__gnu_test::set_memory_limits): Do
3891 not set RLIMIT_AS on HP-UX.
3893 2004-02-21 Paolo Carlini <pcarlini@suse.de>
3895 * include/bits/locale_facets.h (class money_base): Add { _S_minus,
3896 _S_zero, _S_end } enum, _S_atoms.
3897 (struct __moneypunct_cache<>): Parameterize on _Intl too; add
3898 _M_grouping_size, _M_curr_symbol_size, _M_positive_sign_size,
3899 _M_negative_sign_size, _M_atoms; tweak constructor consistently.
3900 (__moneypunct_cache<>::~__moneypunct_cache): Update.
3901 (__moneypunct_cache<>::_M_cache): Fill the cache.
3902 (class moneypunct): Tweak __cache_type typedef.
3903 (class money_put): Inherit from money_base too; tweak declaration
3904 of _M_insert, now parameterized on _Intl.
3905 * include/bits/locale_facets.tcc
3906 (struct __use_cache<__moneypunct_cache<_CharT, _Intl> >): New.
3907 (money_put<>::_M_insert): Update definition to use the cache;
3908 call reserve on __res to avoid multiple reallocations.
3909 (money_put<>::do_put(long double),
3910 money_put<>::do_put(const string_type&): Update calls of _M_insert.
3911 * config/locale/generic/monetary_members.cc
3912 (moneypunct<char, true>::_M_initialize_moneypunct,
3913 moneypunct<char, false>::_M_initialize_moneypunct,
3914 moneypunct<wchar_t, true>::_M_initialize_moneypunct,
3915 moneypunct<wchar_t, false>::_M_initialize_moneypunct): Update.
3916 * config/locale/gnu/monetary_members.cc: Likewise.
3917 * config/locale/gnu/monetary_members.cc
3918 (moneypunct<wchar_t, true>::~moneypunct(),
3919 moneypunct<wchar_t, false>::~moneypunct()): Likewise.
3920 * src/globals_locale.cc: Tweak fake_money_cache_c.
3921 * src/locale-inst.cc: Add instantiations for
3922 money_put::_M_insert<false> and money_put::_M_insert<true> and
3923 __moneypunct_cache<C, false>, __moneypunct_cache<C, true>.
3924 * src/locale_facets.cc: Define money_base::_S_atoms.
3925 * src/locale_init.cc: Update placement new of
3926 __moneypunct_cache<char, false>, __moneypunct_cache<char, true>,
3927 __moneypunct_cache<wchar_t, false>, __moneypunct_cache<wchar_T, true>.
3929 * config/locale/generic/numeric_members.cc: Clean up.
3930 * config/locale/gnu/numeric_members.cc: Likewise.
3931 * testsuite/22_locale/money_put/put/char/1.cc: Likewise.
3932 * testsuite/22_locale/money_put/put/char/2.cc: Likewise.
3933 * testsuite/22_locale/money_put/put/char/3.cc: Likewise.
3934 * testsuite/22_locale/money_put/put/wchar_t/1.cc: Likewise.
3935 * testsuite/22_locale/money_put/put/wchar_t/2.cc: Likewise.
3936 * testsuite/22_locale/money_put/put/wchar_t/3.cc: Likewise.
3938 2004-02-20 Mark Mitchell <mark@codesourcery.com>
3940 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: Open
3941 FIFO for writing with ios_base::in|ios_base::out.
3942 * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
3943 * testsuite/27_io/objects/char/7.cc: Likewise.
3944 * testsuite/27_io/objects/char/9661-1.cc: Open FIFO for writing
3947 2004-02-19 David Edelsohn <edelsohn@gnu.org>
3949 * 22_locale/collate/compare/wchar_t/2.cc: Change input-charset
3950 from iso-8859-1 to ISO8859-1.
3951 * 22_locale/collate/compare/wchar_t/wrapped_env.cc: Same.
3952 * 22_locale/collate/compare/wchar_t/wrapped_locale.cc: Same.
3953 * 22_locale/collate/hash/wchar_t/2.cc: Same.
3954 * 22_locale/collate/hash/wchar_t/wrapped_env.cc: Same.
3955 * 22_locale/collate/hash/wchar_t/wrapped_locale.cc: Same.
3956 * 22_locale/collate/transform/wchar_t/2.cc: Same.
3957 * 22_locale/collate/transform/wchar_t/wrapped_env.cc: Same.
3958 * 22_locale/collate/transform/wchar_t/wrapped_locale.cc: Same.
3960 2004-02-18 Paolo Carlini <pcarlini@suse.de>
3962 * include/bits/locale_facets.h (money_get<>::_M_extract):
3963 New, helper for do_get.
3964 (money_put<>::_M_insert): Likewise, for do_put.
3965 * include/bits/locale_facets.tcc (money_get<>::_M_extract,
3966 money_put<>::_M_insert): Define.
3967 (money_get<>::do_get(long double&), money_get<>::do_get(
3968 string_type&), money_put::do_put(long double),
3969 money_put::do_put(const string_type&)): Use the helpers.
3971 2004-02-18 Paolo Carlini <pcarlini@suse.de>
3973 * config/io/basic_file_stdio.cc (__gnu_internal::xwritev):
3974 Rewrite, avoiding recursion.
3975 (__gnu_internal::xwrite): Minor tweaks.
3977 2004-02-17 Stefan Olsson <stefan@xapa.se>
3979 * include/ext/mt_allocator.h: Removed the last
3980 pointer. Deallocated blocks are now added to the front of
3981 freelists as proposed by Felix Yen. This gives roughly 10%
3982 performance boost and saves some memory.
3983 * docs/html/ext/mt_allocator.html: Change due to that deallocated
3984 blocks now are added to the front of freelists. The reason to this
3985 approach is also explained.
3987 2004-02-17 Paolo Carlini <pcarlini@suse.de>
3989 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
3990 num_get<>::_M_extract_int, money_get<>::do_get): Simplify
3991 grouping fidelity conditional.
3993 2004-02-16 Paolo Carlini <pcarlini@suse.de>
3995 * testsuite/27_io/basic_filebuf/overflow/char/13858.cc:
3996 Qualify exception with std::.
3997 * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Ditto.
3998 * testsuite/27_io/basic_filebuf/overflow/wchar_t/13858.cc: Ditto.
3999 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
4000 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
4001 * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
4003 2004-02-16 Paolo Carlini <pcarlini@suse.de>
4005 * testsuite/ext/enc_filebuf/char/13189.cc: Don't check
4006 for now that the catch block is not reached.
4007 * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Likewise.
4009 2004-02-16 Paolo Carlini <pcarlini@suse.de>
4011 * include/bits/locale_facets.tcc (money_get::do_get(string_type&)):
4012 Fix parsing of the remaining sign characters.
4013 * 22_locale/money_get/get/char/2.cc: Tweak: now, correctly,
4014 the input is scanned 'til eof.
4015 * 22_locale/money_get/get/char/4.cc: Likewise.
4016 * 22_locale/money_get/get/wchar_t/2.cc: Likewise.
4017 * 22_locale/money_get/get/wchar_t/4.cc: Likewise.
4018 * 22_locale/money_get/get/char/8.cc: Tweak: override do_neg_format,
4019 not do_pos_format: the former is the only one that matters during
4021 * 22_locale/money_get/get/wchar_t/8.cc: Likewise.
4023 * 22_locale/money_get/get/char/6.cc: Minor tweak.
4024 * 22_locale/money_get/get/wchar_t/6.cc: Likewise.
4026 2004-02-15 David Asher <david.asher@cavium.com>
4029 * include/bits/locale_facets.tcc (__pad<>::_S_pad): Don't
4030 access __olds beyond __oldlen.
4032 2004-02-14 Paolo Carlini <pcarlini@suse.de>
4034 * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Make
4035 sure the exception is actually thrown.
4036 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
4037 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
4038 * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
4040 2004-02-14 Paolo Carlini <pcarlini@suse.de>
4043 * include/bits/fstream.tcc (basic_filebuf<>::_M_convert_to_external):
4044 In case of conversion errors, throw ios_failure; simplify.
4045 * testsuite/27_io/basic_filebuf/overflow/char/13858.cc: New.
4046 * testsuite/27_io/basic_filebuf/overflow/wchar_t/13858.cc: Ditto.
4047 * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Tweak,
4048 previously we didn't throw in case of conversion errors, instead
4049 just returned eof().
4050 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
4051 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
4052 * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
4054 * include/bits/fstream.tcc (basic_filebuf<>::overflow):
4055 Trivial simplification of a conditional.
4057 2004-02-12 Paolo Carlini <pcarlini@suse.de>
4059 PR libstdc++/13731 (final part: writev)
4060 * config/io/basic_file_stdio.cc (__gnu_internal::xwritev):
4061 New, a wrapper around writev() handling partial writes.
4062 (__basic_file<char>::xwrite): Move to __gnu_internal and make
4064 (__basic_file<char>::xsputn): Update call.
4065 (__basic_file<char>::xsputn_2): Likewise.
4066 * config/io/basic_file_stdio.h (__basic_file<char>::xwrite):
4067 Don't declare, now static.
4069 2004-02-11 Stefan Olsson <stefan@xapa.se>
4071 * docs/html/ext/mt_allocator.html: New.
4073 2004-02-11 Benjamin Kosnik <bkoz@redhat.com>
4075 * docs/html/20_util/allocator.html: New file, consolidate
4076 allocator information here. Revamp.
4077 * docs/html/documentation.html: Change links.
4078 * docs/html/20_util/howto.html: Same.
4079 * docs/html/ext/howto.html: Same.
4081 2004-02-11 Paolo Carlini <pcarlini@suse.de>
4083 PR libstdc++/13731 (first part: write)
4084 * config/io/basic_file_stdio.h (__basic_file<char>::xwrite):
4086 * config/io/basic_file_stdio.cc (__basic_file<char>::xwrite):
4087 Define it: a wrapper around write() handling partial write.
4088 (__basic_file<char>::xsputn): Use it.
4089 (__basic_file<char>::xsputn_2): Likewise.
4091 2004-02-11 Paolo Carlini <pcarlini@suse.de>
4092 Petur Runolfsson <peturr02@ru.is>
4095 * include/std/std_istream.h (operator>>(__istream_type& (*)
4096 (__istream_type&)), operator>>(__ios_type& (*)(__ios_type&)),
4097 operator>>(ios_base& (*)(ios_base&))): Declare inline.
4098 * include/std/std_ostream.h (operator<<(__ostream_type& (*)
4099 (__ostream_type&)), operator<<(__ios_type& (*)(__ios_type&)),
4100 operator<<(ios_base& (*) (ios_base&))): Likewise.
4101 * testsuite/performance/27_io/fmtflags_manipulators.cc: New.
4103 2004-02-10 Loren J. Rittle <ljrittle@acm.org>
4106 * config/linker-map.gnu: Add typeinfo and typeinfo name for
4107 __gnu_cxx::stdio_sync_filebuf<char, std::char_traits<char> >.
4110 * config/linker-map.gnu: Add typeinfo and typeinfo name for
4111 __gnu_cxx::stdio_filebuf<char, std::char_traits<char> >.
4113 2004-02-09 Loren J. Rittle <ljrittle@acm.org>
4115 * include/ext/pool_allocator.h: Include c++config.h.
4117 2004-02-09 Stefan Olsson <stefan@xapa.se>
4119 * include/ext/mt_allocator.h: thread_id is unused in non threaded
4120 applications and now has a ifdef to remove it completely on
4121 compilers without thread support. Include stdlib.h due to a
4122 compiler warning on getenv().
4124 2004-02-09 Paul Brook <paul@codesourcery.com>
4126 * libstdc++-v3/configure.host: Explicitly check for atomicity.h file.
4128 2004-02-09 Paolo Carlini <pcarlini@suse.de>
4131 * src/locale_init.cc (locale::global(const locale&)): Use
4132 locale::name() in order to decide whether calling setlocale.
4133 * testsuite/22_locale/locale/global_locale_objects/14071.cc: New.
4135 * include/bits/locale_classes.h (locale::_Impl::_M_check_same_name()):
4136 Avoid computing &= unnecessarily.
4138 2004-02-09 James E Wilson <wilson@specifixinc.com>
4141 * libsuspc++/eh_personality.cc (PERSONALITY_FUNCTION): Use
4142 __builtin_extend_pointer.
4144 2004-02-09 Paolo Carlini <pcarlini@suse.de>
4147 * include/bits/basic_ios.tcc (basic_ios<>::_M_cache_locale):
4148 Don't leave dangling pointers.
4149 * testsuite/27_io/basic_ios/imbue/14072.cc: New.
4150 * testsuite/22_locale/numpunct/members/pod/2.cc: Tweak, the num_put
4151 facet is needed in the final test.
4153 2004-02-09 Bernardo Innocenti <bernie@develer.com>
4155 * crossconfig.m4: Don't enable _GLIBCXX_USE_LFS on *-uclinux*.
4156 * configure: Regenerate.
4158 2004-02-08 Richard Henderson <rth@redhat.com>
4161 * libsupc++/eh_catch.cc (__cxa_begin_catch): Don't adjust
4162 uncaughtExceptions during nested catch rethrow.
4163 * testsuite/18_support/14026.cc: New.
4165 2004-02-08 Paolo Carlini <pcarlini@suse.de>
4167 * include/bits/basic_string.tcc (assign(const _CharT*, size_type)):
4168 When working in place remember to set the state to sharable
4169 (otherwise, _M_mutate does it).
4171 2004-02-08 Bernardo Innocenti <bernie@develer.com>
4173 * include/bits/allocator.h, include/bits/basic_ios.h,
4174 include/bits/basic_ios.tcc, include/bits/basic_string.h,
4175 include/bits/basic_string.tcc, include/bits/boost_concept_check.h,
4176 include/bits/char_traits.h, include/bits/codecvt.h,
4177 include/bits/concurrence.h, include/bits/cpp_type_traits.h,
4178 include/bits/demangle.h, include/bits/deque.tcc,
4179 include/bits/fstream.tcc, include/bits/functexcept.h,
4180 include/bits/gslice.h, include/bits/gslice_array.h,
4181 include/bits/indirect_array.h, include/bits/ios_base.h,
4182 include/bits/istream.tcc, include/bits/list.tcc,
4183 include/bits/locale_classes.h, include/bits/locale_facets.h,
4184 include/bits/locale_facets.tcc, include/bits/localefwd.h,
4185 include/bits/mask_array.h, include/bits/ostream.tcc,
4186 include/bits/postypes.h, include/bits/slice_array.h,
4187 include/bits/sstream.tcc, include/bits/stl_algo.h,
4188 include/bits/stl_algobase.h, include/bits/stl_bvector.h,
4189 include/bits/stl_construct.h, include/bits/stl_deque.h,
4190 include/bits/stl_function.h, include/bits/stl_heap.h,
4191 include/bits/stl_iterator.h, include/bits/stl_iterator_base_funcs.h,
4192 include/bits/stl_list.h, include/bits/stl_map.h,
4193 include/bits/stl_multimap.h, include/bits/stl_multiset.h,
4194 include/bits/stl_numeric.h, include/bits/stl_pair.h,
4195 include/bits/stl_queue.h, include/bits/stl_raw_storage_iter.h,
4196 include/bits/stl_relops.h, include/bits/stl_set.h,
4197 include/bits/stl_stack.h, include/bits/stl_tempbuf.h,
4198 include/bits/stl_threads.h, include/bits/stl_tree.h,
4199 include/bits/stl_uninitialized.h, include/bits/stl_vector.h,
4200 include/bits/stream_iterator.h, include/bits/streambuf.tcc,
4201 include/bits/streambuf_iterator.h,include/bits/stringfwd.h,
4202 include/bits/type_traits.h, include/bits/valarray_after.h,
4203 include/bits/valarray_array.h, include/bits/valarray_array.tcc,
4204 include/bits/valarray_before.h, include/bits/vector.tcc: Remove
4205 trailing whitespace.
4207 2004-02-06 Paolo Carlini <pcarlini@suse.de>
4209 * include/bits/basic_string.h: Fix comment.
4211 2004-02-06 Paolo Carlini <pcarlini@suse.de>
4213 * include/bits/stl_construct.h: Wrap overlong lines, reformat
4214 according to the coding standards.
4215 * include/bits/stl_pair.h: Likewise.
4216 * include/bits/stl_raw_storage_iter.h: Likewise.
4217 * include/bits/stl_stack.h: Likewise.
4218 * include/bits/stl_uninitialized.h: Likewise.
4219 * include/bits/stream_iterator.h: Likewise.
4220 * include/bits/streambuf_iterator.h: Likewise.
4221 * include/bits/type_traits.h: Likewise.
4223 2004-02-06 Paolo Carlini <pcarlini@suse.de>
4225 * testsuite/27_io/basic_filebuf/open/char/9507.cc:
4228 2004-02-05 Loren J. Rittle <ljrittle@acm.org>
4230 * scripts/check_performance: Support PCH.
4232 * scripts/check_performance (CXX): Add -DNOTHREAD.
4233 * testsuite/performance/20_util/allocator/insert.cc: Integrate
4234 threaded tests from insert_insert.cc. Tweak iterations,
4235 remove special cases.
4236 * testsuite/performance/20_util/allocator/insert_insert.cc:
4237 Make all tests single-threaded. Tweak iterations.
4238 * testsuite/performance/20_util/allocator/map_thread.cc:
4240 * testsuite/performance/20_util/allocator/producer_consumer.cc:
4243 2004-02-05 Geoffrey Keating <geoffk@apple.com>
4247 * acinclude.m4 (GLIBCXX_EXPORT_INSTALL_INFO): Use 'gcc', not
4248 'gcc-lib'. Add comment about poorly-named variables.
4249 * aclocal.m4: Regenerate.
4250 * configure: Regenerate.
4252 2004-02-05 Paolo Carlini <pcarlini@suse.de>
4254 * include/bits/locale_facets.tcc (money_get::do_get(string_type&)):
4255 Thousands-sep are always optional; thousands-sep are not allowed
4256 after the decimal_point.
4257 * testsuite/22_locale/money_get/get/char/12.cc: New.
4258 * testsuite/22_locale/money_get/get/char/13.cc: New.
4259 * testsuite/22_locale/money_get/get/wchar_t/12.cc: New.
4260 * testsuite/22_locale/money_get/get/wchar_t/13.cc: New.
4262 * testsuite/22_locale/money_get/get/char/1.cc: Clean-up.
4263 * testsuite/22_locale/money_get/get/char/2.cc: Likewise.
4264 * testsuite/22_locale/money_get/get/char/3.cc: Likewise.
4265 * testsuite/22_locale/money_get/get/char/4.cc: Likewise.
4266 * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
4267 * testsuite/22_locale/money_get/get/wchar_t/2.cc: Likewise.
4268 * testsuite/22_locale/money_get/get/wchar_t/3.cc: Likewise.
4269 * testsuite/22_locale/money_get/get/wchar_t/4.cc: Likewise.
4271 * testsuite/22_locale/money_get/get/char/9.cc: Fix citation from
4273 * testsuite/22_locale/money_get/get/wchar_t/9.cc: Likewise.
4275 2004-02-05 Richard Sandiford <rsandifo@redhat.com>
4277 * config/os/irix/irix6.5/os_defines.h (_GLIBCXX_FIONREAD_TAKES_OFF_T):
4279 * config/io/basic_file_stdio.cc (__basic_file<char>::showmanyc): Use
4280 it to decide whether FIONREAD should take an off_t or int argument.
4282 2004-02-05 Paolo Carlini <pcarlini@suse.de>
4284 * include/bits/stl_function.h: Minor formatting changes.
4286 2004-02-04 Zack Weinberg <zack@codesourcery.com>
4288 Revert previous change to config/abi/*/baseline_symbols.txt.
4290 2004-02-04 Benjamin Kosnik <bkoz@redhat.com>
4291 Zack Weinberg <zack@codesourcery.com>
4293 * config/io/basic_file_stdio.cc (__gnu_internal::fopen_mode):
4295 (__basic_file<char>::sys_open, __basic_file<char>::open): Use it.
4296 (__basic_file<char>::_M_open_mode): Delete.
4297 * config/io/basic_file_stdio.cc: Delete declaration of _M_open_mode.
4299 * testsuite/27_io/basic_filebuf/close/char/9964.cc
4300 * testsuite/27_io/basic_filebuf/open/char/9507.cc:
4301 Correct flags to filebuf::open calls.
4303 * config/abi/alpha-freebsd5/baseline_symbols.txt
4304 * config/abi/alpha-linux-gnu/baseline_symbols.txt
4305 * config/abi/hppa-linux-gnu/baseline_symbols.txt
4306 * config/abi/i386-freebsd4/baseline_symbols.txt
4307 * config/abi/i386-freebsd5/baseline_symbols.txt
4308 * config/abi/i486-linux-gnu/baseline_symbols.txt
4309 * config/abi/ia64-linux-gnu/baseline_symbols.txt
4310 * config/abi/mips-linux-gnu/baseline_symbols.txt
4311 * config/abi/sparc-freebsd5/baseline_symbols.txt
4312 * config/abi/sparc-linux-gnu/baseline_symbols.txt
4313 * config/abi/x86_64-linux-gnu/baseline_symbols.txt:
4314 Remove entry for __basic_file<char>::_M_open_mode.
4316 2004-02-04 Loren J. Rittle <ljrittle@acm.org>
4318 * testsuite/performance/20_util/allocator/insert.cc (main): Tweak.
4320 2004-02-04 Felix Yen <fwy@alumni.brown.edu>
4322 * testsuite/performance/20_util/producer_consumer.cc: New.
4323 * testsuite/performance/20_util/allocator/insert_insert.cc: Two loops.
4325 2004-02-04 Benjamin Kosnik <bkoz@redhat.com>
4327 * testsuite/performance/20_util/allocator.cc: Move to..
4328 * testsuite/performance/20_util/allocator/insert.cc: ...here.
4329 * testsuite/performance/20_util/allocator_thread.cc: Move to...
4330 * testsuite/performance/20_util/allocator/insert_insert.cc: ...here.
4331 * testsuite/performance/20_util/allocator_map_thread.cc: Move to...
4332 * testsuite/performance/20_util/allocator/map_thread.cc: ...here.
4334 2004-02-04 Jonathan Wakely <redi@gcc.gnu.org>
4336 * docs/html/faq/index.html: Recommend using LD_LIBRARY_PATH.
4337 * docs/html/faq/index.txt: Regenerate.
4339 2004-02-04 Dhruv Matani <dhruvbird@gmx.net>
4341 * include/ext/debug_allocator.h: _M_extra now stands for the
4342 number of extra objects instead of the number of extra bytes.
4343 (debug_allocator::allocate): Adjust.
4344 (debug_allocator::deallocate): Adjust.
4346 * include/ext/pool_allocator.h: Fix typo.
4348 2004-02-03 Felix Yen <fwy@alumni.brown.edu>
4349 Benjamin Kosnik <bkoz@redhat.com>
4351 * testsuite/performance/20_util/allocator.cc: Add map,
4353 * testsuite/performance/20_util/allocator_thread.cc: Same.
4355 2004-02-03 Paolo Carlini <pcarlini@suse.de>
4357 * include/bits/basic_string.h (insert(iterator)): Remove,
4358 non-standard and already scheduled for removal.
4360 2004-02-03 Paolo Carlini <pcarlini@suse.de>
4362 * include/bits/stl_iterator_base_funcs.h: Minor formatting
4363 and indentation tweaks.
4364 * include/bits/stl_iterator_base_types.h: Likewise.
4365 * include/bits/stl_list.h: Likewise.
4366 * include/bits/stl_map.h: Likewise.
4367 * include/bits/stl_tempbuf.h: Likewise.
4369 2004-02-02 Jerry Quinn <jlquinn@optonline.net>
4371 * include/bits/gslice.h, include/bits/gslice_array.h,
4372 include/bits/indirect_array.h, include/bits/mask_array.h,
4373 include/bits/slice_array.h, include/bits/stl_numeric.h,
4374 include/std/std_valarray.h: Update copyright years.
4376 2004-02-02 Jerry Quinn <jlquinn@optonline.net>
4378 * include/bits/gslice.h (gslice): Document.
4379 * include/bits/gslice_array.h (gslice_array): Document.
4380 * include/bits/indirect_array (indirect_array): Document.
4381 * include/bits/mask_array (mask_array): Document.
4382 * include/bits/slice_array.h (slice,slice_array): Document.
4383 * include/bits/stl_numeric.h (accumulate, inner_product, partial_sum,
4384 adjacent_difference): Document
4385 * include/std/std_valarray.h (valarray): Document.
4387 2004-02-02 Benjamin Kosnik <bkoz@redhat.com>
4389 * docs/html/19_diagnostics/howto.html: Move verbose terminate
4391 * docs/html/18_support/howto.html: Here.
4392 * docs/html/documentation.html: Add reference here.
4394 2004-02-02 Paolo Carlini <pcarlini@suse.de>
4396 * config/locale/gnu/c++locale_internal.h: Remove prototypes
4397 of no longer used GLIBC thread locale functions.
4399 2004-02-02 Eric Christopher <echristo@redhat.com>
4400 Zack Weinberg <zack@codesourcery.com>
4402 * testsuite/22_locale/collate/compare/wchar_t/2.cc: Remove xfail. Use
4404 * testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc: Ditto.
4405 * testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc: Ditto
4406 * testsuite/22_locale/collate/hash/wchar_t/2.cc: Ditto.
4407 * testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc: Ditto.
4408 * testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc: Ditto.
4409 * testsuite/22_locale/collate/transform/wchar_t/2.cc: Ditto.
4410 * testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc: Ditto.
4411 * testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
4414 2004-02-02 Paolo Carlini <pcarlini@suse.de>
4416 * include/bits/stl_function.h: Additional minor tweaks.
4417 * include/bits/stl_multiset.h: Likewise.
4419 * include/bits/stl_queue.h: Minor tweaks.
4421 2004-02-02 Paolo Carlini <pcarlini@suse.de>
4423 PR libstdc++/13976 (continued)
4424 * include/ext/malloc_allocator.h (malloc_allocator::deallocate):
4425 Make the second parameter unnamed, to void unused parameter
4427 * include/ext/new_allocator.h (new_allocator::deallocate): Ditto.
4429 2004-02-02 Paolo Carlini <pcarlini@suse.de>
4432 * include/ext/malloc_allocator.h (malloc_allocator::allocate):
4433 Make the second parameter unnamed, to void unused parameter
4435 * include/ext/mt_allocator.h (__mt_alloc::allocate): Ditto.
4436 * include/ext/new_allocator.h (new_allocator::allocate): Ditto.
4438 2004-02-01 Paolo Carlini <pcarlini@suse.de>
4440 * include/bits/stl_algo.h: Additional minor tweaks.
4441 * include/bits/stl_map.h: Likewise.
4442 * include/bits/stl_multimap.h: Likewise.
4443 * include/bits/stl_multiset.h: Likewise.
4444 * include/bits/stl_set.h: Likewise.
4445 * include/bits/stl_tree.h: Likewise.
4447 2004-02-01 Paolo Carlini <pcarlini@suse.de>
4449 * include/bits/vector.tcc (vector::_M_insert_aux(iterator)):
4452 2004-02-01 Paolo Carlini <pcarlini@suse.de>
4454 * include/bits/stl_function.h: Additional minor tweaks.
4456 2004-02-01 Paolo Carlini <pcarlini@suse.de>
4458 * include/bits/deque.tcc: Wrap overlong lines, constify
4459 a few variables, reformat according to the coding standards.
4460 * include/bits/list.tcc: Likewise.
4461 * include/bits/stl_deque.h: Likewise.
4462 * include/bits/stl_function.h: Likewise.
4463 * include/bits/stl_iterator.h: Likewise.
4464 * include/bits/stl_iterator_base_funcs.h: Likewise.
4465 * include/bits/stl_iterator_base_types.h: Likewise.
4466 * include/bits/stl_list.h: Likewise.
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_relops.h: Likewise.
4471 * include/bits/stl_set.h: Likewise.
4473 2004-02-01 Paolo Carlini <pcarlini@suse.de>
4475 * include/bits/stl_bvector.h: Wrap overlong lines, constify
4476 a few variables, reformat according to the coding standards.
4477 * include/bits/stl_tree.h: Likewise.
4479 2004-01-31 Paolo Carlini <pcarlini@suse.de>
4481 * include/bits/stl_algo.h: Minor additional reformat, add
4483 * include/bits/stl_algobase.h: Add copyright year.
4485 2004-01-31 Paolo Carlini <pcarlini@suse.de>
4487 * include/bits/stl_algo.h: Wrap overlong lines, constify
4488 a few variables, reformat according to the coding standards.
4489 * include/bits/stl_algobase.h: Likewise.
4490 * include/bits/stl_heap.h: Likewise.
4492 2004-01-31 Paolo Carlini <pcarlini@suse.de>
4494 * include/bits/basic_string.h (_Rep::operator[]): Remove, unused.
4496 * include/bits/basic_string.h: Fix two comments.
4498 2004-01-31 Per Bothner <per@bothner.com>
4500 * include/ext/mt_allocator.h
4501 (__mt_alloc::_S_thread_freelist_mutex): Guard with
4502 __GTHREAD_MUTEX_INIT.
4504 2004-01-31 Paolo Carlini <pcarlini@suse.de>
4506 * include/bits/basic_string.tcc (_Rep::_S_create): Minor tweak.
4508 2004-01-30 Paolo Carlini <pcarlini@suse.de>
4510 * testsuite/21_strings/basic_string/cons/char/6.cc: New.
4511 * testsuite/21_strings/basic_string/cons/wchar_t/6.cc: New.
4512 * testsuite/performance/21_strings/string_cons_input_iterator.cc: New.
4514 2004-01-30 Felix Yen <fwy@alumni.brown.edu>
4516 * testsuite/performance/20_util/allocator_thread.cc (do_loop):
4517 Don't use clear, but instead assign. Use insert.
4519 2004-01-30 Benjamin Kosnik <bkoz@redhat.com>
4521 * src/demangle.cc: Add instantiations.
4522 * src/Makefile.am: Remove special rules for demangle.lo, demangle.o.
4523 * src/Makefile.in: Regenerate.
4525 2004-01-30 David Edelsohn <edelsohn@gnu.org>
4527 * src/allocator.cc: Protect _S_get_thread_id() and
4528 _S_thread_key_destr() with #ifdef __GTHREADS.
4530 2004-01-30 Paolo Carlini <pcarlini@suse.de>
4532 Reshuffle performance testsuite.
4533 * testsuite/performance/allocator.cc, allocator_map_thread.cc,
4534 allocator_thread.cc, complex_norm.cc, container_benchmark.cc,
4535 cout_insert_int.cc, filebuf_copy.cc, filebuf_sputc.cc,
4536 fstream_seek_write.cc, ifstream_extract_float.cc,
4537 ifstream_extract_int.cc, ifstream_getline.cc, is_wchar_t.cc,
4538 list_create_fill_sort.cc, map_create_fill.cc,
4539 narrow_widen_char.cc, narrow_widen_wchar_t.cc,
4540 ofstream_insert_float.cc, ofstream_insert_int.cc,
4541 string_append.cc, wchar_t_in.cc, wchar_t_length.cc,
4542 wchar_t_out.cc: Split into...
4543 * testsuite/performance/20_util/allocator.cc: New.
4544 * testsuite/performance/20_util/allocator_map_thread.cc: New.
4545 * testsuite/performance/20_util/allocator_thread.cc: New.
4546 * testsuite/performance/21_strings/string_append: New.
4547 * testsuite/performance/22_locale/is_wchar_t.cc: New.
4548 * testsuite/performance/22_locale/narrow_widen_char.cc: New.
4549 * testsuite/performance/22_locale/narrow_widen_wchar_t.cc: New.
4550 * testsuite/performance/22_locale/wchar_t_in.cc: New.
4551 * testsuite/performance/22_locale/wchar_t_length.cc: New.
4552 * testsuite/performance/22_locale/wchar_t_out.cc: New.
4553 * testsuite/performance/23_containers/container_benchmark.cc: New.
4554 * testsuite/performance/23_containers/list_create_fill_sort.cc: New.
4555 * testsuite/performance/23_containers/map_create_fill.cc: New.
4556 * testsuite/performance/26_numerics/complex_norm.cc: New.
4557 * testsuite/performance/27_io/cout_insert_int.cc: New.
4558 * testsuite/performance/27_io/filebuf_copy.cc: New.
4559 * testsuite/performance/27_io/filebuf_sputc.cc: New.
4560 * testsuite/performance/27_io/fstream_seek_write.cc: New.
4561 * testsuite/performance/27_io/ifstream_extract_float.cc: New.
4562 * testsuite/performance/27_io/ifstream_extract_int.cc: New.
4563 * testsuite/performance/27_io/ifstream_getline.cc: New.
4564 * testsuite/performance/27_io/ofstream_insert_float.cc: New.
4565 * testsuite/performance/27_io/ofstream_insert_int.cc: New.
4567 2004-01-30 Paolo Carlini <pcarlini@suse.de>
4569 * include/bits/basic_string.tcc (_Rep::_S_create):
4570 Never allocate a string bigger than max_size(); always keep
4571 __capacity and __size in sync to avoid memory leaks at
4574 2004-01-30 Paolo Carlini <pcarlini@suse.de>
4576 * include/bits/basic_string.tcc (_S_construct(_InIterator,
4577 _InIterator, const _Alloc&, input_iterator_tag)): Simplify
4578 the double loop, streamline.
4580 * include/bits/basic_string.tcc: Very minor tweaks.
4582 2004-01-30 Loren J. Rittle <ljrittle@acm.org>
4584 * scripts/check_performance: Only compile with $THREAD_FLAG
4585 when test is marked to require it. Allow multiple
4586 compilations/executions of marked tests.
4587 * testsuite/testsuite_performance.h (report_performance):
4588 Report dynamic thread support status.
4589 (report_header): Likewise.
4590 * testsuite/performance/allocator.cc: Stabilize iteration
4591 count. Support more allocators. Mark each allocator test to
4592 run and report independently.
4593 * testsuite/performance/allocator_map_thread.cc: Likewise.
4594 * testsuite/performance/allocator_thread.cc: Likewise.
4596 2004-01-29 Stephen M. Webb <stephen.webb@bregmasoft.com>
4598 * config/local/generic/c_locale.h: Change ::malloc() to new char[].
4599 * config/local/gnu/c_locale.h: Change ::malloc() to new char[].
4600 * include/bits/stl_tempbuf.h: Convert _Temporary_buffer to use
4601 std::get_temporary_buffer() instead of duplicating its code.
4602 Update to C++STYLE conventions.
4603 * include/std/std_memory.h (get_temporary_buffer): Use ::operator
4604 new() instead of std::malloc().
4605 (return_temporary_buffer): Use ::operator delete() instead of
4608 2004-01-29 Benjamin Kosnik <bkoz@redhat.com>
4610 * include/bits/allocator.h: Temporary switch to new_allocator as
4611 the default to unjam bootstraps.
4613 2004-01-28 Benjamin Kosnik <bkoz@redhat.com>
4615 * include/Makefile.am (bits_headers): Remove allocator_traits.h.
4616 * include/Makefile.in: Regenerate.
4617 * include/bits/allocator_traits.h: Remove.
4618 * include/bits/allocator.h: Remove allocator_traits.h include, and
4620 (allocator): Empty base class, inherit from the underlying allocator.
4621 * src/allocator-inst.cc: Move __pool_alloc instantiation to...
4622 * src/allocator.cc: ...here. New. For the underlying allocators.
4623 Add __mt_alloc, __pool_alloc, new_allocator, malloc_allocator bits.
4624 * config/linker-map.gnu: Remove __pool_alloc bits.
4625 * src/Makefile.am (sources): Add allocator.cc.
4626 * src/Makefile.in: Regenerate.
4627 * testsuite/20_util/allocator/1.cc: Split second test into...
4628 * testsuite/20_util/allocator/8230.cc: ...this.
4629 * include/bits/stl_bvector.h (__gnu_norm): Change bit_vector
4630 typedef to use std::allocatore. Format.
4631 * include/ext/pool_allocator.h: Remove allocator_traits.h include,
4633 * include/ext/mt_allocator.h (__gnu_cxx): Qualify
4634 __throw_bad_alloc calls. Don't include <memory>.
4635 * include/ext/malloc_allocator.h: Remove <memory> include.
4636 * include/ext/new_allocator.h (new_allocator): Same.
4637 * include/ext/ropeimpl.h (__gnu_cxx): Remove __alloc using
4638 declaration. Switch __alloc to _Alloc.
4639 * include/ext/hashtable.h: Remove __alloc.
4640 * include/backward/alloc.h: Only inject allocator, not
4641 implementation details.
4643 * include/ext/mt_allocator.h: Replace free with delete.
4645 2004-01-28 Benjamin Kosnik <bkoz@redhat.com>
4647 * src/globals_io.cc: Change to __gnu_internal namespace.
4648 * src/globals_locale.cc: Same.
4649 * src/locale_init.cc: Same.
4650 * src/ios_init.cc: Same.
4652 2004-01-28 Stefan Olsson <stefan@snon.net>
4654 * include/ext/mt_allocator.h: Replaced all malloc() calls with
4655 operator new(). Added support for the env variable
4656 GLIBCXX_FORCE_NEW (this required the _S_init call to be the first
4657 one in allocate() as well). Fix typos.
4659 2004-01-28 Paolo Carlini <pcarlini@suse.de>
4661 * include/bits/basic_string.h (_S_create(size_t,
4662 const _Alloc&): Change signature to take two size_type
4664 * include/bits/basic_string.tcc (_S_construct(_InIterator,
4665 _InIterator, const _Alloc&, input_iterator_tag)): Update
4667 (_S_construct(_InIterator, _InIterator, const _Alloc&,
4668 forward_iterator_tag)): Likewise.
4669 (_S_construct(size_type, _CharT, const _Alloc&)): Likewise.
4670 (_M_mutate(size_type, size_type, size_type)): Don't
4671 implement the exponential growth policy, demand it to
4672 _S_create, update call and simplify.
4673 (_M_clone(const _Alloc&, size_type)): Likewise.
4674 (_S_create(size_type, size_type, const _Alloc&)): Implement
4675 the growth policy, simplify otherwise.
4677 * include/bits/basic_string.h (_Rep::operator[]): Tweak
4678 signature to take a size_type, consistently with the other
4681 2004-01-27 Benjamin Kosnik <bkoz@redhat.com>
4683 * testsuite/27_io/ios_base/storage/11584.cc: Correct new and
4684 delete declarations, add include and test variable.
4686 2003-01-27 Jerry Quinn <jlquinn@optonline.net>
4688 * include/bits/codecvt.h, include/bits/locale_facets.h,
4689 include/bits/postypes.h, include/bits/stl_bvector.h,
4690 include/bits/stl_multiset.h, include/bits/stl_set.h,
4691 include/bits/stream_iterator.h, include/bits/streambuf_iterator.h,
4692 include/std/std_complex.h: Document.
4694 2004-01-27 Jerry Quinn <jlquinn@optonline.net>
4697 * include/bits/ios_base.h (ios_base::_M_grow_words): Add
4698 iword/pword selector.
4699 (ios_base::iword, ios_base::pword): Use it.
4700 * src/ios.cc (ios_base::_M_grow_words): Clear _M_word_zero
4701 iword or pword member on alloc failure.
4702 * testsuite/27_io/ios_base/storage/11584.cc: New test.
4704 2004-01-27 Ulrich Weigand <uweigand@de.ibm.com>
4705 PJ Darcy <darcypj@us.ibm.com>
4707 * configure.host: Add support for *-tpf.
4708 * crossconfig.m4: Likewise.
4709 * configure: Regenerate.
4710 * config/os/tpf: New directory.
4711 * config/os/tpf/os_defines.h: New file.
4712 * config/os/tpf/ctype_base.h: Likewise.
4713 * config/os/tpf/ctype_inline.h: Likewise.
4714 * config/os/tpf/ctype_noninline.h: Likewise.
4716 2004-01-27 Paolo Carlini <pcarlini@suse.de>
4719 * include/bits/sstream.tcc: Guard use of extern template.
4721 2004-01-27 Paolo Carlini <pcarlini@suse.de>
4723 * include/bits/basic_string.tcc
4724 (basic_string(const basic_string&, size_type, size_type),
4725 basic_string(const basic_string&, size_type, size_type,
4726 const _Alloc&)): Avoid unnecessarily constructing iterators.
4728 2004-01-26 Paolo Carlini <pcarlini@suse.de>
4730 * config/locale/generic/c_locale.cc: Fix throw messages
4731 to use the __N marker.
4732 * config/locale/gnu/c_locale.cc: Likewise.
4733 * config/locale/ieee_1003.1-2001/codecvt_specializations.h:
4735 * docs/html/17_intro/C++STYLE: Likewise.
4736 * include/bits/basic_ios.tcc: Likewise.
4737 * include/bits/fstream.tcc: Likewise.
4738 * include/bits/vector.tcc: Likewise.
4739 * include/ext/ropeimpl.h: Likewise.
4740 * include/std/std_bitset.h: Likewise.
4741 * src/ios.cc: Likewise.
4742 * src/locale.cc: Likewise.
4743 * src/localename.cc: Likewise.
4745 2004-01-26 Paolo Carlini <pcarlini@suse.de>
4747 * include/bits/basic_string.h (_M_replace_aux): Use the
4748 __N marker in throw message.
4749 * include/bits/basic_string.tcc (assign(const _CharT*,
4750 size_type), insert(size_type, const _CharT*, size_type),
4751 replace(size_type, size_type, const _CharT*, size_type),
4752 reserve, _Rep::_S_create, resize, _M_replace_dispatch):
4755 * include/bits/basic_string.h, include/bits/basic_string.tcc:
4756 Fold overlong lines, minor formatting changes.
4758 2004-01-26 Paolo Carlini <pcarlini@suse.de>
4760 * include/bits/basic_string.h (replace(iterator, iterator,
4761 const basic_string&)): Remove _GLIBCXX_DEBUG_PEDASSERT.
4762 (replace(iterator, iterator, const _CharT*)): Ditto.
4763 (replace(iterator, iterator, const _CharT*, size_type)):
4764 Add missing _GLIBCXX_DEBUG_PEDASSERT.
4766 2004-01-26 Paolo Carlini <pcarlini@suse.de>
4768 * include/bits/basic_string.tcc (replace(size_type,
4769 size_type, const _CharT*, size_type)): Implement optimized
4770 in-place algorithm for non-overlapping ranges.
4771 * testsuite/21_strings/basic_string/replace/char/6.cc: New.
4772 * testsuite/21_strings/basic_string/replace/wchar_t/6.cc: New.
4774 * include/bits/basic_string.tcc (insert(size_type,
4775 const _CharT*, size_type)): Tweak slightly.
4777 2004-01-26 Andreas Schwab <schwab@suse.de>
4779 * config/locale/gnu/monetary_members.cc: Restore locale before
4780 rethrowing exception.
4782 2004-01-25 Paolo Carlini <pcarlini@suse.de>
4784 * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
4786 * include/bits/basic_string.tcc (_M_replace_aux, _M_replace_safe):
4789 * include/bits/basic_string.tcc: Very minor tweaks.
4791 2004-01-25 Paolo Carlini <pcarlini@suse.de>
4793 * testsuite/performance/string_append.cc: Increase number
4796 2004-01-25 Paolo Carlini <pcarlini@suse.de>
4798 * include/bits/basic_string.h (erase(size_type, size_type),
4799 erase(iterator), erase(iterator, iterator)): Call _M_replace_safe
4800 instead, thus avoiding redundant check for length_error.
4802 * include/bits/basic_string.h: Tweak some comments.
4804 2004-01-24 Paolo Carlini <pcarlini@suse.de>
4806 * include/bits/basic_string.tcc (operator+(const _CharT*,
4807 const basic_string&)): No need to go through the append
4808 taking two iterators.
4810 2004-01-24 Paolo Carlini <pcarlini@suse.de>
4812 * include/bits/basic_string.tcc (rfind(_CharT, size_type)):
4813 Revert last change to use std::min: machine language is worse.
4814 (find_last_of(const _CharT*, size_type, size_type)): Ditto.
4815 (find_last_not_of(const _CharT*, size_type, size_type)): Ditto.
4816 (find_last_not_of(_CharT, size_type)): Ditto.
4818 * include/bits/basic_string.tcc (insert(size_type, const _CharT*,
4819 size_type)): Discard the value returned by _M_check.
4820 (replace(size_type, size_type, const _CharT*, size_type)): Ditto.
4821 (append(const basic_string&, size_type, size_type)): Ditto.
4822 (copy(_CharT*, size_type, size_type)): Ditto.
4823 (compare(size_type, size_type, const basic_string&)): Ditto.
4824 (compare(size_type, size_type, const basic_string&,
4825 size_type, size_type)): Ditto.
4826 (compare(size_type, size_type, const _CharT*)): Ditto.
4827 (compare(size_type, size_type, const _CharT*, size_type)): Ditto.
4829 2004-01-24 Paolo Carlini <pcarlini@suse.de>
4831 * include/bits/basic_string.h (insert(size_type,
4832 const basic_string&, size_type, size_type)): Define inline here.
4833 * include/bits/basic_string.tcc (insert(size_type,
4834 const basic_string&, size_type, size_type)): Move inline.
4836 2004-01-24 Paolo Carlini <pcarlini@suse.de>
4838 * include/bits/basic_string.h (assign(const basic_string&,
4839 size_type, size_type)): Define inline here.
4840 (replace(size_type, size_type, const basic_string&,
4841 size_type, size_type)): Ditto.
4842 (_M_replace_dispatch(iterator, iterator, _InputIterator,
4843 _InputIterator, __false_type)): Only declare.
4844 (_M_replace(iterator, iterator, _InputIterator,
4845 _InputIterator)): Remove.
4846 * include/bits/basic_string.tcc (assign(const basic_string&,
4847 size_type, size_type)): Move inline.
4848 (replace(size_type, size_type, const basic_string&,
4849 size_type, size_type)): Ditto.
4850 (_M_replace_dispatch(iterator, iterator, _InputIterator,
4851 _InputIterator, __false_type)): Define, now does also what
4852 _M_replace did before.
4853 * src/string-inst.cc (_M_replace): Don't instantiate.
4855 * include/bits/basic_string.tcc (find(const _CharT*,
4856 size_type, size_type)): Tidy.
4857 (rfind(_CharT, size_type)): Ditto.
4858 (find_first_not_of(const _CharT*, size_type, size_type)): Ditto.
4859 (find_first_not_of(_CharT, size_type)): Ditto.
4860 (find_last_not_of(const _CharT*, size_type, size_type)): Ditto.
4861 (find_last_not_of(_CharT, size_type)): Ditto.
4863 2004-01-23 Paolo Carlini <pcarlini@suse.de>
4866 * include/debug/bitset (operator|=): Fix typo.
4867 * testsuite/23_containers/bitset/operations/13838.cc: New.
4869 2004-01-23 Paolo Carlini <pcarlini@suse.de>
4871 * include/bits/basic_string.tcc (insert(size_type,
4872 const _CharT*, size_type __n)): Fix length_error check.
4873 (replace(size_type, size_type, const _CharT*, size_type):
4874 Ditto; call _M_replace_safe.
4875 (_M_replace_aux(size_type, size_type, size_type, _CharT):
4876 Fix length_error check.
4877 (_M_replace(iterator, iterator, _InputIterator,
4878 _InputIterator)): Ditto, tweak.
4879 (_M_replace_safe(size_type, size_type, const _CharT*,
4880 size_type)): Remove length_error check.
4882 * include/bits/basic_string.tcc (append(const basic_string&),
4883 append(const basic_string&, size_type, size_type)): Tweak
4886 * include/bits/basic_string.tcc (copy(_CharT*, size_type,
4887 size_type)): If __n == 0 don't call traits::copy.
4889 2004-01-23 Stefan Olsson <stefan@snon.net>
4891 * include/ext/mt_allocator.h: Reduce lock contention.
4893 2004-01-23 Paolo Carlini <pcarlini@suse.de>
4896 * include/bits/fstream.tcc (underflow): Remove unused
4898 * include/bits/streambuf_iterator.h (equal): Ditto.
4899 * include/bits/locale_facets.h (_M_convert_from_char):
4902 2004-01-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4905 * config/linker-map.gnu (nan): Delete.
4906 * libmath/mathconf.h (NAN, nan): Delete.
4907 * linkage.m4 (nan): Don't check for it.
4908 * libmath/nan.c: Delete file.
4910 * config.h.in, configure: Regenerate.
4912 2004-01-23 Paolo Carlini <pcarlini@suse.de>
4914 * include/bits/basic_string.h (push_back(_CharT)):
4915 Call _M_replace_aux.
4916 (insert(size_type, const basic_string&)): Trivial tweak.
4917 (insert(size_type, size_type, _CharT)): Call _M_replace_aux.
4918 (insert(iterator, _CharT)): Ditto.
4919 (erase(size_type, size_type)): Ditto.
4920 (erase(iterator)): Ditto.
4921 (erase(iterator, iterator)): Ditto.
4922 (replace(size_type, size_type, size_type, _CharT)): Ditto.
4924 2004-01-23 Loren J. Rittle <ljrittle@acm.org>
4927 * testsuite/performance/allocator_map_thread.cc: New test.
4929 2004-01-22 Paolo Carlini <pcarlini@suse.de>
4931 * include/bits/locale_facets.tcc
4932 (money_put::do_put(..., long double)): Use the basic_string
4933 constructor for char arrays, not that for C-strings, to pass
4934 __digits to do_put(..., const string_type&): __ws isn't
4937 2004-01-22 Paolo Carlini <pcarlini@suse.de>
4939 * include/bits/basic_string.h (_M_replace_safe): Change
4940 signatures to take size_types and const _CharT*.
4941 (_M_replace_aux): Likewise, takes size_types instead of
4943 (append(size_type, _CharT)): Update call.
4944 (assign(size_type, _CharT)): Ditto.
4945 (replace(iterator, iterator, size_type, _CharT)): Ditto.
4946 (_M_replace_dispatch(iterator, iterator, _Integer,
4947 _Integer, __true_type)): Ditto.
4948 * include/bits/basic_string.tcc (assign(const _CharT*,
4950 (insert(size_type, const _CharT*, size_type)): Ditto.
4951 (replace(size_type, size_type, const _CharT*,
4953 (_M_replace(iterator, iterator, _InputIterator,
4954 _InputIterator)): Ditto.
4955 (append(const basic_string&)): Ditto.
4956 (append(const basic_string&, size_type, size_type): Ditto.
4957 (append(const _CharT*, size_type): Ditto.
4958 (_M_replace_safe, _M_replace_safe): Change definitions
4959 accordingly, simplify.
4960 * string-inst.cc (_M_replace_safe): Don't instantiate.
4962 2004-01-21 Paolo Carlini <pcarlini@suse.de>
4964 * include/bits/basic_string.tcc (append(const basic_string&)):
4965 Revert previous change.
4966 (append(const basic_string&, size_type, size_type)): Revert
4967 previous change, use _M_check and _M_limit.
4969 2004-01-21 Paolo Carlini <pcarlini@suse.de>
4971 * include/bits/basic_string.h (_M_check): Change to return
4972 a checked __pos and take an additional const char* argument.
4973 (_M_fold): Rename to _M_limit, change to return a size_type,
4974 corresponding to the __off limited to the actual length.
4975 (insert(size_type, size_type, _CharT)): Update call, call
4977 (insert(iterator, _CharT)): Call replace(iterator, iterator,
4978 size_type, _CharT) instead.
4979 (erase(size_type, size_type)): Update calls.
4980 (replace(size_type, size_type, size_type, _CharT)): Ditto.
4981 (substr(size_type, size_type)): Use _M_check.
4982 * include/bits/basic_string.tcc (basic_string(const basic_string&,
4983 size_type, size_type)): Update calls.
4984 (basic_string(const basic_string&, size_type, size_type,
4985 const _Alloc&)): Ditto.
4986 (assign(const basic_string&, size_type, size_type)): Use the
4987 new _M_check and _M_limit.
4988 (insert(size_type, const basic_string&, size_type, size_type):
4990 (insert(size_type, const _CharT*, size_type)): Ditto.
4991 (replace(size_type, size_type, const _CharT*, size_type): Ditto.
4992 (replace(size_type, size_type, const basic_string&,
4993 size_type, size_type)): Ditto.
4994 (append(const basic_string&)): Ditto.
4995 (append(const basic_string&, size_type, size_type)): Ditto.
4996 (copy(_CharT*, size_type, size_type)): Ditto.
4997 (compare(size_type, size_type, const basic_string&)): Ditto.
4998 (compare(size_type, size_type, const basic_string&,size_type,
5000 (compare(size_type, size_type, const _CharT*)): Ditto.
5001 (compare(size_type, size_type, const _CharT*, size_type)): Ditto.
5003 2004-01-19 Stefan Olsson <stefan@snon.net>
5005 * include/ext/mt_allocator.h: If a thread, when it dies, still has
5006 memory on it's freelist this memory is not returned to global
5007 list. Simplification of deallocate so that memory is always
5008 returned to the calling thread id's freelist instead of to
5009 global. Fix typos. Add volatile where appropriate.
5011 2004-01-19 Loren J. Rittle <ljrittle@acm.org>
5013 * testsuite/ext/stdio_filebuf/char/10063-2.cc: Treat unbuffered.
5014 * testsuite/ext/stdio_filebuf/char/10063-3.cc: New test. Like -2 but
5015 use __gnu_cxx::stdio_sync_filebuf<char> instead; allow buffered stream.
5017 2004-01-19 Paolo Carlini <pcarlini@suse.de>
5019 * src/debug.cc: Make sure all the names are prefixed with
5020 double (or single) underscore.
5022 2004-01-19 Paolo Carlini <pcarlini@suse.de>
5024 * src/debug.cc: Trivial formatting change.
5026 2004-01-19 Paolo Carlini <pcarlini@suse.de>
5028 * include/bits/basic_string.tcc (_S_construct(size_type,
5029 _CharT, const _Alloc&)): Remove redundant try/catch.
5030 (_M_mutate(size_type, size_type, size_type)): Ditto.
5031 (_M_clone(const _Alloc&, size_type)): Ditto.
5033 2004-01-18 Paolo Carlini <pcarlini@suse.de>
5035 * include/bits/basic_string.h (c_str()): Simplify, due to
5036 21.3.4 the internal representation is always kept null-terminated.
5037 * include/bits/basic_string.tcc (_M_clone): Null-terminate.
5038 * testsuite/21_strings/basic_string/element_access/char/4.cc: New.
5039 * testsuite/21_strings/basic_string/element_access/wchar_t/4.cc:
5042 2004-01-18 Paolo Carlini <pcarlini@suse.de>
5044 * include/bits/basic_string.h (append(size_type, _CharT)):
5045 Moved inline, just call _M_replace_aux, no source iterators at
5046 risk of being clobbered.
5047 (assign(size_type, _CharT)): Call directly _M_replace_aux.
5048 (_M_replace(iterator, iterator, _InputIterator, _InputIterator,
5049 input_iterator_tag)): Remove fifth unused argument.
5050 (_M_replace_dispatch(iterator, iterator, _InputIterator,
5051 _InputIterator, __false_type)): Update call.
5052 * include/bits/basic_string.tcc (replace(size_type, size_type,
5053 const _CharT*, size_type)): Update call.
5054 (_M_replace_aux(iterator, iterator, size_type, _CharT)): Tweak
5055 throw string literal.
5056 (_M_replace_safe(iterator, iterator, _ForwardIterator,
5057 _ForwardIterator)): Likewise.
5058 (_M_replace(iterator, iterator, _InputIterator, _InputIterator,
5059 input_iterator_tag)): Remove fifth unused argument.
5060 (append(size_type __n, _CharT __c)): Move inline.
5061 * src/string-inst.cc (S::_M_replace(S::iterator, S::iterator,
5062 const C*, const C*, input_iterator_tag)): Remove fifth unused
5065 2004-01-16 Benjamin Kosnik <bkoz@redhat.com>
5067 * testsuite/ext/enc_filebuf/char/13189.cc: Fix guards.
5068 * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Same.
5070 2004-01-16 Danny Smith <dannysmith@users.sourceforge.net>
5072 * testsuite/testsuite_hooks.cc (try_mkfifo): Avoid calling
5075 2004-01-15 Stefan Olsson <stefan@snon.net>
5077 * include/ext/mt_allocator.h: Reuse thread id's as soon as
5078 possible by changing the behaviour of thread_freelist to do
5079 push_front when threads die instead of push_back.
5081 2004-01-14 Paolo Carlini <pcarlini@suse.de>
5083 * include/bits/locale_facets.h (struct __numpunct_cache):
5084 Add member _M_grouping_size, caching the length of _M_grouping.
5085 (__numpunct_cache<>::_M_cache): Assign the latter.
5086 (__verify_grouping): Move declaration...
5087 * include/bits/locale_facets.tcc (__verify_grouping):
5088 ... here, change signature to take a const char* and a size_t
5089 for the grouping; not a template anymore.
5090 (__add_grouping, num_put::_M_group_int, num_put::_M_group_float):
5091 Likewise change signature and tweak consistently.
5092 (num_get::_M_extract_float, num_get::_M_extract_int,
5093 num_put::_M_insert_int, num_put::_M_insert_float,
5094 money_get::do_get(string_type&), money_get::do_put(string_type)):
5096 * config/locale/generic/numeric_members.cc
5097 (numpunct<>::_M_initialize_numpunct): Assign the new member.
5098 * config/locale/gnu/numeric_members.cc
5099 (numpunct<>::_M_initialize_numpunct): Likewise.
5100 * src/locale-inst.cc (__add_grouping): Tweak signature.
5101 (__verify_grouping): Don't instantiate, not a template anymore.
5103 * include/bits/locale_facets.h: Rename _M_truename_len ->
5104 _M_truename_size, _M_falsename_len -> _M_falsename_size.
5105 * include/bits/locale_facets.tcc: Likewise.
5106 * config/locale/generic/numeric_members.cc: Likewise.
5107 * config/locale/gnu/numeric_members.cc: Likewise.
5109 2004-01-14 Stefan Olsson <stefan@snon.net>
5111 * include/ext/mt_allocator.h: Fixups.
5112 * testsuite/performance/allocator.cc: Enable __mt_alloc tests.
5113 * testsuite/performance/allocator_thread.cc: Same.
5115 2004-01-13 Benjamin Kosnik <bkoz@redhat.com>
5117 * testsuite/performance/ifstream_extract_float.cc: Add higher
5119 * testsuite/performance/ofstream_insert_float.cc: Same.
5121 2004-01-13 Paolo Carlini <pcarlini@suse.de>
5123 * src/locale-misc-inst.cc (__convert_from_v(long),
5124 __convert_from_v(unsigned long), __convert_from_v(long long),
5125 __convert_from_v(unsigned long long)): Remove, unused.
5127 2004-01-13 Benjamin Kosnik <bkoz@redhat.com>
5129 * testsuite/performance/ifstream_extract_float.cc: New.
5130 * testsuite/performance/ofstream_insert_float.cc: Float generation
5133 * 20_util/auto_ptr.cc, auto_ptr_neg.cc: Break into...
5134 * 20_util/auto_ptr/1.cc: ...this.
5135 * 20_util/auto_ptr/2.cc: Same.
5136 * 20_util/auto_ptr/3.cc: Same.
5137 * 20_util/auto_ptr/3946.cc: Same.
5138 * 20_util/auto_ptr/4.cc: Same.
5139 * 20_util/auto_ptr/5.cc: Same.
5140 * 20_util/auto_ptr/6.cc: Same.
5141 * 20_util/auto_ptr/7.cc: Same.
5142 * 20_util/auto_ptr/assign_neg.cc
5143 * 20_util/pairs.cc: Break into...
5144 * 20_util/pair/1.cc: ...this.
5145 * 20_util/pair/2.cc: Same.
5146 * 20_util/pair/3.cc: Same.
5147 * 20_util/pair/4.cc: Same.
5149 2004-01-13 Paolo Carlini <pcarlini@suse.de>
5151 * include/bits/locale_facets.tcc (num_get::do_get(void*&)):
5152 Set correctly just basefield, the only group that matters.
5154 2004-01-13 Paolo Carlini <pcarlini@suse.de>
5156 * include/ext/rope (_Rope_rep_alloc_base): Eliminate.
5157 (_Rope_rep_base): Inherit directly from the rope allocator;
5158 use rebinding instead of _Alloc_traits; pick up data member
5159 from _Rope_rep_alloc_base.
5160 (_Rope_alloc_base): Eliminate.
5161 (_Rope_base): Inherit directly from the rope allocator; use
5162 rebinding instead of _Alloc_traits; pick up data member from
5164 (rope::_S_new_RopeLeaf, rope::_S_new_RopeConcatenation,
5165 rope::_S_new_RopeFunction, rope::_S_new_RopeSubstring): Tweak.
5167 2004-01-13 Paolo Carlini <pcarlini@suse.de>
5170 * include/bits/basic_string.tcc (compare(size_type, size_type,
5171 const _CharT*, size_type)): Implement correctly the resolution
5172 of DR 5: basically, s is a char array, -not- a C string.
5173 * include/bits/basic_string.h: Tweak some comments.
5174 * testsuite/21_strings/basic_string/compare/char/13650.cc: New.
5175 * testsuite/21_strings/basic_string/compare/wchar_t/13650.cc: New.
5177 2004-01-12 Andreas Tobler <a.tobler@schweiz.ch>
5179 * testsuite/lib/libstdc++.exp: Set LD_LIBRARY_PATH_32 for
5182 2004-01-12 Paolo Carlini <pcarlini@suse.de>
5184 * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc:
5186 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc:
5189 2004-01-12 Paolo Carlini <pcarlini@suse.de>
5191 * include/bits/locale_facets.h (struct __numpunct_cache):
5192 Add members _M_truename_len and _M_falsename_len, caching
5193 the lengths of _M_truename and _M_falsename.
5194 (__numpunct_cache<>::_M_cache): Assign the latter.
5195 * include/bits/locale_facets.tcc (num_get::do_get(bool&),
5196 num_put::do_put(bool)): Use the new members, thus avoiding
5197 computing string lengths again and again.
5198 * config/locale/generic/numeric_members.cc
5199 (numpunct<>::_M_initialize_numpunct): Assign the new members.
5200 * config/locale/gnu/numeric_members.cc
5201 (numpunct<>::_M_initialize_numpunct): Likewise.
5203 2004-01-12 Mark Mitchell <mark@codesourcery.com>
5205 * testsuite/testsuite_hooks.h (__gnu_test::try_mkfifo): Declare it.
5206 * testsuite/testsuite_hooks.cc (__gnu_test::try_mkfifo): Define
5208 * testsuite/27_io/basic_filebuf/close/char/4879.cc: Use try_mkfifo
5209 and remove Cygwin XFAIL.
5210 * testsuite/27_io/basic_filebuf/close/char/9964.cc: Likewise.
5211 * testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc: Likewise.
5212 * testsuite/27_io/basic_filebuf/open/char/9507.cc: Likewise.
5213 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc:
5215 * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
5216 * testsuite/27_io/objects/char/7.cc: Likewise.
5217 * testsuite/27_io/objects/char/9661-1.cc: Likewise.
5218 * testsuite/27_io/objects/wchar_t/7.cc: Likewise.
5219 * testsuite/27_io/objects/wchar_t/9661-1.cc: Likewise.
5221 2004-01-11 Gabriel Dos Reis <gdr@integrable-solutions.net>
5223 * include/std/std_complex.h (std::complex<>::real): Return a
5224 reference. Add non-const overload.
5225 (std::complex<>::real): Likewise.
5226 (std::real): Likewise.
5227 (std::imag): Likewise.
5228 (std::operator+): Tidy.
5229 (std::operator-): Likewise.
5230 (std::operator*): Likewise.
5231 (std::operator/): Likewise.
5232 (std::operator>>): Likewise.
5234 2004-01-11 Paolo Carlini <pcarlini@suse.de>
5237 * include/bits/fstream.tcc (imbue): Exploit the external
5238 buffer to imbue 'on the fly' a new locale and convert its
5239 remainder with the new codecvt facet.
5240 (underflow): Tweak slightly to deal with this special case.
5241 * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc: New.
5242 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc: Ditto.
5243 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-3.cc: Ditto.
5244 * testsuite/27_io/objects/wchar_t/13582-1_xin.cc: Ditto.
5245 * testsuite/27_io/objects/wchar_t/13582-1_xin.in: Ditto.
5247 2004-01-10 Paolo Carlini <pcarlini@suse.de>
5249 * docs/html/ext/lwg-active.html, docs/html/ext/lwg-defects.html:
5252 2004-01-10 Paolo Carlini <pcarlini@suse.de>
5255 * include/bits/locale_classes.h (class locale): Fix category
5257 * testsuite/22_locale/locale/13630.cc: Add.
5259 2004-01-10 Giovanni Bajo <giovannibajo@gcc.gnu.org>
5261 * include/bits/locale_facets.h: Make a name really dependent. This
5262 will be needed when Core Issue 224 is implemented.
5264 2004-01-09 Paolo Carlini <pcarlini@suse.de>
5266 * testsuite/performance/allocator.cc: Demangle typeid(obj).name().
5267 * testsuite/performance/allocator_thread.cc: Likewise.
5269 2004-01-07 Benjamin Kosnik <bkoz@redhat.com>
5271 * crossconfig.m4: Add LFS, io bits to linux cross config.
5272 * acconfig.h: Remove obsolete bits, reorder.
5273 * config.h.in: Regenerate.
5277 2004-01-07 Gawain Bolton <gp.bolton@computer.org>
5279 * include/bits/stl_list.h:
5280 * include/bits/list.tc:
5282 Performance enhancements for destructor, push_front(),
5283 push_back(), pop_front(), pop_back(), sort()
5284 Eliminated static_casts where possible.
5285 Moved code out of header files into new src/list.cc
5286 implementation file for library where possible.
5287 Remove inheritance from iterator class and create separate
5288 classes for non-constant and constant iterators.
5289 * include/bits/stl_tree.h (_Rb_tree class):
5291 Only erase contents in destructor.
5292 Eliminate unnecessary initialization in assignment operator.
5293 Optimize for the nominal case by not checking whether
5294 container is empty in clear().
5295 Re-order test in _M_insert() to improve performance.
5296 Move initialization of new node's left & right pointers to
5297 src/tree.cc to where new node's colour is initialized
5298 and to reduce the amount of inline code.
5299 Use _M_leftmost() and _M_end() to improve readability where
5301 Create separate classes for non-constant and constant
5302 iterators to clarify code, avoid extra template parameters and
5303 casting away constness.
5305 2004-01-07 Benjamin Kosnik <bkoz@redhat.com>
5307 * src/Makefile.am (sources): Add list.cc, tree.cc.
5308 * src/stl_tree.cc: Move to...
5309 * src/tree.cc: ...here.
5311 * config/linker-map.gnu: Tweaks.
5312 * testsuite/23_containers/map/operators/1_neg.cc: Add excess errors.
5313 * testsuite/23_containers/set/operators/1_neg.cc: Add excess errors.
5315 * bits/stl_vector.h: Column wrap comments.
5317 2004-01-07 Loren J. Rittle <ljrittle@acm.org>
5319 (re-open) PR libstdc++/12658
5320 * src/locale_init.cc (locale::locale): Remove ill-scoped mutex.
5321 (locale::global): Likewise.
5323 2004-01-07 Paolo Carlini <pcarlini@suse.de>
5325 * testsuite/27_io/basic_istream/extractors_other/char/9318-in.cc:
5326 Remove redundant #include.
5327 * testsuite/27_io/basic_ostream/endl/char/1.cc: Likewise.
5328 * testsuite/27_io/basic_ostream/ends/char/1.cc: Likewise,
5329 re-enable normal testing.
5330 * testsuite/27_io/basic_ostream/ends/char/2.cc: Remove redundant
5332 * testsuite/27_io/basic_ostream/flush/char/1.cc: Likewise.
5333 * testsuite/27_io/basic_ostream/inserters_character/char/1.cc:
5335 * testsuite/27_io/basic_ostream/inserters_character/char/2.cc:
5337 * testsuite/27_io/basic_ostream/inserters_character/char/3.cc:
5339 * testsuite/27_io/basic_ostream/inserters_character/char/4.cc:
5341 * testsuite/27_io/basic_ostream/inserters_character/char/5.cc:
5343 * testsuite/27_io/basic_ostream/inserters_character/char/6.cc:
5345 * testsuite/27_io/basic_ostream/inserters_character/char/8.cc:
5347 * testsuite/27_io/basic_ostream/inserters_character/wchar_t/7.cc:
5348 More properly, #include <locale>.
5349 * testsuite/27_io/basic_ostream/inserters_character/wchar_t/8.cc:
5350 Remove redundant #include.
5351 * testsuite/27_io/basic_ostream/inserters_other/char/2.cc: Likewise.
5352 * testsuite/27_io/basic_ostream/inserters_other/char/3.cc: Remove
5353 redundant DejaGnu directive.
5354 * testsuite/27_io/basic_ostream/inserters_other/char/4.cc: Remove
5357 2004-01-06 Benjamin Kosnik <bkoz@redhat.com>
5358 Stefan Olsson <stefan@snon.net>
5360 * scripts/check_performance: Use -pthread.
5361 * testsuite/performance/allocator.cc: Tweaks, add list.
5362 * testsuite/performance/allocator_thread.cc: New.
5364 2004-01-06 Jerry Quinn <jlquinn@optonline.net>
5366 * include/bits/locale_facets.h: Document public classes and
5368 * include/bits/locale_facets.tcc (time_get::_M_extract_via_format):
5371 2004-01-06 Paolo Carlini <pcarlini@suse.de>
5373 * testsuite/27_io/basic_istream/extractors_other/char/1.cc:
5374 Remove redundant #includes.
5375 * testsuite/27_io/basic_istream/extractors_other/char/2.cc:
5377 * testsuite/27_io/basic_istream/extractors_other/char/3.cc:
5379 * testsuite/27_io/basic_istream/get/char/1.cc: Likewise.
5380 * testsuite/27_io/basic_istream/get/char/2.cc: Likewise.
5381 * testsuite/27_io/basic_istream/getline/char/1.cc: Likewise.
5382 * testsuite/27_io/basic_istream/getline/char/2.cc: Likewise.
5383 * testsuite/27_io/basic_istream/getline/char/3.cc: Likewise.
5384 * testsuite/27_io/basic_istream/ignore/char/1.cc: Likewise.
5385 * testsuite/27_io/basic_istream/ignore/char/6360.cc: Likewise.
5386 * testsuite/27_io/basic_istream/ignore/char/7220.cc: Likewise.
5387 * testsuite/27_io/basic_istream/peek/char/1.cc: Likewise.
5388 * testsuite/27_io/basic_istream/peek/char/6414.cc: Likewise.
5389 * testsuite/27_io/basic_istream/putback/char/1.cc: Likewise.
5390 * testsuite/27_io/basic_istream/read/char/1.cc: Likewise.
5391 * testsuite/27_io/basic_istream/read/char/2.cc: Likewise.
5392 * testsuite/27_io/basic_istream/read/char/3.cc: Likewise.
5393 * testsuite/27_io/basic_istream/readsome/char/6746-1.cc:
5395 * testsuite/27_io/basic_istream/readsome/char/6746-2.cc:
5397 * testsuite/27_io/basic_istream/readsome/char/8258.cc:
5399 * testsuite/27_io/basic_istream/seekg/char/2346-fstream.cc:
5401 * testsuite/27_io/basic_istream/seekg/char/2346-sstream.cc:
5403 * testsuite/27_io/basic_istream/seekg/char/8348-1.cc: Likewise.
5404 * testsuite/27_io/basic_istream/seekg/char/8348-2.cc: Likewise.
5405 * testsuite/27_io/basic_istream/tellg/char/8348.cc: Likewise.
5407 2004-01-04 Paolo Carlini <pcarlini@suse.de>
5409 * testsuite/27_io/basic_istream/extractors_arithmetic/char/01.cc:
5410 Remove redundant #includes.
5411 * testsuite/27_io/basic_istream/extractors_arithmetic/char/02.cc:
5413 * testsuite/27_io/basic_istream/extractors_arithmetic/char/03.cc:
5415 * testsuite/27_io/basic_istream/extractors_arithmetic/char/06.cc:
5417 * testsuite/27_io/basic_istream/extractors_arithmetic/char/07.cc:
5419 * testsuite/27_io/basic_istream/extractors_arithmetic/char/08.cc:
5421 * testsuite/27_io/basic_istream/extractors_arithmetic/char/09.cc:
5423 * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
5425 * testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc:
5427 * testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc:
5429 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/1.cc:
5431 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/2.cc:
5433 * testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc:
5436 2004-01-04 Mark Mitchell <mark@codesourcery.com>
5439 * testsuite/27_io/basic_filebuf/4.cc: Remove use of invalid copy
5441 * testsuite/27_io/basic_fstream/4.cc: Likewise.
5442 * testsuite/27_io/basic_ifstream/4.cc: Likewise.
5443 * testsuite/27_io/basic_ios/4.cc: Likewise.
5444 * testsuite/27_io/basic_iostream/4.cc: Likewise.
5445 * testsuite/27_io/basic_istream/4.cc: Likewise.
5446 * testsuite/27_io/basic_istingstream/4.cc: Likewise.
5447 * testsuite/27_io/basic_ofstream/4.cc: Likewise.
5448 * testsuite/27_io/basic_ostream/4.cc: Likewise.
5449 * testsuite/27_io/basic_ostringstream/4.cc: Likewise.
5450 * testsuite/27_io/basic_stringbuf/5.cc: Likewise.
5451 * testsuite/27_io/basic_stringstream/4.cc: Likewise.
5453 2004-01-04 Paolo Carlini <pcarlini@suse.de>
5455 * config/locale/generic/numeric_members.cc (_M_initialize_numpunct):
5456 Avoid unnecessarily zero terminating _M_atoms_out and _M_atoms_in;
5457 always use double underscored names.
5458 * config/locale/gnu/numeric_members.cc (_M_initialize_numpunct):
5460 * include/bits/locale_facets.h (struct __numpunct_cache):
5461 Dimension _M_atoms_out and _M_atoms_in one position smaller.
5462 (__numpunct_cache<>::_M_cache): Don't zero terminate _M_atoms_out