1 2004-10-21 Benjamin Kosnik <bkoz@redhat.com>
3 * include/tr1/array (array): Make safe for zero-sized arrays.
4 (array::end): Return one past the end.
5 (array::at): Use __throw_out_of_range, include functexcept.h.
6 (operator==): Implement.
12 * testsuite/tr1/6_containers/array/capacity/(empty.cc,
13 max_size.cc, size.cc): New.
14 * testsuite/tr1/6_containers/array/comparison_operators/(equal.cc,
15 greater.cc, greater_or_equal.cc, less.cc, less_or_equal.cc,
17 * testsuite/tr1/6_containers/array/cons/aggregate_initialization.cc:
19 * testsuite/tr1/6_containers/array/element_access/at_out_of_range.cc:
21 * testsuite/tr1/6_containers/array/iterators/end_is_one_past.cc: New.
22 * testsuite/tr1/6_containers/array/requirements/(contiguous.cc,
23 instantiate, typedefs, zero_size_arrays): New.
25 2004-10-21 Paolo Carlini <pcarlini@suse.de>
26 Benjamin Kosnik <bkoz@redhat.com>
28 * include/bits/basic_string.h (_M_set_length_and_sharable): New.
29 * include/bits/basic_string.tcc (_S_construct, assign(const _CharT*,
30 size_type), _M_mutate, _M_clone): Use it.
31 (_Rep::_S_create): Don't set/call _M_length/_M_set_sharable here.
33 2004-10-21 Paolo Carlini <pcarlini@suse.de>
34 Dhruv Matani <dhruvbird@gmx.net>
35 Nathan Myers <ncm@cantrip.org>
37 * include/bits/vector.tcc (_M_insert_aux, _M_fill_insert,
38 _M_range_insert): Check at the outset that we are not trying
39 to exceed max_size, then deal properly with __len overflows.
40 * testsuite/23_containers/vector/modifiers/insert/1.cc: New.
42 * testsuite/testsuite_allocator.h: Remove redundant include.
44 2004-10-20 Paolo Carlini <pcarlini@suse.de>
46 * include/ext/bitmap_allocator.h (allocate): Throw std::bad_alloc
48 * include/ext/malloc_allocator.h (allocate): Likewise.
49 * include/ext/mt_allocator.h (allocate): Likewise.
50 * include/ext/new_allocator.h (allocate): Likewise.
51 * include/ext/array_allocator.h: Use __throw_bad_alloc().
52 * include/ext/pool_allocator.h: Use __builtin_expect.
53 * testsuite/ext/array_allocator/check_allocate_max_size.cc: New.
54 * testsuite/ext/bitmap_allocator/check_allocate_max_size.cc: Likewise.
55 * testsuite/ext/malloc_allocator/check_allocate_max_size.cc: Likewise.
56 * testsuite/ext/mt_allocator/check_allocate_max_size.cc: Likewise.
57 * testsuite/ext/new_allocator/check_allocate_max_size.cc: Likewise.
58 * testsuite/ext/pool_allocator/check_allocate_max_size.cc: Likewise.
59 * testsuite/testsuite_allocator.h (check_allocate_max_size): New test.
61 2004-10-19 Paolo Carlini <pcarlini@suse.de>
63 * testsuite/performance/20_util/allocator/list_sort_search.cc:
64 Include <ext/new_allocator.h>.
65 * testsuite/performance/20_util/allocator/map_mt_find.cc: Likewise.
67 2004-10-18 Paolo Carlini <pcarlini@suse.de>
69 * include/bits/basic_string.tcc (_M_mutate): Do not reallocate
70 unnecessarily when _M_rep() == &_S_empty_rep() and __new_size
71 == capacity() (== 0): is ok to just leave everything unchanged.
73 * include/bits/basic_string.h: Minor formatting fixes.
74 * include/bits/basic_string.tcc: Likewise.
76 2004-10-17 Benjamin Kosnik <bkoz@redhat.com>
78 * include/ext/mt_allocator.h (__pool::_M_get_align): New.
79 (__mt_alloc::allocate): Use it.
80 * src/mt_allocator.cc (__pool::_M_reclaim_block): Use it.
81 (__pool::_M_reserve_block): Simplify block allocation.
83 2004-10-17 Dhruv Matani <dhruvbird@gmx.net>
84 Paolo Carlini <pcarlini@suse.de>
86 * include/ext/bitmap_allocator.h: Change unsigned int -> size_t: this
87 makes the code 64-bit correct and also fixes (together with using at
88 the beginning a bitmap 2 * size_t bytes wide) alignment issues: now
89 8 is guaranteed, easily tunable to 16 via _BALLOC_ALIGN_BYTES.
90 Fix pthread-rope7.cc fail by nulling out __mini_vector<> destructor.
91 * src/bitmap_allocator.cc: Change to size_t.
92 * config/linker-map.gnu: Adjust.
94 2004-10-16 Benjamin Kosnik <bkoz@redhat.com>
96 * include/tr1/array: Don't use layout_type.
98 2004-10-16 Sashan Govender <sashang@gmail.com>
100 * include/tr1/array (array::end const): Fix casting from iterator
103 2004-10-15 Paolo Carlini <pcarlini@suse.de>
105 * include/ext/bitmap_allocator.h: Qualify ::operator delete.
106 * src/bitmap_allocator.cc: Likewise.
107 * src/mt_allocator.cc: Use ::operator delete, not delete,
108 consistently with ::operator new.
110 * include/ext/bitmap_allocator.h (deallocate): Check for null
112 * testsuite/ext/bitmap_allocator/check_deallocate_null.cc: New.
113 * testsuite/testsuite_allocator.h (check_deallocate_null): Add test.
115 2004-10-14 Benjamin Kosnik <bkoz@redhat.com>
117 * include/ext/mt_allocator.h (__mt_alloc::deallocate): Check for
119 * include/ext/pool_allocator.h (debug_allocator::deallocate):
121 * include/ext/debug_allocator.h (debug_allocator::deallocate):
122 Throw exceptions, don't abort.
123 * include/ext/array_allocator.h
124 (array_allocator_base::deallocate): Remove unused parameters.
125 * testsuite/testsuite_allocator.h (check_deallocate_null): New.
126 * testsuite/ext/mt_allocator/check_deallocate_null.cc: New.
127 * testsuite/ext/mt_allocator/check_deallocate_null_thread.cc: New.
128 * testsuite/ext/array_allocator/check_deallocate_null.cc: New.
129 * testsuite/ext/debug_allocator/check_deallocate_null.cc: New.
130 * testsuite/ext/malloc_allocator/check_deallocate_null.cc: New.
131 * testsuite/ext/new_allocator/check_deallocate_null.cc: New.
132 * testsuite/ext/pool_allocator/check_deallocate_null.cc: New.
134 * testsuite/testsuite_allocator.h (check_new): Add instance argument.
135 * testsuite/ext/array_allocator/check_new.cc: New.
137 2004-10-14 Paolo Carlini <pcarlini@suse.de>
139 * include/ext/bitmap_allocator.h (bitmap_allocator::_Alloc_block):
140 Rename __unused to __M_unused.
142 2004-10-14 Benjamin Kosnik <bkoz@redhat.com>
144 * testsuite/ext/headers.cc: Add includes, compile only.
145 * testsuite/ext/hash_map.cc: Move to...
146 * testsuite/ext/hash_map/1.cc: ...here.
147 * testsuite/ext/14648.cc: Move to...
148 * testsuite/ext/hash_map/14648.cc: ...here.
149 * testsuite/ext/hash_map/instantiate.cc: Add.
150 * testsuite/ext/hash_set.cc: Move to...
151 * testsuite/ext/hash_set/1.cc: ...here.
152 * testsuite/ext/hash_set_explicit_instantiation.cc: Move to...
153 * testsuite/ext/hash_set/instantiate.cc: ...here.
154 * testsuite/ext/hash_check_construct_destroy.cc: Move to...
155 * testsuite/ext/hash_set/check_construct_destroy.cc: ...here.
156 * testsuite/ext/slist_check_construct_destroy.cc: Move to...
157 * testsuite/ext/slist/check_construct_destroy.cc: ...here.
158 * testsuite/ext/slist_explicit_instantiation.cc: Move to...
159 * testsuite/ext/slist/instantiate.cc: ...here.
161 2004-10-14 Benjamin Kosnik <bkoz@redhat.com>
163 * include/ext/mt_allocator.h: Tweaks.
164 * src/mt_allocator.cc: Same.
166 2004-10-14 Dhruv Matani <dhruvbird@gmx.net>
168 * ext/bitmap_allocator.h: Clean-up add/remove functions.
169 * src/bitmap_allocator.cc: New file. Contains the out-of-line
170 function definitions, static initialization of variables, and
171 explicit instantiations needed for the allocator.
172 * src/Makefile.am: Add.
173 * src/Makefile.in: Regenerate.
174 * config/linker.map.gnu: Add the necessary symbols.
176 2004-10-13 Paolo Carlini <pcarlini@suse.de>
178 * include/bits/basic_string.tcc (_S_create): Use consistently
179 the exponential policy, simplify.
180 * testsuite/performance/21_strings/string_append_2.cc: New.
182 * include/ext/array_allocator.h (allocate): Fix bad_alloc check.
183 * testsuite/ext/array_allocator/2.cc: Fix wrt 64-bit archs (in
184 that case sizeof(_Rep) == 24).
186 2004-10-12 Paolo Carlini <pcarlini@suse.de>
189 * include/bits/stl_tree.h (erase(iterator, iterator)): Revert
190 wrong commit of 2004-10-07.
192 2004-10-12 Scott Snyder <snyder@fnal.gov>
195 * testsuite/23_containers/set/modifiers/17948.cc: New.
197 2004-10-11 Benjamin Kosnik <bkoz@redhat.com>
199 * include/bits/stl_deque.h: Correct for over-long lines.
201 2004-10-11 Benjamin Kosnik <bkoz@redhat.com>
204 * include/ext/mt_allocator.h (__pool::_M_destroy): New.
205 * src/mt_allocator.cc (__pool::~__pool): Change definitions to
207 * acconfig.h: Remove _GLIBCXX_USE___CXA_ATEXIT.
208 * acinclude.m4 (GLIBCXX_ENABLE_CXA_ATEXIT): Remove.
209 * configure.ac: Remove call to GLIBCXX_ENABLE_CXA_EXIT.
210 * configure: Regenerate.
211 * config/linker-map.gnu: Tweak exports.
212 * docs/html/ext/mt_allocator.html: Update docs.
213 * testsuite/ext/mt_allocator/deallocate_global-2.cc: Fix.
214 * testsuite/ext/mt_allocator/deallocate_global-4.cc: Fix.
215 * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: Fix.
216 * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: Fix.
217 * testsuite/ext/mt_allocator/deallocate_local-2.cc: Fix.
218 * testsuite/ext/mt_allocator/deallocate_local-4.cc: Fix.
219 * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: Fix.
220 * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: Fix.
222 2004-10-11 Benjamin Kosnik <bkoz@redhat.com>
224 PR libstdc++/16614 continued.
225 * include/ext/mt_allocator.h
226 (__per_type_pool_policy::_S_get_pool): Use saner defaults based on
227 specific type characteristics.
228 (__pool_base): Add constructor that takes a _Tune argument.
230 * testsuite/ext/mt_allocator/tune-2.cc: Adjust default.
231 * testsuite/ext/mt_allocator/tune-4.cc: Same.
232 * testsuite/ext/mt_allocator/tune-3.cc: Same.
234 2004-10-11 Joachim Kuebart <kuebart@mathematik.uni-ulm.de>
235 Paolo Carlini <pcarlini@suse.de>
237 * src/pool_allocator.cc (__pool_alloc_base::_M_allocate_chunk):
238 Deal properly with exceptions thrown by ::operator new(size_t).
239 * testsuite/ext/pool_allocator/allocate_chunk.cc: New.
241 * include/ext/pool_allocator.h: Include <cstdlib>.
243 2004-10-10 Benjamin Kosnik <bkoz@redhat.com>
245 * include/bits/functexcept.h: Add guards.
247 * acinclude.m4 (GLIBCXX_ENABLE_THREADS): Tweak test.
248 * configure: Regenerate.
250 2004-10-10 Paolo Carlini <pcarlini@suse.de>
252 * config/locale/gnu/monetary_members.cc (_S_construct_pattern):
253 Give __ret a default value, thus avoiding spurious warnings.
255 * testsuite/performance/27_io/filebuf_sgetn_unbuf.cc: Open either
256 words or linux.words, otherwise exit.
257 * testsuite/performance/27_io/ifstream_getline.cc: Slighlty tweak.
259 2004-10-09 Paolo Carlini <pcarlini@suse.de>
261 * include/std/std_memory.h (__get_temporary_buffer): Don't use
262 INT_MAX, prefer numeric_limits<ptrdiff_t>::max(), ok on 64-bit
264 * testsuite/20_util/memory/auto_ptr/assign_neg.cc: Adjust dg-error
267 2004-10-08 Benjamin Kosnik <bkoz@redhat.com>
269 * acconfig.h: Add _GLIBCXX_USE___CXA_ATEXIT.
270 * acinclude.m4 (GLIBCXX_ENABLE_CXA_ATEXIT): New.
271 * configure.ac: Call GLIBCXX_ENABLE_CXA_EXIT.
272 * configure: Regenerate.
273 * src/mt_allocator.cc (__pool::~__pool): Make conditional on
274 _GLIBCXX_USE___CXA_ATEXIT macro.
275 * docs/html/ext/mt_allocator.html: Add note about deallocation.
276 * testsuite/ext/mt_allocator/deallocate_local-2.cc: Guard checks
277 with _GLIBCXX_USE___CXA_ATEXIT.
278 * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: Same.
279 * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: Same.
280 * testsuite/ext/mt_allocator/deallocate_global-4.cc: Same.
281 * testsuite/ext/mt_allocator/deallocate_global-2.cc: Same.
282 * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: Same.
283 * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: Same.
284 * testsuite/ext/mt_allocator/deallocate_local-4.cc: Same.
286 2004-10-07 Phil Edwards <phil@codesourcery.com>
288 * testsuite/lib/libstdc++.exp: Update list of undefined functions.
290 2004-10-07 Paolo Carlini <pcarlini@suse.de>
292 * include/bits/list.tcc (operator=): Avoid iterator postincrement.
293 * include/bits/stl_tree.h (erase(iterator, iterator)): Likewise.
295 2004-10-07 Benjamin Kosnik <bkoz@redhat.com>
298 * include/tr1/array: New.
299 * include/Makefile.am (tr1_headers): New.
301 (install-headers): New.
302 (allstamped): Add stamp-tr1.
304 * include/ext/array_allocator.h: New.
305 * include/Makefile.am: Add.
306 * include/Makefile.in: Regenerate.
307 * testsuite/ext/array_allocator/1.cc: New.
308 * testsuite/ext/array_allocator/2.cc: New.
310 2004-10-07 Richard Earnshaw <rearnsha@arm.com>
312 * testsuite/lib/libstdc++.exp (libstdc++_exit): New proc.
314 2004-10-07 Roger Sayle <roger@eyesopen.com>
317 * configure.ac: Newlib does not provide strtold.
318 * configure: Regenerate.
320 2004-10-06 Benjamin Kosnik <bkoz@redhat.com>
322 * acinclude.m4 (GLIBCXX_ENABLE_THREADS): Set enable_thread.
323 (GLIBCXX_CONFIGURE_TESTSUITE): Use it.
324 * configure: Regenerated.
325 * testsuite/Makefile.am (CLEANFILES): Add TEST for
326 check-performance executables.
329 * testsuite/Makefile.in: Regenerate.
330 * scripts/create_testsuite_files: Filter thread tests.
332 * testsuite/thread/pthread1.cc: Remove macro conditionals: this
333 file will only be run by thread enabled configurations.
334 * testsuite/thread/pthread7-rope.cc: Same, add rope_type typedef.
335 * testsuite/thread/pthread6.cc: Same.
336 * testsuite/thread/pthread5.cc: Same.
337 * testsuite/thread/pthread4.cc: Same.
338 * testsuite/thread/pthread3.cc: Same.
339 * testsuite/thread/pthread2.cc: Same.
341 * testsuite/ext/mt_allocator/instantiate.cc: Add in __GTHREADS guard.
342 * testsuite/ext/mt_allocator/deallocate_global-1.cc: Move to...
343 * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: ...here.
344 * testsuite/ext/mt_allocator/deallocate_global-3.cc: Move to...
345 * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: ...here.
346 * testsuite/ext/mt_allocator/deallocate_local-1.cc: Move to...
347 * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: ...here.
348 * testsuite/ext/mt_allocator/deallocate_local-3.cc: Move to...
349 * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: ...here.
351 2004-10-06 Benjamin Kosnik <bkoz@redhat.com>
352 Paolo Carlini <pcarlini@suse.de>
355 * src/mt_allocator.cc (__pool<true>::_M_reserve_block): Revert
356 to old locking order.
358 2004-10-06 Paolo Carlini <pcarlini@suse.de>
360 * include/std/std_sstream.h (_M_sync): When the caller is
361 setbuf, don't trust _M_string.capacity() to be the size of
362 the buffer area, use _M_string.size() in this case.
363 * testsuite/27_io/basic_stringbuf/setbuf/char/4.cc: New.
364 * testsuite/27_io/basic_stringbuf/setbuf/wchar_t/4.cc: Likewise.
366 * include/bits/sstream.tcc (overflow): Avoid calling string::assign
367 unnecessarily when the current _M_string is empty.
369 2004-10-06 Paolo Carlini <pcarlini@suse.de>
371 * include/bits/stl_algo.h (__reverse(bidirectional_iterator_tag)):
372 Avoid iterator postincrement.
373 (__rotate): Likewise.
375 * include/bits/stl_algo.h: Minor formatting tweaks.
377 2004-10-06 Christopher Jefferson <caj@cs.york.ac.uk>
379 * include/bits/stl_algo.h (__reverse(random_access_iterator_tag)):
380 Avoid iterator postincrement; fix swapping middle element with
381 itself on odd-length inputs.
383 2004-10-05 Benjamin Kosnik <bkoz@redhat.com>
386 * include/ext/mt_allocator.h (__pool_base::_Tune): Add default
387 options as compile-time constant enums.
388 (__pool_base::_Tune::is_default): New.
389 (__pool_base::_Block_address): New.
390 (__pool_base): Rearrange data members.
391 (__pool::_M_reserve_memory): To _M_reserve_block.
392 (__pool::_M_reclaim_memory): To _M_reclaim_block.
393 (__pool::_Bin_record): Add _Block_address data member.
394 (__pool<false>): Add _M_thread_freelist_initial.
395 (__pool::~__pool): Declare.
396 (__common_pool_policy): Move static data member to...
397 (__common_pool_policy::_S_get_pool): ...here, make static local.
398 (__per_type_pool_policy): Move static data member to...
399 (__per_type_pool_policy::_S_get_pool): ...here, make static local.
400 (__mt_alloc::__mt_alloc): Call __policy_type::_S_get_pool.
401 Remove static member definitions. Use define for __default_policy.
402 * src/mt_allocator.cc: Same.
403 * config/linker-map.gnu: Don't export _S_get_pool. Renames.
404 * testsuite/ext/new_allocator: New.
405 * testsuite/ext/new_allocator/instantiate.cc: New.
406 * testsuite/ext/new_allocator/check_new.cc: New.
407 * testsuite/ext/new_allocator/deallocate_global.cc: New.
408 * testsuite/ext/new_allocator/deallocate_local.cc: New.
409 * testsuite/ext/mt_allocator/instantiate.cc: Instantiate all
411 * testsuite/ext/mt_allocator/deallocate_global-1.cc: New.
412 * testsuite/ext/mt_allocator/deallocate_global-2.cc: New.
413 * testsuite/ext/mt_allocator/deallocate_global-3.cc: New.
414 * testsuite/ext/mt_allocator/deallocate_global-4.cc: New.
415 * testsuite/ext/mt_allocator/deallocate_local-1.cc: New.
416 * testsuite/ext/mt_allocator/deallocate_local-2.cc: New.
417 * testsuite/ext/mt_allocator/deallocate_local-3.cc: New.
418 * testsuite/ext/mt_allocator/deallocate_local-4.cc: New.
419 * testsuite/ext/mt_allocator/deallocate.cc: New.
420 * testsuite/ext/malloc_allocator/deallocate.cc: New.
421 * testsuite/ext/malloc_allocator/deallocate_global.cc: New.
422 * testsuite/ext/malloc_allocator/deallocate_local.cc: New.
424 2004-10-05 Ulrich Weigand <uweigand@de.ibm.com>
426 * configure.host (abi_baseline_pair): Define for s390-*-linux* and
428 * config/abi/s390-linux-gnu/baseline_symbols.txt: Add missing symbols.
429 * config/abi/s390x-linux-gnu/baseline_symbols.txt: New file.
431 2004-10-05 Christopher Jefferson <caj@cs.york.ac.uk>
433 * include/bits/stl_algobase.h (iter_swap): delegate to swap via
434 __iter_swap when iterator's value_types are equal.
435 (struct __iter_swap): New.
437 2004-10-04 Benjamin Kosnik <bkoz@redhat.com>
439 * configure.ac (libtool_VERSION): To 6:3:0.
440 * configure: Regnerate.
441 * testsuite/testsuite_abi.cc (check_version): Add 3.4.3.
443 2004-10-04 Roger Sayle <roger@eyesopen.com>
444 Eric Botcazou <ebotcazou@libertysurf.fr>
447 * config/linker-map.gnu: Synchronize the current list of stub
448 functions from libmath.
450 2004-10-03 Roger Sayle <roger@eyesopen.com>
452 * config/locale/generic/c_locale.cc (__convert_to_v): Use
453 _GLIBCXX_HAVE_STRTOF instead _GLIBCXX_USE_C99 to check for strtof.
454 Likewise, use _GLIBCXX_HAVE_STRTOLD instead of _GLIBCXX_USE_C99
455 to check for presence of strtold.
457 2004-10-03 Paolo Carlini <pcarlini@suse.de>
459 * include/bits/stl_list.h: Trivial formatting fixes.
460 * include/bits/stl_tree.h: Likewise.
462 2004-10-03 Paolo Carlini <pcarlini@suse.de>
464 * include/bits/sstream.tcc (seekpos): In case of success, just
467 2004-10-01 Paolo Carlini <pcarlini@suse.de>
469 * include/bits/sstream.tcc (pbackfail): Implement correctly
470 27.7.1.3/2, bullet 2: if mode & ios_base::out is false do not
472 * testsuite/27_io/basic_stringbuf/pbackfail/char/1.cc: New.
473 * testsuite/27_io/basic_stringbuf/pbackfail/char/2.cc: Likewise.
474 * testsuite/27_io/basic_stringbuf/pbackfail/wchar_t/1.cc: Likewise.
475 * testsuite/27_io/basic_stringbuf/pbackfail/wchar_t/2.cc: Likewise.
476 * testsuite/27_io/basic_istream/putback/char/1.cc: Tweak consistently.
478 2004-10-01 Paolo Carlini <pcarlini@suse.de>
480 * include/bits/sstream.tcc (seekpos): Minor rearrangement of two
481 conditionals consistently with seekoff.
482 * include/std/std_sstream.h (setbuf): Avoid a string temporary.
483 (_M_sync): Simplify a bit, clean-up comment.
485 2004-09-30 Paolo Carlini <pcarlini@suse.de>
487 PR libstdc++/10975 (DR 453)
488 * include/bits/sstream.tcc (seekoff): Don't fail if __beg == 0
490 * docs/html/ext/howto.html: Add an entry for DR 453.
491 * testsuite/27_io/basic_stringbuf/seekoff/char/10975.cc: New.
492 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/10975.cc: Likewise.
493 * testsuite/27_io/basic_istream/tellg/char/1.cc: Tweak consistently.
494 * testsuite/27_io/basic_ostream/tellp/char/1.cc: Likewise.
495 * testsuite/27_io/basic_ostream/tellp/char/2.cc: Likewise.
496 * testsuite/27_io/basic_istream/seekg/char/2346-fstream.cc: Fix and
498 * testsuite/27_io/basic_istream/seekp/char/2346-fstream.cc: ... here.
499 * testsuite/27_io/basic_istream/seekg/char/2346-sstream.cc: Fix and
501 * testsuite/27_io/basic_istream/seekp/char/2346-sstream.cc: ... here.
503 2004-09-29 Paolo Carlini <pcarlini@suse.de>
505 * include/std/std_sstream.h (basic_stringbuf(ios_base::openmode)):
506 Don't use _M_stringbuf_init, keep the pointers null, per 27.7.1.1.
507 (str()): Slightly tweak, protect from pptr() == 0.
508 (_M_update_egptr()): Likewise.
509 * include/bits/sstream.tcc (ssekoff, seekpos): In order to check
510 for an empty buffer use __beg instead of _M_string.capacity().
511 * testsuite/27_io/basic_stringbuf/cons/char/1.cc: New.
512 * testsuite/27_io/basic_stringbuf/cons/wchar_t/1.cc: Likewise.
514 * testsuite/27_io/basic_filebuf/cons/char/1.cc: New.
515 * testsuite/27_io/basic_filebuf/cons/wchar_t/1.cc: Likewise.
516 * testsuite/27_io/basic_streambuf/cons/char/1.cc: Update.
517 * testsuite/27_io/basic_streambuf/cons/wchar_t/1.cc: Likewise.
519 2004-09-29 Paolo Carlini <pcarlini@suse.de>
520 Benjamin Kosnik <bkoz@redhat.com>
522 * testsuite/testsuite_io.h (class constraint_buf): New, extended
523 and templatized version of constraint_filebuf; add typedefs for
524 streambuf/stringbuf/filebuf and wchar_t counterparts.
526 2004-09-28 Paolo Carlini <pcarlini@suse.de>
529 * include/bits/basic_string.h (_M_dispose, _M_refcopy,
530 basic_string()): When _GLIBCXX_FULLY_DYNAMIC_STRING is defined,
531 don't deal with _S_empty_rep.
532 * include/bits/basic_string.tcc (_S_construct, _M_destroy,
533 _M_leak_hard, _M_mutate): Likewise.
534 * acinclude.m4 (GLIBCXX_ENABLE_FULLY_DYNAMIC_STRING): New.
535 * acconfig.h: Add corresponding undef.
536 * configure.ac: Use GLIBCXX_ENABLE_FULLY_DYNAMIC_STRING.
537 * docs/html/configopts.html: Document --enable-fully-dynamic-string.
538 * configure: Regenerate.
539 * config.h.in: Likewise.
541 2004-09-28 Benjamin Kosnik <bkoz@redhat.com>
542 Paolo Carlini <pcarlini@suse.de>
544 * testsuite/21_strings/basic_string/operations/char/1.cc: New.
545 * testsuite/21_strings/basic_string/operations/wchar_t/1.cc: New.
546 * testsuite/21_strings/basic_string/element_access/char/empty.cc: New.
547 * testsuite/21_strings/basic_string/element_access/wchar_t/empty.cc:
550 2004-09-28 Paolo Carlini <pcarlini@suse.de>
552 * README: Remove obsolete entry about include/c_shadow.
554 2004-09-24 H.J. Lu <hongjiu.lu@intel.com>
557 * testsuite/lib/libstdc++.exp: Don't use global ld_library_path.
559 2004-09-24 Paolo Carlini <pcarlini@suse.de>
561 * src/localename.cc (locale::locale(const char*)): Minor tweaks:
562 rename a variable, move an assignment.
563 (locale::_Impl::_Impl(const char*, size_t)): Likewise, minor tweak.
565 2004-09-24 Paul Brook <paul@codesourcery.com>
567 * testsuite/27_io/basic_filebuf/sgetn/char/1-in.cc: XFAIL more arm
569 * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: Ditto.
570 * testsuite/27_io/basic_filebuf/sgetn/char/2-in.cc: Ditto.
571 * testsuite/27_io/basic_filebuf/sgetn/char/2-io.cc: Ditto.
572 * testsuite/27_io/basic_istream/readsome/char/6746-2.cc: Ditto.
573 * testsuite/ext/stdio_filebuf/char/10063-2.cc: Ditto.
574 * testsuite/ext/stdio_filebuf/char/10063-3.cc: Ditto.
576 2004-09-23 Zack Weinberg <zack@codesourcery.com>
578 * testsuite/20_util/memory/auto_ptr/assign_neg.cc
579 * testsuite/23_containers/map/operators/1_neg.cc
580 * testsuite/23_containers/set/operators/1_neg.cc:
581 Update locations and/or regexps of dg-error markers.
583 2004-09-23 P.J. Darcy <darcypj@us.ibm.com>
585 * include/Makefile.am (thread_host_headers): Add gthr-tpf.h.
586 Add rule to build ${host_builddir}/gthr-tpf.h.
587 * include/Makefile.in: Regenerate.
589 2004-09-23 Paolo Carlini <pcarlini@suse.de>
590 Magnus Fromreide <magfr@lysator.liu.se>
592 * include/bits/boost_concept_check.h (struct _SequenceConcept):
593 Remove wrong requirement, i.e., not present in Table 67.
595 2004-09-21 Paolo Carlini <pcarlini@suse.de>
597 PR libstdc++/12882 (cont)
598 * acinclude.m4 (GLIBCXX_CHECK_LFS): Check for fstat64 too.
599 * configure: Regenerate.
600 * config/io/basic_file_stdio.cc (__basic_file<>::showmanyc): When
601 _GLIBCXX_USE_LFS use fstat64 and lseek64, thus providing a non
602 trivial showmanyc for large files too.
604 2004-09-17 Jonathan Wakely <redi@gcc.gnu.org>
606 * include/bits/stl_algo.h (remove): Remove too restrictive
609 2004-09-17 Paolo Carlini <pcarlini@suse.de>
611 * include/bits/fstream.tcc (xsgetn): Slightly tweak conditional,
612 as per Nathan's original suggestion.
614 2004-09-17 Paolo Carlini <pcarlini@suse.de>
616 * testsuite/ext/mt_allocator/tune-1.cc: Use VERIFY, clean
618 * testsuite/ext/mt_allocator/tune-2.cc: Likewise.
619 * testsuite/ext/mt_allocator/tune-3.cc: Likewise.
620 * testsuite/ext/mt_allocator/tune-4.cc: Likewise.
622 2004-09-17 Paolo Carlini <pcarlini@suse.de>
623 Andrea Arcangeli <andrea@suse.de>
625 * config/io/basic_file_stdio.cc (__basic_file<>::close)): Don't
626 call unnecessarily sync, that is fflush: the library, since 3.4.0
627 does not use buffered fread/fwrite.
628 * include/bits/fstream.tcc (basic_filebuf<>::overflow): Likewise.
630 2004-09-15 Mark Mitchell <mark@codesourcery.com>
632 * config/cpu/arm/cxxabi_tweaks.h (__cxa_cdtor_return_type):
634 * config/cpu/generic/cxxabi_tweaks.h (__cxa_cdtor_return_type):
636 * libsupc++/cxxabi.h (__cxa_cdtor_return_type): New type.
637 (__cxa_vec_new): Use it.
638 (__cxa_vec_new2): Likewise.
639 (__cxa_vec_new3): Likewise.
640 (__cxa_vec_cdtor): Likewise.
641 (__cxa_vec_cctor): Likeiwse.
642 (__cxa_vec_dtor): Likewise.
643 (__cxa_vec_cleanup): Likewise.
644 (__cxa_vec_delete2): Likewise.
645 (__cxa_vec_delete3): Likewise.
646 * libsupc++/vec.cc (__cxa_vec_new): Likewise.
647 (__cxa_vec_new2): Likewise.
648 (__cxa_vec_new3): Likewise.
649 (__cxa_vec_cdtor): Likewise.
650 (__cxa_vec_cctor): Likeiwse.
651 (__cxa_vec_dtor): Likewise.
652 (__cxa_vec_cleanup): Likewise.
653 (__cxa_vec_delete2): Likewise.
654 (__cxa_vec_delete3): Likewise.
655 (__aeabi_vec_ctor_nocookie_nodtor): New function.
656 (__aeabi_vec_ctor_cookie_nodtor): Likewise.
657 (__aeabi_vec_cctor_nocookie_nodtor): Likewise.
658 (__aeabi_vec_new_cookie_noctor): Likewise.
659 (__aeabi_vec_new_nocookie): Likewise.
660 (__aeabi_vec_new_cookie_nodtor): Likewise.
661 (__aeabi_vec_new_cookie): Likewise.
662 (__aeabi_vec_dtor): Likewise.
663 (__aeabi_vec_dtor_cookie): Likewise.
664 (__aeabi_vec_delete): Likewise.
665 (__aeabi_vec_delete3): Likewise.
666 (__aeabi_vec_delete3_nodtor): Likewise.
667 (__aeabi_atexit): Likewise.
669 2004-09-14 Nathan Myers <ncm@cantrip.org>
671 * include/bits/fstream.tcc (xsgetn): Slightly tweak the recent fix
672 for 11722: copy can replace move; the common case is __avail == 0.
674 2004-09-14 Paolo Carlini <pcarlini@suse.de>
676 * include/bits/cpp_type_traits.h: Rename __is_trivially_copyable
677 to __is_scalar, more clear and consistent with "tr1" naming.
678 * include/bits/stl_algobase.h: Update consistently throughout.
680 2004-09-13 Paolo Carlini <pcarlini@suse.de>
683 * include/std/std_fstream.h (xsgetn): Declare only.
684 * include/bits/fstream.tcc (xsgetn): Define, optimize for the
685 always_noconv() case: when __n > __buflen, copy the available
686 buffer and issue a direct read.
687 * testsuite/performance/27_io/filebuf_sgetn_unbuf.cc: New.
689 * include/bits/fstream.tcc (xsputn): Minor tweak, reorder a
692 2004-09-13 Hans-Peter Nilsson <hp@bitrange.com>
694 * testsuite/lib/libstdc++.exp: Use gcc wrapper.exp and call
695 libstdc++_maybe_build_wrapper instead of using local code.
697 2004-09-08 Benjamin Kosnik <bkoz@redhat.com>
699 * config/linker-map.gnu (GLIBCXX_3.4.3): New, adjust symbol exports.
701 2004-09-03 Jan Beulich <jbeulich@novell.com>
703 * crossconfig.m4: Add NetWare as a target.
704 * configure: Regenerate.
706 2004-09-02 Mark Mitchell <mark@codesourcery.com>
708 * libsupc++/typeinfo: Honor __GXX_MERGED_TYPEINFO_NAMES if already
711 2004-09-02 Benjamin Kosnik <bkoz@redhat.com>
712 Simon Richter <Simon.Richter@hogyros.de>
715 * include/bits/istream.tcc: Add extern template for iostream
716 char and wchar_t instantiations.
718 2004-09-02 Benjamin Kosnik <bkoz@redhat.com>
719 Leland Wang <llwang@infor.org>
722 * include/ext/ropeimpl.h (rope::_S_compare): Use
723 _Rope_constants::_S_leaf.
725 2004-09-02 Benjamin Kosnik <bkoz@redhat.com>
728 * include/Makefile.am (ext_headers): Remove demangle.h.
729 * include/Makefile.in: Regenerate.
730 * include/ext/demangle.h: Remove.
732 2004-09-01 Benjamin Kosnik <bkoz@redhat.com>
735 * include/ext/mt_allocator.h (__mt_base): Not type dependent,
737 (__pool): New, specialize.
738 (__common_pool): New, static bits here.
739 (__per_type_pool): New, and here.
740 (__mt_alloc_base): New.
741 (__mt_alloc): Add template parameter, inherit from it.
742 * src/allocator.cc: Split this...
743 * src/allocator-inst.cc: And this...
744 * src/pool_allocator.cc: ...into this.
745 * src/mt_allocator.cc: ... and this. Add definitions for
747 * src/Makefile.am (sources): Split allocator.cc to
748 pool_allocator.cc and mt_allocator.cc.
749 * src/Makefile.in: Regenerate.
750 * config/linker-map.gnu: Add symbols.
751 * docs/html/ext/mt_allocator.html: Document new design.
752 * testsuite/ext/mt_allocator/tune-1.cc: New.
753 * testsuite/ext/mt_allocator/tune-2.cc: New.
754 * testsuite/ext/mt_allocator/tune-3.cc: New.
755 * testsuite/ext/mt_allocator/tune-4.cc: New.
757 * testsuite/testsuite_allocator.h (__gnu_test::check_new): New.
758 * testsuite/ext/allocators.cc: Use check_new, split into...
759 * testsuite/ext/mt_allocator/check_new.cc: this.
760 * testsuite/ext/pool_allocator/check_new.cc: this.
761 * testsuite/ext/malloc_allocator/check_new.cc: this.
762 * testsuite/ext/debug_allocator/check_new.cc: this.
763 * testsuite/ext/mt_allocator/instantiate.cc: this.
764 * testsuite/ext/pool_allocator/instantiate.cc: this.
765 * testsuite/ext/malloc_allocator/instantiate.cc: this.
766 * testsuite/ext/debug_allocator/instantiate.cc: this.
768 2004-08-30 Phil Edwards <phil@codesourcery.com>
770 * docs/html/install.html: Update locales list (from Paolo).
771 Remove other redundant information and point to the GCC install
774 2004-08-30 Benjamin Kosnik <bkoz@redhat.com>
776 * include/ext/pool_allocator.h: Rename __pool_base to
778 * src/allocator.cc: Same.
779 * config/linker-map.gnu: Same.
781 2004-08-30 Paolo Carlini <pcarlini@suse.de>
782 Kenneth C. Schalk <ken@xorian.net>
785 * config/io/basic_file_stdio.cc (__basic_file<char>::close()):
786 Check the return value of fclose/sync, loop on EINTR.
787 (__basic_file<char>::sys_open): Likewise, for sync.
789 2004-08-29 Paolo Carlini <pcarlini@suse.de>
791 * include/bits/locale_facets.tcc (time_get<>::_M_extract_via_format,
792 case 'S'): Allow for at least one leap-second (as per C99, 7.23.1
793 and 7.23.3.5), two if !_GLIBCXX_USE_C99.
794 * testsuite/22_locale/time_get/get_time/char/4.cc: New.
795 * testsuite/22_locale/time_get/get_time/wchar_t/4.cc: Likewise.
797 2004-08-27 Jason Merrill <jason@redhat.com>
800 * libsupc++/guard.cc (static_mutex): Internal class implementing a
801 recursive mutex which controls initialization of local statics.
802 (__gnu_cxx::recursive_init): New exception class.
803 (__cxa_guard_acquire): Deal with locking and recursion detection.
804 (acquire_1, __cxa_guard_abort, __cxa_guard_release): Likewise.
806 2004-08-27 Matthias Klose <doko@debian.org>
808 * configure.host: For mips*-*-linux* update cpu_include_dir
809 after atomicity_dir is set.
811 2004-08-27 Matthias Klose <doko@debian.org>
813 * config/abi/arm-linux-gnu/baseline_symbols.txt: New.
814 * config/abi/mips-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
815 * configure.host: Set abi_baseline_pair for arm*-*-linux* and
818 2004-08-27 Paolo Carlini <pcarlini@suse.de>
820 * testsuite/27_io/manipulators/adjustfield/wchar_t/1.cc: New.
821 * testsuite/27_io/manipulators/adjustfield/wchar_t/2.cc: Likewise.
822 * testsuite/27_io/manipulators/basefield/wchar_t/1.cc: Likewise.
823 * testsuite/27_io/manipulators/standard/wchar_t/1.cc: Likewise.
824 * testsuite/27_io/manipulators/standard/wchar_t/2.cc: Likewise.
826 * testsuite/27_io/manipulators/adjustfield/char/1.cc: Minor
828 * testsuite/27_io/manipulators/adjustfield/char/2.cc: Likewise.
829 * testsuite/27_io/manipulators/basefield/char/1.cc: Likewise.
830 * testsuite/27_io/manipulators/standard/char/1.cc: Likewise.
831 * testsuite/27_io/manipulators/standard/char/2.cc: Likewise.
833 2004-08-25 Paolo Carlini <pcarlini@suse.de>
835 PR libstdc++/17038 (partial)
836 * include/bits/locale_facets.tcc (time_put<>::do_put): Increase
838 * include/bits/locale_facets.h (class __timepunct): Add FIXME
839 comment about _M_put.
840 * config/locale/generic/time_members.cc (_M_put): Always null
842 * config/locale/gnu/time_members.cc (_M_put): Likewise.
843 * testsuite/22_locale/time_put/put/char/17038.cc: New.
844 * testsuite/22_locale/time_put/put/wchar_t/17038.cc: New.
846 2004-08-24 Paolo Carlini <pcarlini@suse.de>
848 * testsuite/27_io/basic_istringstream/rdbuf/wchar_t/2832.cc: New.
849 * testsuite/27_io/basic_istringstream/str/wchar_t/1.cc: Likewise.
850 * testsuite/27_io/basic_ostringstream/cons/wchar_t/3.cc: Likewise.
851 * testsuite/27_io/basic_ostringstream/rdbuf/wchar_t/2832.cc: Likewise.
852 * testsuite/27_io/basic_ostringstream/str/wchar_t/1.cc: Likewise.
853 * testsuite/27_io/basic_ostringstream/str/wchar_t/2.cc: Likewise.
855 * testsuite/27_io/basic_istringstream/rdbuf/char/2832.cc: Trim excess
857 * testsuite/27_io/basic_istringstream/str/char/1.cc: Likewise.
859 2004-08-22 Matthias Klose <doko@debian.org>
861 * config/abi/m68k-linux-gnu/baseline_symbols.txt: New.
862 * config/abi/sparc-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
864 2004-08-23 Paolo Carlini <pcarlini@suse.de>
866 * configure.ac: Specify version 1.9.1 in AM_INIT_AUTOMAKE.
867 * aclocal.m4: Regenerate with automake-1.9.1.
868 * configure: Regenerate.
869 * Makefile.in: Likewise.
870 * include/Makefile.in: Likewise.
871 * libmath/Makefile.in: Likewise.
872 * libsupc++/Makefile.in: Likewise.
873 * po/Makefile.in: Likewise.
874 * src/Makefile.in: Likewise.
875 * testsuite/Makefile.in: Likewise.
877 2004-08-22 Paolo Carlini <pcarlini@suse.de>
879 * include/bits/locale_facets.tcc (num_put<>::do_put(bool)): Cast
880 to a signed type, long according to the resolution of DR 359.
881 * testsuite/22_locale/num_put/put/char/9.cc: New.
882 * testsuite/22_locale/num_put/put/wchar_t/9.cc: New.
884 * include/bits/locale_facets.tcc (num_put<>::do_put(const void*)):
885 Simplify a bit: no need to clear showpos.
887 2004-08-21 Paolo Carlini <pcarlini@suse.de>
889 * include/bits/char_traits.h (struct _Char_traits_match): Remove,
892 2004-08-21 Paolo Carlini <pcarlini@suse.de>
894 * testsuite/22_locale/money_put/put/wchar_t/1.cc: Use proper
895 wchar_t type for the fill argument; minor formatting tweaks.
896 * testsuite/22_locale/money_put/put/wchar_t/12971.cc: Likewise.
897 * testsuite/22_locale/money_put/put/wchar_t/2.cc: Likewise.
898 * testsuite/22_locale/money_put/put/wchar_t/3.cc: Likewise.
899 * testsuite/22_locale/money_put/put/wchar_t/4.cc: Likewise.
900 * testsuite/22_locale/money_put/put/wchar_t/5.cc: Likewise.
901 * testsuite/22_locale/money_put/put/wchar_t/6.cc: Likewise.
903 2004-08-21 Paolo Carlini <pcarlini@suse.de>
905 * include/bits/basic_ios.tcc (basic_ios<>::copyfmt): Don't deal
906 with _M_word != _M_local_word two times, redundantly.
908 2004-08-20 Jason Merrill <jason@redhat.com>
910 * include/Makefile.am (${host_builddir}/gthr.h): Don't add
911 _GLIBCXX_ to #pragma lines.
912 * include/Makefile.in: Update.
914 2004-08-20 Paolo Carlini <pcarlini@suse.de>
916 PR libstdc++/7219 (continued)
917 * include/bits/ios_base.h (class ios_base): Expose Annex D.6
919 * testsuite/27_io/types/1.cc: Remove #if _GLIBCXX_DEPRECATED.
920 * testsuite/27_io/ios_base/cons/assign_neg.cc: Tweak dg-error
922 * testsuite/27_io/ios_base/cons/copy_neg.cc: Likewise.
924 2004-08-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
926 * cpu/hppa/atomicity.h (__exchange_and_add, __atomic_add): Add memory
927 barrier to locking asm.
929 2004-08-20 Paolo Carlini <pcarlini@suse.de>
931 * include/c_std/cmath.tcc (__cmath_power): Revert previous commit:
932 actually the warning is a front-end bug (c++/17120).
934 2004-08-20 Matthias Klose <doko@debian.org>
936 * config/abi/s390-linux-gnu/baseline_symbols.txt: New.
938 2004-08-20 Paolo Carlini <pcarlini@suse.de>
940 * include/c_std/cmath.tcc (__cmath_power): Suppress assignment
941 used as truth value warning.
943 2004-08-20 Paolo Carlini <pcarlini@suse.de>
945 * config/abi/x86_64-linux-gnu/32/baseline_symbols.txt: Add 32 bit
948 2004-08-20 Paolo Carlini <pcarlini@suse.de>
950 * config/abi/x86_64-linux-gnu/baseline_symbols.txt: Fix it.
952 2004-08-19 Benjamin Kosnik <bkoz@redhat.com>
954 * testsuite/22_locale/time_put/put/char/3.cc (test03): Don't check
956 * testsuite/22_locale/time_put/put/wchar_t/3.cc (test03): Same.
958 2004-08-19 Paolo Carlini <pcarlini@suse.de>
960 * testsuite/performance/20_util/allocator/insert.cc: For std::map
961 instantiate the allocator for a correct pair type.
962 * testsuite/performance/20_util/allocator/insert_insert.cc: Likewise.
963 * testsuite/performance/20_util/allocator/map_thread.cc: Likewise.
964 * testsuite/performance/20_util/allocator/producer_consumer.cc:
967 * testsuite/performance/20_util/allocator/list_sort_search.cc: Very
968 minor formatting fixes.
969 * testsuite/performance/20_util/allocator/map_mt_find.cc: Likewise.
971 2004-08-19 Paolo Carlini <pcarlini@suse.de>
973 * testsuite/22_locale/time_put/put/char/1.cc: Add VERIFY on the
975 * testsuite/22_locale/time_put/put/char/2.cc: Likewise.
976 * testsuite/22_locale/time_put/put/char/3.cc: Likewise.
977 * testsuite/22_locale/time_put/put/char/4.cc: Likewise.
978 * testsuite/22_locale/time_put/put/wchar_t/1.cc: Likewise.
979 * testsuite/22_locale/time_put/put/wchar_t/2.cc: Likewise.
980 * testsuite/22_locale/time_put/put/wchar_t/3.cc: Likewise.
981 * testsuite/22_locale/time_put/put/wchar_t/4.cc: Likewise.
983 2004-08-19 Paolo Carlini <pcarlini@suse.de>
985 * config/abi/x86_64-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
987 2004-08-18 Matthias Klose <doko@debian.org>
989 * config/abi/hppa-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
990 * config/abi/i386-linux-gnu/baseline_symbols.txt: New.
991 * config/abi/powerpc-linux-gnu/baseline_symbols.txt: New.
993 2004-08-17 Paolo Carlini <pcarlini@suse.de>
995 * config/abi/alpha-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
997 2004-08-17 Paolo Carlini <pcarlini@suse.de>
999 * config/abi/ia64-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1001 2004-08-17 Benjamin Kosnik <bkoz@redhat.com>
1003 * config/abi/i486-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1005 2004-08-16 Paolo Carlini <pcarlini@suse.de>
1007 * include/bits/indirect_array.h: Trivial formatting fixes.
1008 * include/bits/valarray_after.h: Likewise.
1009 * include/bits/valarray_array.h: Likewise.
1010 * src/valarray-inst.cc: Likewise.
1012 2004-08-15 Paolo Carlini <pcarlini@suse.de>
1014 * testsuite/27_io/basic_stringstream/rdbuf/char/2832.cc: Remove junk.
1015 * testsuite/27_io/basic_stringstream/str/char/1.cc: Likewise.
1016 * testsuite/27_io/basic_stringstream/str/char/3.cc: Likewise.
1018 * testsuite/27_io/basic_stringstream/rdbuf/wchar_t/2832.cc: New.
1019 * testsuite/27_io/basic_stringstream/str/wchar_t/1.cc: Likewise.
1020 * testsuite/27_io/basic_stringstream/str/wchar_t/2.cc: Likewise.
1021 * testsuite/27_io/basic_stringstream/str/wchar_t/3.cc: Likewise.
1022 * testsuite/27_io/basic_stringstream/str/wchar_t/4.cc: Likewise.
1024 2004-08-15 Paolo Carlini <pcarlini@suse.de>
1026 * include/bits/deque.tcc: Trivial formatting fixes.
1028 2004-08-15 Paolo Carlini <pcarlini@suse.de>
1030 * include/bits/deque.tcc: Trivial formatting fixes.
1032 * include/bits/locale_facets.tcc (num_get<>::do_get(&bool)):
1033 Remove unneded typedef.
1035 * include/bits/locale_facets.tcc: Very minor tweaks.
1037 * testsuite/22_locale/time_put/put/wchar_t/1.cc: Use proper
1038 type for the fill argument.
1039 * testsuite/22_locale/time_put/put/wchar_t/10.cc: Likewise.
1040 * testsuite/22_locale/time_put/put/wchar_t/2.cc: Likewise.
1041 * testsuite/22_locale/time_put/put/wchar_t/3.cc: Likewise.
1042 * testsuite/22_locale/time_put/put/wchar_t/4.cc: Likewise.
1043 * testsuite/22_locale/time_put/put/wchar_t/5.cc: Likewise.
1044 * testsuite/22_locale/time_put/put/wchar_t/6.cc: Likewise.
1045 * testsuite/22_locale/time_put/put/wchar_t/7.cc: Likewise.
1046 * testsuite/22_locale/time_put/put/wchar_t/8.cc: Likewise.
1048 2004-08-13 Paolo Carlini <pcarlini@suse.de>
1050 * src/debug.cc (_Error_formatter::_M_print_string): Fix thinko,
1051 memmove is not needed, memcpy suffices.
1053 2004-08-13 Paolo Carlini <pcarlini@suse.de>
1055 * include/std/std_fstream.h (class basic_ifstream,
1056 class basic_ofstream, class basic_fstream): Add const overloads
1057 of is_open, as per DR 365 [WP].
1058 * docs/html/ext/howto.html: Add an entry for DR 365.
1060 2004-08-12 Paolo Carlini <pcarlini@suse.de>
1062 * configure.ac: Specify version 1.8.5 in AM_INIT_AUTOMAKE.
1064 2004-08-12 Paolo Carlini <pcarlini@suse.de>
1067 * include/bits/sstream.tcc (basic_stringbuf<>::seekoff): Add __off
1068 to the returned value, reorganize a bit.
1069 * testsuite/27_io/basic_stringbuf/seekoff/char/16956.cc: New.
1070 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/16956.cc: New.
1072 * testsuite/27_io/basic_stringbuf/seekoff/char/1.cc: Remove junk.
1073 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc: Likewise.
1074 * testsuite/27_io/basic_stringbuf/seekpos/char/1.cc: Likewise.
1075 * testsuite/27_io/basic_stringbuf/seekpos/wchar_t/1.cc: Likewise.
1077 2004-08-12 Paul Brook <paul@codesourcery.com>
1079 * config/cpu/arm/cxxabi_tweaks.h: Define __cxa_vec_ctor_return and
1080 _GLIBCXX_CXA_VEC_CTOR_RETURN.
1081 * config/cpu/generic/cxxabi_tweaks.h: Ditto.
1082 * libsupc++/cxxabi.h (__cxa_vec_ctor, __cxa_vec_cctor): Use
1083 __cxa_vec_ctor_return.
1084 * libsupc++/vec.cc (__cxa_vec_ctor, __cxa_vec_cctor): Ditto.
1085 Use _GLIBCXX_CXA_VEC_CTOR_RETURN.
1087 2004-08-12 Kelley Cook <kcook@gcc.gnu.org>
1089 * Makefile.in, aclocal.m4, configure, include/Makefile.in,
1090 libmath/Makefile.in, libsupc++/Makefile.in, po/Makefile.in,
1091 src/Makefile.in, testsuite/Makefile.in: Regenerate
1093 2004-08-12 Jan Beulich <jbeulich@novell.com>
1095 * config/locale/generic/ctype_members.cc
1096 (ctype<wchar_t>::_M_convert_to_wmask): Default case must not use 0 as
1097 initializer for return value, as that is invalid for enumerated types.
1098 * config/locale/gnu/ctype_members.cc
1099 (ctype<wchar_t>::_M_convert_to_wmask): Likewise.
1101 2004-08-11 Paolo Carlini <pcarlini@suse.de>
1103 * testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc: Fix typo.
1105 2004-08-11 Paolo Carlini <pcarlini@suse.de>
1107 * testsuite/27_io/basic_stringbuf/imbue/char/1.cc: Declare test
1109 * testsuite/27_io/basic_stringbuf/imbue/wchar_t/1.cc: Ditto.
1110 * testsuite/27_io/basic_stringbuf/in_avail/char/1.cc: Remove junk.
1111 * testsuite/27_io/basic_stringbuf/in_avail/wchar_t/1.cc: Ditto.
1112 * testsuite/27_io/basic_stringbuf/sbumpc/char/1.cc: Ditto.
1113 * testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc: Ditto.
1114 * testsuite/27_io/basic_stringbuf/setbuf/char/1.cc: Ditto.
1115 * testsuite/27_io/basic_stringbuf/setbuf/wchar_t/1.cc: Ditto.
1116 * testsuite/27_io/basic_stringbuf/sgetc/char/1.cc: Ditto.
1117 * testsuite/27_io/basic_stringbuf/sgetc/wchar_t/1.cc: Ditto.
1118 * testsuite/27_io/basic_stringbuf/sgetn/char/1.cc: Ditto.
1119 * testsuite/27_io/basic_stringbuf/sgetn/wchar_t/1.cc: Ditto.
1120 * testsuite/27_io/basic_stringbuf/snextc/char/1.cc: Ditto.
1121 * testsuite/27_io/basic_stringbuf/snextc/wchar_t/1.cc: Ditto.
1122 * testsuite/27_io/basic_stringbuf/sputbackc/char/1.cc: Ditto.
1123 * testsuite/27_io/basic_stringbuf/sputbackc/wchar_t/1.cc: Ditto.
1124 * testsuite/27_io/basic_stringbuf/sputc/char/1.cc: Ditto.
1125 * testsuite/27_io/basic_stringbuf/sputc/wchar_t/1.cc: Ditto.
1126 * testsuite/27_io/basic_stringbuf/sputn/char/1.cc: Ditto.
1127 * testsuite/27_io/basic_stringbuf/sputn/wchar_t/1.cc: Ditto.
1128 * testsuite/27_io/basic_stringbuf/sungetc/char/1.cc: Ditto.
1129 * testsuite/27_io/basic_stringbuf/sungetc/wchar_t/1.cc: Ditto.
1131 2004-08-11 Paolo Carlini <pcarlini@suse.de>
1132 Petur Runolfsson <peturr02@ru.is>
1135 * src/ios_init.cc (ios_base::sync_with_stdio): Make sure the
1136 standard streams are constructed.
1137 * testsuite/27_io/ios_base/sync_with_stdio/16959.cc: New.
1139 2004-08-09 Paolo Carlini <pcarlini@suse.de>
1141 * include/bits/stl_bvector.h: Trivial formatting fixes.
1143 2004-08-09 Paolo Carlini <pcarlini@suse.de>
1145 * src/ios.cc (ios_base::_M_grow_words): Uglify the names.
1147 2004-08-07 Jonathan Wakely <redi@gcc.gnu.org>
1148 Paolo Carlini <pcarlini@suse.de>
1150 * src/debug.cc (_Error_formatter::_M_print_string): In order
1151 to print individual words from __string, _M_format_word can't
1152 be called since may be just sprintf, thus ignoring completely
1153 __n: instead, use memmove and append '\0' by hand.
1155 2004-08-07 Paolo Carlini <pcarlini@suse.de>
1157 * config/locale/generic/c_locale.h (__convert_from_v): Don't
1158 use a default for __prec, assume __prec >= 0 and simplify.
1159 * config/locale/gnu/c_locale.h (__convert_from_v): Likewise.
1160 * include/bits/locale_facets.tcc (money_put<>::do_put(long double)):
1161 Pass format "%.*Lf" + precision == 0, equivalent to "%.0Lf".
1163 2004-08-04 Phil Edwards <phil@codesourcery.com>
1165 * docs/html/configopts.html: Emphasize that options change.
1166 * docs/html/17_intro/configury.html: Update links.
1168 2004-08-03 Paolo Carlini <pcarlini@suse.de>
1170 * include/bits/list.tcc: Trivial formatting fixes.
1172 2004-08-03 Mark Mitchell <mark@codesourcery.com>
1174 * libsupc++/new_op.cc: Update comments.
1175 * libsupc++/del_op.cc: Likewise.
1177 2004-08-02 Mark Mitchell <mark@codesourcery.com>
1179 * libsupc++/cxxabi.h: Make all declarations have default
1181 * libsupc++/exception: Likewise.
1182 * libsupc++/new: Likewise.
1183 * libsupc++/typeinfo: Likewise.
1184 * libsupc++/unwind-cxx.h: Likewise.
1185 * libsupc++/eh_alloc.cc (__cxa_allocate_exception): Put it into
1186 the __cxxabiv1 namespace.
1187 (__cxa_free_exception): Likewise.
1188 * libsupc++/eh_aux_runtime.cc (__cxa_bad_cast): Likewise.
1189 (__cxa_bad_typeid): Likewise.
1190 * libsupc++/eh_catch.cc (__cxa_begin_catch): Likewise.
1191 (__cxa_end_catch): Likewise.
1192 * libsupc++/eh_globals.cc (__cxa_get_globals_fast): Likewise.
1193 (__cxa_get_globals): Likewise.
1194 * libsupc++/eh_throw.cc (__cxa_throw): Likewise.
1195 (__cxa_rethrow): Likewise.
1196 * libsupc++/pure.cc (__cxa_pure_virtual): Likewise.
1197 * libsupc++/eh_type.cc: Include <cxxabi.h>.
1199 * Makefile.am (hosted_source): Add libmath and testsuite.
1200 (SUBDIRS): Remove them.
1201 * acinclude.m4: (GLIBCXX_ENABLED_HOSTED): Default to freestanding
1202 on arm*-*-symbianelf*.
1203 * crossconfig.m4: Add arm*-*-symbianelf* support.
1204 * include/c_std/std/std_cstdlib.h (stdlib.h): Do not include it
1205 when freestanding. Do not bring names into std:: namespace with
1206 "using" when freestanding. Declare required functions and macros
1208 * libsupc++/Makefile.am (c_sources): Do not include cp-demangle.c
1210 * libsupc++/del_op.cc: Declare "free" only when freestanding.
1211 * libsupc++/eh_alloc.cc (cstring): Include it only when hosted.
1212 (malloc): Declare when freestanding.
1215 (__cxa_allocate_exception): Call malloc, not std::malloc. Likewise
1217 (__cxa_free_exception): Likewise for free.
1218 * libsupc++/new_op.cc: Declare "malloc" when freestanding.
1219 * libsupc++/pure.cc (writestr): Define to nothing when
1221 * libsupc++/vterminate.cc: Do not define anything when
1223 * Makefile.in: Regenerated.
1224 * aclocal.m4: Likewise.
1225 * configure: Likewise.
1226 * include/Makefile.in: Likewise.
1227 * libmath/Makefile.in: Likewise.
1228 * libsupc++/Makefile.in: Likewise.
1229 * po/Makefile.in: Likewise.
1230 * src/Makefile.in: Likewise.
1231 * testsuite/Makefile.in: Likewise.
1233 2004-08-01 Matt Austern <austern@apple.com>
1236 * include/bits/stl_list.h (_M_create_node): Remove unused
1237 zero-argument version.
1238 * include/ext/slist (_M_create_node): Pass two arguments to
1239 allocator's construct() member function.
1240 * testsuite/23_containers/deque/explicit_instantiation.cc: New.
1241 * testsuite/23_containers/list/explicit_instantiation.cc: New.
1242 * testsuite/23_containers/vector/explicit_instantiation.cc: New.
1243 * testsuite/23_containers/map/explicit_instantiation.cc: New.
1244 * testsuite/23_containers/set/explicit_instantiation.cc: New.
1245 * testsuite/23_containers/multimap/explicit_instantiation.cc: New.
1246 * testsuite/23_containers/multiset/explicit_instantiation.cc: New.
1247 * testsuite/ext/hash_set_explicit_instantiation.cc: New.
1248 * testsuite/ext/slist_explicit_instantiation.cc: New.
1250 2004-07-30 Paolo Carlini <pcarlini@suse.de>
1252 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
1253 num_get<>::_M_extract_int): In the main parsing loop delay the
1254 life of __q to the actual use point.
1256 2004-07-29 Paolo Carlini <pcarlini@suse.de>
1259 * include/bits/locale_facets.tcc (num_put<>::_M_insert_float):
1260 Don't clip the precision passed down to __convert_from_v:
1261 22.2.2.2.2 nowhere says so.
1262 * testsuite/22_locale/num_put/put/char/14220.cc: New.
1263 * testsuite/22_locale/num_put/put/wchar_t/14220.c: Likewise.
1265 2004-07-29 Paolo Carlini <pcarlini@suse.de>
1267 * docs/html/ext/lwg-active.html, lwg-defects.html: Import Revision 31.
1269 2004-07-29 Paolo Carlini <pcarlini@suse.de>
1270 Petur Runolfsson <peturr02@ru.is>
1272 PR libstdc++/12658 (continued)
1273 * src/locale_init.cc (locale::locale, locale::global): Use
1274 a single locale_mutex instead of two separate mutexes.
1276 2004-07-29 Paolo Carlini <pcarlini@suse.de>
1279 * include/debug/map.h (insert(_InputIterator, _InputIterator)):
1281 * testsuite/23_containers/map/insert/16813.cc: New.
1283 2004-07-29 Phil Edwards <phil@codesourcery.com>
1285 * docs/html/faq/index.html: Update version references. Make
1286 clear that code from SGI has diverged greatly. Remove references
1287 to library snapshots and what's-new sections.
1288 * docs/html/faq/index.txt: Regenerate.
1290 2004-07-28 Matt Austern <austern@apple.com>
1292 * include/bits/stl_construct.h (_Destroy): New three-argument
1293 overload that takes an allocator argument. Another inline
1294 three-argument overload that takes std::allocator and dispatches
1295 to the two-argument version.
1296 * include/bits/stl_uninitialized.h (__uninitialized_fill_n_aux):
1297 Change return type to void to match uninitialized_fill_n.
1298 (__uninitialized_copy_a_): New function. Like uninitialized_copy
1299 except that it takes an allocator and uses it for construct and
1300 destroy. If the allocator is std::allocator, dispatches to
1302 (__uninitialized_fill_a): Likewise.
1303 (__uninitialized_fill_n_a): Likewise.
1304 (__uninitialized_copy_copy): Give it an allocator argument.
1305 (__uninitialized_fill_copy): Likewise.
1306 (__uninitialized_copy_fill): Likewise.
1307 * include/bits/deque.tcc: Use new forms defined in stl_construct.h
1308 and stl_uninitialized.h. Replace use of single-argument _Construct
1309 and _Destroy with use of allocator's construct and destroy methods.
1310 * include/bits/list.tcc: Likewise.
1311 * include/bits/stl_deque.h: Likewise.
1312 * include/bits/stl_list.h: Likewise.
1313 * include/bits/stl_tree.h: Likewise.
1314 * include/bits/stl_vector.h: Likewise.
1315 * include/bits/vector.tcc: Likewise.
1316 * include/ext/hashtable.h: Use rebind so that allocator_type
1317 has correct type for a container's allocator. Replace use of
1318 single-argument _Construct and _Destroy with use of allocator's
1319 construct and destroy methods.
1320 * include/ext/memory (__uninitialized_copy_n_a): New function.
1321 Like uninitialized_copy_n except that it takes an extra parameter,
1322 an allocator, and uses it for construct and destroy operations.
1323 * include/ext/rope: Use new forms defined in stl_construct.h,
1324 stl_uninitialized.h, and ext/memory. Replace use of single-argument
1325 _Construct and _Destroy with allocator construct and destroy methods.
1326 * include/ext/ropeimpl.h: Likewise.
1327 * include/ext/slist.h: Likewise.
1328 * testsuite/testsuite_allocator.h (check_construct_destroy): New.
1329 * testsuite/testsuite_allocator.cc (check_construct_destroy): New.
1330 * testsuite/23_containers/deque/check_construct_destroy.cc: New.
1331 * testsuite/23_containers/list/check_construct_destroy.cc: New.
1332 * testsuite/23_containers/set/check_construct_destroy.cc: New.
1333 * testsuite/23_containers/vector/check_construct_destroy.cc: New.
1334 * testsuite/ext/hash_check_construct_destroy.cc: New.
1335 * testsuite/ext/slist_check_construct_destroy.cc: New.
1337 2004-07-28 Alexandre Oliva <aoliva@redhat.com>
1339 2003-10-01 Eric Christopher <echristo@redhat.com>
1340 * config/cpu/sh/atomicity.h (__exchange_and_add): Remove 'm'
1342 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
1343 * config/cpu/sh/atomicity.h: New. Use movli and movco on SH4a.
1345 2004-07-23 Benjamin Kosnik <bkoz@redhat.com>
1348 * include/bits/locale_facets.tcc: Fix for -Werror.
1350 2004-07-23 Jonathan Wakely <redi@gcc.gnu.org>
1352 * docs/html/debug.html: Say debug mode only available since 3.4.0.
1354 2004-07-21 Benjamin Kosnik <bkoz@redhat.com>
1356 * docs/doxygen/mainpage.html: Clarify links.
1357 * docs/doxygen/stdheader.cc: Add files.
1358 * docs/doxygen/style.css: Remove bolds, add h2, h3 styles.
1359 * docs/doxygen/user.cfg.in: New options, wrap.
1361 2004-07-20 Danny Smith <dannysmith@users.sourceforge.net>
1363 * include/c_std/std_cwchar.h (wcsstr): Correct signature.
1365 2004-07-19 Benjamin Kosnik <bkoz@redhat.com>
1368 * testsuite/lib/libstdc++.exp (v3-copy-files): Revert.
1370 2004-07-17 Richard Sandiford <rsandifo@redhat.com>
1373 * scripts/create_testsuite_files: Pass -print to find.
1375 2004-07-15 Paolo Carlini <pcarlini@suse.de>
1377 * docs/html/ext/lwg-active.html, lwg-defects.html: Import Revision 30.
1378 * docs/html/ext/howto.html: Tweak entries for DRs 167/253/389/402.
1380 2004-07-15 Jakub Jelinek <jakub@redhat.com>
1383 * acinclude.m4 (glibcxx_shared_libgcc): Correct
1384 glibcxx_shared_libgcc test for multilibs.
1385 * configure: Rebuilt.
1387 2004-07-14 Paolo Carlini <pcarlini@suse.de>
1390 * include/bits/stl_uninitialized.h (uninitialized_fill_n): Fix
1391 the signature to return void, as per 20.4.4.3.
1392 * include/bits/stl_vector.h (vector::vector(size_type,
1393 const value_type&, const allocator_type&), vector::vector(size_type),
1394 vector::_M_initialize_dispatch): Adjust callers.
1395 * include/bits/vector.tcc (vector<>::_M_fill_assign,
1396 vector<>::_M_fill_insert): Likewise.
1397 * testsuite/20_util/memory/16505.cc: New.
1399 2004-07-14 Paolo Carlini <pcarlini@suse.de>
1401 * testsuite/22_locale/locale/cons/12658_thread-1.cc,
1402 12658_thread-2.cc: Use __gnu_test::try_named_locale.
1404 2004-07-13 Benjamin Kosnik <bkoz@redhat.com>
1406 * docs/html/ext/mt_allocator.html: Add docs for _Tune.
1407 * include/ext/mt_allocator.h (__mt_alloc::_S_get_options): Make public.
1408 (__mt_alloc::_S_set_options): Same.
1411 2004-07-13 Benjamin Kosnik <bkoz@redhat.com>
1413 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Add allocator defaults
1415 * configure: Regenerated.
1417 2004-07-13 Paolo Carlini <pcarlini@suse.de>
1419 * testsuite/22_locale/locale/cons/12658_thread.cc: Move/rename
1420 to 12658_thread-1.cc and xfail.
1421 * testsuite/22_locale/locale/cons/12658_thread-2.c: New, much
1422 simpler version of 12658_thread-1.cc, still failing on 3_3 and
1423 not failing on 3_4/mainline - both on single processor and
1424 multiprocessor machines.
1426 2004-07-12 Benjamin Kosnik <bkoz@redhat.com>
1428 * docs/html/abi.html: Remove non-public qualification.
1430 * include/bits/concurrence.h: Tweak comments.
1432 2004-07-11 Paolo Carlini <pcarlini@suse.de>
1434 Add wchar_t counterparts of the basic_streambbuf<char> tests.
1435 * testsuite/27_io/basic_streambuf/cons/wchar_t/1.cc: New.
1436 * testsuite/27_io/basic_streambuf/imbue/wchar_t/1.cc, 9322.cc:
1438 * testsuite/27_io/basic_streambuf/in_avail/wchar_t/9701-3.cc: Likewise.
1439 * testsuite/27_io/basic_streambuf/overflow/wchar_t/1.cc, 2.cc,
1441 * testsuite/27_io/basic_streambuf/sgetc/wchar_t/1.cc: Likewise.
1442 * testsuite/27_io/basic_streambuf/sgetn/wchar_t/1.cc: Likewise.
1443 * testsuite/27_io/basic_streambuf/sputbackc/wchar_t/9538.cc: Likewise.
1444 * testsuite/27_io/basic_streambuf/sputc/wchar_t/1057.cc: Likewise.
1445 * testsuite/27_io/basic_streambuf/sputn/wchar_t/1.cc, 1057.cc:
1447 * testsuite/27_io/basic_streambuf/sync/wchar_t/1057.cc: Likewise.
1449 * testsuite/27_io/basic_streambuf/imbue/char/1.cc, 9322.cc: Minor
1451 * testsuite/27_io/basic_streambuf/overflow/char/2.cc, 3599.cc:
1453 * testsuite/27_io/basic_streambuf/sputn/char/1057.cc: Likewise.
1454 * testsuite/27_io/basic_streambuf/sync/char/1057.cc: Likewise.
1456 2004-07-11 Phil Edwards <phil@codesourcery.com>
1458 * acinclude.m4: Cosmetic shell syntax fixes.
1459 * configure.ac: Bring comment inline with reality.
1460 * configure.host: Both of the above. Move 'arm' case to right
1461 place in host_cpu switch.
1462 * aclocal.m4, configure: Regenerate.
1464 2004-07-09 Paolo Carlini <pcarlini@suse.de>
1466 Add wchar_t counterparts of the basic_stringbuf<char> tests.
1467 * testsuite/27_io/basic_stringbuf/imbue/wchar_t/1.cc, 9322.cc: New.
1468 * testsuite/27_io/basic_stringbuf/in_avail/wchar_t/1.cc: Likewise.
1469 * testsuite/27_io/basic_stringbuf/overflow/wchar_t/1.cc, 2.cc,
1470 3599.cc, 9988.cc: Likewise.
1471 * testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc, 9825.cc:
1473 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc, 2.cc:
1475 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc, 2.cc, 3.cc:
1477 * testsuite/27_io/basic_stringbuf/setbuf/wchar_t/1.cc, 2.cc, 3.cc:
1479 * testsuite/27_io/basic_stringbuf/sgetc/wchar_t/1.cc: Likewise.
1480 * testsuite/27_io/basic_stringbuf/sgetn/wchar_t/1.cc: Likewise.
1481 * testsuite/27_io/basic_stringbuf/snextc/wchar_t/1.cc: Likewise.
1482 * testsuite/27_io/basic_stringbuf/sputbackc/wchar_t/1.cc, 9425.cc:
1484 * testsuite/27_io/basic_stringbuf/sputc/wchar_t/1.cc, 1057.cc,
1485 9404-1.cc: Likewise.
1486 * testsuite/27_io/basic_stringbuf/sputn/wchar_t/1.cc, 1057.cc,
1487 9404-2.cc: Likewise.
1488 * testsuite/27_io/basic_stringbuf/str/wchar_t/1.cc, 2.cc, 3.cc,
1490 * testsuite/27_io/basic_stringbuf/sungetc/wchar_t/1.cc: Likewise.
1491 * testsuite/27_io/basic_stringbuf/sync/wchar_t/1057.cc: Likewise.
1493 2004-07-08 Paolo Carlini <pcarlini@suse.de>
1495 * include/bits/gslice.h: Trivial formatting fixes.
1496 * include/bits/gslice_array.h: Likewise.
1497 * include/bits/indirect_array.h: Likewise.
1498 * include/bits/mask_array.h: Likewise.
1499 * include/bits/slice_array.h: Likewise.
1500 * include/bits/valarray_after.h: Likewise.
1501 * include/bits/valarray_array.h: Likewise.
1502 * include/bits/valarray_before.h: Likewise.
1503 * include/std/std_valarray.h: Likewise.
1505 2004-07-08 Benjamin Kosnik <bkoz@redhat.com>
1508 * include/bits/basic_string.h (basic_string::operator=): Revert.
1510 2004-07-07 Benjamin Kosnik <bkoz@redhat.com>
1512 * configure.ac (libtool_VERSION): To 6:2:0.
1513 * configure: Regenerated.
1515 * testsuite/testsuite_abi.cc (check_version): Add 3.4.2.
1517 2004-07-07 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
1520 * config/linker-map.gnu: Add stdio_sync_filebuf::file exports.
1522 2004-07-07 Benjamin Kosnik <bkoz@redhat.com>
1524 * docs/html/abi.html: Updates for 3.4.1 release. Add summary of
1527 2004-07-07 Paolo Carlini <pcarlini@suse.de>
1530 * include/bits/sstream.tcc (overflow): When reallocating _M_string
1531 use an exponential grow policy.
1532 * testsuite/27_io/basic_stringbuf/overflow/char/1.cc: New.
1533 * testsuite/performance/27_io/stringbuf_overflow.cc: New.
1535 2004-07-06 Anssi Hannula <anssi.hannula@mbnet.fi>
1538 * crossconfig.m4: Add in bits for djgpp.
1539 * configure: Regenerate.
1541 2004-07-05 Jonathan Wakely <redi@gcc.gnu.org>
1543 * testsuite/23_containers/{set,multiset}/14340.cc: Fix typos in
1544 instantiation of set and multiset (functor param given as int).
1546 2004-07-04 Paolo Carlini <pcarlini@suse.de>
1548 * include/bits/basic_string.h: Trivial formatting fixes and/or
1549 const-ification of some variables.
1550 * include/bits/deque.tcc: Likewise.
1551 * include/bits/stl_algobase.h: Likewise.
1552 * include/bits/stl_bvector.h: Likewise.
1553 * include/bits/stl_construct.h: Likewise.
1554 * include/bits/stl_deque.h: Likewise.
1555 * include/bits/stl_pair.h: Likewise.
1556 * include/bits/stl_vector.h: Likewise.
1557 * include/bits/vector.tcc: Likewise.
1559 2004-07-04 Paolo Carlini <pcarlini@suse.de>
1561 * testsuite/25_algorithms/copy/1.cc: Add instantiations for
1562 systems with no COMDAT or weak support.
1563 * testsuite/25_algorithms/copy/2.cc: Likewise.
1564 * testsuite/25_algorithms/copy/3.cc: Likewise.
1565 * testsuite/25_algorithms/copy/4.cc: Likewise.
1567 2004-07-03 Paul Brook <paul@codesourcery.com>
1569 * configure.ac: Set ABI_TWEAKS_SRCDIR.
1570 * configure.host: Set abi_tweaks_dir. Check for atomicity.h when
1571 setting atomicity_dir. Override type_cpu for arm based targets.
1572 * include/Makefile.am (host_headers): Add cxxabi_tweaks.h.
1573 * libsupc++/cxxabi.h: Include bits/cxxabi.h. Don't declare __guard.
1574 * libsupc++/guard.cc: Use definitions from cxxabi_tweaks.h.
1575 * libsupc++/vec.cc: Ditto.
1576 * config/cpu/arm/cxxabi_tweaks.h: New file.
1577 * config/cpu/generic/cxxabi_tweaks.h: New file.
1578 * */Makefile.in: Regenerate.
1579 * configure: Regenerate.
1581 2004-07-02 Paolo Carlini <pcarlini@suse.de>
1583 * include/bits/type_traits.h (_Is_normal_iterator): Move...
1584 * include/bits/cpp_type_traits.h: ... here, renamed to
1585 __is_normal_iterator and consistent with the other traits.
1586 * include/bits/stl_algobase.h (__copy_ni1, __copy_ni2): Convert
1587 to the struct __copy_normal and three specializations.
1588 (__copy_backward_output_normal_iterator,
1589 __copy_backward_input_normal_iterator): Likewise, convert to
1590 the struct __copy_backward_normal and three specializations.
1591 (copy, copy_backward): Use the latter.
1592 (__copy_aux, __copy_backward_aux): Very minor tweaks.
1594 2004-07-01 Paolo Carlini <pcarlini@suse.de>
1596 * include/bits/stl_algobase.h (__copy_trivial): Remove.
1597 (__copy_aux2): Rewrite as __copy_aux to use __is_pointer,
1598 __is_trivially_copyable, __are_same and __copy::copy.
1599 (__copy): Rewrite as a class template and two specializations.
1600 (__copy_ni2): Simplify, just call __copy_aux.
1602 * include/bits/stl_algobase.h (__copy_backward_aux): Add __are_same
1604 * testsuite/25_algorithms/copy/1.cc, 2.cc, 3.cc, 4.cc: Test also
1605 for destination value type != source value type.
1607 2004-07-01 Benjamin Kosnik <bkoz@redhat.com>
1608 Per Bothner <per@bothner.com>
1609 Mohan Embar <gnustuff@thisiscool.com>
1612 * include/bits/concurrence.h (__glibcxx_mutex_type): New.
1613 (__glibcxx_mutex): Encapsulate mutex init function into type for
1614 threaded configurations without __GTHREAD_MUTEX_INIT.
1615 (lock::lock): Make device member a reference.
1616 (lock::~lock): Same.
1617 * include/ext/pool_allocator.h (__pool_base::_M_get_mutex): Change
1619 * src/allocator.cc: Same.
1621 2004-06-30 Brad Spencer <spencer@infointeractive.com>
1623 * include/ext/mt_allocator.h: Handle allocations at static
1624 initialization that happen before _S_options is (automatically)
1625 constructed; set _S_init even if _M_force_new is true.
1627 2004-06-30 Benjamin Kosnik <bkoz@redhat.com>
1629 * config/linker-map.gnu: Revert new exports.
1631 2004-06-30 Benjamin Kosnik <bkoz@redhat.com>
1632 Stuart Anderson <anderson@netsweng.com>
1634 * config/linker-map.gnu: Add destructor exports for abstract base
1635 classes to conform to LSB.
1637 2004-06-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
1638 Paolo Carlini <pcarlini@suse.de>
1640 * include/bits/cpp_type_traits.h: Add __is_pointer and
1641 __is_trivially_copyable.
1642 * include/bits/stl_algobase.h (fill, fill_n): Slightly
1643 tweak to use the latter.
1644 (__copy_backward_dispatch): Remove.
1645 (__copy_backward_aux): Rewrite to use __is_pointer and
1646 __is_trivially_copyable and __copy_backward::copy_b.
1647 (__copy_backward): Rewrite as a class template and two
1650 2004-06-30 Paolo Carlini <pcarlini@suse.de>
1652 * testsuite/25_algorithms/copy.cc: Move to...
1653 * testsuite/25_algorithms/copy/1.cc: ... here, extend.
1654 * testsuite/25_algorithms/copy/2.cc: New.
1655 * testsuite/25_algorithms/copy/3.cc: New.
1656 * testsuite/25_algorithms/copy/4.cc: New.
1658 2004-06-29 Paul Brook <paul@codesourcery.com>
1660 * libsupc++/vec.cc (__cxa_vec_new2, __cxa_vec_new3): Store the
1661 element size in the cookie.
1663 2004-06-28 Paolo Carlini <pcarlini@suse.de>
1665 * include/bits/cpp_type_traits.h: Move the additions to
1666 namespace __gnu_internal outside of namespace std; trivial
1669 2004-06-28 Benjamin Kosnik <bkoz@redhat.com>
1671 * include/debug/safe_base.h (__gnu_debug::_Safe_sequence_base):
1672 Revert -Weffc++ changes that defined copy ctory and or assignment
1674 * libsupc++/tinfo.cc (__upcast_result): Same.
1676 2004-06-28 Paolo Carlini <pcarlini@suse.de>
1678 * src/localename.cc (locale::_Impl::_Impl): Slightly improve
1679 the algorithm used to name the categories.
1681 2004-06-28 Paolo Bonzini <bonzini@gnu.org>
1683 * include/Makefile.am: Give a .gch extension to
1684 the PCH files, not only to the directory.
1685 * include/Makefile.in: Regenerate.
1687 2004-06-28 Paolo Carlini <pcarlini@suse.de>
1689 * config/locale/gnu/monetary_members.cc
1690 (moneypunct<wchar_t>::_M_initialize_moneypunct): Clean up
1691 assignments of _M_decimal_point and _M_thousands_sep.
1693 2004-06-27 Paolo Carlini <pcarlini@suse.de>
1695 * docs/html/17_intro/contribute.html: Update some links.
1696 * docs/html/17_intro/porting-howto.html: Likewise.
1697 * docs/html/17_intro/porting-howto.xml: Likewise.
1698 * docs/html/18_support/howto.html: Likewise.
1699 * docs/html/21_strings/howto.html: Likewise.
1700 * docs/html/27_io/howto.html: Likewise.
1701 * docs/html/configopts.html: Likewise.
1702 * docs/html/ext/howto.html: Likewise.
1703 * docs/html/faq/index.html: Likewise.
1704 * docs/html/install.html: Don't mention 2.x compilers.
1706 2004-06-27 Paolo Carlini <pcarlini@suse.de>
1708 * include/ext/rope: Trivial formatting fixes.
1709 * include/ext/ropeimpl.h: Likewise.
1711 2004-06-26 Paolo Carlini <pcarlini@suse.de>
1714 * acinclude.m4 (GLIBCXX_ENABLE_LONG_LONG): Do not check for the
1715 availability of strto(u)ll, not used anymore in the iostreams.
1716 * configure: Regenerate.
1718 2004-06-25 Benjamin Kosnik <bkoz@redhat.com>
1721 * linkage.m4 (GLIBCXX_CHECK_BUILTIN_MATH_DEC): Revert to
1723 * configure: Regenerate.
1725 2004-06-25 Paul Brook <paul@codesourcery.com>
1727 * libsupc++/cxxabi.h: Define __ARM_EABI__
1729 * libsupc++/guard.h (__cxa_guard_acquire, __cxa_guard_release): Ditto.
1731 2004-06-25 Paul Brook <paul@codesourcery.com>
1733 * include/bits/concurrence.h: Still create mutex object when
1736 2004-06-25 Paolo Carlini <pcarlini@suse.de>
1738 * include/bits/stl_algobase.h (fill, fill_n): Revert last
1739 change: actually we need to copy construct an object of type
1740 _Tp, not of type iterator_traits<>::value_type, therefore the
1743 2004-06-25 Paolo Carlini <pcarlini@suse.de>
1745 * include/bits/stl_algobase.h (fill, fill_n): Tighten the
1746 dispatch: use iterator_traits<>::value_type, not _Tp.
1748 2004-06-25 Paolo Carlini <pcarlini@suse.de>
1750 * testsuite/25_algorithms/fill/1.cc: Tweak instantiations.
1751 * testsuite/25_algorithms/fill/2.cc: Likewise.
1753 2004-06-25 Dan Nicolaescu <dann@ics.uci.edu>
1754 Paolo Carlini <pcarlini@suse.de>
1756 * include/bits/stl_algobase.h (__fill, __fill_n): New helpers
1757 for fill and fill_n, respectively: when copying is cheap, use a
1758 temporary to avoid a memory read in each iteration.
1760 2004-06-25 Paolo Carlini <pcarlini@suse.de>
1762 * testsuite/25_algorithms/fill/1.cc: New.
1763 * testsuite/25_algorithms/fill/2.cc: Likewise.
1765 2004-06-25 Benjamin Kosnik <bkoz@redhat.com>
1767 * include/debug/formatter.h (__gnu_debug::_Error_formatter):
1768 Remove copy constructor and assignment operator.
1770 2004-06-24 Benjamin Kosnik <bkoz@redhat.com>
1772 * include/bits/concurrence.h (__gnu_cxx::lock): New.
1773 * include/ext/pool_allocator.h (__pool_base::_Lock::_S_lock): Remove.
1774 (__pool_base::_M_get_mutex): New.
1775 * include/bits/allocator.h: Tweak.
1776 * src/allocator.cc (__pool_base::_M_get_free_list): Correct offset.
1777 * config/linker-map.gnu: Remove __pool_base::_Lock::_S_lock.
1778 * include/bits/stl_threads.h: Remove.
1779 * include/Makefile.am: Also here.
1780 * include/Makefile.in: Regenerate.
1782 * src/locale_init.cc: Use __gnu_cxx::lock.
1784 * src/allocator.cc: Move all instantiations...
1785 * src/allocator-inst.cc: ...here.
1787 2004-06-23 Andrew Pinski <apinski@apple.com>
1789 * linkage.m4: Remove check for libmx.
1790 * configure: Regenerate.
1792 2004-06-23 Paolo Carlini <pcarlini@suse.de>
1795 * include/bits/boost_concept_check.h (struct _TrivialIteratorConcept):
1796 Don't require the _DefaultConstructibleConcept.
1797 (struct _ForwardIteratorConcept): Require it here.
1799 2004-06-22 Alexandre Oliva <aoliva@redhat.com>
1801 * include/bits/istream.tcc (getline): Make sure arguments passed
1802 to min/max have the same type.
1803 * include/bits/locale_facets.tcc (__verify_grouping): Likewise.
1804 * include/bits/stl_deque.h (_Deque_base::_Deque_base): Likewise.
1806 2004-06-22 Benjamin Kosnik <bkoz@redhat.com>
1808 * docs/html/abi.html: Update links.
1810 2004-06-22 Paolo Carlini <pcarlini@suse.de>
1812 * testsuite/26_numerics/complex_inserters_extractors.cc,
1813 complex_value.cc, buggy_complex.cc: Move to...
1814 * testsuite/26_numerics/complex/: ... here.
1815 * testsuite/26_numerics/c99_classification_macros_c++.cc,
1816 c99_classification_macros_c.cc, c_math.cc, c_math_dynamic.cc,
1817 fabs_inline.cc: Move to...
1818 * testsuite/26_numerics/cmath/: ... here.
1819 * testsuite/26_numerics/binary_closure.cc, slice.cc,
1820 slice_array_assignment.cc, valarray.cc, valarray_const_bracket.cc,
1821 valarray_name_lookup.cc, valarray_operators.cc,
1822 valarray_subset_assignment.cc: Move to...
1823 * testsuite/26_numerics/valarray/: ... here (new dir).
1824 * testsuite/26_numerics/sum_diff.cc: Move to...
1825 * testsuite/26_numerics/numeric/: ... here (new dir).
1827 2004-06-22 Paolo Carlini <pcarlini@suse.de>
1829 * include/std/std_istream.h (ignore(streamsize __n = 1,
1830 int_type __delim = traits_type::eof())): Split into...
1831 (ignore(), ignore(streamsize __n), ignore(streamsize __n,
1832 int_type __delim)): The first two can be much more simpler
1833 and efficient than the fully general case; also, the last
1834 two can take advantage of the same mechanism already used
1836 * include/bits/istream.tcc (ignore(streamsize __n = 1,
1837 int_type __delim = traits_type::eof()): Remove.
1838 (ignore(), ignore(streamsize __n), ignore(streamsize __n,
1839 int_type __delim)): New.
1841 2004-06-21 Loren J. Rittle <ljrittle@acm.org>
1843 * config/linker-map.gnu: Use wildcards for
1844 __basic_file::sys_open(FILE*, _Ios_Openmode).
1846 2004-06-20 Paolo Carlini <pcarlini@suse.de>
1848 * testsuite/27_io/basic_istream/ignore/char/3.cc: New.
1850 2004-06-18 Paolo Carlini <pcarlini@suse.de>
1852 * include/ext/mt_allocator (__mt_alloc<>::_Tune): Add _M_align,
1853 the alignment requested.
1854 (__mt_alloc<>::_Tune::_Tune): Tweak consistently.
1855 (__mt_alloc<>::allocate): Use it instead of sizeof(_Block_record).
1856 (__mt_alloc<>::deallocate): Likewise.
1858 2004-06-18 Paolo Carlini <pcarlini@suse.de>
1861 * include/debug/safe_base.h
1862 (_Safe_sequence_base::_Safe_sequence_base(const _Safe_sequence_base&),
1863 _Safe_sequence_base::operator=): Provide definitions.
1864 * testsuite/23_containers/bitset/cons/16020.cc: New.
1866 2004-06-18 Benjamin Kosnik <bkoz@redhat.com>
1868 * include/ext/pool_allocator.h: Qualify __throw_bad_alloc.
1869 (__pool_base): Remove unused template parameter. Add
1870 protected. Move lock data into __pool_base::_Lock. Remove static
1871 on member functions.
1872 (__pool_base::_M_get_free_list): New.
1873 (__pool_alloc): Move _S_force new here.
1874 * src/allocator.cc: Move out of line __pool_base definitions here.
1875 * config/linker-map.gnu: Export bits from __pool_base.
1877 2004-06-18 Paolo Carlini <pcarlini@suse.de>
1879 * config/locale/gnu/numeric_members.cc
1880 (numpunct<wchar_t>::_M_initialize_numpunct): Clean up
1881 assignments of _M_decimal_point and _M_thousands_sep.
1882 * config/locale/gnu/time_members.cc
1883 (__timepunct<wchar_t>::_M_initialize_timepunct): Clean up
1884 and reformat assignments of date and time fields.
1886 2004-06-16 Paolo Carlini <pcarlini@suse.de>
1888 * include/ext/rope (rope(_CharT, const allocator_type&)): Fix
1889 to use _Data_allocate.
1890 * include/ext/ropeimpl.h (rope<>::_S_leaf_concat_char_iter): Likewise.
1891 (rope<>::_S_substring): Likewise.
1892 (rope<>::rope(size_t, _CharT, const allocator_type&)): Likewise.
1893 (rope<>::c_str()): Likewise.
1894 (rope<>::replace_with_c_str()): Likewise.
1896 * include/ext/ropeimpl.h (_Rope_iterator_base<>::_S_setbuf):
1897 Correctly qualify _S_leaf, _S_function, etc., with _Rope_constants::,
1899 (_Rope_iterator_base<>::_S_setcache): Likewise.
1900 (_Rope_iterator_base<>::_S_setcache_for_incr): Likewise.
1901 (rope<>::_S_substring): Likewise.
1902 (rope<>::_S_dump): Likewise.
1903 (rope<>::_S_fetch_ptr): Likewise.
1904 (rope<>::_S_compare): Likewise.
1905 (rope<>::replace_with_c_str()): Likewise.
1907 * testsuite/ext/rope.cc: Rename to testsuite/ext/rope/1.cc.
1908 * testsuite/ext/rope/2.cc: New.
1910 2004-06-16 Paolo Carlini <pcarlini@suse.de>
1911 Matt Austern <austern@apple.com>
1913 * testsuite/ext/rope/3.cc: New.
1915 2004-06-15 Paolo Bonzini <bonzini@gnu.org>
1917 * acinclude.m4: Remove useless multilib configury.
1918 * Makefile.am: Remove useless multilib rules.
1919 * aclocal.m4: Regenerate.
1920 * Makefile.in: Regenerate.
1921 * configure: Regenerate.
1923 2004-06-15 Paolo Carlini <pcarlini@suse.de>
1925 * include/ext/hashtable.h: Trivial formatting fixes.
1926 * include/ext/rb_tree: Likewise.
1928 2004-06-14 Paolo Carlini <pcarlini@suse.de>
1930 * include/ext/hash_map: Trivial formatting fixes.
1931 * include/ext/hash_set: Likewise.
1932 * include/ext/memory: Likewise.
1933 * include/ext/numeric: Likewise.
1935 2004-06-14 Benjamin Kosnik <bkoz@redhat.com>
1937 * Makefile.in: Regenerate with automake 1.8.5.
1939 * include/Makefile.in: Same.
1940 * libmath/Makefile.in: Same.
1941 * libsupc++/Makefile.in: Same.
1942 * po/Makefile.in: Same.
1943 * src/Makefile.in: Same.
1944 * testsuite/Makefile.in: Same.
1946 2004-06-14 Paolo Carlini <pcarlini@suse.de>
1948 * include/ext/slist: Trivial formatting fixes.
1950 2004-06-14 Paolo Carlini <pcarlini@suse.de>
1952 * include/bits/locale_facets.tcc (time_get<>::_M_extract_name):
1953 Don't use the 'magic number' 10 in the computation of __minlen;
1954 never access __name past __minlen; in the loop over __i3, don't
1955 decrease __nmatches and increase __i3 at once, only either of
1958 2004-06-13 Paolo Carlini <pcarlini@suse.de>
1960 * include/bits/locale_facets.tcc (time_get<>::do_get_time,
1961 time_get<>::do_get_date): Use only once _M_extract_via_format,
1962 instead of going through "%X"/"%x" and calling it two times
1965 2004-06-12 Paolo Carlini <pcarlini@suse.de>
1967 * include/ext/algorithm: Trivial formatting fixes.
1968 * include/ext/functional: Likewise.
1969 * include/ext/hash_fun.h: Likewise.
1970 * include/ext/iterator: Likewise.
1972 2004-06-12 Paolo Carlini <pcarlini@suse.de>
1974 * include/bits/basic_string.tcc (find(const _CharT*, size_type,
1975 size_type)): Reimplement using std::search.
1976 * src/string-inst.cc: Instantiate std::search for char/wchar_t.
1978 2004-06-12 Dhruv Matani <dhruvbird@gmx.net>
1980 * testsuite/performance/21_strings/string_find.cc: New.
1982 2004-06-10 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
1984 * include/bits/istream.tcc (istream::ignore): Fix for -Wuninitialized.
1986 2004-06-10 Jan van Dijk <jan@etpmod.phys.tue.nl>
1988 * include/std/std_complex.h (sin(const complex<_Tp>& __z)): Make
1989 this function return a value.
1991 2004-06-09 Paolo Carlini <pcarlini@suse.de>
1994 * include/bits/stl_deque.h: Consistently with stl_set.h, define
1995 pointer as allocator's pointer, likewise for reference,
1996 const_pointer, and const_reference.
1997 * include/bits/stl_list.h: Likewise.
1998 * include/bits/stl_map.h: Likewise.
1999 * include/bits/stl_multimap.h: Likewise.
2000 * include/bits/stl_vector.h: Likewise.
2002 2004-06-09 Benjamin Kosnik <bkoz@redhat.com>
2004 * crossconfig.m4: Remove signbit, signbitf, signbitl.
2005 * linkage.m4: Comment LIBMATHOBJS, tweak others. AC_DEFINES for
2006 builtin math functions instead of AC_DEFINE_UNQUOTED.
2007 * configure: Regenerate.
2009 2004-06-08 Benjamin Kosnik <bkoz@redhat.com>
2011 * docs/doxygen/filter.sed: Rename _GLIBCXX_STD to std.
2012 * docs/doxygen/mainpage.html: Remove links.
2014 2004-06-08 Jason Merrill <jason@redhat.com>
2016 * config/linker-map.gnu: Use wildcards for
2017 __basic_file::{xsgetn,xsputn,seekoff,xsputn_2}.
2019 2004-06-08 Paolo Carlini <pcarlini@suse.de>
2021 * include/ext/pool_allocator.h: Convert to a global free-list,
2022 as per the original SGI/HP design: move the implementation
2023 details to struct __pool_base, from which __pool_alloc derives.
2024 * src/allocator.cc: Instantiate __pool_base.
2026 2004-06-07 Dhruv Matani <dhruvbird@gmx.net>
2027 Paolo Carlini <pcarlini@suse.de>
2029 * testsuite/testsuite_performance.h
2030 (resource_counter::allocated_memory): Make it return the right
2031 number of bytes requested by the allocators/application. This is
2032 the sbrk+mmaped memory.
2034 2004-06-02 Gabriel Dos Reis <gdr@integrable-solutions.net>
2036 * include/std/std_complex.h (log): Tidy.
2038 2004-05-31 Benjamin Kosnik <bkoz@redhat.com>
2040 * config/linker-map.gnu (GLIBCXX_3.4.1): Add.
2041 * testsuite/testsuite_abi.cc: Same.
2042 * configure.ac (libtool_VERSION): Bump to 6:1:0.
2043 * configure: Regenerate.
2044 * aclocal.m4: Regenerate.
2046 2004-05-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
2048 * include/std/std_complex.h (complex<_Tp>): Properly indent
2050 (complex<>::__rep): New.
2051 (__complex_abs): New. Dispatch to built-ins.
2053 (__complex_arg): New. Dispatch to built-ins.
2055 (__complex_cos): New. Dispatch to built-ins.
2057 (__complex_cosh): New. Dispatch to built-ins.
2059 (__complex_exp): New. Dispatch to built-ins.
2061 (__complex_log): New. Dispatch to built-ins.
2063 (__complex_sin): New. Dispatch to built-ins.
2065 (__complex_sinh): New. Dispatch to built-ins.
2067 (__complex_sqrt): New. Dispatch to built-ins.
2069 (__complex_tan): New. Dispatch to built-ins.
2071 (__complex_tanh): New. Dispatch to built-ins.
2073 (__complex_pow): New. Dispatch to built-ins.
2076 2004-05-29 Richard B. Kreckel <Richard.Kreckel@Framatome-ANP.com>
2077 Benjamin Kosnik <bkoz@redhat.com>
2080 * include/ext/stdio_sync_filebuf.h (stdio_sync_filebuf::file): New.
2081 * include/ext/stdio_filebuf.h (stdio_filebuf::file): New.
2082 * config/io/basic_file_stdio.cc (__basic_file::file): New.
2083 * config/io/basic_file_stdio.h: Define.
2085 2004-05-27 Benjamin Kosnik <bkoz@redhat.com>
2088 * docs/html/documentation.html: Update doxygen links for 3.4.0.
2090 2004-05-27 Jan Beulich <jbeulich@novell.com>
2092 * scripts/create_testsuite_files: Tweak.
2094 2004-05-25 Benjamin Kosnik <bkoz@redhat.com>
2097 * scripts/create_testsuite_files: Revert xtype change, add non-GNU
2098 bits to do the same thing.
2100 2004-05-24 Paolo Carlini <pcarlini@suse.de>
2102 * include/bits/istream.tcc (ignore): Correctly deal with
2103 n == numeric_limits<streamsize>::max().
2104 * testsuite/27_io/basic_istream/ignore/char/2.cc: New.
2106 * include/bits/istream.tcc (basic_istream<>::getline): Prefer
2107 '_M_gcount + 1 < __n' to '--__n; _M_gcount < __n', just in case
2108 __n == numeric_limits<>::min().
2110 * include/bits/istream.tcc: Minor tweaks.
2112 * testsuite/21_strings/basic_string/inserters_extractors/char/10.cc:
2114 * testsuite/21_strings/basic_string/inserters_extractors/char/11.cc:
2116 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/10.cc:
2118 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc:
2120 * testsuite/27_io/basic_istream/getline/char/5.cc: Likewise.
2122 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
2125 Fixups for -Weffc++.
2126 * include/bits/basic_string.h (basic_string::operator=): Return
2127 pointer to this instead of result of assign. Although redundant,
2128 this doesn't impact resultant codegen.
2130 * include/bits/locale_facets.h (__numpunct_cache): Declare
2131 assignment opxserator and copy constructor private.
2132 (__timepunct_cache): Same.
2133 (__moneypunct_cache): Same.
2134 (collate): Use member initialization list for _M_c_locale_collate.
2135 * config/locale/gnu/messages_members.h: Same.
2136 * config/locale/gnu/time_members.h (__timepunct): Same.
2137 * src/codecvt.cc: Use member initialization list to initialize
2138 _M_c_locale_codecvt.
2139 * src/ctype.cc: Same, with _M_c_locale_ctype and _M_narrow_ok.
2140 * config/os/gnu-linux/ctype_noninline.h: Same.
2141 * src/locale.cc (_Impl): Same.
2142 * src/locale_init.cc: Same.
2143 * src/localename.cc: Same.
2145 * include/bits/basic_ios.h (basic_ios): Complete member
2146 initialization list.
2147 * include/bits/istream.tcc (basic_istream::sentry): Same.
2148 * include/bits/ostream.tcc (basic_ostream::sentry): Same.
2149 * include/bits/fstream.tcc (basic_filebuf): Add _M_lock and
2150 _M_pback to member initialization list.
2151 * include/std/std_streambuf.h: Same.
2152 * include/std/std_sstream.h: Same, for _M_mode.
2153 * src/ios.cc (ios_base): Same.
2155 * include/ext/rope: Make derived classes match exception
2157 specifications. Add copy constructors and assignment operators.
2159 * include/debug/safe_base.h (_Safe_sequence_base): Declare copy
2160 constructor and assignment operator protected.
2161 (_Safe_iterator_base): Same.
2162 * include/debug/formatter.h (_Error_formatter): Define copy
2163 constructor and assignment operator.
2165 * include/backward/strstream: Declare assignment operator and copy
2166 constructor private.
2168 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
2170 * testsuite/testsuite_hooks.h (func_callback): Declare copy
2171 constructor and assignment operator private.
2172 * testsuite/23_containers/deque/cons/clear_allocator.cc: Match
2173 exception specifications of base class.
2174 * testsuite/23_containers/list/cons/clear_allocator.cc: Same.
2175 * testsuite/23_containers/vector/cons/clear_allocator.cc: Same.
2176 * testsuite/23_containers/vector/bool/clear_allocator.cc: New.
2178 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
2180 * libsupc++/cxxabi.h: Remove duplicated and useless public and
2181 private keywords in class declarations. Format. Use
2182 stddef.h. Expose declarations to "C" compilation.
2183 * libsupc++/tinfo.cc (__upcast_result): Add copy constructor and
2184 assignment operator.
2185 (__dyncast_result): Same.
2186 * libsupc++/vec.cc (uncatch_exception): Same, use member
2187 initialization list.
2189 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
2191 * testsuite/abi_check.cc: Add unistd.h.
2193 2004-05-22 Paolo Carlini <pcarlini@suse.de>
2196 * include/bits/locale_facets.tcc (__int_to_char(unsigned long),
2197 __int_to_char(unsigned long long)): Showpos is not relevant
2199 * testsuite/22_locale/num_put/put/char/15565.cc: New.
2200 * testsuite/22_locale/num_put/put/wchar_t/15565.cc: New.
2202 * testsuite/22_locale/num_put/put/wchar_t/1.cc: Use L for the fill
2204 * testsuite/22_locale/num_put/put/wchar_t/2.cc: Likewise.
2205 * testsuite/22_locale/num_put/put/wchar_t/3.cc: Likewise.
2206 * testsuite/22_locale/num_put/put/wchar_t/4.cc: Likewise.
2207 * testsuite/22_locale/num_put/put/wchar_t/5.cc: Likewise.
2208 * testsuite/22_locale/num_put/put/wchar_t/6.cc: Likewise.
2209 * testsuite/22_locale/num_put/put/wchar_t/8.cc: Likewise.
2211 2004-05-21 Matthias Klose <doko@debian.org>
2213 * docs/doxygen/run_doxygen: Bump required version.
2215 2004-05-21 Benjamin Kosnik <bkoz@redhat.com>
2217 * docs/html/abi.html (libgcc_s): Additions suggested by Matthias Klose.
2218 * docs/doxygen/Intro.3: Subtractions suggested by Phil Edwards.
2220 2004-05-21 Paolo Carlini <pcarlini@suse.de>
2222 * include/bits/istream.tcc (ignore): Remove redundant line.
2223 (readsome): Tidy, closely following 27.6.1.3, p30.
2225 2004-05-20 Paolo Carlini <pcarlini@suse.de>
2227 * include/bits/istream.tcc (operator>>(basic_istream<>&,
2228 basic_string<>&)): Use a temporary buffer, thus avoiding
2229 reallocation for common case.
2230 * testsuite/21_strings/basic_string/inserters_extractors/char/11.cc:
2232 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc:
2235 * include/bits/istream.tcc: Const-ification of a few variables.
2237 * include/bits/ostream.tcc: Trivial formatting fixes and
2238 const-ification of some variables.
2240 2004-05-20 Benjamin Kosnik <bkoz@redhat.com>
2244 * docs/doxygen/Intro.3: Remove Allocators.3.
2245 Add new extension headers, extension namespace list.
2246 * docs/doxygen/run_doxygen (problematic): Remove Allocators.3
2247 Rename GLIBCXXSTD names to std::. Rename __gnu_debug to
2248 __gnu_debug::. Remove __policy_ renames.
2249 * docs/doxygen/guide.html: Add dot note.
2250 * docs/doxygen/stdheader.cc: Edit, add files.
2251 * docs/doxygen/user.cfg.in: Regenerate with Doxygen 1.3.7.
2253 2004-05-18 Jonathan Wakely <redi@gcc.gnu.org>
2255 * include/ext/stdio_filebuf.h: Update comments to reflect PR 11691.
2257 2004-05-18 Jan Beulich <jbeulich@novell.com>
2260 * scripts/create_testsuite_files: Also find source files through
2263 2004-05-18 Jan Beulich <jbeulich@novell.com>
2266 * testsuite/lib/libstdc++.exp: Make test files writable.
2268 2004-05-18 Paolo Carlini <pcarlini@suse.de>
2270 * include/ext/mt_allocator.h:(__mt_alloc::allocate): Minor
2273 2004-05-18 Dhruv Matani <dhruvbird@gmx.net>
2275 * include/ext/mt_allocator.h:(__mt_alloc::allocate): Re-write
2276 allocation loop which removes blocks from the global free list
2277 from O(N) to O(1) when the required blocks are <= the number
2280 2004-05-18 Jonathan Wakely <redi@gcc.gnu.org>
2282 * include/ext/enc_filebuf.h: Move concept-check macro to class scope.
2284 2004-05-17 Benjamin Kosnik <bkoz@redhat.com>
2286 * testsuite/testsuite_hooks.h (__gnu_test::conversion): New class.
2287 * testsuite/23_containers/deque/14340.cc: New.
2288 * testsuite/23_containers/list/14340.cc: New.
2289 * testsuite/23_containers/map/14340.cc: New.
2290 * testsuite/23_containers/multimap/14340.cc: New.
2291 * testsuite/23_containers/multiset/14340.cc: New.
2292 * testsuite/23_containers/set/14340.cc: New.
2293 * testsuite/23_containers/vector/14340.cc: New.
2295 2004-05-17 Douglas Gregor <gregod@cs.rpi.edu>
2298 * include/debug/safe_iterator.h (_Safe_iterator converting
2299 constructor): Only allow declaration to instantiate when the
2300 incoming _Safe_iterator has exactly the right iterator type.
2302 2004-05-17 Jonathan Wakely <redi@gcc.gnu.org>
2304 * include/bits/boost_concept_check.h: Fix old attribute syntax.
2305 * testsuite/23_containers/map/modifiers/swap.cc: Define operator<
2306 to pass concept-checks.
2307 * testsuite/23_containers/multimap/modifiers/swap.cc: Same.
2308 * testsuite/23_containers/set/modifiers/swap.cc: Same.
2309 * testsuite/23_containers/multiset/modifiers/swap.cc: Same.
2311 2004-05-16 Paolo Carlini <pcarlini@suse.de>
2313 * include/std/std_bitset.h: Minor formatting fixes.
2315 2004-05-16 Paolo Carlini <pcarlini@suse.de>
2317 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
2318 Consistently update __bin._M_free[0].
2319 (__mt_alloc<>::allocate): When __bin._M_first[0] != NULL use
2320 __bin._M_free[0] to simplify the while loop (i.e., the number
2321 of iterations becomes known at the outset).
2323 2004-05-15 Paolo Carlini <pcarlini@suse.de>
2325 * include/std/std_bitset.h: Trivial formatting fixes.
2327 2004-05-14 Paolo Carlini <pcarlini@suse.de>
2328 Ivan Godard <igodard@pacbell.net>
2331 * include/std/std_bitset.h (_Base_bitset<_Nw>::_M_do_find_next): Fix.
2332 * testsuite/23_containers/bitset/ext/15361.cc: New.
2334 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
2337 * crossconfig.m4: Add C99 math bits for linux crosses.
2338 * configure: Regenerate.
2340 2004-05-13 Simon Marshall <simon.marshall@misys.com>
2341 Benjamin Kosnik <bkoz@redhat.com>
2344 * include/bits/locale_facets.h: Fix for -fno-for-scope.
2345 * include/debug/safe_sequence.h: Same.
2346 * include/debug/safe_iterator.tcc: Same.
2347 * src/debug.cc: Same.
2348 * src/locale.cc: Same.
2349 * src/locale_init.cc: Same.
2350 * src/localename.cc: Same.
2351 * config/locale/gnu/ctype_members.cc: Same.
2352 * config/locale/gnu/numeric_members.cc: Same.
2353 * testsuite/testsuite_abi.cc: Same.
2354 * testsuite/testsuite_hooks.cc: Same.
2356 2004-05-13 Jonathan Wakely <redi@gcc.gnu.org>
2358 * docs/html/abi.html: Document effect of -fabi-version on value
2359 of __GXX_ABI_VERSION, and that it's defined in c-cppbuiltin.c.
2362 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
2365 * docs/html/faq/index.html: Update docs for libsupc++ usage.
2367 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
2370 * include/bits/stl_threads.h (_GLIBCXX_mutex): Move to namespace
2372 (_GLIBCXX_mutex_address): Same.
2373 (_GLIBCXX_once): Same.
2374 (_GLIBCXX_mutex_init): Same.
2375 (_GLIBCXX_mutex_address_init): Same.
2377 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
2379 * docs/html/abi.html: New.
2380 * docs/html/abi.txt: Remove.
2381 * docs/html/documentation.html: Add link.
2382 * testsuite/Makefile.am: Add files.
2383 * testsuite/Makefile.in: Regenerated.
2384 * testsuite/abi_check.cc: Move and modify code into...
2385 * testsuite/testsuite_abi.cc: Add.
2386 * testsuite/testsuite_abi.h: Add.
2388 * docs/html/17_intro/TODO: Update.
2389 * include/bits/stl_pair.h: Format.
2391 2004-05-06 Matthias Klose <doko@debian.org>
2393 * include/backward/iterator.h: Add GPL copyright info,
2394 with exception clause.
2395 * include/bits/boost_concept_check.h: Likewise.
2397 * libsupc++/tinfo.h: Likewise.
2398 * po/string_literals.cc: Likewise.
2400 2004-05-03 Andreas Tobler <a.tobler@schweiz.ch>
2402 * acinclude.m4: Replace -W with more speaking -Wextra.
2403 * configure: Rebuilt.
2405 2004-05-03 Paolo Carlini <pcarlini@suse.de>
2407 Optimize locale::_M_impl->_M_names for the most common cases:
2408 !_M_names[0] means unnamed; !_M_names[1] means all the categories
2409 the same name (_M_names[0] && _M_names[1] means that the full set
2410 of _M_names must be processed, the general case).
2411 * include/bits/locale_classes.h (locale::_Impl::_M_check_same_name):
2412 Tweak, saving work when !_M_names[1].
2413 (locale::locale(const locale&, _Facet*): Simplify: now just setting
2414 _M_names[0] = 0 means unnamed.
2415 * src/locale.cc (locale::operator==): Deal first with the common,
2416 easy cases, otherwise fall back to locale::name().
2417 (locale::name()): Tweak, if !_M_names[0] just return "*".
2418 (locale::_Impl::_Impl(const _Impl&, size_t): Tweak, early stop
2419 copying __imp._M_names if !__imp._M_names[0] or !__imp._M_names[1].
2420 * src/locale_init.cc (locale::_Impl::_Impl(size_t)): Tweak.
2421 * src/localename.cc (locale::_Impl::_Impl(const char*, size_t):
2422 Simplify when !std::strchr, just updating _M_names[0]; clean up.
2423 (locale::_Impl::_M_replace_categories): When !_M_names[1] prepare
2424 for the general case (full set of names), then do the usual work;
2427 * src/locale.cc (locale::name()): Reserve space in __ret.
2428 * src/locale_init.cc (locale::global(const locale&)): Save
2429 the name in a temporary.
2430 * src/localename.cc (locale::locale(const char*)): Reserve space
2433 2004-04-29 Paolo Carlini <pcarlini@suse.de>
2435 * src/locale.cc (locale::operator==): Always avoid constructing
2436 locale::name(), directly compare pairs of _M_names.
2438 2004-04-26 Paolo Carlini <pcarlini@suse.de>
2440 * include/bits/istream.tcc: Fix comment.
2442 2004-04-26 Paolo Carlini <pcarlini@suse.de>
2444 * include/bits/stl_vector.h: Trivial formatting fixes.
2445 * include/bits/vector.tcc: Likewise.
2447 2004-04-25 Paolo Carlini <pcarlini@suse.de>
2449 PR libstdc++/15002 (continued again)
2450 * include/bits/istream.tcc (getline(basic_istream<>&,
2451 basic_string<>&, _CharT)): Use a temporary buffer, thus
2452 avoiding reallocation for common case.
2454 * include/bits/basic_string.tcc (_S_construct(_InIterator,
2455 _InIterator, const _Alloc&, input_iterator_tag)): Tweak size
2456 of temporary buffer to a power of two.
2458 * testsuite/27_io/basic_istream/getline/char/4.cc: Add comment.
2460 2004-04-25 Paolo Carlini <pcarlini@suse.de>
2462 * testsuite/21_strings/basic_string/inserters_extractors/char/10.cc:
2464 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/10.cc:
2466 * testsuite/27_io/basic_istream/getline/char/5.cc: Likewise.
2468 2004-04-24 Paolo Carlini <pcarlini@suse.de>
2469 Petur Runolfsson <peturr02@ru.is>
2471 PR libstdc++/15002 (continued)
2472 * include/bits/istream.tcc (basic_istream<>::getline(char_type*,
2473 streamsize, char_type)): Use traits::find/copy in a loop to speed
2474 up greatly the function in the common case (I/O buffer size >> 1).
2476 2004-04-24 Paolo Carlini <pcarlini@suse.de>
2478 * testsuite/27_io/basic_istream/getline/char/4.cc: New.
2480 * include/bits/istream.tcc (getline(basic_istream<>&,
2481 basic_string<>&, _CharT)): Change to use sgetc()/snextc() instead
2482 of sbumpc(), consistently with the other functions, thus also
2483 dealing correctly with the case of exceeded string::max_size().
2485 2004-04-24 Matthias Klose <doko@debian.org>
2487 Jonathan Wakely <cow@compsoc.man.ac.uk>
2488 * docs/html/configopts.html: Fix reference to allocator config option.
2490 2004-04-23 Andrew Pinski <pinskia@physics.uc.edu>
2492 * linkage.m4 (GLIBCXX_CHECK_MATH_SUPPORT): Check for libmx also.
2493 * configure: Regenerate.
2495 2004-04-23 Daniel Jacobowitz <drow@mvista.com>
2497 PR libstdc++/15047, libstdc++/11610
2498 * testsuite/lib/libstdc++.exp (v3-copy-files): Use remote_download.
2499 (libstdc++_init): Don't pass outdir to v3-copy-files.
2501 2004-04-21 Paolo Carlini <pcarlini@suse.de>
2503 * include/bits/deque.tcc: Trivial formatting fixes.
2504 * include/bits/stl_deque.h: Likewise.
2505 * include/bits/stl_list.h: Likewise.
2506 * include/bits/stl_tree.h: Likewise.
2508 2004-04-21 Paolo Carlini <pcarlini@suse.de>
2509 Andrew Pinski <pinskia@physics.uc.edu>
2511 * include/bits/basic_string.tcc (_M_mutate): Don't compute
2512 __src unnecessarily.
2514 2004-04-19 Benjamin Kosnik <bkoz@redhat.com>
2516 * testsuite/27_io/basic_istream/extractors_character/char/9555-ic.cc:
2517 Clarify assertion, set test variable to false before assert.
2518 * testsuite/27_io/basic_istringstream/str/char/1.cc: Same.
2519 * testsuite/27_io/basic_stringstream/str/char/1.cc: Same.
2520 * testsuite/27_io/ios_base/storage/2.cc: Same.
2522 * testsuite/27_io/basic_filebuf/imbue/char/13171-4.cc: Fix
2524 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-3.cc: Same.
2525 * testsuite/27_io/fpos/14320-3.cc: Same.
2527 * testsuite/27_io/basic_filebuf/2.cc: Instantiate in namespace std.
2528 * testsuite/27_io/fpos/1.cc: Same.
2529 * testsuite/27_io/basic_stringstream/2.cc: Same.
2530 * testsuite/27_io/basic_stringbuf/4.cc: Same.
2531 * testsuite/27_io/basic_stringbuf/1.cc: Same.
2532 * testsuite/27_io/basic_stringbuf/2.cc: Same.
2533 * testsuite/27_io/basic_streambuf/2.cc: Same.
2534 * testsuite/27_io/basic_ostringstream/2.cc: Same.
2535 * testsuite/27_io/basic_ostream/2.cc: Same.
2536 * testsuite/27_io/basic_ofstream/2.cc: Same.
2537 * testsuite/27_io/basic_istringstream/2.cc: Same.
2538 * testsuite/27_io/basic_istream/2.cc: Same.
2539 * testsuite/27_io/basic_iostream/2.cc: Same.
2540 * testsuite/27_io/basic_ios/2.cc: Same.
2541 * testsuite/27_io/basic_ifstream/2.cc: Same.
2542 * testsuite/27_io/basic_fstream/2.cc: Same.
2543 * testsuite/ext/stdio_filebuf/char/1.cc: Same, in namespace __gnu_cxx.
2545 * testsuite/21_strings/basic_string/capacity/1.cc: Don't compare
2546 unsigned against zero.
2547 * testsuite/21_strings/basic_string/capacity/wchar_t/1.cc: Same.
2548 * testsuite/21_strings/basic_string/capacity/char/1.cc: Same.
2550 * testsuite/18_support/new_delete_placement.cc: Initialize
2551 variables before first use.
2552 * testsuite/21_strings/char_traits/requirements/wchar_t/1.cc: Same.
2553 * testsuite/21_strings/char_traits/requirements/char/1.cc: Same.
2554 * testsuite/21_strings/char_traits/requirements/short/1.cc: Same.
2555 * testsuite/27_io/basic_istream/seekg/char/exceptions_badbit_throw.cc:
2557 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/exceptions_badbit_throw.cc: Same.
2558 * testsuite/27_io/basic_ostream/seekp/char/exceptions_badbit_throw.cc:
2560 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/exceptions_failbit_throw.cc: Same.
2561 * testsuite/27_io/types/2.cc: Same.
2563 * testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc: Fix temporary
2565 * testsuite/27_io/fpos/14775.cc: Same.
2567 2004-04-19 Paolo Carlini <pcarlini@suse.de>
2569 PR libstdc++/15002 (partial)
2570 * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
2571 Special case __n2 == 1, not calling traits_type::assign/copy.
2573 2004-04-17 Benjamin Kosnik <bkoz@redhat.com>
2575 * include/bits/stl_bvector.h: Use _M_impl._M_start.
2577 2004-04-16 Benjamin Kosnik <bkoz@redhat.com>
2579 * include/bits/c++config (_GLIBCXX_STD): New.
2580 * src/list.cc: Use it.
2581 * include/std/std_bitset.h: Same.
2582 * include/bits/vector.tcc: Same.
2583 * include/bits/stl_set.h: Same.
2584 * include/bits/stl_multiset.h: Same.
2585 * include/bits/stl_multimap.h: Same.
2586 * include/bits/stl_map.h: Same.
2587 * include/bits/stl_list.h: Same.
2588 * include/bits/stl_vector.h: Same.
2589 * include/bits/stl_bvector.h: Same.
2590 * include/bits/stl_deque.h: Same.
2591 * include/bits/deque.tcc: Same.
2592 * include/bits/list.tcc: Same.
2593 * include/debug/vector: Same.
2594 * include/debug/set.h: Same.
2595 * include/debug/multiset.h: Same.
2596 * include/debug/multimap.h: Same.
2597 * include/debug/map.h: Same.
2598 * include/debug/list: Same.
2599 * include/debug/deque: Same.
2600 * include/debug/bitset: Same.
2601 * include/debug/formatter.h (__gnu_debug): Remove using directive.
2602 Add using declaration for std::type_info.
2603 * include/debug/safe_iterator.h: Add using declaration for
2604 std::iterator_traits and std::pair.
2605 * src/debug_list.cc: New.
2606 * src/Makefile.am: Add debug_list.cc.
2607 * src/Makefile.in: Regenerate.
2608 * config/linker-map.gnu: Add _List_node_base exports for std and
2611 * include/bits/stl_bvector.h (_Bvector_base): Use _Bvector_impl
2612 idiom that other containers use.
2613 * testsuite/23_containers/vector/bool/clear_allocator.cc: New.
2615 2004-04-16 Paolo Carlini <pcarlini@suse.de>
2618 * include/bits/fstream.tcc (basic_filebuf::imbue): Zero _M_codecvt
2620 * testsuite/27_io/basic_filebuf/imbue/char/14975-1.cc: New.
2621 * testsuite/27_io/basic_filebuf/imbue/wchar_t/14975-2.cc: New.
2623 2004-04-16 Paolo Carlini <pcarlini@suse.de>
2625 * acconfig.h: Remove _GLIBCXX_USE_LONG_DOUBLE entry, not
2627 * config.h.in: Regenerate.
2629 2004-04-16 Paolo Carlini <pcarlini@suse.de>
2631 * config/locale/generic/monetary_members.cc
2632 (moneypunct<wchar_t>::_M_initialize_moneypunct): Avoid calling
2633 btowc unnecessarily, just cast to wchar_t (the concerned chars
2634 all belong to the basic character set).
2635 * config/locale/generic/numeric_members.cc
2636 (numpunct<wchar_t>::_M_initialize_numpunct): Likewise.
2637 * config/locale/gnu/monetary_members.cc
2638 (moneypunct<wchar_t>::_M_initialize_moneypunct): Likewise.
2639 * config/locale/gnu/numeric_members.cc
2640 (numpunct<wchar_t>::_M_initialize_numpunct): Likewise.
2642 2004-04-15 Paolo Carlini <pcarlini@suse.de>
2644 * src/locale.cc (locale::operator==): When _M_impl == __rhs._M_impl
2645 avoid constructing unnecessarily this->name().
2647 2004-04-14 Zack Weinberg <zack@codesourcery.com>
2649 * testsuite/Makefile.am: Add definition of AM_CXXFLAGS.
2650 Change definition of CXX to use $(shell) instead of backticks.
2651 * testsuite/Makefile.in: Regenerate.
2653 2004-04-12 Dhruv Matani <dhruvbird@gmx.net>
2655 * testsuite/performance/20_util/allocator/list_sort_search.cc:
2656 Minor formatting fixes.
2657 * testsuite/performance/20_util/allocator/map_mt_find.cc:
2660 2004-04-12 Paolo Carlini <pcarlini@suse.de>
2662 * config/locale/gnu/numeric_members.cc
2663 (numpunct<wchar_t>::_M_initialize_numpunct): No need to wrap
2664 in __uselocale, since btowc is called for chars belonging to
2665 the basic character set.
2667 2004-04-09 Paolo Carlini <pcarlini@suse.de>
2669 * testsuite/22_locale/messages/members/char/1.cc: Remove junk.
2670 * testsuite/22_locale/messages/members/char/2.cc: Ditto.
2671 * testsuite/22_locale/messages/members/char/3.cc: Ditto.
2672 * testsuite/22_locale/num_get/get/char/1.cc: Ditto.
2673 * testsuite/22_locale/num_get/get/char/2.cc: Ditto.
2674 * testsuite/22_locale/num_get/get/char/3.cc: Ditto.
2675 * testsuite/22_locale/num_get/get/wchar_t/1.cc: Ditto.
2676 * testsuite/22_locale/num_get/get/wchar_t/2.cc: Ditto.
2677 * testsuite/22_locale/num_get/get/wchar_t/3.cc: Ditto.
2678 * testsuite/22_locale/num_put/put/char/1.cc: Ditto.
2679 * testsuite/22_locale/num_put/put/char/2.cc: Ditto.
2680 * testsuite/22_locale/num_put/put/char/3.cc: Ditto.
2681 * testsuite/22_locale/num_put/put/wchar_t/1.cc: Ditto.
2682 * testsuite/22_locale/num_put/put/wchar_t/2.cc: Ditto.
2683 * testsuite/22_locale/num_put/put/wchar_t/3.cc: Ditto.
2684 * testsuite/22_locale/numpunct/members/char/1.cc: Ditto.
2685 * testsuite/22_locale/numpunct/members/wchar_t/1.cc: Ditto.
2687 2004-04-07 Paolo Carlini <pcarlini@suse.de>
2689 * config/locale/generic/time_members.cc
2690 (__timepunct<char>::_M_initialize_timepunct,
2691 __timepunct<wchar_t>::_M_initialize_timepunct): the correct
2692 _M_amonth07 in the "C" locale is "Jul" and L"Jul", respectively.
2693 * config/locale/gnu/time_members.cc
2694 (__timepunct<char>::_M_initialize_timepunct,
2695 __timepunct<wchar_t>::_M_initialize_timepunct): Ditto.
2696 * testsuite/22_locale/time_get/get_monthname/char/4.cc: New.
2697 * testsuite/22_locale/time_get/get_monthname/wchar_t/4.cc: New.
2699 * testsuite/22_locale/time_get/date_order/char/1.cc: Remove junk.
2700 * testsuite/22_locale/time_get/date_order/wchar_t/1.cc: Ditto.
2701 * testsuite/22_locale/time_get/get_date/char/1.cc: Ditto.
2702 * testsuite/22_locale/time_get/get_date/char/2.cc: Ditto.
2703 * testsuite/22_locale/time_get/get_date/wchar_t/1.cc: Ditto.
2704 * testsuite/22_locale/time_get/get_date/wchar_t/2.cc: Ditto.
2705 * testsuite/22_locale/time_get/get_monthname/char/1.cc: Ditto.
2706 * testsuite/22_locale/time_get/get_monthname/char/2.cc: Ditto.
2707 * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Ditto.
2708 * testsuite/22_locale/time_get/get_monthname/wchar_t/2.cc: Ditto.
2709 * testsuite/22_locale/time_get/get_time/char/1.cc: Ditto.
2710 * testsuite/22_locale/time_get/get_time/char/2.cc: Ditto.
2711 * testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Ditto.
2712 * testsuite/22_locale/time_get/get_time/wchar_t/2.cc: Ditto.
2713 * testsuite/22_locale/time_get/get_weekday/char/1.cc: Ditto.
2714 * testsuite/22_locale/time_get/get_weekday/char/2.cc: Ditto.
2715 * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Ditto.
2716 * testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc: Ditto.
2717 * testsuite/22_locale/time_get/get_year/char/1.cc: Ditto.
2718 * testsuite/22_locale/time_get/get_year/wchar_t/1.cc: Ditto.
2719 * testsuite/22_locale/time_put/put/char/1.cc: Ditto.
2720 * testsuite/22_locale/time_put/put/char/2.cc: Ditto.
2721 * testsuite/22_locale/time_put/put/char/3.cc: Ditto.
2722 * testsuite/22_locale/time_put/put/char/4.cc: Ditto.
2723 * testsuite/22_locale/time_put/put/char/5.cc: Ditto.
2724 * testsuite/22_locale/time_put/put/char/6.cc: Ditto.
2725 * testsuite/22_locale/time_put/put/char/7.cc: Ditto.
2726 * testsuite/22_locale/time_put/put/char/8.cc: Ditto.
2727 * testsuite/22_locale/time_put/put/wchar_t/1.cc: Ditto.
2728 * testsuite/22_locale/time_put/put/wchar_t/2.cc: Ditto.
2729 * testsuite/22_locale/time_put/put/wchar_t/3.cc: Ditto.
2730 * testsuite/22_locale/time_put/put/wchar_t/4.cc: Ditto.
2731 * testsuite/22_locale/time_put/put/wchar_t/5.cc: Ditto.
2732 * testsuite/22_locale/time_put/put/wchar_t/6.cc: Ditto.
2733 * testsuite/22_locale/time_put/put/wchar_t/7.cc: Ditto.
2734 * testsuite/22_locale/time_put/put/wchar_t/8.cc: Ditto.
2736 * testsuite/22_locale/time_put/put/char/9780-1.cc: Fix typos.
2738 2004-04-07 Paolo Carlini <pcarlini@suse.de>
2740 * config/locale/gnu/monetary_members.cc
2741 (moneypunct<wchar_t>::_M_initialize_moneypunct): Prefer
2742 _NL_MONETARY_DECIMAL_POINT_WC, _NL_MONETARY_THOUSANDS_SEP_WC,
2743 and __MON_GROUPING to _NL_NUMERIC_DECIMAL_POINT_WC,
2744 _NL_NUMERIC_THOUSANDS_SEP_WC, and GROUPING.
2745 * config/locale/gnu/numeric_members.cc
2746 (numpunct<char>::_M_initialize_numpunct): Prefer DECIMAL_POINT
2747 and THOUSANDS_SEP to the deprecated RADIXCHAR and THOUSEP.
2749 2004-04-06 Benjamin Kosnik <bkoz@redhat.com>
2751 Fixups for EDG front end.
2752 * include/ext/rope: Instead of non-existent function
2753 _Data_allocate, use allocator's allocate. Use this.
2754 (namespace _Rope_constants): Move _S_max_rope_depth, and _Tag
2755 enumerations from _Rope_RopeRep here.
2756 * include/ext/ropeimpl.h: Same.
2757 * src/ext-inst.cc (_S_min_len): Fix up definition.
2759 * config/locale/gnu/ctype_members.cc: Qualify base class members
2761 * config/locale/generic/ctype_members.cc: Same.
2762 * config/locale/gnu/messages_members.h: Same.
2763 * config/locale/generic/messages_members.h: Same.
2764 * src/ctype.cc: Same.
2765 * include/bits/codecvt.h: Same.
2767 * include/bits/boost_concept_check.h: Declare.
2768 (__error_type_must_be_an_unsigned_integer_type): Remove this.
2769 (__error_type_must_be_an_integer_type): Remove this.
2770 (__error_type_must_be_a_signed_integer_type): Remove this.
2772 * config/io/basic_file_stdio.cc (__basic_file::sys_open): Remove cast.
2774 * libsupc++/eh_alloc.cc (__cxa_free_exception): Add exception
2775 specification to definition.
2776 (__cxa_allocate_exception): Same.
2777 * libsupc++/eh_catch.cc (__cxa_begin_catch): Same.
2778 * libsupc++/eh_globals.cc (__cxa_get_globals_fast): Same.
2779 (__cxa_get_globals): Same.
2781 * libsupc++/del_op.cc: Add comment about freestanding.
2783 2004-04-05 Paolo Carlini <pcarlini@suse.de>
2785 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
2786 The critical section is actually very small, only two assignments.
2788 2004-04-04 Paolo Carlini <pcarlini@suse.de>
2789 Petur Runolfsson <peturr02@ru.is>
2791 * testsuite/performance/27_io/filebuf_sputn_unbuf.cc: New,
2792 adapted from libstdc++/11378.
2794 2004-04-03 Paolo Carlini <pcarlini@suse.de>
2796 * include/ext/mt_allocator.h (__mt_alloc<>::allocate): Factor out
2797 some duplicated code.
2798 (__mt_alloc<>::_Bin_record): Spare the space of _M_free and _M_used
2799 in the single threaded case.
2800 * testsuite/performance/20_util/allocator/list_sort_search.cc:
2801 Reorder and renumber the tests consistently with the other testfiles.
2802 * testsuite/performance/20_util/allocator/map_mt_find.cc: Ditto.
2803 * testsuite/performance/20_util/allocator/map_thread.cc: Ditto.
2804 * testsuite/performance/20_util/allocator/producer_consumer.cc: Ditto.
2806 2004-04-02 Paolo Carlini <pcarlini@suse.de>
2808 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
2809 Rearrange arithmetic to avoid computing two divisions at
2812 2004-04-01 Paolo Carlini <pcarlini@suse.de>
2814 * include/ext/mt_allocator.h (__mt_alloc<>::_S_initialize):
2815 Streamline the second half, wrapping it in a single
2816 '#ifdef __GTHREADS if (__gthread_active_p())' and avoiding
2817 conditionals inside loops.
2819 2004-04-01 Paolo Carlini <pcarlini@suse.de>
2822 * acconfig.h: Rename _GLIBCXX_MEM_LIMITS to _GLIBCXX_RES_LIMITS.
2823 * acinclude.m4 (GLIBCXX_CHECK_SETRLIMIT): Call
2824 GLIBCXX_CHECK_SETRLIMIT_ancilliary for FSIZE too, adjust define
2825 to _GLIBCXX_RES_LIMITS.
2826 (GLIBCXX_CHECK_SETRLIMIT_ancilliary): Rename HAVE_MEMLIMIT_* to
2828 * testsuite/testsuite_hooks.h: Declare set_file_limit.
2829 * testsuite/testsuite_hooks.cc: Define it, using getrlimit
2830 and setrlimit(RLIMIT_FSIZE).
2831 * testsuite/27_io/fpos/14775.cc: New.
2832 * config.h.in: Regenerate.
2833 * configure: Likewise.
2835 2004-03-31 Paolo Carlini <pcarlini@suse.de>
2837 * config/locale/generic/c_locale.cc (__convert_to_v(long double&)):
2838 In v3 uses of sscanf, the special floating-point numbers INF,
2839 INFINITY, etc., cannot occur in input, therefore, if the latter
2840 is too large, ERANGE is always stored in errno, no need of finitel.
2842 2004-03-30 Benjamin Kosnik <bkoz@redhat.com>
2845 * include/bits/stl_tree.h: Adjust initialization list order.
2847 2004-03-29 Loren J. Rittle <ljrittle@acm.org>
2849 * testsuite/thread/pthread7-rope.cc: Update comment to reflect test.
2851 2004-03-29 Paolo Carlini <pcarlini@suse.de>
2853 * testsuite/thread/pthread7-rope.cc: Fix, unpredictably, depending
2854 on allocator behavior, the memory pointed by data2 may well be not
2857 2004-03-28 Chavdar Botev <cbotev@yahoo.com>
2860 * include/bits/basic_string.tcc
2861 (basic_string::basic_string(const basic_string&)): Pass to
2862 _Rep::_M_grab the actual allocator of the string being constructed
2863 not the default constructed one.
2865 2004-03-27 Benjamin Kosnik <bkoz@redhat.com>
2868 * config/locale/ieee_1003.1-2001/codecvt_specializations.h
2869 (__enc_traits::_M_destroy): New.
2870 (__enc_traits::~__enc_traits): Use it.
2871 (__enc_traits::operator=): Use _M_destroy, _M_init.
2872 (__enc_traits::__enc_traits): Same.
2874 2004-03-27 Petur Runolfsson <peturr02@ru.is>
2876 * testsuite/ext/enc_filebuf/char/13598.cc: New.
2878 2004-03-27 Paolo Carlini <pcarlini@suse.de>
2880 * include/ext/mt_allocator.h: Uglify consistently names of
2881 variables, members and classes; tidy.
2883 2004-03-27 Dhruv Matani <dhruvbird@gmx.net>
2885 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
2886 Deallocation loop rewrote.
2888 2004-03-26 Paolo Carlini <pcarlini@suse.de>
2890 * include/ext/mt_allocator.h (__mt_alloc<>::allocate,
2891 __mt_alloc<>::deallocate): Protect two instances of
2892 block->thread_id with __GTHREADS.
2894 2004-03-25 Gawain Bolton <gp.bolton@computer.org>
2896 * include/bits/stl_tree.h (_Rb_tree_impl): Add _Node_allocator
2897 default argument in constructors.
2898 (_Rb_tree::_M_empty_initialize): Remove.
2900 2004-03-25 Benjamin Kosnik <bkoz@redhat.com>
2902 * testsuite/23_containers/map/operators/1_neg.cc: Adjust line numbers.
2903 * testsuite/23_containers/set/operators/1_neg.cc: Same.
2905 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
2907 * include/bits/cpp_type_traits.h: Changed __is_pod
2908 completely. Now, it does not use any of the previous type_traits
2909 to detect the pod types, and it also detects function pointers as
2912 * include/bits/stl_tree.h: Introduced a new class _Rb_tree_impl,
2913 which encapsulates the internal implementation of an rb_tree. Made
2914 the allocator a base class of this class instead of the rb_tree,
2915 which was not conforming. This _Rb_tree_impl class is also
2916 specialized on whether the _Compare parameter is a POD type or
2917 not. If so, then it maintains the comparison function as a data
2918 member, otherwise it makes the _Compare parameter a base class of
2919 itself. Also, _M_key_compare is now a function instead of a data
2920 member, so that the above trick can work properly. Delegated the
2921 initialization of the other data members to this newly created
2922 class. Also, now other member functions of rb_tree must refer to
2923 _M_key_compare as _M_impl._M_key_compare(). The other data members
2924 (*) can be referenced to as _M_impl.(*), where
2925 (*) includes _M_header, and _M_node_count.
2927 2004-03-25 Paolo Carlini <pcarlini@suse.de>
2929 * include/ext/mt_allocator.h (__mt_alloc<>::tune):
2930 Add _M_min_bin, the size in bytes of the smallest bin.
2931 (__mt_alloc<>::tune()): Tweak accordingly.
2932 (__mt_alloc<>::tune(size_t, ...)): Likewise.
2933 (__mt_alloc<>::block_record): Change to a union: members next
2934 and thread_id are never used at the same time.
2935 (__mt_alloc<>::allocate): Update consistently.
2936 (__mt_alloc<>::deallocate): Likewise.
2937 (__mt_alloc<>::_S_initialize): Update setups of _S_binmap and
2938 _S_bin_size for the configurable _M_min_size.
2940 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
2942 * include/bits/stl_list.h: Created a _List_impl class and made it
2943 derive from the allocator, instead of the list deriving from the
2944 allocator class, which was not conformant. Changed all references
2945 from this->_M_node to this->_M_impl._M_node * bits/list.tcc: Same
2946 as above (changed all references to the concerned variables).
2948 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
2950 * include/bits/stl_deque.h: Created a _Deque_impl class and made
2951 it derive from the allocator, instead of the deque deriving from
2952 the allocator class, which was not conformant. Changed all
2953 references to the _M_start, _M_finish, _M_map, and _M_map_size to
2955 (_Deque_base<_Tp,_Alloc>::~_Deque_base()): Added this->
2956 qualification in 2 places where it was missing.
2957 (_Deque_base<_Tp,_Alloc>::_M_initialize_map(size_t)): Same as
2959 * include/bits/deque.tcc: Same as above (changed all references to
2960 the concerned variables).
2962 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
2964 * include/bits/stl_vector.h: Created a _Vector_impl class and made
2965 it derive from the allocator, instead of the _Vector_base class,
2966 deriving from the allocator which was not conformant. Changed all
2967 references to the _M_start, _M_finish, and _M_end_of_storage to
2969 * include/bits/vector.tcc: Same as above (changed all references
2970 to the concerned variables).
2972 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
2974 * testsuite/23_containers/deque/cons/clear_allocator.cc: New.
2975 * testsuite/23_containers/list/cons/clear_allocator.cc: New.
2976 * testsuite/23_containers/vector/cons/clear_allocator.cc: New.
2978 2004-03-24 Dhruv Matani <dhruvbird@gmx.net>
2980 * include/ext/malloc_allocator.h: Fixed the construct function to
2981 call global placement new instead of assignment. Added a check
2982 after the return from malloc to check whether returned pointer is
2983 NULL, and if so, throw std::bad_alloc().
2984 * include/ext/debug_allocator.h: Added a check in the deallocate
2985 function to check whether the user has passed a NULL pointer or
2988 2004-03-24 Benjamin Kosnik <bkoz@redhat.com>
2990 * docs/html/20_util/allocator.html: Add bitmap_allocator links.
2992 2004-03-24 Andreas Schwab <schwab@suse.de>
2994 * testsuite/lib/prune.exp (prune_g++_output): Ignore errata
2995 warning from IA64 assembler.
2997 2004-03-24 Dhruv Matani <dhruvbird@gmx.net>
2999 * include/ext/bitmap_allocator.h: (_Bit_scan_forward) -> Made this
3000 function call __builtin_ctz instead of the while loop.
3001 (allocate) -> If condition has __builtin_expect.
3002 (deallocate) -> Ditto.
3003 Renamed a few left-over variables and typedefs according to the
3004 C++STYLE mentioned in the documentation.
3005 Protected calls to __gthread* by __gthread_active_p(), whose value
3006 is cached in the local variable __threads_active.
3008 2004-03-24 Felix Yen <fwy@alumni.brown.edu>
3010 * testsuite/performance/20_util/allocator/producer_consumer.cc:
3011 Use linear algorithm for producer.
3013 2004-03-24 Paolo Carlini <pcarlini@suse.de>
3015 * include/ext/mt_allocator.h (__mt_alloc<>::allocate,
3016 __mt_alloc<>::deallocate): Avoid redundant conditionals.
3018 2004-03-23 Benjamin Kosnik <bkoz@redhat.com>
3020 * include/bits/locale_facets.h: Tweaks for 80 column.
3021 (__numpunct_cache::_M_cache): Move to locale_facets.tcc.
3022 (__moneypunct_cache::_M_cache): Same.
3023 (num_get): Don't inherit from __num_base.
3025 (money_get): Don't inherit from money_base.
3027 (__timepunct::_M_am_pm_format): New.
3028 (time_get::_M_extract_num): Return iterator, use ios_base as argument.
3029 (time_get::_M_extract_name): Same.
3030 (time_get::_M_extract_via_format): Same.
3031 * include/bits/locale_facets.tcc: Tweaks for 80 column.
3032 Use _M_getloc instead of getloc.
3033 * testsuite/22_locale/money_put/put/char/9780-3.cc: New.
3034 * testsuite/22_locale/num_put/put/char/9780-2.cc: New.
3035 * testsuite/22_locale/time_put/put/char/9780-1.cc: New.
3037 2004-03-22 Paolo Carlini <pcarlini@suse.de>
3039 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Add pool_allocator.
3040 * configure: Regenerate.
3041 * config/allocator/pool_allocator_base.h: New.
3042 * include/ext/pool_allocator.h: Convert to a standard-conforming
3044 * src/allocator.cc: Tweak instantiations.
3045 * testsuite/performance/20_util/allocator/insert.cc: Add __pool_alloc.
3046 * testsuite/performance/20_util/allocator/insert_insert.cc: Ditto.
3047 * testsuite/performance/20_util/allocator/list_sort_search.cc: Ditto.
3048 * testsuite/performance/20_util/allocator/map_mt_find.cc: Ditto.
3049 * testsuite/performance/20_util/allocator/map_thread.cc: Ditto.
3050 * testsuite/performance/20_util/allocator/producer_consumer.cc: Ditto.
3052 2004-03-22 Hans-Peter Nilsson <hp@axis.com>
3054 * config/cpu/cris/atomicity.h (__atomic_add): Remove "static
3055 inline" and attribute-unused. Qualify parameter __mem with
3057 (__exchange_and_add): Ditto. Add back memory clobber to asm.
3059 2004-03-20 Paolo Carlini <pcarlini@suse.de>
3061 * testsuite/27_io/basic_istream/extractors_arithmetic/char/2.cc:
3063 * testsuite/27_io/basic_istream/extractors_arithmetic/char/3.cc:
3065 * testsuite/27_io/basic_istream/extractors_arithmetic/char/6.cc:
3067 * testsuite/27_io/basic_istream/extractors_arithmetic/char/7.cc:
3069 * testsuite/27_io/basic_istream/extractors_arithmetic/char/8.cc:
3071 * testsuite/27_io/basic_istream/extractors_arithmetic/char/9.cc:
3073 * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
3075 * testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc:
3077 * testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc:
3079 * testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc:
3082 2004-03-20 Paolo Carlini <pcarlini@suse.de>
3084 * include/std/std_valarray.h: Document DR389 [Ready].
3085 * docs/html/ext/howto.html: Add an entry for DR389.
3087 2004-03-19 Michael Eager <eager@mvista.com>
3089 * config/cpu/mips/atomicity.h: Prevent reg loads between LL and
3092 2004-03-19 Paolo Carlini <pcarlini@suse.de>
3094 * testsuite/22_locale/num_get/get/char/11.cc: Remove redundant
3096 * testsuite/22_locale/num_get/get/char/12.cc: Likewise.
3097 * testsuite/22_locale/num_get/get/char/13.cc: Likewise.
3098 * testsuite/22_locale/num_get/get/char/14.cc: Likewise.
3099 * testsuite/22_locale/num_get/get/char/15.cc: Likewise.
3100 * testsuite/22_locale/num_get/get/wchar_t/11.cc: Likewise.
3101 * testsuite/22_locale/num_get/get/wchar_t/12.cc: Likewise.
3102 * testsuite/22_locale/num_get/get/wchar_t/13.cc: Likewise.
3103 * testsuite/22_locale/num_get/get/wchar_t/14.cc: Likewise.
3104 * testsuite/22_locale/num_get/get/wchar_t/15.cc: Likewise.
3106 2004-03-19 Paolo Carlini <pcarlini@suse.de>
3107 Petur Runolfsson <peturr02@ru.is>
3110 * include/ext/stdio_sync_filebuf.h (showmanyc): Remove, there's
3111 no way to find out the conversion used by the underlying FILE*.
3112 * testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc: New.
3113 * testsuite/27_io/objects/char/9.cc: Tweak.
3115 2004-03-19 Paolo Carlini <pcarlini@suse.de>
3118 * include/ext/ropeimpl.h (rope<>::_S_apply_to_pieces): Fix
3119 memory allocation/deallocation calls.
3120 * testsuite/ext/14648.cc: New.
3122 2004-03-19 Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de>
3125 * include/backward/bvector.h (bit_vector): Allocator is in std
3128 2004-03-19 Phil Edwards <phil@codesourcery.com>
3130 * acinclude.m4 (GLIBCXX_CHECK_WCHAR_T_SUPPORT): Set LIBICONV,
3131 not libiconv. SUBST this variable as well.
3132 * testsuite/Makefile.am (site.exp): New target, based on that
3133 created by automake. Also set libiconv.
3135 * configure, Makefile.in, include/Makefile.in, libmath/Makefile.in,
3136 libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in,
3137 testsuite/Makefile.in: Regenerate.
3139 2004-03-16 Benjamin Kosnik <bkoz@redhat.com>
3141 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Default setting is
3142 new_allocator for all hosts.
3143 * configure: Regenerate.
3145 2004-03-16 Paolo Carlini <pcarlini@suse.de>
3147 * testsuite/22_locale/num_put/put/char/4.cc: Fix for 64-bit pointers.
3148 * testsuite/22_locale/num_put/put/wchar_t/4.cc: Likewise.
3150 2004-03-15 Paolo Carlini <pcarlini@suse.de>
3152 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3153 Adjust the logic underlying the parsing of symbol to deal
3154 correctly with an optional sign component (i.e., when either
3155 negative_sign or positive_sign is empty)
3156 * testsuite/22_locale/money_get/get/char/19.cc: New.
3157 * testsuite/22_locale/money_get/get/wchar_t/19.cc: New.
3159 2004-03-15 Paolo Carlini <pcarlini@suse.de>
3161 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3162 Do not accept an incomplete currency symbol.
3163 * testsuite/22_locale/money_get/get/char/18.cc: New.
3164 * testsuite/22_locale/money_get/get/wchar_t/18.cc: New.
3166 2004-03-13 Benjamin Kosnik <bkoz@redhat.com>
3168 * config/allocator: New.
3169 * config/allocator/bitmap_allocator_base.h: New.
3170 * config/allocator/malloc_allocator_base.h: New.
3171 * config/allocator/mt_allocator_base.h: New.
3172 * config/allocator/new_allocator_base.h: New.
3173 * include/bits/allocator.h: Include c++allocator.h.
3174 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): New.
3175 * aclocal.m4: Regenerate.
3176 * configure.ac: Use GLIBCXX_ENABLE_ALLOCATOR.
3177 * configure: Regenerate.
3178 * include/Makefile.am (host_headers_extra): Add c++allocator.h.
3179 * include/Makefile.in: Regenerate.
3180 * docs/html/configopts.html: Add enable-libstdcxx-allocator.
3182 2004-03-12 Benjamin Kosnik <bkoz@redhat.com>
3184 * include/bits/allocator.h: Revert.
3186 2004-03-12 Paolo Carlini <pcarlini@suse.de>
3188 * docs/html/ext/howto.html: Add entry for DR 253 [Ready].
3189 * include/bits/gslice_array.h: Add comment about DR 253.
3190 * include/bits/indirect_array.h: Likewise.
3191 * include/bits/mask_array.h: Likewise.
3192 * include/bits/slice_array.h: Likewise.
3194 2004-03-12 Benjamin Kosnik <bkoz@redhat.com>
3196 * testsuite/20_util/allocator/14176.cc: New.
3197 * include/ext/mt_allocator.h: Formatting fixes.
3199 2004-03-11 Dhruv Matani <dhruvbird@HotPOP.com>
3201 * include/Makefile.am (ext_headers): Add
3202 ${ext_srcdir}/bitmap_allocator.h .
3203 * include/Makefile.in: Regenerate.
3204 * docs/html/ext/ballocator_doc.txt: New file.
3205 * include/ext/bitmap_allocator.h: New file.
3206 * testsuite/performance/20_util/allocator/list_sort_search.cc: Add
3208 * testsuite/performance/20_util/allocator/map_mt_find.cc: Likewise.
3209 * testsuite/performance/20_util/allocator/producer_consumer.cc: Add
3210 test for the bitmap_allocator<>.
3211 * testsuite/performance/20_util/allocator/insert.cc: Likewise.
3212 * testsuite/performance/20_util/allocator/insert_insert.cc: Likewise.
3213 * testsuite/performance/20_util/allocator/map_thread.cc: Likewise.
3215 2004-03-11 Paolo Carlini <pcarlini@suse.de>
3217 * include/std/std_complex.h (pow(const complex&, const _Tp&),
3218 pow(const _Tp&, const complex&), pow(const complex&,
3219 const complex&)): Fully qualify with std:: a few calls.
3220 * testsuite/26_numerics/complex/13450.cc: Minor tweak.
3222 2004-03-11 Steven Bosscher <stevenb@suse.de>
3225 * include/c_std/cmath.tcc (__cmath_power): Define inline.
3227 2004-03-10 Kelley Cook <kcook@gcc.gnu.org>
3229 * configure.ac: Bump AC_PREREQ to 2.59.
3231 2004-03-10 Paolo Carlini <pcarlini@suse.de>
3233 * testsuite/26_numerics/valarray_subset_assignment.cc: Fix typos.
3235 2004-03-10 Paul Kienzle <pkienzle@nist.gov>
3236 Paolo Carlini <pcarlini@suse.de>
3239 * include/std/std_complex.h (pow(const complex&, const _Tp&),
3240 pow(const _Tp&, const complex&)): Use cmath pow only when safe.
3241 * testsuite/26_numerics/complex/13450.cc: New.
3243 * testsuite/26_numerics/cmath/overloads.C: Rename to overloads.cc.
3244 * testsuite/26_numerics/complex/pow.C: Rename to pow.cc and fix.
3246 2004-03-10 Jerry Quinn <jlquinn@optonline.net>
3249 * include/bits/gslice_array.h (gslice_array()): Make public.
3250 (operator=(gslice_array)): Make public. Implement.
3251 * include/bits/indirect_array.h (indirect_array()): Make public.
3252 * include/bits/mask_array.h (mask_array()): Make public.
3253 (operator=(mask_array)): Make public. Implement.
3254 * include/bits/valarray_array.tcc (__valarray_copy):
3255 Comment. Add versions for gslice_array and mask_array.
3256 * testsuite/26_numerics/valarray_subset_assignment.cc: New test.
3258 2004-03-09 Benjamin Kosnik <bkoz@redhat.com>
3260 * testsuite/23_containers/deque/modifiers/swap.cc: Add in bits for
3262 * testsuite/23_containers/vector/modifiers/swap.cc: Same.
3263 * testsuite/23_containers/set/modifiers/swap.cc: Same.
3264 * testsuite/23_containers/multiset/modifiers/swap.cc: Same.
3265 * testsuite/23_containers/multimap/modifiers/swap.cc: Same.
3266 * testsuite/23_containers/map/modifiers/swap.cc: Same.
3267 * testsuite/23_containers/list/modifiers/swap.cc: Same.
3269 * testsuite/22_locale/locale/cons/12658_thread.cc: Catch exceptions.
3271 2004-03-08 Benjamin Kosnik <bkoz@redhat.com>
3274 * testsuite/23_containers/deque/modifiers/swap.cc: New.
3275 * testsuite/23_containers/list/modifiers/swap.cc: New.
3276 * testsuite/23_containers/map/modifiers/swap.cc: New.
3277 * testsuite/23_containers/multimap/modifiers/swap.cc: New.
3278 * testsuite/23_containers/multiset/modifiers/swap.cc: New.
3279 * testsuite/23_containers/set/modifiers/swap.cc: New.
3280 * testsuite/23_containers/vector/modifiers/swap.cc: New.
3282 2004-03-08 Petur Runolfsson <peturr02@ru.is>
3285 * testsuite/22_locale/locale/cons/12658_thread.cc: New.
3287 2004-03-08 Paolo Carlini <pcarlini@suse.de>
3289 * docs/html/ext/howto.html: Add entry for DR 103 [WP].
3290 * include/bits/stl_multiset.h: Add comment about DR 103.
3291 * include/bits/stl_set.h: Likewise.
3293 2004-03-08 Paolo Carlini <pcarlini@suse.de>
3295 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3296 The value _space_ indicates that at least one space is required
3298 * testsuite/22_locale/money_get/get/char/17.cc: New.
3299 * testsuite/22_locale/money_get/get/wchar_t/17.cc: New.
3301 * testsuite/22_locale/money_get/get/char/7.cc: Minor tweaks.
3302 * testsuite/22_locale/money_get/get/wchar_t/7.cc: Likewise.
3304 * include/bits/locale_facets.tcc (money_get<>::do_get(long_double&)):
3305 Remove redundant conditional on __str.size().
3307 2004-03-08 Benjamin Kosnik <bkoz@redhat.com>
3309 * include/bits/allocator.h: Switch defaults to mt_alloc.
3311 2004-03-06 Benjamin Kosnik <bkoz@redhat.com>
3313 * include/ext/mt_allocator.h (_S_initialize): If
3314 !__GTHREAD_MUTEX_INIT, then initialize _S_thread_freelist_mutex.
3316 2004-03-06 Benjamin Kosnik <bkoz@redhat.com>
3319 * src/locale_init.cc (locale::locale): Lock critical regions with
3321 (locale::global): Same.
3322 * include/bits/concurrence.h (__glibcxx_mutex_define_initialized):
3323 Add in once bits for cases without __GTHREAD_MUTEX_INIT.
3324 (__glibcxx_mutex_lock): Same.
3326 * config/cpu/generic/atomicity.h: Remove
3327 _GLIBCXX_NEED_GENERIC_MUTEX, use concurrence.h.
3328 * src/misc-inst.cc: Move all locking bits out of this file.
3330 * config/os/hpux/os_defines.h: Remove _GLIBCXX_INST_ATOMICITY_LOCK.
3331 * src/misc-inst.cc: Same.
3332 * config/cpu/hppa/atomicity.h: Same.
3334 * config/linker-map.gnu: Remove types in the signature of atomic
3335 exports, as they may vary.
3337 2004-03-06 Paolo Carlini <pcarlini@suse.de>
3339 * include/bits/locale_facets.tcc: Tweak the comment preceding
3340 has_facet: doesn't throw.
3342 2004-03-06 Paolo Carlini <pcarlini@suse.de>
3344 * testsuite/22_locale/money_get/get/char/1.cc: Clean up.
3345 * testsuite/22_locale/money_get/get/char/2.cc: Likewise.
3346 * testsuite/22_locale/money_get/get/char/3.cc: Likewise.
3347 * testsuite/22_locale/money_get/get/char/4.cc: Likewise.
3348 * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
3349 * testsuite/22_locale/money_get/get/wchar_t/2.cc: Likewise.
3350 * testsuite/22_locale/money_get/get/wchar_t/3.cc: Likewise.
3351 * testsuite/22_locale/money_get/get/wchar_t/4.cc: Likewise.
3353 2004-03-06 Paolo Carlini <pcarlini@suse.de>
3355 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
3356 num_get<>::_M_extract_int, num_get<>::do_get(bool&),
3357 __pad<>::_S_pad): Prefer plain operator== to traits::eq().
3358 * testsuite/testsuite_character.h (struct __gnu_test::character):
3360 * testsuite/testsuite_hooks.h (struct __gnu_test::pod_char):
3363 2004-03-05 Paolo Carlini <pcarlini@suse.de>
3365 * testsuite/27_io/fpos/14320-2.cc: Remove xfail.
3367 2004-03-04 Benjamin Kosnik <bkoz@redhat.com>
3369 * testsuite/23_containers/multiset/insert/1.cc: Test result string.
3371 * testsuite/23_containers/bitset/invalidation/1.cc: Main always
3373 * testsuite/23_containers/deque/invalidation/4.cc: Same.
3374 * testsuite/23_containers/list/invalidation/1.cc: Same.
3375 * testsuite/23_containers/list/invalidation/2.cc: Same.
3376 * testsuite/23_containers/list/invalidation/3.cc: Same.
3377 * testsuite/23_containers/list/invalidation/4.cc: Same.
3378 * testsuite/23_containers/map/invalidation/2.cc: Same.
3379 * testsuite/23_containers/multimap/invalidation/1.cc: Same.
3380 * testsuite/23_containers/multimap/invalidation/2.cc: Same.
3381 * testsuite/23_containers/multiset/invalidation/1.cc: Same.
3382 * testsuite/23_containers/multiset/invalidation/2.cc: Same.
3383 * testsuite/23_containers/set/invalidation/1.cc: Same.
3384 * testsuite/23_containers/set/invalidation/2.cc: Same.
3385 * testsuite/23_containers/vector/invalidation/1.cc: Same.
3386 * testsuite/23_containers/vector/invalidation/2.cc: Same.
3387 * testsuite/23_containers/vector/invalidation/3.cc: Same.
3388 * testsuite/23_containers/vector/invalidation/4.cc: Same.
3390 2004-03-04 Paolo Carlini <pcarlini@suse.de>
3392 * scripts/testsuite_flags.in: Add "-D_GLIBCXX_ASSERT" to
3394 * testsuite/lib/libstdc++.exp: Don't add it conditionally to
3396 * testsuite/18_support/numeric_limits.cc: Remove "-D_GLIBCXX_ASSERT"
3397 from the dg-options.
3398 * testsuite/23_containers/vector/invalidation/1.cc: Likewise.
3399 * testsuite/23_containers/vector/invalidation/2.cc: Likewise.
3400 * testsuite/23_containers/vector/invalidation/3.cc: Likewise.
3401 * testsuite/23_containers/vector/invalidation/4.cc: Likewise.
3402 * testsuite/23_containers/vector/resize/1.cc: Likewise.
3403 * testsuite/26_numerics/complex_value.cc: Likewise.
3404 * testsuite/27_io/ios_base/storage/1.cc: Likewise.
3405 * testsuite/27_io/ios_base/storage/2.cc: Likewise.
3406 * testsuite/27_io/ios_base/storage/3.cc: Likewise.
3407 * testsuite/27_io/manipulators/standard/char/2.cc: Likewise.
3408 * testsuite/27_io/objects/char/5.cc: Likewise.
3409 * testsuite/27_io/objects/wchar_t/5.cc: Likewise.
3410 * testsuite/backward/11460.cc: Likewise.
3411 * testsuite/thread/pthread7-rope.cc: Likewise.
3413 * testsuite/21_strings/basic_string/compare/char/1.cc: Add
3414 missing test variable.
3415 * testsuite/21_strings/basic_string/compare/wchar_t/1.cc: Add
3416 missing test variable.
3418 2004-03-04 Benjamin Kosnik <bkoz@redhat.com>
3420 * testsuite/20_util/allocator/1.cc: Provide explicit
3421 instantiations for non-weak systems.
3422 * testsuite/20_util/binders.cc: Same.
3423 * testsuite/20_util/allocator/8230.cc: Same.
3424 * testsuite/20_util/allocator/10378.cc: Same.
3425 * testsuite/22_locale/ctype/is/wchar_t/2.cc: Same.
3426 * testsuite/22_locale/ctype/is/char/2.cc: Same.
3427 * testsuite/thread/pthread7-rope.cc: Same.
3428 * testsuite/thread/pthread6.cc: Same.
3429 * testsuite/thread/pthread5.cc: Same.
3430 * testsuite/thread/pthread4.cc: Same.
3431 * testsuite/thread/pthread1.cc: Same.
3432 * testsuite/ext/rope.cc: Same.
3433 * testsuite/ext/hash_set.cc: Same.
3434 * testsuite/ext/hash_map.cc: Same.
3435 * testsuite/ext/concept_checks.cc: Same.
3436 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9874.cc: Same.
3437 * testsuite/25_algorithms/unique/2.cc: Same.
3438 * testsuite/25_algorithms/unique/1.cc: Same.
3439 * testsuite/25_algorithms/rotate.cc: Same.
3440 * testsuite/25_algorithms/min_max.cc: Same.
3441 * testsuite/25_algorithms/equal.cc: Same.
3442 * testsuite/24_iterators/rel_ops.cc: Same.
3443 * testsuite/24_iterators/iterator.cc: Same.
3444 * testsuite/24_iterators/insert_iterator.cc: Same.
3445 * testsuite/24_iterators/front_insert_iterator.cc: Same.
3446 * testsuite/24_iterators/back_insert_iterator.cc: Same.
3447 * testsuite/23_containers/vector/resize/1.cc: Same.
3448 * testsuite/23_containers/vector/modifiers/2.cc: Same.
3449 * testsuite/23_containers/vector/modifiers/1.cc: Same.
3450 * testsuite/23_containers/vector/invalidation/4.cc: Same.
3451 * testsuite/23_containers/vector/invalidation/3.cc: Same.
3452 * testsuite/23_containers/vector/invalidation/2.cc: Same.
3453 * testsuite/23_containers/vector/invalidation/1.cc: Same.
3454 * testsuite/23_containers/vector/element_access/1.cc: Same.
3455 * testsuite/23_containers/vector/cons/6513.cc: Same.
3456 * testsuite/23_containers/vector/cons/3.cc: Same.
3457 * testsuite/23_containers/vector/cons/2.cc: Same.
3458 * testsuite/23_containers/vector/cons/1.cc: Same.
3459 * testsuite/23_containers/vector/capacity/8230.cc: Same.
3460 * testsuite/23_containers/vector/capacity/1.cc: Same.
3461 * testsuite/23_containers/vector/bool/6886.cc: Same.
3462 * testsuite/23_containers/stack/members/7158.cc: Same.
3463 * testsuite/23_containers/set/invalidation/2.cc: Same.
3464 * testsuite/23_containers/set/invalidation/1.cc: Same.
3465 * testsuite/23_containers/queue/members/7157.cc: Same.
3466 * testsuite/23_containers/priority_queue/members/7161.cc: Same.
3467 * testsuite/23_containers/multiset/invalidation/2.cc: Same.
3468 * testsuite/23_containers/multiset/invalidation/2.cc: Same.
3469 * testsuite/23_containers/multiset/insert/1.cc: Same.
3470 * testsuite/23_containers/multimap/invalidation/2.cc: Same.
3471 * testsuite/23_containers/multimap/invalidation/2.cc: Same.
3472 * testsuite/23_containers/map/operators/1.cc: Same.
3473 * testsuite/23_containers/map/invalidation/2.cc: Same.
3474 * testsuite/23_containers/map/invalidation/1.cc: Same.
3475 * testsuite/23_containers/map/insert/1.cc: Same.
3476 * testsuite/23_containers/list/operators/4.cc: Same.
3477 * testsuite/23_containers/list/operators/3.cc: Same.
3478 * testsuite/23_containers/list/operators/2.cc: Same.
3479 * testsuite/23_containers/list/operators/1.cc: Same.
3480 * testsuite/23_containers/list/modifiers/3.cc: Same.
3481 * testsuite/23_containers/list/modifiers/2.cc: Same.
3482 * testsuite/23_containers/list/modifiers/1.cc: Same.
3483 * testsuite/23_containers/list/invalidation/4.cc: Same.
3484 * testsuite/23_containers/list/invalidation/3.cc: Same.
3485 * testsuite/23_containers/list/invalidation/2.cc: Same.
3486 * testsuite/23_containers/list/invalidation/1.cc: Same.
3487 * testsuite/23_containers/list/cons/9.cc: Same.
3488 * testsuite/23_containers/list/cons/8.cc: Same.
3489 * testsuite/23_containers/list/cons/7.cc: Same.
3490 * testsuite/23_containers/list/cons/6.cc: Same.
3491 * testsuite/23_containers/list/cons/5.cc: Same.
3492 * testsuite/23_containers/list/cons/4.cc: Same.
3493 * testsuite/23_containers/list/cons/3.cc: Same.
3494 * testsuite/23_containers/list/cons/2.cc: Same.
3495 * testsuite/23_containers/list/cons/1.cc: Same.
3496 * testsuite/23_containers/list/capacity/1.cc: Same.
3497 * testsuite/23_containers/deque/operators/1.cc: Same.
3498 * testsuite/23_containers/deque/invalidation/4.cc: Same.
3499 * testsuite/23_containers/deque/invalidation/3.cc: Same.
3500 * testsuite/23_containers/deque/invalidation/2.cc: Same.
3501 * testsuite/23_containers/deque/invalidation/1.cc: Same.
3502 * testsuite/23_containers/deque/cons/2.cc: Same.
3503 * testsuite/23_containers/deque/cons/1.cc: Same.
3505 * src/allocator.cc: Add char, wchar_t instantiations
3506 to match extern template declarations in memory.h.
3508 2004-03-03 Paolo Carlini <pcarlini@suse.de>
3510 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
3511 Fix warning regression.
3513 2004-03-03 Paolo Carlini <pcarlini@suse.de>
3515 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
3516 Deal properly with empty __digits and negative frac_digits,
3519 2004-03-03 Jonathan Wakely <redi@gcc.gnu.org>
3521 * docs/html/documentation.html: Regenerate.
3523 2004-03-02 Paolo Carlini <pcarlini@suse.de>
3526 * include/bits/postypes.h (class streamoff): Remove, now
3527 streamoff is just typedef a 64 bit signed integer type.
3528 (class fpos): Tweak consistently.
3529 * testsuite/27_io/fpos/14320-1.cc: New.
3530 * testsuite/27_io/fpos/14320-2.cc: New.
3531 * testsuite/27_io/fpos/14320-3.cc: New.
3532 * testsuite/27_io/fpos/14320-4.cc: New.
3533 * testsuite/27_io/fpos/14320-5.cc: New.
3534 * testsuite/27_io/fpos/mbstate_t/4_neg.cc: xfail for now.
3536 2004-03-02 Paolo Carlini <pcarlini@suse.de>
3538 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3539 Reorganize a bit the main parsing loop, thus early detecting
3540 an empty value component.
3541 * testsuite/22_locale/money_get/get/char/16.cc: New.
3542 * testsuite/22_locale/money_get/get/wchar_t/16.cc: New.
3544 2004-03-02 Benjamin Kosnik <bkoz@redhat.com>
3546 Support automake 1.8.2
3547 * configure.ac (AM_INIT_AUTOMAKE): Add -Wno-override.
3548 * po/Makefile.am (EXTRA_DIST): New.
3549 * po/Makefile.in: Regenerate.
3550 * Makefile.in: Same.
3551 * include/Makefile.in: Same.
3552 * libmath/Makefile.in: Same.
3553 * libsupc++/Makefile.in: Same.
3554 * src/Makefile.in: Same.
3555 * testsuite/Makefile.in: Same.
3557 * include/Makefile.am (${host_builddir}/gthr-posix.h): Use
3558 __GXX_WEAK__ instead of SUPPORTS_WEAK.
3559 (${host_builddir}/gthr-default.h): Same.
3560 (${host_builddir}/gthr.h): Same.
3561 * acinclude.m4 (GLIBCXX_ENABLE_THREAD): Remove
3562 _GLIBCXX_SUPPORTS_WEAK, as this behavior can be modified via
3564 * aclocal.m4: Regenerate.
3565 * acconfig.h: Remove _GLIBCXX_SUPPORTS_WEAK.
3566 * config.h.in: Regenerate.
3569 2004-03-01 Benjamin Kosnik <bkoz@redhat.com>
3571 Support autoconf 2.59
3572 * acinclude.m4: Quote correctly.
3573 * aclocal.m4: Regenerate.
3576 2004-03-01 Benjamin Kosnik <bkoz@redhat.com>
3578 * docs/html/test.html: Add multilib RUNTESTFLAGS example.
3580 * docs/html/18_support/howto.html: Add bit about writing to
3581 stderr, mostly by Zack.
3583 2004-03-01 Paolo Carlini <pcarlini@suse.de>
3585 * include/bits/locale_facets.tcc (money_get<>::_M_extract,
3586 money_get<>::do_get(string_type&)): ... and two more.
3588 2004-03-01 Paolo Carlini <pcarlini@suse.de>
3590 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3591 Fix thinkos in the switch from string_type& to string& as last
3594 2004-03-01 Paolo Carlini <pcarlini@suse.de>
3596 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
3597 Also when parsing exponent sign, first look for thousands_sep
3598 and decimal_point; tweak a bit.
3599 * testsuite/22_locale/num_get/get/char/15.cc: New.
3600 * testsuite/22_locale/num_get/get/wchar_t/15.cc: New.
3602 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
3603 num_get<>::_M_extract_int): Reorder some conditionals.
3605 2004-03-01 Paolo Carlini <pcarlini@suse.de>
3607 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3608 Consistently with numpunct, enforce the requirements in
3609 22.2.6.3, p3 for the thousands separators; tweak a bit.
3610 * testsuite/22_locale/money_get/get/char/15.cc: New.
3611 * testsuite/22_locale/money_get/get/wchar_t/15.cc: New.
3613 2004-03-01 David Billinghurst <David.Billinghurst@riotinto.com>
3615 * testsuite/lib/libstdc++.exp (v3-list-tests): Use
3616 testsuite_files from correct multilib blddir when running
3619 2004-02-29 Phil Edwards <phil@codesourcery.com>
3621 * testsuite/Makefile.am (check-abi, check-abi-verbose): Copy
3622 the summary file to the logfile.
3623 * testsuite/Makefile.in: Regenerate.
3625 2004-02-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3627 * config/cpu/hppa/atomicity.h (__atomic_add): Make first argument
3629 * config/os/hpux/os_defines.h (_GLIBCXX_INST_ATOMICITY_LOCK): Use
3630 __GXX_WEAK__ instead of _GLIBCXX_SUPPORTS_WEAK.
3632 2004-02-28 Paolo Carlini <pcarlini@suse.de>
3634 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
3635 According to 22.2.3.1, p2, 'units' may be followed by 'e' with
3636 no 'decimal-point' in the middle: in this case too we must fix
3637 up __found_grouping; slightly tweak.
3638 * testsuite/22_locale/num_get/get/char/14.cc: New.
3639 * testsuite/22_locale/num_get/get/wchar_t/14.cc: New.
3641 2004-02-27 Eric Christopher <echristo@redhat.com>
3642 Phil Edwards <phil@codesourcery.com>
3644 * testsuite/22_locale/collate/compare/wchar_t/2.cc,
3645 testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc,
3646 testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc,
3647 testsuite/22_locale/collate/hash/wchar_t/2.cc,
3648 testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc,
3649 testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc,
3650 testsuite/22_locale/collate/transform/wchar_t/2.cc,
3651 testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc,
3652 testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
3653 Use dg-require-iconv.
3654 * testsuite/lib/libstdc++.exp: Load target-supports.exp.
3656 2004-02-27 Phil Edwards <phil@codesourcery.com>
3657 Eric Christopher <echristo@redhat.com>
3659 * testsuite/config/default.exp: Update with comments.
3660 (${tool}_target_compile): New wrapper routine.
3661 * testsuite/lib/dg-options.exp: New file, with dg-require-iconv.
3662 * testsuite/lib/libstdc++.exp: Update with comments and cosmetic
3664 (load_gcc_lib, v3track): New routines.
3665 (v3-init): Rename to libstdc++_init.
3666 * testsuite/libstdc++-dg/normal.exp: No longer call v3-init.
3667 Move DEFAULT_CXXFLAGS handling into libstdc++_init.
3669 2004-02-27 Benjamin Kosnik <bkoz@redhat.com>
3671 * config/cpu/hppa/atomicity.h: Include c++config.h to get defines.
3673 * src/misc-inst.cc (_S_atomicity_lock): Move to __gnu_cxx.
3675 * config/os/irix/irix5.2/atomicity.h: Merge..
3676 * config/os/irix/irix6.5/atomicity.h: Merge..
3677 * config/os/irix/atomicity.h: ...into this.
3678 * config/os/irix/atomic_word.h: New.
3679 * configure.host: Set atomic_word_dir for irix.
3681 * hppa/atomicity.h: Change __Atomicity_lock to _Atomicity_lock.
3682 * i386/atomicity.h: Same.
3683 * m68k/atomicity.h: Same.
3684 * sparc/atomicity.h: Same.
3686 2004-02-27 David Edelsohn <edelsohn@gnu.org>
3688 * config/os/aix/atomicity.h: Use __gnu_cxx namespace. Remove
3689 static, and inline keywords.
3691 2004-02-27 Paolo Carlini <pcarlini@suse.de>
3693 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
3694 num_get<>::_M_extract_int, money_get<>::_M_extract): If appropriate,
3695 call reserve on the __tmp_gruping string.
3696 (num_get<>::_M_extract_float): Don't append unnecessarily a
3697 char() to the returned string.
3698 * include/bits/locale_facets.tcc: Trivial reformattings.
3700 2004-02-27 Paolo Carlini <pcarlini@suse.de>
3702 * include/bits/locale_facets.h (money_get<>::_M_extract):
3703 Change signature: now takes a plain string&.
3704 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3705 Update consistently the definition; use the moneypunct cache
3706 to parse the value; use swap to change __units.
3707 (money_get<>::do_get(long double&)): Update call of _M_extract,
3708 avoid ctype::narrow, not correct wrt the standard.
3709 (money_get<>::do_get(string_type&)): Likewise, update call
3710 of _M_extract, use ctype::widen.
3711 * src/locale-inst.cc: Tweak instantiations of _M_extract.
3713 2004-02-26 Ian Lance Taylor <ian@wasabisystems.com>
3715 * testsuite/demangle/abi_examples/01.cc: Expect error -2.
3716 * testsuite/demangle/abi_examples/02.cc: Likewise.
3717 * testsuite/demangle/regression/cw-11.cc: Likewise.
3718 * testsuite/demangle/regression/cw-16.cc: Change two expected
3719 results to match libiberty demangler output.
3721 2004-02-26 Benjamin Kosnik <bkoz@redhat.com>
3724 * libsupc++/Makefile.am: Use libiberty demangler.
3725 (c_sources): Add cp-demangle.c.
3726 * libsupc++/Makefile.in: Regenerate.
3727 * src/Makefile.am (sources): Remove demangle.cc.
3728 * src/Makefile.in: Regenerate.
3729 * include/Makefile.am (bits_headers): Move demangle.h.
3730 (ext_headers): ...here.
3731 * include/Makefile.in: Regenerate.
3732 * include/bits/demangle.h: Move...
3733 * include/ext/demangle.h: ...here.
3734 * src/demangle.cc: Remove.
3736 2004-02-26 Benjamin Kosnik <bkoz@redhat.com>
3738 * include/bits/demangle.h: Add type template parameter to all
3739 templates with just an Allocator template parameter.
3741 2004-02-25 Benjamin Kosnik <bkoz@redhat.com>
3743 * include/bits/atomicity.h: New, forward declarations for __atomic_add
3744 and __exchange_and_add.
3745 * config/cpu/generic/atomic_word.h: New, typdef for atomic word.
3746 * config/cpu/cris/atomic_word.h: Same.
3747 * config/cpu/sparc/atomic_word.h: Same.
3748 * include/bits/ios_base.h (_Callback_list::_M_remove_reference):
3749 Qualifiy with __gnu_cxx.
3750 (_Callback_list::_M_add_reference): Same.
3751 * include/bits/locale_classes.h (locale::facet::_M_add_reference): Add.
3752 (locale::facet::_M_remove_reference): Same.
3753 (locale::_Impl::_M_add_reference): Add.
3754 (locale::_Impl::_M_remove_reference): Same.
3755 * include/bits/basic_string.h (basic_string::_Rep::_M_refcopy): Same.
3756 (basic_string::_Rep::_M_dispose): Same.
3757 * src/ios.cc (ios_base::xalloc): Same.
3758 * src/ios_init.cc (ios_base::Init::Init): Same.
3759 (ios_base::Init::~Init): Same.
3760 * src/locale.cc (locale::id::_M_id): Same.
3761 * config/cpu/i486/atomicity.h: Use __gnu_cxx namespace. Remove
3762 static, and inline keywords.
3763 * config/cpu/alpha/atomicity.h: Same.
3764 * config/cpu/cris/atomicity.h: Same.
3765 * config/cpu/generic/atomicity.h: Same.
3766 * config/cpu/hppa/atomicity.h: Same.
3767 * config/cpu/i386/atomicity.h: Same.
3768 * config/cpu/ia64/atomicity.h: Same.
3769 * config/cpu/m68k/atomicity.h: Same.
3770 * config/cpu/mips/atomicity.h: Same.
3771 * config/cpu/powerpc/atomicity.h: Same.
3772 * config/cpu/s390/atomicity.h: Same.
3773 * config/cpu/sparc/atomicity.h: Same.
3775 * src/Makefile.am (host_sources): Add atomicity.cc.
3776 (atomicity.cc): New rule.
3777 * src/Makefile.in: Regenerate.
3778 * include/Makefile.am (host_headers): Remove host atomicity.h.
3779 (host_headers): Add atomic_word.h.
3780 (bits_headers): Add bits atomicity.h.
3781 Change ATOMICITY_INC_SRCDIR to ATOMICITY_SRCDIR.
3782 * include/Makefile.in: Regenerate.
3783 * configure.host (atomic_word_dir): Add.
3784 * configure.ac: Substitute ATOMIC_WORD_SRCDIR. Change
3785 ATOMICITY_INC_SRCDIR to ATOMICITY_SRCDIR.
3786 * configure: Regenerate.
3787 * config/linker-map.gnu: Export __exchange_and_add, and __atomic_add.
3789 * testsuite/27_io/ios_base/cons/assign_neg.cc: Adjust line numbers.
3790 * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
3792 2004-02-25 Jonathan Wakely <redi@gcc.gnu.org>
3794 * docs/html/20_util/howto.html, docs/html/20_util/allocator.html,
3795 docs/html/ext/howto.html, docs/html/ext/mt_allocator.html:
3796 Fix markup, more <link> tags.
3798 2004-02-25 Carlo Wood <carlo@alinoe.com>
3801 namespace __gnu_cxx::demangler
3802 (session<Allocator>::qualifier_list_Allocator): Add
3803 (session<Allocator>::M_qualifier_list_alloc): Add
3804 (session<Allocator>::decode_type_with_postfix):
3805 Use M_qualifier_list_alloc instead of calling operator new/delete.
3807 2004-02-24 Paolo Carlini <pcarlini@suse.de>
3810 * include/bits/postypes.h (class streamoff): Add operator++(),
3811 operator++(int), operator--() and operator--(int).
3812 * testsuite/27_io/fpos/14252.cc: New.
3814 2004-02-24 Richard Sandiford <rsandifo@redhat.com>
3816 * include/bits/locale_facets.tcc (num_get::_M_extract_int): Fix bounds
3817 error in handling of hex constants.
3819 2004-02-24 Paolo Carlini <pcarlini@suse.de>
3821 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
3822 Prefer basic_string::append to operator+= and a temporary.
3824 2004-02-23 Benjamin Kosnik <bkoz@redhat.com>
3826 * libsupc++/vterminate.cc (__gnu_cxx::__verbose_terminate_handler):
3827 Only use fputs, not write.
3829 2004-02-23 Benjamin Kosnik <bkoz@redhat.com>
3831 * include/ext/malloc_allocator.h: Add operators ==, !=.
3832 * include/ext/new_allocator.h: Add operators ==, !=.
3833 * include/ext/mt_allocator.h (__mt_alloc::tune): New.
3834 (__mt_alloc::_S_get_options): New.
3835 (__mt_alloc::_S_set_options): New.
3836 (__mt_alloc::_S_thread_key_destr): To _S_destroy_thread_key.
3837 (__mt_alloc::_S_no_of_bins): To _S_bin_size.
3838 Move functions out of line, simplify, format.
3839 * src/allocator.cc: Simplify explicit instantiations.
3840 * include/bits/allocator.h: Tweak.
3842 2004-02-22 Paolo Carlini <pcarlini@suse.de>
3844 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
3845 Restructure formatting of value component, first dealing with
3846 the non-decimal digits; use reserve.
3848 2004-02-22 Paolo Carlini <pcarlini@suse.de>
3850 * include/bits/locale_facets.h (class money_get): Inherit
3851 from money_base too; tweak declaration of _M_extract, now
3852 parameterized on _Intl too.
3853 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3854 Update definition to use the cache; call reserve on __res to
3855 avoid multiple reallocations; fix parsing of sign component
3856 according to 22.2.6.1.2, p3.
3857 (money_get<>::do_get(long double&),
3858 money_get<>::do_get(string_type&)): Update calls of _M_extract.
3859 * src/locale-inst.cc: Add instantiations of
3860 money_get::_M_extract<false> and money_get::_M_extract<true>.
3861 * testsuite/22_locale/money_get/get/char/14.cc: New.
3862 * testsuite/22_locale/money_get/get/wchar_t/14.cc: Ditto.
3864 2004-02-21 Mark Mitchell <mark@codesourcery.com>
3866 * libsupc++/vterminate.cc
3867 (__gnu_cxx::__verbose_terminate_handler): Guard against recursive
3869 * src/demangle.cc (__cxa_demangle): Wrap in try-catch block.
3871 * testsuite/testsuite_hooks.cc (__gnu_test::set_memory_limits): Do
3872 not set RLIMIT_AS on HP-UX.
3874 2004-02-21 Mark Mitchell <mark@codesourcery.com>
3876 * testsuite/testsuite_hooks.cc (__gnu_test::set_memory_limits): Do
3877 not set RLIMIT_AS on HP-UX.
3879 2004-02-21 Paolo Carlini <pcarlini@suse.de>
3881 * include/bits/locale_facets.h (class money_base): Add { _S_minus,
3882 _S_zero, _S_end } enum, _S_atoms.
3883 (struct __moneypunct_cache<>): Parameterize on _Intl too; add
3884 _M_grouping_size, _M_curr_symbol_size, _M_positive_sign_size,
3885 _M_negative_sign_size, _M_atoms; tweak constructor consistently.
3886 (__moneypunct_cache<>::~__moneypunct_cache): Update.
3887 (__moneypunct_cache<>::_M_cache): Fill the cache.
3888 (class moneypunct): Tweak __cache_type typedef.
3889 (class money_put): Inherit from money_base too; tweak declaration
3890 of _M_insert, now parameterized on _Intl.
3891 * include/bits/locale_facets.tcc
3892 (struct __use_cache<__moneypunct_cache<_CharT, _Intl> >): New.
3893 (money_put<>::_M_insert): Update definition to use the cache;
3894 call reserve on __res to avoid multiple reallocations.
3895 (money_put<>::do_put(long double),
3896 money_put<>::do_put(const string_type&): Update calls of _M_insert.
3897 * config/locale/generic/monetary_members.cc
3898 (moneypunct<char, true>::_M_initialize_moneypunct,
3899 moneypunct<char, false>::_M_initialize_moneypunct,
3900 moneypunct<wchar_t, true>::_M_initialize_moneypunct,
3901 moneypunct<wchar_t, false>::_M_initialize_moneypunct): Update.
3902 * config/locale/gnu/monetary_members.cc: Likewise.
3903 * config/locale/gnu/monetary_members.cc
3904 (moneypunct<wchar_t, true>::~moneypunct(),
3905 moneypunct<wchar_t, false>::~moneypunct()): Likewise.
3906 * src/globals_locale.cc: Tweak fake_money_cache_c.
3907 * src/locale-inst.cc: Add instantiations for
3908 money_put::_M_insert<false> and money_put::_M_insert<true> and
3909 __moneypunct_cache<C, false>, __moneypunct_cache<C, true>.
3910 * src/locale_facets.cc: Define money_base::_S_atoms.
3911 * src/locale_init.cc: Update placement new of
3912 __moneypunct_cache<char, false>, __moneypunct_cache<char, true>,
3913 __moneypunct_cache<wchar_t, false>, __moneypunct_cache<wchar_T, true>.
3915 * config/locale/generic/numeric_members.cc: Clean up.
3916 * config/locale/gnu/numeric_members.cc: Likewise.
3917 * testsuite/22_locale/money_put/put/char/1.cc: Likewise.
3918 * testsuite/22_locale/money_put/put/char/2.cc: Likewise.
3919 * testsuite/22_locale/money_put/put/char/3.cc: Likewise.
3920 * testsuite/22_locale/money_put/put/wchar_t/1.cc: Likewise.
3921 * testsuite/22_locale/money_put/put/wchar_t/2.cc: Likewise.
3922 * testsuite/22_locale/money_put/put/wchar_t/3.cc: Likewise.
3924 2004-02-20 Mark Mitchell <mark@codesourcery.com>
3926 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: Open
3927 FIFO for writing with ios_base::in|ios_base::out.
3928 * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
3929 * testsuite/27_io/objects/char/7.cc: Likewise.
3930 * testsuite/27_io/objects/char/9661-1.cc: Open FIFO for writing
3933 2004-02-19 David Edelsohn <edelsohn@gnu.org>
3935 * 22_locale/collate/compare/wchar_t/2.cc: Change input-charset
3936 from iso-8859-1 to ISO8859-1.
3937 * 22_locale/collate/compare/wchar_t/wrapped_env.cc: Same.
3938 * 22_locale/collate/compare/wchar_t/wrapped_locale.cc: Same.
3939 * 22_locale/collate/hash/wchar_t/2.cc: Same.
3940 * 22_locale/collate/hash/wchar_t/wrapped_env.cc: Same.
3941 * 22_locale/collate/hash/wchar_t/wrapped_locale.cc: Same.
3942 * 22_locale/collate/transform/wchar_t/2.cc: Same.
3943 * 22_locale/collate/transform/wchar_t/wrapped_env.cc: Same.
3944 * 22_locale/collate/transform/wchar_t/wrapped_locale.cc: Same.
3946 2004-02-18 Paolo Carlini <pcarlini@suse.de>
3948 * include/bits/locale_facets.h (money_get<>::_M_extract):
3949 New, helper for do_get.
3950 (money_put<>::_M_insert): Likewise, for do_put.
3951 * include/bits/locale_facets.tcc (money_get<>::_M_extract,
3952 money_put<>::_M_insert): Define.
3953 (money_get<>::do_get(long double&), money_get<>::do_get(
3954 string_type&), money_put::do_put(long double),
3955 money_put::do_put(const string_type&)): Use the helpers.
3957 2004-02-18 Paolo Carlini <pcarlini@suse.de>
3959 * config/io/basic_file_stdio.cc (__gnu_internal::xwritev):
3960 Rewrite, avoiding recursion.
3961 (__gnu_internal::xwrite): Minor tweaks.
3963 2004-02-17 Stefan Olsson <stefan@xapa.se>
3965 * include/ext/mt_allocator.h: Removed the last
3966 pointer. Deallocated blocks are now added to the front of
3967 freelists as proposed by Felix Yen. This gives roughly 10%
3968 performance boost and saves some memory.
3969 * docs/html/ext/mt_allocator.html: Change due to that deallocated
3970 blocks now are added to the front of freelists. The reason to this
3971 approach is also explained.
3973 2004-02-17 Paolo Carlini <pcarlini@suse.de>
3975 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
3976 num_get<>::_M_extract_int, money_get<>::do_get): Simplify
3977 grouping fidelity conditional.
3979 2004-02-16 Paolo Carlini <pcarlini@suse.de>
3981 * testsuite/27_io/basic_filebuf/overflow/char/13858.cc:
3982 Qualify exception with std::.
3983 * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Ditto.
3984 * testsuite/27_io/basic_filebuf/overflow/wchar_t/13858.cc: Ditto.
3985 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
3986 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
3987 * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
3989 2004-02-16 Paolo Carlini <pcarlini@suse.de>
3991 * testsuite/ext/enc_filebuf/char/13189.cc: Don't check
3992 for now that the catch block is not reached.
3993 * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Likewise.
3995 2004-02-16 Paolo Carlini <pcarlini@suse.de>
3997 * include/bits/locale_facets.tcc (money_get::do_get(string_type&)):
3998 Fix parsing of the remaining sign characters.
3999 * 22_locale/money_get/get/char/2.cc: Tweak: now, correctly,
4000 the input is scanned 'til eof.
4001 * 22_locale/money_get/get/char/4.cc: Likewise.
4002 * 22_locale/money_get/get/wchar_t/2.cc: Likewise.
4003 * 22_locale/money_get/get/wchar_t/4.cc: Likewise.
4004 * 22_locale/money_get/get/char/8.cc: Tweak: override do_neg_format,
4005 not do_pos_format: the former is the only one that matters during
4007 * 22_locale/money_get/get/wchar_t/8.cc: Likewise.
4009 * 22_locale/money_get/get/char/6.cc: Minor tweak.
4010 * 22_locale/money_get/get/wchar_t/6.cc: Likewise.
4012 2004-02-15 David Asher <david.asher@cavium.com>
4015 * include/bits/locale_facets.tcc (__pad<>::_S_pad): Don't
4016 access __olds beyond __oldlen.
4018 2004-02-14 Paolo Carlini <pcarlini@suse.de>
4020 * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Make
4021 sure the exception is actually thrown.
4022 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
4023 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
4024 * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
4026 2004-02-14 Paolo Carlini <pcarlini@suse.de>
4029 * include/bits/fstream.tcc (basic_filebuf<>::_M_convert_to_external):
4030 In case of conversion errors, throw ios_failure; simplify.
4031 * testsuite/27_io/basic_filebuf/overflow/char/13858.cc: New.
4032 * testsuite/27_io/basic_filebuf/overflow/wchar_t/13858.cc: Ditto.
4033 * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Tweak,
4034 previously we didn't throw in case of conversion errors, instead
4035 just returned eof().
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 * include/bits/fstream.tcc (basic_filebuf<>::overflow):
4041 Trivial simplification of a conditional.
4043 2004-02-12 Paolo Carlini <pcarlini@suse.de>
4045 PR libstdc++/13731 (final part: writev)
4046 * config/io/basic_file_stdio.cc (__gnu_internal::xwritev):
4047 New, a wrapper around writev() handling partial writes.
4048 (__basic_file<char>::xwrite): Move to __gnu_internal and make
4050 (__basic_file<char>::xsputn): Update call.
4051 (__basic_file<char>::xsputn_2): Likewise.
4052 * config/io/basic_file_stdio.h (__basic_file<char>::xwrite):
4053 Don't declare, now static.
4055 2004-02-11 Stefan Olsson <stefan@xapa.se>
4057 * docs/html/ext/mt_allocator.html: New.
4059 2004-02-11 Benjamin Kosnik <bkoz@redhat.com>
4061 * docs/html/20_util/allocator.html: New file, consolidate
4062 allocator information here. Revamp.
4063 * docs/html/documentation.html: Change links.
4064 * docs/html/20_util/howto.html: Same.
4065 * docs/html/ext/howto.html: Same.
4067 2004-02-11 Paolo Carlini <pcarlini@suse.de>
4069 PR libstdc++/13731 (first part: write)
4070 * config/io/basic_file_stdio.h (__basic_file<char>::xwrite):
4072 * config/io/basic_file_stdio.cc (__basic_file<char>::xwrite):
4073 Define it: a wrapper around write() handling partial write.
4074 (__basic_file<char>::xsputn): Use it.
4075 (__basic_file<char>::xsputn_2): Likewise.
4077 2004-02-11 Paolo Carlini <pcarlini@suse.de>
4078 Petur Runolfsson <peturr02@ru.is>
4081 * include/std/std_istream.h (operator>>(__istream_type& (*)
4082 (__istream_type&)), operator>>(__ios_type& (*)(__ios_type&)),
4083 operator>>(ios_base& (*)(ios_base&))): Declare inline.
4084 * include/std/std_ostream.h (operator<<(__ostream_type& (*)
4085 (__ostream_type&)), operator<<(__ios_type& (*)(__ios_type&)),
4086 operator<<(ios_base& (*) (ios_base&))): Likewise.
4087 * testsuite/performance/27_io/fmtflags_manipulators.cc: New.
4089 2004-02-10 Loren J. Rittle <ljrittle@acm.org>
4092 * config/linker-map.gnu: Add typeinfo and typeinfo name for
4093 __gnu_cxx::stdio_sync_filebuf<char, std::char_traits<char> >.
4096 * config/linker-map.gnu: Add typeinfo and typeinfo name for
4097 __gnu_cxx::stdio_filebuf<char, std::char_traits<char> >.
4099 2004-02-09 Loren J. Rittle <ljrittle@acm.org>
4101 * include/ext/pool_allocator.h: Include c++config.h.
4103 2004-02-09 Stefan Olsson <stefan@xapa.se>
4105 * include/ext/mt_allocator.h: thread_id is unused in non threaded
4106 applications and now has a ifdef to remove it completely on
4107 compilers without thread support. Include stdlib.h due to a
4108 compiler warning on getenv().
4110 2004-02-09 Paul Brook <paul@codesourcery.com>
4112 * libstdc++-v3/configure.host: Explicitly check for atomicity.h file.
4114 2004-02-09 Paolo Carlini <pcarlini@suse.de>
4117 * src/locale_init.cc (locale::global(const locale&)): Use
4118 locale::name() in order to decide whether calling setlocale.
4119 * testsuite/22_locale/locale/global_locale_objects/14071.cc: New.
4121 * include/bits/locale_classes.h (locale::_Impl::_M_check_same_name()):
4122 Avoid computing &= unnecessarily.
4124 2004-02-09 James E Wilson <wilson@specifixinc.com>
4127 * libsuspc++/eh_personality.cc (PERSONALITY_FUNCTION): Use
4128 __builtin_extend_pointer.
4130 2004-02-09 Paolo Carlini <pcarlini@suse.de>
4133 * include/bits/basic_ios.tcc (basic_ios<>::_M_cache_locale):
4134 Don't leave dangling pointers.
4135 * testsuite/27_io/basic_ios/imbue/14072.cc: New.
4136 * testsuite/22_locale/numpunct/members/pod/2.cc: Tweak, the num_put
4137 facet is needed in the final test.
4139 2004-02-09 Bernardo Innocenti <bernie@develer.com>
4141 * crossconfig.m4: Don't enable _GLIBCXX_USE_LFS on *-uclinux*.
4142 * configure: Regenerate.
4144 2004-02-08 Richard Henderson <rth@redhat.com>
4147 * libsupc++/eh_catch.cc (__cxa_begin_catch): Don't adjust
4148 uncaughtExceptions during nested catch rethrow.
4149 * testsuite/18_support/14026.cc: New.
4151 2004-02-08 Paolo Carlini <pcarlini@suse.de>
4153 * include/bits/basic_string.tcc (assign(const _CharT*, size_type)):
4154 When working in place remember to set the state to sharable
4155 (otherwise, _M_mutate does it).
4157 2004-02-08 Bernardo Innocenti <bernie@develer.com>
4159 * include/bits/allocator.h, include/bits/basic_ios.h,
4160 include/bits/basic_ios.tcc, include/bits/basic_string.h,
4161 include/bits/basic_string.tcc, include/bits/boost_concept_check.h,
4162 include/bits/char_traits.h, include/bits/codecvt.h,
4163 include/bits/concurrence.h, include/bits/cpp_type_traits.h,
4164 include/bits/demangle.h, include/bits/deque.tcc,
4165 include/bits/fstream.tcc, include/bits/functexcept.h,
4166 include/bits/gslice.h, include/bits/gslice_array.h,
4167 include/bits/indirect_array.h, include/bits/ios_base.h,
4168 include/bits/istream.tcc, include/bits/list.tcc,
4169 include/bits/locale_classes.h, include/bits/locale_facets.h,
4170 include/bits/locale_facets.tcc, include/bits/localefwd.h,
4171 include/bits/mask_array.h, include/bits/ostream.tcc,
4172 include/bits/postypes.h, include/bits/slice_array.h,
4173 include/bits/sstream.tcc, include/bits/stl_algo.h,
4174 include/bits/stl_algobase.h, include/bits/stl_bvector.h,
4175 include/bits/stl_construct.h, include/bits/stl_deque.h,
4176 include/bits/stl_function.h, include/bits/stl_heap.h,
4177 include/bits/stl_iterator.h, include/bits/stl_iterator_base_funcs.h,
4178 include/bits/stl_list.h, include/bits/stl_map.h,
4179 include/bits/stl_multimap.h, include/bits/stl_multiset.h,
4180 include/bits/stl_numeric.h, include/bits/stl_pair.h,
4181 include/bits/stl_queue.h, include/bits/stl_raw_storage_iter.h,
4182 include/bits/stl_relops.h, include/bits/stl_set.h,
4183 include/bits/stl_stack.h, include/bits/stl_tempbuf.h,
4184 include/bits/stl_threads.h, include/bits/stl_tree.h,
4185 include/bits/stl_uninitialized.h, include/bits/stl_vector.h,
4186 include/bits/stream_iterator.h, include/bits/streambuf.tcc,
4187 include/bits/streambuf_iterator.h,include/bits/stringfwd.h,
4188 include/bits/type_traits.h, include/bits/valarray_after.h,
4189 include/bits/valarray_array.h, include/bits/valarray_array.tcc,
4190 include/bits/valarray_before.h, include/bits/vector.tcc: Remove
4191 trailing whitespace.
4193 2004-02-06 Paolo Carlini <pcarlini@suse.de>
4195 * include/bits/basic_string.h: Fix comment.
4197 2004-02-06 Paolo Carlini <pcarlini@suse.de>
4199 * include/bits/stl_construct.h: Wrap overlong lines, reformat
4200 according to the coding standards.
4201 * include/bits/stl_pair.h: Likewise.
4202 * include/bits/stl_raw_storage_iter.h: Likewise.
4203 * include/bits/stl_stack.h: Likewise.
4204 * include/bits/stl_uninitialized.h: Likewise.
4205 * include/bits/stream_iterator.h: Likewise.
4206 * include/bits/streambuf_iterator.h: Likewise.
4207 * include/bits/type_traits.h: Likewise.
4209 2004-02-06 Paolo Carlini <pcarlini@suse.de>
4211 * testsuite/27_io/basic_filebuf/open/char/9507.cc:
4214 2004-02-05 Loren J. Rittle <ljrittle@acm.org>
4216 * scripts/check_performance: Support PCH.
4218 * scripts/check_performance (CXX): Add -DNOTHREAD.
4219 * testsuite/performance/20_util/allocator/insert.cc: Integrate
4220 threaded tests from insert_insert.cc. Tweak iterations,
4221 remove special cases.
4222 * testsuite/performance/20_util/allocator/insert_insert.cc:
4223 Make all tests single-threaded. Tweak iterations.
4224 * testsuite/performance/20_util/allocator/map_thread.cc:
4226 * testsuite/performance/20_util/allocator/producer_consumer.cc:
4229 2004-02-05 Geoffrey Keating <geoffk@apple.com>
4233 * acinclude.m4 (GLIBCXX_EXPORT_INSTALL_INFO): Use 'gcc', not
4234 'gcc-lib'. Add comment about poorly-named variables.
4235 * aclocal.m4: Regenerate.
4236 * configure: Regenerate.
4238 2004-02-05 Paolo Carlini <pcarlini@suse.de>
4240 * include/bits/locale_facets.tcc (money_get::do_get(string_type&)):
4241 Thousands-sep are always optional; thousands-sep are not allowed
4242 after the decimal_point.
4243 * testsuite/22_locale/money_get/get/char/12.cc: New.
4244 * testsuite/22_locale/money_get/get/char/13.cc: New.
4245 * testsuite/22_locale/money_get/get/wchar_t/12.cc: New.
4246 * testsuite/22_locale/money_get/get/wchar_t/13.cc: New.
4248 * testsuite/22_locale/money_get/get/char/1.cc: Clean-up.
4249 * testsuite/22_locale/money_get/get/char/2.cc: Likewise.
4250 * testsuite/22_locale/money_get/get/char/3.cc: Likewise.
4251 * testsuite/22_locale/money_get/get/char/4.cc: Likewise.
4252 * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
4253 * testsuite/22_locale/money_get/get/wchar_t/2.cc: Likewise.
4254 * testsuite/22_locale/money_get/get/wchar_t/3.cc: Likewise.
4255 * testsuite/22_locale/money_get/get/wchar_t/4.cc: Likewise.
4257 * testsuite/22_locale/money_get/get/char/9.cc: Fix citation from
4259 * testsuite/22_locale/money_get/get/wchar_t/9.cc: Likewise.
4261 2004-02-05 Richard Sandiford <rsandifo@redhat.com>
4263 * config/os/irix/irix6.5/os_defines.h (_GLIBCXX_FIONREAD_TAKES_OFF_T):
4265 * config/io/basic_file_stdio.cc (__basic_file<char>::showmanyc): Use
4266 it to decide whether FIONREAD should take an off_t or int argument.
4268 2004-02-05 Paolo Carlini <pcarlini@suse.de>
4270 * include/bits/stl_function.h: Minor formatting changes.
4272 2004-02-04 Zack Weinberg <zack@codesourcery.com>
4274 Revert previous change to config/abi/*/baseline_symbols.txt.
4276 2004-02-04 Benjamin Kosnik <bkoz@redhat.com>
4277 Zack Weinberg <zack@codesourcery.com>
4279 * config/io/basic_file_stdio.cc (__gnu_internal::fopen_mode):
4281 (__basic_file<char>::sys_open, __basic_file<char>::open): Use it.
4282 (__basic_file<char>::_M_open_mode): Delete.
4283 * config/io/basic_file_stdio.cc: Delete declaration of _M_open_mode.
4285 * testsuite/27_io/basic_filebuf/close/char/9964.cc
4286 * testsuite/27_io/basic_filebuf/open/char/9507.cc:
4287 Correct flags to filebuf::open calls.
4289 * config/abi/alpha-freebsd5/baseline_symbols.txt
4290 * config/abi/alpha-linux-gnu/baseline_symbols.txt
4291 * config/abi/hppa-linux-gnu/baseline_symbols.txt
4292 * config/abi/i386-freebsd4/baseline_symbols.txt
4293 * config/abi/i386-freebsd5/baseline_symbols.txt
4294 * config/abi/i486-linux-gnu/baseline_symbols.txt
4295 * config/abi/ia64-linux-gnu/baseline_symbols.txt
4296 * config/abi/mips-linux-gnu/baseline_symbols.txt
4297 * config/abi/sparc-freebsd5/baseline_symbols.txt
4298 * config/abi/sparc-linux-gnu/baseline_symbols.txt
4299 * config/abi/x86_64-linux-gnu/baseline_symbols.txt:
4300 Remove entry for __basic_file<char>::_M_open_mode.
4302 2004-02-04 Loren J. Rittle <ljrittle@acm.org>
4304 * testsuite/performance/20_util/allocator/insert.cc (main): Tweak.
4306 2004-02-04 Felix Yen <fwy@alumni.brown.edu>
4308 * testsuite/performance/20_util/producer_consumer.cc: New.
4309 * testsuite/performance/20_util/allocator/insert_insert.cc: Two loops.
4311 2004-02-04 Benjamin Kosnik <bkoz@redhat.com>
4313 * testsuite/performance/20_util/allocator.cc: Move to..
4314 * testsuite/performance/20_util/allocator/insert.cc: ...here.
4315 * testsuite/performance/20_util/allocator_thread.cc: Move to...
4316 * testsuite/performance/20_util/allocator/insert_insert.cc: ...here.
4317 * testsuite/performance/20_util/allocator_map_thread.cc: Move to...
4318 * testsuite/performance/20_util/allocator/map_thread.cc: ...here.
4320 2004-02-04 Jonathan Wakely <redi@gcc.gnu.org>
4322 * docs/html/faq/index.html: Recommend using LD_LIBRARY_PATH.
4323 * docs/html/faq/index.txt: Regenerate.
4325 2004-02-04 Dhruv Matani <dhruvbird@gmx.net>
4327 * include/ext/debug_allocator.h: _M_extra now stands for the
4328 number of extra objects instead of the number of extra bytes.
4329 (debug_allocator::allocate): Adjust.
4330 (debug_allocator::deallocate): Adjust.
4332 * include/ext/pool_allocator.h: Fix typo.
4334 2004-02-03 Felix Yen <fwy@alumni.brown.edu>
4335 Benjamin Kosnik <bkoz@redhat.com>
4337 * testsuite/performance/20_util/allocator.cc: Add map,
4339 * testsuite/performance/20_util/allocator_thread.cc: Same.
4341 2004-02-03 Paolo Carlini <pcarlini@suse.de>
4343 * include/bits/basic_string.h (insert(iterator)): Remove,
4344 non-standard and already scheduled for removal.
4346 2004-02-03 Paolo Carlini <pcarlini@suse.de>
4348 * include/bits/stl_iterator_base_funcs.h: Minor formatting
4349 and indentation tweaks.
4350 * include/bits/stl_iterator_base_types.h: Likewise.
4351 * include/bits/stl_list.h: Likewise.
4352 * include/bits/stl_map.h: Likewise.
4353 * include/bits/stl_tempbuf.h: Likewise.
4355 2004-02-02 Jerry Quinn <jlquinn@optonline.net>
4357 * include/bits/gslice.h, include/bits/gslice_array.h,
4358 include/bits/indirect_array.h, include/bits/mask_array.h,
4359 include/bits/slice_array.h, include/bits/stl_numeric.h,
4360 include/std/std_valarray.h: Update copyright years.
4362 2004-02-02 Jerry Quinn <jlquinn@optonline.net>
4364 * include/bits/gslice.h (gslice): Document.
4365 * include/bits/gslice_array.h (gslice_array): Document.
4366 * include/bits/indirect_array (indirect_array): Document.
4367 * include/bits/mask_array (mask_array): Document.
4368 * include/bits/slice_array.h (slice,slice_array): Document.
4369 * include/bits/stl_numeric.h (accumulate, inner_product, partial_sum,
4370 adjacent_difference): Document
4371 * include/std/std_valarray.h (valarray): Document.
4373 2004-02-02 Benjamin Kosnik <bkoz@redhat.com>
4375 * docs/html/19_diagnostics/howto.html: Move verbose terminate
4377 * docs/html/18_support/howto.html: Here.
4378 * docs/html/documentation.html: Add reference here.
4380 2004-02-02 Paolo Carlini <pcarlini@suse.de>
4382 * config/locale/gnu/c++locale_internal.h: Remove prototypes
4383 of no longer used GLIBC thread locale functions.
4385 2004-02-02 Eric Christopher <echristo@redhat.com>
4386 Zack Weinberg <zack@codesourcery.com>
4388 * testsuite/22_locale/collate/compare/wchar_t/2.cc: Remove xfail. Use
4390 * testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc: Ditto.
4391 * testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc: Ditto
4392 * testsuite/22_locale/collate/hash/wchar_t/2.cc: Ditto.
4393 * testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc: Ditto.
4394 * testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc: Ditto.
4395 * testsuite/22_locale/collate/transform/wchar_t/2.cc: Ditto.
4396 * testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc: Ditto.
4397 * testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
4400 2004-02-02 Paolo Carlini <pcarlini@suse.de>
4402 * include/bits/stl_function.h: Additional minor tweaks.
4403 * include/bits/stl_multiset.h: Likewise.
4405 * include/bits/stl_queue.h: Minor tweaks.
4407 2004-02-02 Paolo Carlini <pcarlini@suse.de>
4409 PR libstdc++/13976 (continued)
4410 * include/ext/malloc_allocator.h (malloc_allocator::deallocate):
4411 Make the second parameter unnamed, to void unused parameter
4413 * include/ext/new_allocator.h (new_allocator::deallocate): Ditto.
4415 2004-02-02 Paolo Carlini <pcarlini@suse.de>
4418 * include/ext/malloc_allocator.h (malloc_allocator::allocate):
4419 Make the second parameter unnamed, to void unused parameter
4421 * include/ext/mt_allocator.h (__mt_alloc::allocate): Ditto.
4422 * include/ext/new_allocator.h (new_allocator::allocate): Ditto.
4424 2004-02-01 Paolo Carlini <pcarlini@suse.de>
4426 * include/bits/stl_algo.h: Additional minor tweaks.
4427 * include/bits/stl_map.h: Likewise.
4428 * include/bits/stl_multimap.h: Likewise.
4429 * include/bits/stl_multiset.h: Likewise.
4430 * include/bits/stl_set.h: Likewise.
4431 * include/bits/stl_tree.h: Likewise.
4433 2004-02-01 Paolo Carlini <pcarlini@suse.de>
4435 * include/bits/vector.tcc (vector::_M_insert_aux(iterator)):
4438 2004-02-01 Paolo Carlini <pcarlini@suse.de>
4440 * include/bits/stl_function.h: Additional minor tweaks.
4442 2004-02-01 Paolo Carlini <pcarlini@suse.de>
4444 * include/bits/deque.tcc: Wrap overlong lines, constify
4445 a few variables, reformat according to the coding standards.
4446 * include/bits/list.tcc: Likewise.
4447 * include/bits/stl_deque.h: Likewise.
4448 * include/bits/stl_function.h: Likewise.
4449 * include/bits/stl_iterator.h: Likewise.
4450 * include/bits/stl_iterator_base_funcs.h: Likewise.
4451 * include/bits/stl_iterator_base_types.h: Likewise.
4452 * include/bits/stl_list.h: Likewise.
4453 * include/bits/stl_map.h: Likewise.
4454 * include/bits/stl_multimap.h: Likewise.
4455 * include/bits/stl_multiset.h: Likewise.
4456 * include/bits/stl_relops.h: Likewise.
4457 * include/bits/stl_set.h: Likewise.
4459 2004-02-01 Paolo Carlini <pcarlini@suse.de>
4461 * include/bits/stl_bvector.h: Wrap overlong lines, constify
4462 a few variables, reformat according to the coding standards.
4463 * include/bits/stl_tree.h: Likewise.
4465 2004-01-31 Paolo Carlini <pcarlini@suse.de>
4467 * include/bits/stl_algo.h: Minor additional reformat, add
4469 * include/bits/stl_algobase.h: Add copyright year.
4471 2004-01-31 Paolo Carlini <pcarlini@suse.de>
4473 * include/bits/stl_algo.h: Wrap overlong lines, constify
4474 a few variables, reformat according to the coding standards.
4475 * include/bits/stl_algobase.h: Likewise.
4476 * include/bits/stl_heap.h: Likewise.
4478 2004-01-31 Paolo Carlini <pcarlini@suse.de>
4480 * include/bits/basic_string.h (_Rep::operator[]): Remove, unused.
4482 * include/bits/basic_string.h: Fix two comments.
4484 2004-01-31 Per Bothner <per@bothner.com>
4486 * include/ext/mt_allocator.h
4487 (__mt_alloc::_S_thread_freelist_mutex): Guard with
4488 __GTHREAD_MUTEX_INIT.
4490 2004-01-31 Paolo Carlini <pcarlini@suse.de>
4492 * include/bits/basic_string.tcc (_Rep::_S_create): Minor tweak.
4494 2004-01-30 Paolo Carlini <pcarlini@suse.de>
4496 * testsuite/21_strings/basic_string/cons/char/6.cc: New.
4497 * testsuite/21_strings/basic_string/cons/wchar_t/6.cc: New.
4498 * testsuite/performance/21_strings/string_cons_input_iterator.cc: New.
4500 2004-01-30 Felix Yen <fwy@alumni.brown.edu>
4502 * testsuite/performance/20_util/allocator_thread.cc (do_loop):
4503 Don't use clear, but instead assign. Use insert.
4505 2004-01-30 Benjamin Kosnik <bkoz@redhat.com>
4507 * src/demangle.cc: Add instantiations.
4508 * src/Makefile.am: Remove special rules for demangle.lo, demangle.o.
4509 * src/Makefile.in: Regenerate.
4511 2004-01-30 David Edelsohn <edelsohn@gnu.org>
4513 * src/allocator.cc: Protect _S_get_thread_id() and
4514 _S_thread_key_destr() with #ifdef __GTHREADS.
4516 2004-01-30 Paolo Carlini <pcarlini@suse.de>
4518 Reshuffle performance testsuite.
4519 * testsuite/performance/allocator.cc, allocator_map_thread.cc,
4520 allocator_thread.cc, complex_norm.cc, container_benchmark.cc,
4521 cout_insert_int.cc, filebuf_copy.cc, filebuf_sputc.cc,
4522 fstream_seek_write.cc, ifstream_extract_float.cc,
4523 ifstream_extract_int.cc, ifstream_getline.cc, is_wchar_t.cc,
4524 list_create_fill_sort.cc, map_create_fill.cc,
4525 narrow_widen_char.cc, narrow_widen_wchar_t.cc,
4526 ofstream_insert_float.cc, ofstream_insert_int.cc,
4527 string_append.cc, wchar_t_in.cc, wchar_t_length.cc,
4528 wchar_t_out.cc: Split into...
4529 * testsuite/performance/20_util/allocator.cc: New.
4530 * testsuite/performance/20_util/allocator_map_thread.cc: New.
4531 * testsuite/performance/20_util/allocator_thread.cc: New.
4532 * testsuite/performance/21_strings/string_append: New.
4533 * testsuite/performance/22_locale/is_wchar_t.cc: New.
4534 * testsuite/performance/22_locale/narrow_widen_char.cc: New.
4535 * testsuite/performance/22_locale/narrow_widen_wchar_t.cc: New.
4536 * testsuite/performance/22_locale/wchar_t_in.cc: New.
4537 * testsuite/performance/22_locale/wchar_t_length.cc: New.
4538 * testsuite/performance/22_locale/wchar_t_out.cc: New.
4539 * testsuite/performance/23_containers/container_benchmark.cc: New.
4540 * testsuite/performance/23_containers/list_create_fill_sort.cc: New.
4541 * testsuite/performance/23_containers/map_create_fill.cc: New.
4542 * testsuite/performance/26_numerics/complex_norm.cc: New.
4543 * testsuite/performance/27_io/cout_insert_int.cc: New.
4544 * testsuite/performance/27_io/filebuf_copy.cc: New.
4545 * testsuite/performance/27_io/filebuf_sputc.cc: New.
4546 * testsuite/performance/27_io/fstream_seek_write.cc: New.
4547 * testsuite/performance/27_io/ifstream_extract_float.cc: New.
4548 * testsuite/performance/27_io/ifstream_extract_int.cc: New.
4549 * testsuite/performance/27_io/ifstream_getline.cc: New.
4550 * testsuite/performance/27_io/ofstream_insert_float.cc: New.
4551 * testsuite/performance/27_io/ofstream_insert_int.cc: New.
4553 2004-01-30 Paolo Carlini <pcarlini@suse.de>
4555 * include/bits/basic_string.tcc (_Rep::_S_create):
4556 Never allocate a string bigger than max_size(); always keep
4557 __capacity and __size in sync to avoid memory leaks at
4560 2004-01-30 Paolo Carlini <pcarlini@suse.de>
4562 * include/bits/basic_string.tcc (_S_construct(_InIterator,
4563 _InIterator, const _Alloc&, input_iterator_tag)): Simplify
4564 the double loop, streamline.
4566 * include/bits/basic_string.tcc: Very minor tweaks.
4568 2004-01-30 Loren J. Rittle <ljrittle@acm.org>
4570 * scripts/check_performance: Only compile with $THREAD_FLAG
4571 when test is marked to require it. Allow multiple
4572 compilations/executions of marked tests.
4573 * testsuite/testsuite_performance.h (report_performance):
4574 Report dynamic thread support status.
4575 (report_header): Likewise.
4576 * testsuite/performance/allocator.cc: Stabilize iteration
4577 count. Support more allocators. Mark each allocator test to
4578 run and report independently.
4579 * testsuite/performance/allocator_map_thread.cc: Likewise.
4580 * testsuite/performance/allocator_thread.cc: Likewise.
4582 2004-01-29 Stephen M. Webb <stephen.webb@bregmasoft.com>
4584 * config/local/generic/c_locale.h: Change ::malloc() to new char[].
4585 * config/local/gnu/c_locale.h: Change ::malloc() to new char[].
4586 * include/bits/stl_tempbuf.h: Convert _Temporary_buffer to use
4587 std::get_temporary_buffer() instead of duplicating its code.
4588 Update to C++STYLE conventions.
4589 * include/std/std_memory.h (get_temporary_buffer): Use ::operator
4590 new() instead of std::malloc().
4591 (return_temporary_buffer): Use ::operator delete() instead of
4594 2004-01-29 Benjamin Kosnik <bkoz@redhat.com>
4596 * include/bits/allocator.h: Temporary switch to new_allocator as
4597 the default to unjam bootstraps.
4599 2004-01-28 Benjamin Kosnik <bkoz@redhat.com>
4601 * include/Makefile.am (bits_headers): Remove allocator_traits.h.
4602 * include/Makefile.in: Regenerate.
4603 * include/bits/allocator_traits.h: Remove.
4604 * include/bits/allocator.h: Remove allocator_traits.h include, and
4606 (allocator): Empty base class, inherit from the underlying allocator.
4607 * src/allocator-inst.cc: Move __pool_alloc instantiation to...
4608 * src/allocator.cc: ...here. New. For the underlying allocators.
4609 Add __mt_alloc, __pool_alloc, new_allocator, malloc_allocator bits.
4610 * config/linker-map.gnu: Remove __pool_alloc bits.
4611 * src/Makefile.am (sources): Add allocator.cc.
4612 * src/Makefile.in: Regenerate.
4613 * testsuite/20_util/allocator/1.cc: Split second test into...
4614 * testsuite/20_util/allocator/8230.cc: ...this.
4615 * include/bits/stl_bvector.h (__gnu_norm): Change bit_vector
4616 typedef to use std::allocatore. Format.
4617 * include/ext/pool_allocator.h: Remove allocator_traits.h include,
4619 * include/ext/mt_allocator.h (__gnu_cxx): Qualify
4620 __throw_bad_alloc calls. Don't include <memory>.
4621 * include/ext/malloc_allocator.h: Remove <memory> include.
4622 * include/ext/new_allocator.h (new_allocator): Same.
4623 * include/ext/ropeimpl.h (__gnu_cxx): Remove __alloc using
4624 declaration. Switch __alloc to _Alloc.
4625 * include/ext/hashtable.h: Remove __alloc.
4626 * include/backward/alloc.h: Only inject allocator, not
4627 implementation details.
4629 * include/ext/mt_allocator.h: Replace free with delete.
4631 2004-01-28 Benjamin Kosnik <bkoz@redhat.com>
4633 * src/globals_io.cc: Change to __gnu_internal namespace.
4634 * src/globals_locale.cc: Same.
4635 * src/locale_init.cc: Same.
4636 * src/ios_init.cc: Same.
4638 2004-01-28 Stefan Olsson <stefan@snon.net>
4640 * include/ext/mt_allocator.h: Replaced all malloc() calls with
4641 operator new(). Added support for the env variable
4642 GLIBCXX_FORCE_NEW (this required the _S_init call to be the first
4643 one in allocate() as well). Fix typos.
4645 2004-01-28 Paolo Carlini <pcarlini@suse.de>
4647 * include/bits/basic_string.h (_S_create(size_t,
4648 const _Alloc&): Change signature to take two size_type
4650 * include/bits/basic_string.tcc (_S_construct(_InIterator,
4651 _InIterator, const _Alloc&, input_iterator_tag)): Update
4653 (_S_construct(_InIterator, _InIterator, const _Alloc&,
4654 forward_iterator_tag)): Likewise.
4655 (_S_construct(size_type, _CharT, const _Alloc&)): Likewise.
4656 (_M_mutate(size_type, size_type, size_type)): Don't
4657 implement the exponential growth policy, demand it to
4658 _S_create, update call and simplify.
4659 (_M_clone(const _Alloc&, size_type)): Likewise.
4660 (_S_create(size_type, size_type, const _Alloc&)): Implement
4661 the growth policy, simplify otherwise.
4663 * include/bits/basic_string.h (_Rep::operator[]): Tweak
4664 signature to take a size_type, consistently with the other
4667 2004-01-27 Benjamin Kosnik <bkoz@redhat.com>
4669 * testsuite/27_io/ios_base/storage/11584.cc: Correct new and
4670 delete declarations, add include and test variable.
4672 2003-01-27 Jerry Quinn <jlquinn@optonline.net>
4674 * include/bits/codecvt.h, include/bits/locale_facets.h,
4675 include/bits/postypes.h, include/bits/stl_bvector.h,
4676 include/bits/stl_multiset.h, include/bits/stl_set.h,
4677 include/bits/stream_iterator.h, include/bits/streambuf_iterator.h,
4678 include/std/std_complex.h: Document.
4680 2004-01-27 Jerry Quinn <jlquinn@optonline.net>
4683 * include/bits/ios_base.h (ios_base::_M_grow_words): Add
4684 iword/pword selector.
4685 (ios_base::iword, ios_base::pword): Use it.
4686 * src/ios.cc (ios_base::_M_grow_words): Clear _M_word_zero
4687 iword or pword member on alloc failure.
4688 * testsuite/27_io/ios_base/storage/11584.cc: New test.
4690 2004-01-27 Ulrich Weigand <uweigand@de.ibm.com>
4691 PJ Darcy <darcypj@us.ibm.com>
4693 * configure.host: Add support for *-tpf.
4694 * crossconfig.m4: Likewise.
4695 * configure: Regenerate.
4696 * config/os/tpf: New directory.
4697 * config/os/tpf/os_defines.h: New file.
4698 * config/os/tpf/ctype_base.h: Likewise.
4699 * config/os/tpf/ctype_inline.h: Likewise.
4700 * config/os/tpf/ctype_noninline.h: Likewise.
4702 2004-01-27 Paolo Carlini <pcarlini@suse.de>
4705 * include/bits/sstream.tcc: Guard use of extern template.
4707 2004-01-27 Paolo Carlini <pcarlini@suse.de>
4709 * include/bits/basic_string.tcc
4710 (basic_string(const basic_string&, size_type, size_type),
4711 basic_string(const basic_string&, size_type, size_type,
4712 const _Alloc&)): Avoid unnecessarily constructing iterators.
4714 2004-01-26 Paolo Carlini <pcarlini@suse.de>
4716 * config/locale/generic/c_locale.cc: Fix throw messages
4717 to use the __N marker.
4718 * config/locale/gnu/c_locale.cc: Likewise.
4719 * config/locale/ieee_1003.1-2001/codecvt_specializations.h:
4721 * docs/html/17_intro/C++STYLE: Likewise.
4722 * include/bits/basic_ios.tcc: Likewise.
4723 * include/bits/fstream.tcc: Likewise.
4724 * include/bits/vector.tcc: Likewise.
4725 * include/ext/ropeimpl.h: Likewise.
4726 * include/std/std_bitset.h: Likewise.
4727 * src/ios.cc: Likewise.
4728 * src/locale.cc: Likewise.
4729 * src/localename.cc: Likewise.
4731 2004-01-26 Paolo Carlini <pcarlini@suse.de>
4733 * include/bits/basic_string.h (_M_replace_aux): Use the
4734 __N marker in throw message.
4735 * include/bits/basic_string.tcc (assign(const _CharT*,
4736 size_type), insert(size_type, const _CharT*, size_type),
4737 replace(size_type, size_type, const _CharT*, size_type),
4738 reserve, _Rep::_S_create, resize, _M_replace_dispatch):
4741 * include/bits/basic_string.h, include/bits/basic_string.tcc:
4742 Fold overlong lines, minor formatting changes.
4744 2004-01-26 Paolo Carlini <pcarlini@suse.de>
4746 * include/bits/basic_string.h (replace(iterator, iterator,
4747 const basic_string&)): Remove _GLIBCXX_DEBUG_PEDASSERT.
4748 (replace(iterator, iterator, const _CharT*)): Ditto.
4749 (replace(iterator, iterator, const _CharT*, size_type)):
4750 Add missing _GLIBCXX_DEBUG_PEDASSERT.
4752 2004-01-26 Paolo Carlini <pcarlini@suse.de>
4754 * include/bits/basic_string.tcc (replace(size_type,
4755 size_type, const _CharT*, size_type)): Implement optimized
4756 in-place algorithm for non-overlapping ranges.
4757 * testsuite/21_strings/basic_string/replace/char/6.cc: New.
4758 * testsuite/21_strings/basic_string/replace/wchar_t/6.cc: New.
4760 * include/bits/basic_string.tcc (insert(size_type,
4761 const _CharT*, size_type)): Tweak slightly.
4763 2004-01-26 Andreas Schwab <schwab@suse.de>
4765 * config/locale/gnu/monetary_members.cc: Restore locale before
4766 rethrowing exception.
4768 2004-01-25 Paolo Carlini <pcarlini@suse.de>
4770 * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
4772 * include/bits/basic_string.tcc (_M_replace_aux, _M_replace_safe):
4775 * include/bits/basic_string.tcc: Very minor tweaks.
4777 2004-01-25 Paolo Carlini <pcarlini@suse.de>
4779 * testsuite/performance/string_append.cc: Increase number
4782 2004-01-25 Paolo Carlini <pcarlini@suse.de>
4784 * include/bits/basic_string.h (erase(size_type, size_type),
4785 erase(iterator), erase(iterator, iterator)): Call _M_replace_safe
4786 instead, thus avoiding redundant check for length_error.
4788 * include/bits/basic_string.h: Tweak some comments.
4790 2004-01-24 Paolo Carlini <pcarlini@suse.de>
4792 * include/bits/basic_string.tcc (operator+(const _CharT*,
4793 const basic_string&)): No need to go through the append
4794 taking two iterators.
4796 2004-01-24 Paolo Carlini <pcarlini@suse.de>
4798 * include/bits/basic_string.tcc (rfind(_CharT, size_type)):
4799 Revert last change to use std::min: machine language is worse.
4800 (find_last_of(const _CharT*, size_type, size_type)): Ditto.
4801 (find_last_not_of(const _CharT*, size_type, size_type)): Ditto.
4802 (find_last_not_of(_CharT, size_type)): Ditto.
4804 * include/bits/basic_string.tcc (insert(size_type, const _CharT*,
4805 size_type)): Discard the value returned by _M_check.
4806 (replace(size_type, size_type, const _CharT*, size_type)): Ditto.
4807 (append(const basic_string&, size_type, size_type)): Ditto.
4808 (copy(_CharT*, size_type, size_type)): Ditto.
4809 (compare(size_type, size_type, const basic_string&)): Ditto.
4810 (compare(size_type, size_type, const basic_string&,
4811 size_type, size_type)): Ditto.
4812 (compare(size_type, size_type, const _CharT*)): Ditto.
4813 (compare(size_type, size_type, const _CharT*, size_type)): Ditto.
4815 2004-01-24 Paolo Carlini <pcarlini@suse.de>
4817 * include/bits/basic_string.h (insert(size_type,
4818 const basic_string&, size_type, size_type)): Define inline here.
4819 * include/bits/basic_string.tcc (insert(size_type,
4820 const basic_string&, size_type, size_type)): Move inline.
4822 2004-01-24 Paolo Carlini <pcarlini@suse.de>
4824 * include/bits/basic_string.h (assign(const basic_string&,
4825 size_type, size_type)): Define inline here.
4826 (replace(size_type, size_type, const basic_string&,
4827 size_type, size_type)): Ditto.
4828 (_M_replace_dispatch(iterator, iterator, _InputIterator,
4829 _InputIterator, __false_type)): Only declare.
4830 (_M_replace(iterator, iterator, _InputIterator,
4831 _InputIterator)): Remove.
4832 * include/bits/basic_string.tcc (assign(const basic_string&,
4833 size_type, size_type)): Move inline.
4834 (replace(size_type, size_type, const basic_string&,
4835 size_type, size_type)): Ditto.
4836 (_M_replace_dispatch(iterator, iterator, _InputIterator,
4837 _InputIterator, __false_type)): Define, now does also what
4838 _M_replace did before.
4839 * src/string-inst.cc (_M_replace): Don't instantiate.
4841 * include/bits/basic_string.tcc (find(const _CharT*,
4842 size_type, size_type)): Tidy.
4843 (rfind(_CharT, size_type)): Ditto.
4844 (find_first_not_of(const _CharT*, size_type, size_type)): Ditto.
4845 (find_first_not_of(_CharT, size_type)): Ditto.
4846 (find_last_not_of(const _CharT*, size_type, size_type)): Ditto.
4847 (find_last_not_of(_CharT, size_type)): Ditto.
4849 2004-01-23 Paolo Carlini <pcarlini@suse.de>
4852 * include/debug/bitset (operator|=): Fix typo.
4853 * testsuite/23_containers/bitset/operations/13838.cc: New.
4855 2004-01-23 Paolo Carlini <pcarlini@suse.de>
4857 * include/bits/basic_string.tcc (insert(size_type,
4858 const _CharT*, size_type __n)): Fix length_error check.
4859 (replace(size_type, size_type, const _CharT*, size_type):
4860 Ditto; call _M_replace_safe.
4861 (_M_replace_aux(size_type, size_type, size_type, _CharT):
4862 Fix length_error check.
4863 (_M_replace(iterator, iterator, _InputIterator,
4864 _InputIterator)): Ditto, tweak.
4865 (_M_replace_safe(size_type, size_type, const _CharT*,
4866 size_type)): Remove length_error check.
4868 * include/bits/basic_string.tcc (append(const basic_string&),
4869 append(const basic_string&, size_type, size_type)): Tweak
4872 * include/bits/basic_string.tcc (copy(_CharT*, size_type,
4873 size_type)): If __n == 0 don't call traits::copy.
4875 2004-01-23 Stefan Olsson <stefan@snon.net>
4877 * include/ext/mt_allocator.h: Reduce lock contention.
4879 2004-01-23 Paolo Carlini <pcarlini@suse.de>
4882 * include/bits/fstream.tcc (underflow): Remove unused
4884 * include/bits/streambuf_iterator.h (equal): Ditto.
4885 * include/bits/locale_facets.h (_M_convert_from_char):
4888 2004-01-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4891 * config/linker-map.gnu (nan): Delete.
4892 * libmath/mathconf.h (NAN, nan): Delete.
4893 * linkage.m4 (nan): Don't check for it.
4894 * libmath/nan.c: Delete file.
4896 * config.h.in, configure: Regenerate.
4898 2004-01-23 Paolo Carlini <pcarlini@suse.de>
4900 * include/bits/basic_string.h (push_back(_CharT)):
4901 Call _M_replace_aux.
4902 (insert(size_type, const basic_string&)): Trivial tweak.
4903 (insert(size_type, size_type, _CharT)): Call _M_replace_aux.
4904 (insert(iterator, _CharT)): Ditto.
4905 (erase(size_type, size_type)): Ditto.
4906 (erase(iterator)): Ditto.
4907 (erase(iterator, iterator)): Ditto.
4908 (replace(size_type, size_type, size_type, _CharT)): Ditto.
4910 2004-01-23 Loren J. Rittle <ljrittle@acm.org>
4913 * testsuite/performance/allocator_map_thread.cc: New test.
4915 2004-01-22 Paolo Carlini <pcarlini@suse.de>
4917 * include/bits/locale_facets.tcc
4918 (money_put::do_put(..., long double)): Use the basic_string
4919 constructor for char arrays, not that for C-strings, to pass
4920 __digits to do_put(..., const string_type&): __ws isn't
4923 2004-01-22 Paolo Carlini <pcarlini@suse.de>
4925 * include/bits/basic_string.h (_M_replace_safe): Change
4926 signatures to take size_types and const _CharT*.
4927 (_M_replace_aux): Likewise, takes size_types instead of
4929 (append(size_type, _CharT)): Update call.
4930 (assign(size_type, _CharT)): Ditto.
4931 (replace(iterator, iterator, size_type, _CharT)): Ditto.
4932 (_M_replace_dispatch(iterator, iterator, _Integer,
4933 _Integer, __true_type)): Ditto.
4934 * include/bits/basic_string.tcc (assign(const _CharT*,
4936 (insert(size_type, const _CharT*, size_type)): Ditto.
4937 (replace(size_type, size_type, const _CharT*,
4939 (_M_replace(iterator, iterator, _InputIterator,
4940 _InputIterator)): Ditto.
4941 (append(const basic_string&)): Ditto.
4942 (append(const basic_string&, size_type, size_type): Ditto.
4943 (append(const _CharT*, size_type): Ditto.
4944 (_M_replace_safe, _M_replace_safe): Change definitions
4945 accordingly, simplify.
4946 * string-inst.cc (_M_replace_safe): Don't instantiate.
4948 2004-01-21 Paolo Carlini <pcarlini@suse.de>
4950 * include/bits/basic_string.tcc (append(const basic_string&)):
4951 Revert previous change.
4952 (append(const basic_string&, size_type, size_type)): Revert
4953 previous change, use _M_check and _M_limit.
4955 2004-01-21 Paolo Carlini <pcarlini@suse.de>
4957 * include/bits/basic_string.h (_M_check): Change to return
4958 a checked __pos and take an additional const char* argument.
4959 (_M_fold): Rename to _M_limit, change to return a size_type,
4960 corresponding to the __off limited to the actual length.
4961 (insert(size_type, size_type, _CharT)): Update call, call
4963 (insert(iterator, _CharT)): Call replace(iterator, iterator,
4964 size_type, _CharT) instead.
4965 (erase(size_type, size_type)): Update calls.
4966 (replace(size_type, size_type, size_type, _CharT)): Ditto.
4967 (substr(size_type, size_type)): Use _M_check.
4968 * include/bits/basic_string.tcc (basic_string(const basic_string&,
4969 size_type, size_type)): Update calls.
4970 (basic_string(const basic_string&, size_type, size_type,
4971 const _Alloc&)): Ditto.
4972 (assign(const basic_string&, size_type, size_type)): Use the
4973 new _M_check and _M_limit.
4974 (insert(size_type, const basic_string&, size_type, size_type):
4976 (insert(size_type, const _CharT*, size_type)): Ditto.
4977 (replace(size_type, size_type, const _CharT*, size_type): Ditto.
4978 (replace(size_type, size_type, const basic_string&,
4979 size_type, size_type)): Ditto.
4980 (append(const basic_string&)): Ditto.
4981 (append(const basic_string&, size_type, size_type)): Ditto.
4982 (copy(_CharT*, size_type, size_type)): Ditto.
4983 (compare(size_type, size_type, const basic_string&)): Ditto.
4984 (compare(size_type, size_type, const basic_string&,size_type,
4986 (compare(size_type, size_type, const _CharT*)): Ditto.
4987 (compare(size_type, size_type, const _CharT*, size_type)): Ditto.
4989 2004-01-19 Stefan Olsson <stefan@snon.net>
4991 * include/ext/mt_allocator.h: If a thread, when it dies, still has
4992 memory on it's freelist this memory is not returned to global
4993 list. Simplification of deallocate so that memory is always
4994 returned to the calling thread id's freelist instead of to
4995 global. Fix typos. Add volatile where appropriate.
4997 2004-01-19 Loren J. Rittle <ljrittle@acm.org>
4999 * testsuite/ext/stdio_filebuf/char/10063-2.cc: Treat unbuffered.
5000 * testsuite/ext/stdio_filebuf/char/10063-3.cc: New test. Like -2 but
5001 use __gnu_cxx::stdio_sync_filebuf<char> instead; allow buffered stream.
5003 2004-01-19 Paolo Carlini <pcarlini@suse.de>
5005 * src/debug.cc: Make sure all the names are prefixed with
5006 double (or single) underscore.
5008 2004-01-19 Paolo Carlini <pcarlini@suse.de>
5010 * src/debug.cc: Trivial formatting change.
5012 2004-01-19 Paolo Carlini <pcarlini@suse.de>
5014 * include/bits/basic_string.tcc (_S_construct(size_type,
5015 _CharT, const _Alloc&)): Remove redundant try/catch.
5016 (_M_mutate(size_type, size_type, size_type)): Ditto.
5017 (_M_clone(const _Alloc&, size_type)): Ditto.
5019 2004-01-18 Paolo Carlini <pcarlini@suse.de>
5021 * include/bits/basic_string.h (c_str()): Simplify, due to
5022 21.3.4 the internal representation is always kept null-terminated.
5023 * include/bits/basic_string.tcc (_M_clone): Null-terminate.
5024 * testsuite/21_strings/basic_string/element_access/char/4.cc: New.
5025 * testsuite/21_strings/basic_string/element_access/wchar_t/4.cc:
5028 2004-01-18 Paolo Carlini <pcarlini@suse.de>
5030 * include/bits/basic_string.h (append(size_type, _CharT)):
5031 Moved inline, just call _M_replace_aux, no source iterators at
5032 risk of being clobbered.
5033 (assign(size_type, _CharT)): Call directly _M_replace_aux.
5034 (_M_replace(iterator, iterator, _InputIterator, _InputIterator,
5035 input_iterator_tag)): Remove fifth unused argument.
5036 (_M_replace_dispatch(iterator, iterator, _InputIterator,
5037 _InputIterator, __false_type)): Update call.
5038 * include/bits/basic_string.tcc (replace(size_type, size_type,
5039 const _CharT*, size_type)): Update call.
5040 (_M_replace_aux(iterator, iterator, size_type, _CharT)): Tweak
5041 throw string literal.
5042 (_M_replace_safe(iterator, iterator, _ForwardIterator,
5043 _ForwardIterator)): Likewise.
5044 (_M_replace(iterator, iterator, _InputIterator, _InputIterator,
5045 input_iterator_tag)): Remove fifth unused argument.
5046 (append(size_type __n, _CharT __c)): Move inline.
5047 * src/string-inst.cc (S::_M_replace(S::iterator, S::iterator,
5048 const C*, const C*, input_iterator_tag)): Remove fifth unused
5051 2004-01-16 Benjamin Kosnik <bkoz@redhat.com>
5053 * testsuite/ext/enc_filebuf/char/13189.cc: Fix guards.
5054 * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Same.
5056 2004-01-16 Danny Smith <dannysmith@users.sourceforge.net>
5058 * testsuite/testsuite_hooks.cc (try_mkfifo): Avoid calling
5061 2004-01-15 Stefan Olsson <stefan@snon.net>
5063 * include/ext/mt_allocator.h: Reuse thread id's as soon as
5064 possible by changing the behaviour of thread_freelist to do
5065 push_front when threads die instead of push_back.
5067 2004-01-14 Paolo Carlini <pcarlini@suse.de>
5069 * include/bits/locale_facets.h (struct __numpunct_cache):
5070 Add member _M_grouping_size, caching the length of _M_grouping.
5071 (__numpunct_cache<>::_M_cache): Assign the latter.
5072 (__verify_grouping): Move declaration...
5073 * include/bits/locale_facets.tcc (__verify_grouping):
5074 ... here, change signature to take a const char* and a size_t
5075 for the grouping; not a template anymore.
5076 (__add_grouping, num_put::_M_group_int, num_put::_M_group_float):
5077 Likewise change signature and tweak consistently.
5078 (num_get::_M_extract_float, num_get::_M_extract_int,
5079 num_put::_M_insert_int, num_put::_M_insert_float,
5080 money_get::do_get(string_type&), money_get::do_put(string_type)):
5082 * config/locale/generic/numeric_members.cc
5083 (numpunct<>::_M_initialize_numpunct): Assign the new member.
5084 * config/locale/gnu/numeric_members.cc
5085 (numpunct<>::_M_initialize_numpunct): Likewise.
5086 * src/locale-inst.cc (__add_grouping): Tweak signature.
5087 (__verify_grouping): Don't instantiate, not a template anymore.
5089 * include/bits/locale_facets.h: Rename _M_truename_len ->
5090 _M_truename_size, _M_falsename_len -> _M_falsename_size.
5091 * include/bits/locale_facets.tcc: Likewise.
5092 * config/locale/generic/numeric_members.cc: Likewise.
5093 * config/locale/gnu/numeric_members.cc: Likewise.
5095 2004-01-14 Stefan Olsson <stefan@snon.net>
5097 * include/ext/mt_allocator.h: Fixups.
5098 * testsuite/performance/allocator.cc: Enable __mt_alloc tests.
5099 * testsuite/performance/allocator_thread.cc: Same.
5101 2004-01-13 Benjamin Kosnik <bkoz@redhat.com>
5103 * testsuite/performance/ifstream_extract_float.cc: Add higher
5105 * testsuite/performance/ofstream_insert_float.cc: Same.
5107 2004-01-13 Paolo Carlini <pcarlini@suse.de>
5109 * src/locale-misc-inst.cc (__convert_from_v(long),
5110 __convert_from_v(unsigned long), __convert_from_v(long long),
5111 __convert_from_v(unsigned long long)): Remove, unused.
5113 2004-01-13 Benjamin Kosnik <bkoz@redhat.com>
5115 * testsuite/performance/ifstream_extract_float.cc: New.
5116 * testsuite/performance/ofstream_insert_float.cc: Float generation
5119 * 20_util/auto_ptr.cc, auto_ptr_neg.cc: Break into...
5120 * 20_util/auto_ptr/1.cc: ...this.
5121 * 20_util/auto_ptr/2.cc: Same.
5122 * 20_util/auto_ptr/3.cc: Same.
5123 * 20_util/auto_ptr/3946.cc: Same.
5124 * 20_util/auto_ptr/4.cc: Same.
5125 * 20_util/auto_ptr/5.cc: Same.
5126 * 20_util/auto_ptr/6.cc: Same.
5127 * 20_util/auto_ptr/7.cc: Same.
5128 * 20_util/auto_ptr/assign_neg.cc
5129 * 20_util/pairs.cc: Break into...
5130 * 20_util/pair/1.cc: ...this.
5131 * 20_util/pair/2.cc: Same.
5132 * 20_util/pair/3.cc: Same.
5133 * 20_util/pair/4.cc: Same.
5135 2004-01-13 Paolo Carlini <pcarlini@suse.de>
5137 * include/bits/locale_facets.tcc (num_get::do_get(void*&)):
5138 Set correctly just basefield, the only group that matters.
5140 2004-01-13 Paolo Carlini <pcarlini@suse.de>
5142 * include/ext/rope (_Rope_rep_alloc_base): Eliminate.
5143 (_Rope_rep_base): Inherit directly from the rope allocator;
5144 use rebinding instead of _Alloc_traits; pick up data member
5145 from _Rope_rep_alloc_base.
5146 (_Rope_alloc_base): Eliminate.
5147 (_Rope_base): Inherit directly from the rope allocator; use
5148 rebinding instead of _Alloc_traits; pick up data member from
5150 (rope::_S_new_RopeLeaf, rope::_S_new_RopeConcatenation,
5151 rope::_S_new_RopeFunction, rope::_S_new_RopeSubstring): Tweak.
5153 2004-01-13 Paolo Carlini <pcarlini@suse.de>
5156 * include/bits/basic_string.tcc (compare(size_type, size_type,
5157 const _CharT*, size_type)): Implement correctly the resolution
5158 of DR 5: basically, s is a char array, -not- a C string.
5159 * include/bits/basic_string.h: Tweak some comments.
5160 * testsuite/21_strings/basic_string/compare/char/13650.cc: New.
5161 * testsuite/21_strings/basic_string/compare/wchar_t/13650.cc: New.
5163 2004-01-12 Andreas Tobler <a.tobler@schweiz.ch>
5165 * testsuite/lib/libstdc++.exp: Set LD_LIBRARY_PATH_32 for
5168 2004-01-12 Paolo Carlini <pcarlini@suse.de>
5170 * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc:
5172 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc:
5175 2004-01-12 Paolo Carlini <pcarlini@suse.de>
5177 * include/bits/locale_facets.h (struct __numpunct_cache):
5178 Add members _M_truename_len and _M_falsename_len, caching
5179 the lengths of _M_truename and _M_falsename.
5180 (__numpunct_cache<>::_M_cache): Assign the latter.
5181 * include/bits/locale_facets.tcc (num_get::do_get(bool&),
5182 num_put::do_put(bool)): Use the new members, thus avoiding
5183 computing string lengths again and again.
5184 * config/locale/generic/numeric_members.cc
5185 (numpunct<>::_M_initialize_numpunct): Assign the new members.
5186 * config/locale/gnu/numeric_members.cc
5187 (numpunct<>::_M_initialize_numpunct): Likewise.
5189 2004-01-12 Mark Mitchell <mark@codesourcery.com>
5191 * testsuite/testsuite_hooks.h (__gnu_test::try_mkfifo): Declare it.
5192 * testsuite/testsuite_hooks.cc (__gnu_test::try_mkfifo): Define
5194 * testsuite/27_io/basic_filebuf/close/char/4879.cc: Use try_mkfifo
5195 and remove Cygwin XFAIL.
5196 * testsuite/27_io/basic_filebuf/close/char/9964.cc: Likewise.
5197 * testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc: Likewise.
5198 * testsuite/27_io/basic_filebuf/open/char/9507.cc: Likewise.
5199 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc:
5201 * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
5202 * testsuite/27_io/objects/char/7.cc: Likewise.
5203 * testsuite/27_io/objects/char/9661-1.cc: Likewise.
5204 * testsuite/27_io/objects/wchar_t/7.cc: Likewise.
5205 * testsuite/27_io/objects/wchar_t/9661-1.cc: Likewise.
5207 2004-01-11 Gabriel Dos Reis <gdr@integrable-solutions.net>
5209 * include/std/std_complex.h (std::complex<>::real): Return a
5210 reference. Add non-const overload.
5211 (std::complex<>::real): Likewise.
5212 (std::real): Likewise.
5213 (std::imag): Likewise.
5214 (std::operator+): Tidy.
5215 (std::operator-): Likewise.
5216 (std::operator*): Likewise.
5217 (std::operator/): Likewise.
5218 (std::operator>>): Likewise.
5220 2004-01-11 Paolo Carlini <pcarlini@suse.de>
5223 * include/bits/fstream.tcc (imbue): Exploit the external
5224 buffer to imbue 'on the fly' a new locale and convert its
5225 remainder with the new codecvt facet.
5226 (underflow): Tweak slightly to deal with this special case.
5227 * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc: New.
5228 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc: Ditto.
5229 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-3.cc: Ditto.
5230 * testsuite/27_io/objects/wchar_t/13582-1_xin.cc: Ditto.
5231 * testsuite/27_io/objects/wchar_t/13582-1_xin.in: Ditto.
5233 2004-01-10 Paolo Carlini <pcarlini@suse.de>
5235 * docs/html/ext/lwg-active.html, docs/html/ext/lwg-defects.html:
5238 2004-01-10 Paolo Carlini <pcarlini@suse.de>
5241 * include/bits/locale_classes.h (class locale): Fix category
5243 * testsuite/22_locale/locale/13630.cc: Add.
5245 2004-01-10 Giovanni Bajo <giovannibajo@gcc.gnu.org>
5247 * include/bits/locale_facets.h: Make a name really dependent. This
5248 will be needed when Core Issue 224 is implemented.
5250 2004-01-09 Paolo Carlini <pcarlini@suse.de>
5252 * testsuite/performance/allocator.cc: Demangle typeid(obj).name().
5253 * testsuite/performance/allocator_thread.cc: Likewise.
5255 2004-01-07 Benjamin Kosnik <bkoz@redhat.com>
5257 * crossconfig.m4: Add LFS, io bits to linux cross config.
5258 * acconfig.h: Remove obsolete bits, reorder.
5259 * config.h.in: Regenerate.
5263 2004-01-07 Gawain Bolton <gp.bolton@computer.org>
5265 * include/bits/stl_list.h:
5266 * include/bits/list.tc:
5268 Performance enhancements for destructor, push_front(),
5269 push_back(), pop_front(), pop_back(), sort()
5270 Eliminated static_casts where possible.
5271 Moved code out of header files into new src/list.cc
5272 implementation file for library where possible.
5273 Remove inheritance from iterator class and create separate
5274 classes for non-constant and constant iterators.
5275 * include/bits/stl_tree.h (_Rb_tree class):
5277 Only erase contents in destructor.
5278 Eliminate unnecessary initialization in assignment operator.
5279 Optimize for the nominal case by not checking whether
5280 container is empty in clear().
5281 Re-order test in _M_insert() to improve performance.
5282 Move initialization of new node's left & right pointers to
5283 src/tree.cc to where new node's colour is initialized
5284 and to reduce the amount of inline code.
5285 Use _M_leftmost() and _M_end() to improve readability where
5287 Create separate classes for non-constant and constant
5288 iterators to clarify code, avoid extra template parameters and
5289 casting away constness.
5291 2004-01-07 Benjamin Kosnik <bkoz@redhat.com>
5293 * src/Makefile.am (sources): Add list.cc, tree.cc.
5294 * src/stl_tree.cc: Move to...
5295 * src/tree.cc: ...here.
5297 * config/linker-map.gnu: Tweaks.
5298 * testsuite/23_containers/map/operators/1_neg.cc: Add excess errors.
5299 * testsuite/23_containers/set/operators/1_neg.cc: Add excess errors.
5301 * bits/stl_vector.h: Column wrap comments.
5303 2004-01-07 Loren J. Rittle <ljrittle@acm.org>
5305 (re-open) PR libstdc++/12658
5306 * src/locale_init.cc (locale::locale): Remove ill-scoped mutex.
5307 (locale::global): Likewise.
5309 2004-01-07 Paolo Carlini <pcarlini@suse.de>
5311 * testsuite/27_io/basic_istream/extractors_other/char/9318-in.cc:
5312 Remove redundant #include.
5313 * testsuite/27_io/basic_ostream/endl/char/1.cc: Likewise.
5314 * testsuite/27_io/basic_ostream/ends/char/1.cc: Likewise,
5315 re-enable normal testing.
5316 * testsuite/27_io/basic_ostream/ends/char/2.cc: Remove redundant
5318 * testsuite/27_io/basic_ostream/flush/char/1.cc: Likewise.
5319 * testsuite/27_io/basic_ostream/inserters_character/char/1.cc:
5321 * testsuite/27_io/basic_ostream/inserters_character/char/2.cc:
5323 * testsuite/27_io/basic_ostream/inserters_character/char/3.cc:
5325 * testsuite/27_io/basic_ostream/inserters_character/char/4.cc:
5327 * testsuite/27_io/basic_ostream/inserters_character/char/5.cc:
5329 * testsuite/27_io/basic_ostream/inserters_character/char/6.cc:
5331 * testsuite/27_io/basic_ostream/inserters_character/char/8.cc:
5333 * testsuite/27_io/basic_ostream/inserters_character/wchar_t/7.cc:
5334 More properly, #include <locale>.
5335 * testsuite/27_io/basic_ostream/inserters_character/wchar_t/8.cc:
5336 Remove redundant #include.
5337 * testsuite/27_io/basic_ostream/inserters_other/char/2.cc: Likewise.
5338 * testsuite/27_io/basic_ostream/inserters_other/char/3.cc: Remove
5339 redundant DejaGnu directive.
5340 * testsuite/27_io/basic_ostream/inserters_other/char/4.cc: Remove
5343 2004-01-06 Benjamin Kosnik <bkoz@redhat.com>
5344 Stefan Olsson <stefan@snon.net>
5346 * scripts/check_performance: Use -pthread.
5347 * testsuite/performance/allocator.cc: Tweaks, add list.
5348 * testsuite/performance/allocator_thread.cc: New.
5350 2004-01-06 Jerry Quinn <jlquinn@optonline.net>
5352 * include/bits/locale_facets.h: Document public classes and
5354 * include/bits/locale_facets.tcc (time_get::_M_extract_via_format):
5357 2004-01-06 Paolo Carlini <pcarlini@suse.de>
5359 * testsuite/27_io/basic_istream/extractors_other/char/1.cc:
5360 Remove redundant #includes.
5361 * testsuite/27_io/basic_istream/extractors_other/char/2.cc:
5363 * testsuite/27_io/basic_istream/extractors_other/char/3.cc:
5365 * testsuite/27_io/basic_istream/get/char/1.cc: Likewise.
5366 * testsuite/27_io/basic_istream/get/char/2.cc: Likewise.
5367 * testsuite/27_io/basic_istream/getline/char/1.cc: Likewise.
5368 * testsuite/27_io/basic_istream/getline/char/2.cc: Likewise.
5369 * testsuite/27_io/basic_istream/getline/char/3.cc: Likewise.
5370 * testsuite/27_io/basic_istream/ignore/char/1.cc: Likewise.
5371 * testsuite/27_io/basic_istream/ignore/char/6360.cc: Likewise.
5372 * testsuite/27_io/basic_istream/ignore/char/7220.cc: Likewise.
5373 * testsuite/27_io/basic_istream/peek/char/1.cc: Likewise.
5374 * testsuite/27_io/basic_istream/peek/char/6414.cc: Likewise.
5375 * testsuite/27_io/basic_istream/putback/char/1.cc: Likewise.
5376 * testsuite/27_io/basic_istream/read/char/1.cc: Likewise.
5377 * testsuite/27_io/basic_istream/read/char/2.cc: Likewise.
5378 * testsuite/27_io/basic_istream/read/char/3.cc: Likewise.
5379 * testsuite/27_io/basic_istream/readsome/char/6746-1.cc:
5381 * testsuite/27_io/basic_istream/readsome/char/6746-2.cc:
5383 * testsuite/27_io/basic_istream/readsome/char/8258.cc:
5385 * testsuite/27_io/basic_istream/seekg/char/2346-fstream.cc:
5387 * testsuite/27_io/basic_istream/seekg/char/2346-sstream.cc:
5389 * testsuite/27_io/basic_istream/seekg/char/8348-1.cc: Likewise.
5390 * testsuite/27_io/basic_istream/seekg/char/8348-2.cc: Likewise.
5391 * testsuite/27_io/basic_istream/tellg/char/8348.cc: Likewise.
5393 2004-01-04 Paolo Carlini <pcarlini@suse.de>
5395 * testsuite/27_io/basic_istream/extractors_arithmetic/char/01.cc:
5396 Remove redundant #includes.
5397 * testsuite/27_io/basic_istream/extractors_arithmetic/char/02.cc:
5399 * testsuite/27_io/basic_istream/extractors_arithmetic/char/03.cc:
5401 * testsuite/27_io/basic_istream/extractors_arithmetic/char/06.cc:
5403 * testsuite/27_io/basic_istream/extractors_arithmetic/char/07.cc:
5405 * testsuite/27_io/basic_istream/extractors_arithmetic/char/08.cc:
5407 * testsuite/27_io/basic_istream/extractors_arithmetic/char/09.cc:
5409 * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
5411 * testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc:
5413 * testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc:
5415 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/1.cc:
5417 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/2.cc:
5419 * testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc:
5422 2004-01-04 Mark Mitchell <mark@codesourcery.com>
5425 * testsuite/27_io/basic_filebuf/4.cc: Remove use of invalid copy
5427 * testsuite/27_io/basic_fstream/4.cc: Likewise.
5428 * testsuite/27_io/basic_ifstream/4.cc: Likewise.
5429 * testsuite/27_io/basic_ios/4.cc: Likewise.
5430 * testsuite/27_io/basic_iostream/4.cc: Likewise.
5431 * testsuite/27_io/basic_istream/4.cc: Likewise.
5432 * testsuite/27_io/basic_istingstream/4.cc: Likewise.
5433 * testsuite/27_io/basic_ofstream/4.cc: Likewise.
5434 * testsuite/27_io/basic_ostream/4.cc: Likewise.
5435 * testsuite/27_io/basic_ostringstream/4.cc: Likewise.
5436 * testsuite/27_io/basic_stringbuf/5.cc: Likewise.
5437 * testsuite/27_io/basic_stringstream/4.cc: Likewise.
5439 2004-01-04 Paolo Carlini <pcarlini@suse.de>
5441 * config/locale/generic/numeric_members.cc (_M_initialize_numpunct):
5442 Avoid unnecessarily zero terminating _M_atoms_out and _M_atoms_in;
5443 always use double underscored names.
5444 * config/locale/gnu/numeric_members.cc (_M_initialize_numpunct):
5446 * include/bits/locale_facets.h (struct __numpunct_cache):
5447 Dimension _M_atoms_out and _M_atoms_in one position smaller.
5448 (__numpunct_cache<>::_M_cache): Don't zero terminate _M_atoms_out