1 2004-10-29 Geoffrey Keating <geoffk@apple.com>
3 * configure.host (darwin*): Set os_include_dir to a separate directory
5 * acinclude.m4 (GLIBCXX_ENABLE_CLOCALE): Add a new C locale kind,
7 * config/locale/darwin/ctype_members.cc: New.
8 * config/os/bsd/darwin/ctype_base.h: New.
9 * config/os/bsd/darwin/ctype_inline.h: New.
10 * config/os/bsd/darwin/ctype_noninline.h: New.
11 * config/os/bsd/darwin/os_defines.h: New.
13 * testsuite/22_locale/locale/cons/12658_thread-1.cc: Only xfail
16 2004-10-29 Chris Jefferson <chris@bubblescope.net>
18 * include/bit/stl_algo.h (find_first_of(,,,,pred)):
19 Remove invalid EqualOpConcept.
20 * testsuite/25_algorithms/find_first_of/concept_check_1.cc: New.
22 2004-10-29 Benjamin Kosnik <bkoz@redhat.com>
24 * testsuite/testsuite_allocator.h (check_delete): New.
25 (check_new): Simplify.
26 * testsuite/ext/array_allocator/check_delete.cc: New.
27 * testsuite/ext/array_allocator/check_new.cc: Simplify.
28 * testsuite/ext/debug_allocator/check_delete.cc: New.
29 * testsuite/ext/debug_allocator/check_new.cc: Simplify.
30 * testsuite/ext/malloc_allocator/check_delete.cc: New.
31 * testsuite/ext/malloc_allocator/check_new.cc: Simplify.
32 * testsuite/ext/mt_allocator/check_delete.cc: New.
33 * testsuite/ext/mt_allocator/check_new.cc: Simplify.
34 * testsuite/ext/new_allocator/check_delete.cc: New.
35 * testsuite/ext/new_allocator/check_new.cc: Simplify.
36 * testsuite/ext/pool_allocator/check_delete.cc: New.
37 * testsuite/ext/pool_allocator/check_new.cc: Simplify.
39 2004-10-28 Chris Jefferson <chris@bubblescope.net>
42 * include/tr1/tuple: Fix, change formatting.
44 2004-10-28 Benjamin Kosnik <bkoz@redhat.com>
46 * include/ext/mt_allocator.h (__common_pool_policy): Add template
47 template parameter for pool class type.
48 (__per_type_pool_policy): Same.
49 (__mt_allocator): Don't inherit policy. Qualify policy_type calls.
50 * testsuite/ext/mt_allocator/check_deallocate_null.cc: Fix.
51 * testsuite/ext/mt_allocator/check_deallocate_null_thread.cc: Same.
52 * testsuite/ext/mt_allocator/deallocate_global-2.cc: Same.
53 * testsuite/ext/mt_allocator/deallocate_global-4.cc: Same.
54 * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: Same.
55 * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: Same.
56 * testsuite/ext/mt_allocator/deallocate_local-2.cc: Same.
57 * testsuite/ext/mt_allocator/deallocate_local-4.cc: Same.
58 * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: Same.
59 * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: Same.
60 * testsuite/ext/mt_allocator/instantiate.cc: Same.
61 * testsuite/ext/mt_allocator/tune-1.cc: Same.
62 * testsuite/ext/mt_allocator/tune-2.cc: Same.
63 * testsuite/ext/mt_allocator/tune-3.cc: Same.
64 * testsuite/ext/mt_allocator/tune-4.cc: Same.
66 2004-10-28 Paolo Carlini <pcarlini@suse.de>
68 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
69 Cache *__beg in __c when parsing exponent sign too.
70 (num_get<>::do_get(..., bool&)): Cache *__beg.
71 (money_get<>::_M_extract)): Likewise, in money_base::value.
73 2004-10-27 Paolo Carlini <pcarlini@suse.de>
75 * include/bits/basic_string.h (assign(const basic_string&)):
77 * include/bits/basic_string.tcc: ... here.
79 2004-10-27 Paolo Carlini <pcarlini@suse.de>
81 * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
83 * include/bits/basic_string.tcc: ... here.
85 2004-10-26 Paolo Carlini <pcarlini@suse.de>
87 * include/bits/basic_string.h (append(const basic_string&),
88 append(size_type, _CharT)): Move out of line...
89 * include/bits/basic_string.tcc: ... here.
91 2004-10-26 Paolo Carlini <pcarlini@suse.de>
93 * include/bits/basic_string.h (erase(size_type, size_type),
94 erase(iterator), erase(iterator, iterator)): Call _M_mutate
95 instead of _M_replace_safe, equivalent when the fourth argument
98 2004-10-26 Benjamin Kosnik <bkoz@redhat.com>
100 * include/ext/array_allocator.h (array::allocate): Check for valid
101 array object, use its size member function directly.
102 * testsuite/ext/array_allocator/3.cc: New.
103 * docs/html/20_util/allocator.html: Add docs.
105 2004-10-25 Geoffrey Keating <geoffk@apple.com>
107 * configure.host (darwin*): Build libstdc++ single module
109 * libsupc++/new_op.cc (new): Make weak.
110 * libsupc++/new_opnt.cc (new): Make weak.
111 * libsupc++/new_opv.cc (new): Make weak.
112 * libsupc++/new_opvnt.cc (new): Make weak.
113 * libsupc++/delete_op.cc (delete): Make weak.
114 * libsupc++/delete_opnt.cc (delete): Make weak.
115 * libsupc++/delete_opv.cc (delete): Make weak.
116 * libsupc++/delete_opvnt.cc (delete): Make weak.
118 2004-10-25 Benjamin Kosnik <bkoz@redhat.com>
120 * testsuite/Makefile.am (GLIBCXX_INCLUDES): Add.
121 (AUTOMAKE_OPTIONS): Add nostdinc.
122 * testsuite/Makefile.in: Regenerate.
123 * scripts/testsuite_flags.in (build-includes): Remove redundant
124 search for libsupc++.
125 * fragment.am: Clean.
127 2004-10-25 Benjamin Kosnik <bkoz@redhat.com>
129 * include/Makefile.am (tr1_headers): Add tuple.
130 * include/Makefile.in: Regenerate.
132 2004-10-25 Chris Jefferson <chris@bubblescope.net>
134 * include/tr1/tuple: Implementation of tuple from library TR.
135 * testsuite/tr1/6_containers/tuple/tuple_element.cc: New.
136 * testsuite/tr1/6_containers/tuple/tuple_size.cc: New.
137 * testsuite/tr1/6_containers/tuple/comparison_operators/comparisons.cc:
139 * testsuite/tr1/6_containers/tuple/cons/assignment.cc: New.
140 * testsuite/tr1/6_containers/tuple/cons/big_tuples.cc: New.
141 * testsuite/tr1/6_containers/tuple/cons/constructor.cc: New.
142 * testsuite/tr1/6_containers/tuple/creation_functions/make_tuple.cc:
144 * testsuite/tr1/6_containers/tuple/creation_functions/tie.cc: New.
145 * testsuite/tr1/6_containers/tuple/element_access/get.cc: New.
147 2004-10-25 Paolo Carlini <pcarlini@suse.de>
149 * include/bits/basic_string.h (_Rep::_M_is_safe): Move to
150 basic_string as _M_disjunct, adjust to take only __s.
151 * include/bits/basic_string.tcc: Adjust consistently callers.
153 2004-10-25 Paolo Carlini <pcarlini@suse.de>
155 * include/bits/basic_string.tcc (assign(const _CharT*, size_type)):
156 Adjust bit missing from the previous commit.
158 2004-10-25 Eric Botcazou <ebotcazou@libertysurf.fr>
161 * testsuite/lib/libstdc++.exp: Accept more than one multilib libgcc.
163 2004-10-25 Paolo Carlini <pcarlini@suse.de>
165 * include/bits/basic_string.h (_Rep::_M_is_safe, _M_check_length,
166 _M_move, _M_copy, _M_assign): New, use througout.
167 (operator+=(_CharT)): Define in terms of push_back.
168 (append(const basic_string&)): Define here, inline, and simplify,
169 don't use the full _M_replace_safe.
170 (append(size_type, _CharT)): Likewise, don't use _M_replace_aux.
171 (push_back): Likewise.
172 (assign(const basic_string&)): Define here, inline.
173 * include/bits/basic_string.tcc (append(const _CharT* s, size_type):
174 Fix: when s points inside the _Rep, upon reallocation (reserve) we
175 were copying from deallocated memory.
176 (append(const basic_string&, size_type, size_type)): Simplify,
177 don't use _M_replace_safe.
178 (replace(size_type, size_type, const _CharT*, size_type)): Slightly
181 * testsuite/21_strings/basic_string/append/char/2.cc: New.
182 * testsuite/21_strings/basic_string/append/char/3.cc: Likewise.
183 * testsuite/21_strings/basic_string/append/wchar_t/2.cc: Likewise.
184 * testsuite/21_strings/basic_string/append/wchar_t/3.cc: Likewise.
186 * testsuite/21_strings/basic_string/assign/char/3.cc: Remove junk.
187 * testsuite/21_strings/basic_string/assign/wchar_t/3.cc: Likewise.
189 2004-10-23 Andrew Pinski <pinskia@physics.uc.edu>
191 * testsuite/ext/mt_allocator/deallocate_global-2.c:
192 s/value_t/value_type/. s/traits_t/traits_type/.
193 s/policy_t/policy_type/. s/allocator_t/allocator_type/.
194 s/string_t/string_type/. s/list_t/list_type/.
195 * testsuite/ext/mt_allocator/deallocate_global-4.cc: Likewise.
196 * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: Likewise.
197 * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: Likewise.
198 * testsuite/ext/mt_allocator/deallocate_local-2.cc: Likewise.
199 * testsuite/ext/mt_allocator/deallocate_local-4.cc: Likewise.
200 * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: Likewise.
201 * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: Likewise.
203 2004-10-21 Benjamin Kosnik <bkoz@redhat.com>
205 * include/tr1/array (array): Make safe for zero-sized arrays.
206 (array::end): Return one past the end.
207 (array::at): Use __throw_out_of_range, include functexcept.h.
208 (operator==): Implement.
214 * testsuite/tr1/6_containers/array/capacity/(empty.cc,
215 max_size.cc, size.cc): New.
216 * testsuite/tr1/6_containers/array/comparison_operators/(equal.cc,
217 greater.cc, greater_or_equal.cc, less.cc, less_or_equal.cc,
219 * testsuite/tr1/6_containers/array/cons/aggregate_initialization.cc:
221 * testsuite/tr1/6_containers/array/element_access/at_out_of_range.cc:
223 * testsuite/tr1/6_containers/array/iterators/end_is_one_past.cc: New.
224 * testsuite/tr1/6_containers/array/requirements/(contiguous.cc,
225 instantiate, typedefs, zero_size_arrays): New.
227 2004-10-21 Paolo Carlini <pcarlini@suse.de>
228 Benjamin Kosnik <bkoz@redhat.com>
230 * include/bits/basic_string.h (_M_set_length_and_sharable): New.
231 * include/bits/basic_string.tcc (_S_construct, assign(const _CharT*,
232 size_type), _M_mutate, _M_clone): Use it.
233 (_Rep::_S_create): Don't set/call _M_length/_M_set_sharable here.
235 2004-10-21 Paolo Carlini <pcarlini@suse.de>
236 Dhruv Matani <dhruvbird@gmx.net>
237 Nathan Myers <ncm@cantrip.org>
239 * include/bits/vector.tcc (_M_insert_aux, _M_fill_insert,
240 _M_range_insert): Check at the outset that we are not trying
241 to exceed max_size, then deal properly with __len overflows.
242 * testsuite/23_containers/vector/modifiers/insert/1.cc: New.
244 * testsuite/testsuite_allocator.h: Remove redundant include.
246 2004-10-20 Paolo Carlini <pcarlini@suse.de>
248 * include/ext/bitmap_allocator.h (allocate): Throw std::bad_alloc
250 * include/ext/malloc_allocator.h (allocate): Likewise.
251 * include/ext/mt_allocator.h (allocate): Likewise.
252 * include/ext/new_allocator.h (allocate): Likewise.
253 * include/ext/array_allocator.h: Use __throw_bad_alloc().
254 * include/ext/pool_allocator.h: Use __builtin_expect.
255 * testsuite/ext/array_allocator/check_allocate_max_size.cc: New.
256 * testsuite/ext/bitmap_allocator/check_allocate_max_size.cc: Likewise.
257 * testsuite/ext/malloc_allocator/check_allocate_max_size.cc: Likewise.
258 * testsuite/ext/mt_allocator/check_allocate_max_size.cc: Likewise.
259 * testsuite/ext/new_allocator/check_allocate_max_size.cc: Likewise.
260 * testsuite/ext/pool_allocator/check_allocate_max_size.cc: Likewise.
261 * testsuite/testsuite_allocator.h (check_allocate_max_size): New test.
263 2004-10-19 Paolo Carlini <pcarlini@suse.de>
265 * testsuite/performance/20_util/allocator/list_sort_search.cc:
266 Include <ext/new_allocator.h>.
267 * testsuite/performance/20_util/allocator/map_mt_find.cc: Likewise.
269 2004-10-18 Paolo Carlini <pcarlini@suse.de>
271 * include/bits/basic_string.tcc (_M_mutate): Do not reallocate
272 unnecessarily when _M_rep() == &_S_empty_rep() and __new_size
273 == capacity() (== 0): is ok to just leave everything unchanged.
275 * include/bits/basic_string.h: Minor formatting fixes.
276 * include/bits/basic_string.tcc: Likewise.
278 2004-10-17 Benjamin Kosnik <bkoz@redhat.com>
280 * include/ext/mt_allocator.h (__pool::_M_get_align): New.
281 (__mt_alloc::allocate): Use it.
282 * src/mt_allocator.cc (__pool::_M_reclaim_block): Use it.
283 (__pool::_M_reserve_block): Simplify block allocation.
285 2004-10-17 Dhruv Matani <dhruvbird@gmx.net>
286 Paolo Carlini <pcarlini@suse.de>
288 * include/ext/bitmap_allocator.h: Change unsigned int -> size_t: this
289 makes the code 64-bit correct and also fixes (together with using at
290 the beginning a bitmap 2 * size_t bytes wide) alignment issues: now
291 8 is guaranteed, easily tunable to 16 via _BALLOC_ALIGN_BYTES.
292 Fix pthread-rope7.cc fail by nulling out __mini_vector<> destructor.
293 * src/bitmap_allocator.cc: Change to size_t.
294 * config/linker-map.gnu: Adjust.
296 2004-10-16 Benjamin Kosnik <bkoz@redhat.com>
298 * include/tr1/array: Don't use layout_type.
300 2004-10-16 Sashan Govender <sashang@gmail.com>
302 * include/tr1/array (array::end const): Fix casting from iterator
305 2004-10-15 Paolo Carlini <pcarlini@suse.de>
307 * include/ext/bitmap_allocator.h: Qualify ::operator delete.
308 * src/bitmap_allocator.cc: Likewise.
309 * src/mt_allocator.cc: Use ::operator delete, not delete,
310 consistently with ::operator new.
312 * include/ext/bitmap_allocator.h (deallocate): Check for null
314 * testsuite/ext/bitmap_allocator/check_deallocate_null.cc: New.
315 * testsuite/testsuite_allocator.h (check_deallocate_null): Add test.
317 2004-10-14 Benjamin Kosnik <bkoz@redhat.com>
319 * include/ext/mt_allocator.h (__mt_alloc::deallocate): Check for
321 * include/ext/pool_allocator.h (debug_allocator::deallocate):
323 * include/ext/debug_allocator.h (debug_allocator::deallocate):
324 Throw exceptions, don't abort.
325 * include/ext/array_allocator.h
326 (array_allocator_base::deallocate): Remove unused parameters.
327 * testsuite/testsuite_allocator.h (check_deallocate_null): New.
328 * testsuite/ext/mt_allocator/check_deallocate_null.cc: New.
329 * testsuite/ext/mt_allocator/check_deallocate_null_thread.cc: New.
330 * testsuite/ext/array_allocator/check_deallocate_null.cc: New.
331 * testsuite/ext/debug_allocator/check_deallocate_null.cc: New.
332 * testsuite/ext/malloc_allocator/check_deallocate_null.cc: New.
333 * testsuite/ext/new_allocator/check_deallocate_null.cc: New.
334 * testsuite/ext/pool_allocator/check_deallocate_null.cc: New.
336 * testsuite/testsuite_allocator.h (check_new): Add instance argument.
337 * testsuite/ext/array_allocator/check_new.cc: New.
339 2004-10-14 Paolo Carlini <pcarlini@suse.de>
341 * include/ext/bitmap_allocator.h (bitmap_allocator::_Alloc_block):
342 Rename __unused to __M_unused.
344 2004-10-14 Benjamin Kosnik <bkoz@redhat.com>
346 * testsuite/ext/headers.cc: Add includes, compile only.
347 * testsuite/ext/hash_map.cc: Move to...
348 * testsuite/ext/hash_map/1.cc: ...here.
349 * testsuite/ext/14648.cc: Move to...
350 * testsuite/ext/hash_map/14648.cc: ...here.
351 * testsuite/ext/hash_map/instantiate.cc: Add.
352 * testsuite/ext/hash_set.cc: Move to...
353 * testsuite/ext/hash_set/1.cc: ...here.
354 * testsuite/ext/hash_set_explicit_instantiation.cc: Move to...
355 * testsuite/ext/hash_set/instantiate.cc: ...here.
356 * testsuite/ext/hash_check_construct_destroy.cc: Move to...
357 * testsuite/ext/hash_set/check_construct_destroy.cc: ...here.
358 * testsuite/ext/slist_check_construct_destroy.cc: Move to...
359 * testsuite/ext/slist/check_construct_destroy.cc: ...here.
360 * testsuite/ext/slist_explicit_instantiation.cc: Move to...
361 * testsuite/ext/slist/instantiate.cc: ...here.
363 2004-10-14 Benjamin Kosnik <bkoz@redhat.com>
365 * include/ext/mt_allocator.h: Tweaks.
366 * src/mt_allocator.cc: Same.
368 2004-10-14 Dhruv Matani <dhruvbird@gmx.net>
370 * ext/bitmap_allocator.h: Clean-up add/remove functions.
371 * src/bitmap_allocator.cc: New file. Contains the out-of-line
372 function definitions, static initialization of variables, and
373 explicit instantiations needed for the allocator.
374 * src/Makefile.am: Add.
375 * src/Makefile.in: Regenerate.
376 * config/linker.map.gnu: Add the necessary symbols.
378 2004-10-13 Paolo Carlini <pcarlini@suse.de>
380 * include/bits/basic_string.tcc (_S_create): Use consistently
381 the exponential policy, simplify.
382 * testsuite/performance/21_strings/string_append_2.cc: New.
384 * include/ext/array_allocator.h (allocate): Fix bad_alloc check.
385 * testsuite/ext/array_allocator/2.cc: Fix wrt 64-bit archs (in
386 that case sizeof(_Rep) == 24).
388 2004-10-12 Paolo Carlini <pcarlini@suse.de>
391 * include/bits/stl_tree.h (erase(iterator, iterator)): Revert
392 wrong commit of 2004-10-07.
394 2004-10-12 Scott Snyder <snyder@fnal.gov>
397 * testsuite/23_containers/set/modifiers/17948.cc: New.
399 2004-10-11 Benjamin Kosnik <bkoz@redhat.com>
401 * include/bits/stl_deque.h: Correct for over-long lines.
403 2004-10-11 Benjamin Kosnik <bkoz@redhat.com>
406 * include/ext/mt_allocator.h (__pool::_M_destroy): New.
407 * src/mt_allocator.cc (__pool::~__pool): Change definitions to
409 * acconfig.h: Remove _GLIBCXX_USE___CXA_ATEXIT.
410 * acinclude.m4 (GLIBCXX_ENABLE_CXA_ATEXIT): Remove.
411 * configure.ac: Remove call to GLIBCXX_ENABLE_CXA_EXIT.
412 * configure: Regenerate.
413 * config/linker-map.gnu: Tweak exports.
414 * docs/html/ext/mt_allocator.html: Update docs.
415 * testsuite/ext/mt_allocator/deallocate_global-2.cc: Fix.
416 * testsuite/ext/mt_allocator/deallocate_global-4.cc: Fix.
417 * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: Fix.
418 * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: Fix.
419 * testsuite/ext/mt_allocator/deallocate_local-2.cc: Fix.
420 * testsuite/ext/mt_allocator/deallocate_local-4.cc: Fix.
421 * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: Fix.
422 * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: Fix.
424 2004-10-11 Benjamin Kosnik <bkoz@redhat.com>
426 PR libstdc++/16614 continued.
427 * include/ext/mt_allocator.h
428 (__per_type_pool_policy::_S_get_pool): Use saner defaults based on
429 specific type characteristics.
430 (__pool_base): Add constructor that takes a _Tune argument.
432 * testsuite/ext/mt_allocator/tune-2.cc: Adjust default.
433 * testsuite/ext/mt_allocator/tune-4.cc: Same.
434 * testsuite/ext/mt_allocator/tune-3.cc: Same.
436 2004-10-11 Joachim Kuebart <kuebart@mathematik.uni-ulm.de>
437 Paolo Carlini <pcarlini@suse.de>
439 * src/pool_allocator.cc (__pool_alloc_base::_M_allocate_chunk):
440 Deal properly with exceptions thrown by ::operator new(size_t).
441 * testsuite/ext/pool_allocator/allocate_chunk.cc: New.
443 * include/ext/pool_allocator.h: Include <cstdlib>.
445 2004-10-10 Benjamin Kosnik <bkoz@redhat.com>
447 * include/bits/functexcept.h: Add guards.
449 * acinclude.m4 (GLIBCXX_ENABLE_THREADS): Tweak test.
450 * configure: Regenerate.
452 2004-10-10 Paolo Carlini <pcarlini@suse.de>
454 * config/locale/gnu/monetary_members.cc (_S_construct_pattern):
455 Give __ret a default value, thus avoiding spurious warnings.
457 * testsuite/performance/27_io/filebuf_sgetn_unbuf.cc: Open either
458 words or linux.words, otherwise exit.
459 * testsuite/performance/27_io/ifstream_getline.cc: Slighlty tweak.
461 2004-10-09 Paolo Carlini <pcarlini@suse.de>
463 * include/std/std_memory.h (__get_temporary_buffer): Don't use
464 INT_MAX, prefer numeric_limits<ptrdiff_t>::max(), ok on 64-bit
466 * testsuite/20_util/memory/auto_ptr/assign_neg.cc: Adjust dg-error
469 2004-10-08 Benjamin Kosnik <bkoz@redhat.com>
471 * acconfig.h: Add _GLIBCXX_USE___CXA_ATEXIT.
472 * acinclude.m4 (GLIBCXX_ENABLE_CXA_ATEXIT): New.
473 * configure.ac: Call GLIBCXX_ENABLE_CXA_EXIT.
474 * configure: Regenerate.
475 * src/mt_allocator.cc (__pool::~__pool): Make conditional on
476 _GLIBCXX_USE___CXA_ATEXIT macro.
477 * docs/html/ext/mt_allocator.html: Add note about deallocation.
478 * testsuite/ext/mt_allocator/deallocate_local-2.cc: Guard checks
479 with _GLIBCXX_USE___CXA_ATEXIT.
480 * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: Same.
481 * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: Same.
482 * testsuite/ext/mt_allocator/deallocate_global-4.cc: Same.
483 * testsuite/ext/mt_allocator/deallocate_global-2.cc: Same.
484 * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: Same.
485 * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: Same.
486 * testsuite/ext/mt_allocator/deallocate_local-4.cc: Same.
488 2004-10-07 Phil Edwards <phil@codesourcery.com>
490 * testsuite/lib/libstdc++.exp: Update list of undefined functions.
492 2004-10-07 Paolo Carlini <pcarlini@suse.de>
494 * include/bits/list.tcc (operator=): Avoid iterator postincrement.
495 * include/bits/stl_tree.h (erase(iterator, iterator)): Likewise.
497 2004-10-07 Benjamin Kosnik <bkoz@redhat.com>
500 * include/tr1/array: New.
501 * include/Makefile.am (tr1_headers): New.
503 (install-headers): New.
504 (allstamped): Add stamp-tr1.
506 * include/ext/array_allocator.h: New.
507 * include/Makefile.am: Add.
508 * include/Makefile.in: Regenerate.
509 * testsuite/ext/array_allocator/1.cc: New.
510 * testsuite/ext/array_allocator/2.cc: New.
512 2004-10-07 Richard Earnshaw <rearnsha@arm.com>
514 * testsuite/lib/libstdc++.exp (libstdc++_exit): New proc.
516 2004-10-07 Roger Sayle <roger@eyesopen.com>
519 * configure.ac: Newlib does not provide strtold.
520 * configure: Regenerate.
522 2004-10-06 Benjamin Kosnik <bkoz@redhat.com>
524 * acinclude.m4 (GLIBCXX_ENABLE_THREADS): Set enable_thread.
525 (GLIBCXX_CONFIGURE_TESTSUITE): Use it.
526 * configure: Regenerated.
527 * testsuite/Makefile.am (CLEANFILES): Add TEST for
528 check-performance executables.
531 * testsuite/Makefile.in: Regenerate.
532 * scripts/create_testsuite_files: Filter thread tests.
534 * testsuite/thread/pthread1.cc: Remove macro conditionals: this
535 file will only be run by thread enabled configurations.
536 * testsuite/thread/pthread7-rope.cc: Same, add rope_type typedef.
537 * testsuite/thread/pthread6.cc: Same.
538 * testsuite/thread/pthread5.cc: Same.
539 * testsuite/thread/pthread4.cc: Same.
540 * testsuite/thread/pthread3.cc: Same.
541 * testsuite/thread/pthread2.cc: Same.
543 * testsuite/ext/mt_allocator/instantiate.cc: Add in __GTHREADS guard.
544 * testsuite/ext/mt_allocator/deallocate_global-1.cc: Move to...
545 * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: ...here.
546 * testsuite/ext/mt_allocator/deallocate_global-3.cc: Move to...
547 * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: ...here.
548 * testsuite/ext/mt_allocator/deallocate_local-1.cc: Move to...
549 * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: ...here.
550 * testsuite/ext/mt_allocator/deallocate_local-3.cc: Move to...
551 * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: ...here.
553 2004-10-06 Benjamin Kosnik <bkoz@redhat.com>
554 Paolo Carlini <pcarlini@suse.de>
557 * src/mt_allocator.cc (__pool<true>::_M_reserve_block): Revert
558 to old locking order.
560 2004-10-06 Paolo Carlini <pcarlini@suse.de>
562 * include/std/std_sstream.h (_M_sync): When the caller is
563 setbuf, don't trust _M_string.capacity() to be the size of
564 the buffer area, use _M_string.size() in this case.
565 * testsuite/27_io/basic_stringbuf/setbuf/char/4.cc: New.
566 * testsuite/27_io/basic_stringbuf/setbuf/wchar_t/4.cc: Likewise.
568 * include/bits/sstream.tcc (overflow): Avoid calling string::assign
569 unnecessarily when the current _M_string is empty.
571 2004-10-06 Paolo Carlini <pcarlini@suse.de>
573 * include/bits/stl_algo.h (__reverse(bidirectional_iterator_tag)):
574 Avoid iterator postincrement.
575 (__rotate): Likewise.
577 * include/bits/stl_algo.h: Minor formatting tweaks.
579 2004-10-06 Christopher Jefferson <caj@cs.york.ac.uk>
581 * include/bits/stl_algo.h (__reverse(random_access_iterator_tag)):
582 Avoid iterator postincrement; fix swapping middle element with
583 itself on odd-length inputs.
585 2004-10-05 Benjamin Kosnik <bkoz@redhat.com>
588 * include/ext/mt_allocator.h (__pool_base::_Tune): Add default
589 options as compile-time constant enums.
590 (__pool_base::_Tune::is_default): New.
591 (__pool_base::_Block_address): New.
592 (__pool_base): Rearrange data members.
593 (__pool::_M_reserve_memory): To _M_reserve_block.
594 (__pool::_M_reclaim_memory): To _M_reclaim_block.
595 (__pool::_Bin_record): Add _Block_address data member.
596 (__pool<false>): Add _M_thread_freelist_initial.
597 (__pool::~__pool): Declare.
598 (__common_pool_policy): Move static data member to...
599 (__common_pool_policy::_S_get_pool): ...here, make static local.
600 (__per_type_pool_policy): Move static data member to...
601 (__per_type_pool_policy::_S_get_pool): ...here, make static local.
602 (__mt_alloc::__mt_alloc): Call __policy_type::_S_get_pool.
603 Remove static member definitions. Use define for __default_policy.
604 * src/mt_allocator.cc: Same.
605 * config/linker-map.gnu: Don't export _S_get_pool. Renames.
606 * testsuite/ext/new_allocator: New.
607 * testsuite/ext/new_allocator/instantiate.cc: New.
608 * testsuite/ext/new_allocator/check_new.cc: New.
609 * testsuite/ext/new_allocator/deallocate_global.cc: New.
610 * testsuite/ext/new_allocator/deallocate_local.cc: New.
611 * testsuite/ext/mt_allocator/instantiate.cc: Instantiate all
613 * testsuite/ext/mt_allocator/deallocate_global-1.cc: New.
614 * testsuite/ext/mt_allocator/deallocate_global-2.cc: New.
615 * testsuite/ext/mt_allocator/deallocate_global-3.cc: New.
616 * testsuite/ext/mt_allocator/deallocate_global-4.cc: New.
617 * testsuite/ext/mt_allocator/deallocate_local-1.cc: New.
618 * testsuite/ext/mt_allocator/deallocate_local-2.cc: New.
619 * testsuite/ext/mt_allocator/deallocate_local-3.cc: New.
620 * testsuite/ext/mt_allocator/deallocate_local-4.cc: New.
621 * testsuite/ext/mt_allocator/deallocate.cc: New.
622 * testsuite/ext/malloc_allocator/deallocate.cc: New.
623 * testsuite/ext/malloc_allocator/deallocate_global.cc: New.
624 * testsuite/ext/malloc_allocator/deallocate_local.cc: New.
626 2004-10-05 Ulrich Weigand <uweigand@de.ibm.com>
628 * configure.host (abi_baseline_pair): Define for s390-*-linux* and
630 * config/abi/s390-linux-gnu/baseline_symbols.txt: Add missing symbols.
631 * config/abi/s390x-linux-gnu/baseline_symbols.txt: New file.
633 2004-10-05 Christopher Jefferson <caj@cs.york.ac.uk>
635 * include/bits/stl_algobase.h (iter_swap): delegate to swap via
636 __iter_swap when iterator's value_types are equal.
637 (struct __iter_swap): New.
639 2004-10-04 Benjamin Kosnik <bkoz@redhat.com>
641 * configure.ac (libtool_VERSION): To 6:3:0.
642 * configure: Regnerate.
643 * testsuite/testsuite_abi.cc (check_version): Add 3.4.3.
645 2004-10-04 Roger Sayle <roger@eyesopen.com>
646 Eric Botcazou <ebotcazou@libertysurf.fr>
649 * config/linker-map.gnu: Synchronize the current list of stub
650 functions from libmath.
652 2004-10-03 Roger Sayle <roger@eyesopen.com>
654 * config/locale/generic/c_locale.cc (__convert_to_v): Use
655 _GLIBCXX_HAVE_STRTOF instead _GLIBCXX_USE_C99 to check for strtof.
656 Likewise, use _GLIBCXX_HAVE_STRTOLD instead of _GLIBCXX_USE_C99
657 to check for presence of strtold.
659 2004-10-03 Paolo Carlini <pcarlini@suse.de>
661 * include/bits/stl_list.h: Trivial formatting fixes.
662 * include/bits/stl_tree.h: Likewise.
664 2004-10-03 Paolo Carlini <pcarlini@suse.de>
666 * include/bits/sstream.tcc (seekpos): In case of success, just
669 2004-10-01 Paolo Carlini <pcarlini@suse.de>
671 * include/bits/sstream.tcc (pbackfail): Implement correctly
672 27.7.1.3/2, bullet 2: if mode & ios_base::out is false do not
674 * testsuite/27_io/basic_stringbuf/pbackfail/char/1.cc: New.
675 * testsuite/27_io/basic_stringbuf/pbackfail/char/2.cc: Likewise.
676 * testsuite/27_io/basic_stringbuf/pbackfail/wchar_t/1.cc: Likewise.
677 * testsuite/27_io/basic_stringbuf/pbackfail/wchar_t/2.cc: Likewise.
678 * testsuite/27_io/basic_istream/putback/char/1.cc: Tweak consistently.
680 2004-10-01 Paolo Carlini <pcarlini@suse.de>
682 * include/bits/sstream.tcc (seekpos): Minor rearrangement of two
683 conditionals consistently with seekoff.
684 * include/std/std_sstream.h (setbuf): Avoid a string temporary.
685 (_M_sync): Simplify a bit, clean-up comment.
687 2004-09-30 Paolo Carlini <pcarlini@suse.de>
689 PR libstdc++/10975 (DR 453)
690 * include/bits/sstream.tcc (seekoff): Don't fail if __beg == 0
692 * docs/html/ext/howto.html: Add an entry for DR 453.
693 * testsuite/27_io/basic_stringbuf/seekoff/char/10975.cc: New.
694 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/10975.cc: Likewise.
695 * testsuite/27_io/basic_istream/tellg/char/1.cc: Tweak consistently.
696 * testsuite/27_io/basic_ostream/tellp/char/1.cc: Likewise.
697 * testsuite/27_io/basic_ostream/tellp/char/2.cc: Likewise.
698 * testsuite/27_io/basic_istream/seekg/char/2346-fstream.cc: Fix and
700 * testsuite/27_io/basic_istream/seekp/char/2346-fstream.cc: ... here.
701 * testsuite/27_io/basic_istream/seekg/char/2346-sstream.cc: Fix and
703 * testsuite/27_io/basic_istream/seekp/char/2346-sstream.cc: ... here.
705 2004-09-29 Paolo Carlini <pcarlini@suse.de>
707 * include/std/std_sstream.h (basic_stringbuf(ios_base::openmode)):
708 Don't use _M_stringbuf_init, keep the pointers null, per 27.7.1.1.
709 (str()): Slightly tweak, protect from pptr() == 0.
710 (_M_update_egptr()): Likewise.
711 * include/bits/sstream.tcc (ssekoff, seekpos): In order to check
712 for an empty buffer use __beg instead of _M_string.capacity().
713 * testsuite/27_io/basic_stringbuf/cons/char/1.cc: New.
714 * testsuite/27_io/basic_stringbuf/cons/wchar_t/1.cc: Likewise.
716 * testsuite/27_io/basic_filebuf/cons/char/1.cc: New.
717 * testsuite/27_io/basic_filebuf/cons/wchar_t/1.cc: Likewise.
718 * testsuite/27_io/basic_streambuf/cons/char/1.cc: Update.
719 * testsuite/27_io/basic_streambuf/cons/wchar_t/1.cc: Likewise.
721 2004-09-29 Paolo Carlini <pcarlini@suse.de>
722 Benjamin Kosnik <bkoz@redhat.com>
724 * testsuite/testsuite_io.h (class constraint_buf): New, extended
725 and templatized version of constraint_filebuf; add typedefs for
726 streambuf/stringbuf/filebuf and wchar_t counterparts.
728 2004-09-28 Paolo Carlini <pcarlini@suse.de>
731 * include/bits/basic_string.h (_M_dispose, _M_refcopy,
732 basic_string()): When _GLIBCXX_FULLY_DYNAMIC_STRING is defined,
733 don't deal with _S_empty_rep.
734 * include/bits/basic_string.tcc (_S_construct, _M_destroy,
735 _M_leak_hard, _M_mutate): Likewise.
736 * acinclude.m4 (GLIBCXX_ENABLE_FULLY_DYNAMIC_STRING): New.
737 * acconfig.h: Add corresponding undef.
738 * configure.ac: Use GLIBCXX_ENABLE_FULLY_DYNAMIC_STRING.
739 * docs/html/configopts.html: Document --enable-fully-dynamic-string.
740 * configure: Regenerate.
741 * config.h.in: Likewise.
743 2004-09-28 Benjamin Kosnik <bkoz@redhat.com>
744 Paolo Carlini <pcarlini@suse.de>
746 * testsuite/21_strings/basic_string/operations/char/1.cc: New.
747 * testsuite/21_strings/basic_string/operations/wchar_t/1.cc: New.
748 * testsuite/21_strings/basic_string/element_access/char/empty.cc: New.
749 * testsuite/21_strings/basic_string/element_access/wchar_t/empty.cc:
752 2004-09-28 Paolo Carlini <pcarlini@suse.de>
754 * README: Remove obsolete entry about include/c_shadow.
756 2004-09-24 H.J. Lu <hongjiu.lu@intel.com>
759 * testsuite/lib/libstdc++.exp: Don't use global ld_library_path.
761 2004-09-24 Paolo Carlini <pcarlini@suse.de>
763 * src/localename.cc (locale::locale(const char*)): Minor tweaks:
764 rename a variable, move an assignment.
765 (locale::_Impl::_Impl(const char*, size_t)): Likewise, minor tweak.
767 2004-09-24 Paul Brook <paul@codesourcery.com>
769 * testsuite/27_io/basic_filebuf/sgetn/char/1-in.cc: XFAIL more arm
771 * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: Ditto.
772 * testsuite/27_io/basic_filebuf/sgetn/char/2-in.cc: Ditto.
773 * testsuite/27_io/basic_filebuf/sgetn/char/2-io.cc: Ditto.
774 * testsuite/27_io/basic_istream/readsome/char/6746-2.cc: Ditto.
775 * testsuite/ext/stdio_filebuf/char/10063-2.cc: Ditto.
776 * testsuite/ext/stdio_filebuf/char/10063-3.cc: Ditto.
778 2004-09-23 Zack Weinberg <zack@codesourcery.com>
780 * testsuite/20_util/memory/auto_ptr/assign_neg.cc
781 * testsuite/23_containers/map/operators/1_neg.cc
782 * testsuite/23_containers/set/operators/1_neg.cc:
783 Update locations and/or regexps of dg-error markers.
785 2004-09-23 P.J. Darcy <darcypj@us.ibm.com>
787 * include/Makefile.am (thread_host_headers): Add gthr-tpf.h.
788 Add rule to build ${host_builddir}/gthr-tpf.h.
789 * include/Makefile.in: Regenerate.
791 2004-09-23 Paolo Carlini <pcarlini@suse.de>
792 Magnus Fromreide <magfr@lysator.liu.se>
794 * include/bits/boost_concept_check.h (struct _SequenceConcept):
795 Remove wrong requirement, i.e., not present in Table 67.
797 2004-09-21 Paolo Carlini <pcarlini@suse.de>
799 PR libstdc++/12882 (cont)
800 * acinclude.m4 (GLIBCXX_CHECK_LFS): Check for fstat64 too.
801 * configure: Regenerate.
802 * config/io/basic_file_stdio.cc (__basic_file<>::showmanyc): When
803 _GLIBCXX_USE_LFS use fstat64 and lseek64, thus providing a non
804 trivial showmanyc for large files too.
806 2004-09-17 Jonathan Wakely <redi@gcc.gnu.org>
808 * include/bits/stl_algo.h (remove): Remove too restrictive
811 2004-09-17 Paolo Carlini <pcarlini@suse.de>
813 * include/bits/fstream.tcc (xsgetn): Slightly tweak conditional,
814 as per Nathan's original suggestion.
816 2004-09-17 Paolo Carlini <pcarlini@suse.de>
818 * testsuite/ext/mt_allocator/tune-1.cc: Use VERIFY, clean
820 * testsuite/ext/mt_allocator/tune-2.cc: Likewise.
821 * testsuite/ext/mt_allocator/tune-3.cc: Likewise.
822 * testsuite/ext/mt_allocator/tune-4.cc: Likewise.
824 2004-09-17 Paolo Carlini <pcarlini@suse.de>
825 Andrea Arcangeli <andrea@suse.de>
827 * config/io/basic_file_stdio.cc (__basic_file<>::close)): Don't
828 call unnecessarily sync, that is fflush: the library, since 3.4.0
829 does not use buffered fread/fwrite.
830 * include/bits/fstream.tcc (basic_filebuf<>::overflow): Likewise.
832 2004-09-15 Mark Mitchell <mark@codesourcery.com>
834 * config/cpu/arm/cxxabi_tweaks.h (__cxa_cdtor_return_type):
836 * config/cpu/generic/cxxabi_tweaks.h (__cxa_cdtor_return_type):
838 * libsupc++/cxxabi.h (__cxa_cdtor_return_type): New type.
839 (__cxa_vec_new): Use it.
840 (__cxa_vec_new2): Likewise.
841 (__cxa_vec_new3): Likewise.
842 (__cxa_vec_cdtor): Likewise.
843 (__cxa_vec_cctor): Likeiwse.
844 (__cxa_vec_dtor): Likewise.
845 (__cxa_vec_cleanup): Likewise.
846 (__cxa_vec_delete2): Likewise.
847 (__cxa_vec_delete3): Likewise.
848 * libsupc++/vec.cc (__cxa_vec_new): Likewise.
849 (__cxa_vec_new2): Likewise.
850 (__cxa_vec_new3): Likewise.
851 (__cxa_vec_cdtor): Likewise.
852 (__cxa_vec_cctor): Likeiwse.
853 (__cxa_vec_dtor): Likewise.
854 (__cxa_vec_cleanup): Likewise.
855 (__cxa_vec_delete2): Likewise.
856 (__cxa_vec_delete3): Likewise.
857 (__aeabi_vec_ctor_nocookie_nodtor): New function.
858 (__aeabi_vec_ctor_cookie_nodtor): Likewise.
859 (__aeabi_vec_cctor_nocookie_nodtor): Likewise.
860 (__aeabi_vec_new_cookie_noctor): Likewise.
861 (__aeabi_vec_new_nocookie): Likewise.
862 (__aeabi_vec_new_cookie_nodtor): Likewise.
863 (__aeabi_vec_new_cookie): Likewise.
864 (__aeabi_vec_dtor): Likewise.
865 (__aeabi_vec_dtor_cookie): Likewise.
866 (__aeabi_vec_delete): Likewise.
867 (__aeabi_vec_delete3): Likewise.
868 (__aeabi_vec_delete3_nodtor): Likewise.
869 (__aeabi_atexit): Likewise.
871 2004-09-14 Nathan Myers <ncm@cantrip.org>
873 * include/bits/fstream.tcc (xsgetn): Slightly tweak the recent fix
874 for 11722: copy can replace move; the common case is __avail == 0.
876 2004-09-14 Paolo Carlini <pcarlini@suse.de>
878 * include/bits/cpp_type_traits.h: Rename __is_trivially_copyable
879 to __is_scalar, more clear and consistent with "tr1" naming.
880 * include/bits/stl_algobase.h: Update consistently throughout.
882 2004-09-13 Paolo Carlini <pcarlini@suse.de>
885 * include/std/std_fstream.h (xsgetn): Declare only.
886 * include/bits/fstream.tcc (xsgetn): Define, optimize for the
887 always_noconv() case: when __n > __buflen, copy the available
888 buffer and issue a direct read.
889 * testsuite/performance/27_io/filebuf_sgetn_unbuf.cc: New.
891 * include/bits/fstream.tcc (xsputn): Minor tweak, reorder a
894 2004-09-13 Hans-Peter Nilsson <hp@bitrange.com>
896 * testsuite/lib/libstdc++.exp: Use gcc wrapper.exp and call
897 libstdc++_maybe_build_wrapper instead of using local code.
899 2004-09-08 Benjamin Kosnik <bkoz@redhat.com>
901 * config/linker-map.gnu (GLIBCXX_3.4.3): New, adjust symbol exports.
903 2004-09-03 Jan Beulich <jbeulich@novell.com>
905 * crossconfig.m4: Add NetWare as a target.
906 * configure: Regenerate.
908 2004-09-02 Mark Mitchell <mark@codesourcery.com>
910 * libsupc++/typeinfo: Honor __GXX_MERGED_TYPEINFO_NAMES if already
913 2004-09-02 Benjamin Kosnik <bkoz@redhat.com>
914 Simon Richter <Simon.Richter@hogyros.de>
917 * include/bits/istream.tcc: Add extern template for iostream
918 char and wchar_t instantiations.
920 2004-09-02 Benjamin Kosnik <bkoz@redhat.com>
921 Leland Wang <llwang@infor.org>
924 * include/ext/ropeimpl.h (rope::_S_compare): Use
925 _Rope_constants::_S_leaf.
927 2004-09-02 Benjamin Kosnik <bkoz@redhat.com>
930 * include/Makefile.am (ext_headers): Remove demangle.h.
931 * include/Makefile.in: Regenerate.
932 * include/ext/demangle.h: Remove.
934 2004-09-01 Benjamin Kosnik <bkoz@redhat.com>
937 * include/ext/mt_allocator.h (__mt_base): Not type dependent,
939 (__pool): New, specialize.
940 (__common_pool): New, static bits here.
941 (__per_type_pool): New, and here.
942 (__mt_alloc_base): New.
943 (__mt_alloc): Add template parameter, inherit from it.
944 * src/allocator.cc: Split this...
945 * src/allocator-inst.cc: And this...
946 * src/pool_allocator.cc: ...into this.
947 * src/mt_allocator.cc: ... and this. Add definitions for
949 * src/Makefile.am (sources): Split allocator.cc to
950 pool_allocator.cc and mt_allocator.cc.
951 * src/Makefile.in: Regenerate.
952 * config/linker-map.gnu: Add symbols.
953 * docs/html/ext/mt_allocator.html: Document new design.
954 * testsuite/ext/mt_allocator/tune-1.cc: New.
955 * testsuite/ext/mt_allocator/tune-2.cc: New.
956 * testsuite/ext/mt_allocator/tune-3.cc: New.
957 * testsuite/ext/mt_allocator/tune-4.cc: New.
959 * testsuite/testsuite_allocator.h (__gnu_test::check_new): New.
960 * testsuite/ext/allocators.cc: Use check_new, split into...
961 * testsuite/ext/mt_allocator/check_new.cc: this.
962 * testsuite/ext/pool_allocator/check_new.cc: this.
963 * testsuite/ext/malloc_allocator/check_new.cc: this.
964 * testsuite/ext/debug_allocator/check_new.cc: this.
965 * testsuite/ext/mt_allocator/instantiate.cc: this.
966 * testsuite/ext/pool_allocator/instantiate.cc: this.
967 * testsuite/ext/malloc_allocator/instantiate.cc: this.
968 * testsuite/ext/debug_allocator/instantiate.cc: this.
970 2004-08-30 Phil Edwards <phil@codesourcery.com>
972 * docs/html/install.html: Update locales list (from Paolo).
973 Remove other redundant information and point to the GCC install
976 2004-08-30 Benjamin Kosnik <bkoz@redhat.com>
978 * include/ext/pool_allocator.h: Rename __pool_base to
980 * src/allocator.cc: Same.
981 * config/linker-map.gnu: Same.
983 2004-08-30 Paolo Carlini <pcarlini@suse.de>
984 Kenneth C. Schalk <ken@xorian.net>
987 * config/io/basic_file_stdio.cc (__basic_file<char>::close()):
988 Check the return value of fclose/sync, loop on EINTR.
989 (__basic_file<char>::sys_open): Likewise, for sync.
991 2004-08-29 Paolo Carlini <pcarlini@suse.de>
993 * include/bits/locale_facets.tcc (time_get<>::_M_extract_via_format,
994 case 'S'): Allow for at least one leap-second (as per C99, 7.23.1
995 and 7.23.3.5), two if !_GLIBCXX_USE_C99.
996 * testsuite/22_locale/time_get/get_time/char/4.cc: New.
997 * testsuite/22_locale/time_get/get_time/wchar_t/4.cc: Likewise.
999 2004-08-27 Jason Merrill <jason@redhat.com>
1002 * libsupc++/guard.cc (static_mutex): Internal class implementing a
1003 recursive mutex which controls initialization of local statics.
1004 (__gnu_cxx::recursive_init): New exception class.
1005 (__cxa_guard_acquire): Deal with locking and recursion detection.
1006 (acquire_1, __cxa_guard_abort, __cxa_guard_release): Likewise.
1008 2004-08-27 Matthias Klose <doko@debian.org>
1010 * configure.host: For mips*-*-linux* update cpu_include_dir
1011 after atomicity_dir is set.
1013 2004-08-27 Matthias Klose <doko@debian.org>
1015 * config/abi/arm-linux-gnu/baseline_symbols.txt: New.
1016 * config/abi/mips-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1017 * configure.host: Set abi_baseline_pair for arm*-*-linux* and
1020 2004-08-27 Paolo Carlini <pcarlini@suse.de>
1022 * testsuite/27_io/manipulators/adjustfield/wchar_t/1.cc: New.
1023 * testsuite/27_io/manipulators/adjustfield/wchar_t/2.cc: Likewise.
1024 * testsuite/27_io/manipulators/basefield/wchar_t/1.cc: Likewise.
1025 * testsuite/27_io/manipulators/standard/wchar_t/1.cc: Likewise.
1026 * testsuite/27_io/manipulators/standard/wchar_t/2.cc: Likewise.
1028 * testsuite/27_io/manipulators/adjustfield/char/1.cc: Minor
1030 * testsuite/27_io/manipulators/adjustfield/char/2.cc: Likewise.
1031 * testsuite/27_io/manipulators/basefield/char/1.cc: Likewise.
1032 * testsuite/27_io/manipulators/standard/char/1.cc: Likewise.
1033 * testsuite/27_io/manipulators/standard/char/2.cc: Likewise.
1035 2004-08-25 Paolo Carlini <pcarlini@suse.de>
1037 PR libstdc++/17038 (partial)
1038 * include/bits/locale_facets.tcc (time_put<>::do_put): Increase
1040 * include/bits/locale_facets.h (class __timepunct): Add FIXME
1041 comment about _M_put.
1042 * config/locale/generic/time_members.cc (_M_put): Always null
1044 * config/locale/gnu/time_members.cc (_M_put): Likewise.
1045 * testsuite/22_locale/time_put/put/char/17038.cc: New.
1046 * testsuite/22_locale/time_put/put/wchar_t/17038.cc: New.
1048 2004-08-24 Paolo Carlini <pcarlini@suse.de>
1050 * testsuite/27_io/basic_istringstream/rdbuf/wchar_t/2832.cc: New.
1051 * testsuite/27_io/basic_istringstream/str/wchar_t/1.cc: Likewise.
1052 * testsuite/27_io/basic_ostringstream/cons/wchar_t/3.cc: Likewise.
1053 * testsuite/27_io/basic_ostringstream/rdbuf/wchar_t/2832.cc: Likewise.
1054 * testsuite/27_io/basic_ostringstream/str/wchar_t/1.cc: Likewise.
1055 * testsuite/27_io/basic_ostringstream/str/wchar_t/2.cc: Likewise.
1057 * testsuite/27_io/basic_istringstream/rdbuf/char/2832.cc: Trim excess
1059 * testsuite/27_io/basic_istringstream/str/char/1.cc: Likewise.
1061 2004-08-22 Matthias Klose <doko@debian.org>
1063 * config/abi/m68k-linux-gnu/baseline_symbols.txt: New.
1064 * config/abi/sparc-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1066 2004-08-23 Paolo Carlini <pcarlini@suse.de>
1068 * configure.ac: Specify version 1.9.1 in AM_INIT_AUTOMAKE.
1069 * aclocal.m4: Regenerate with automake-1.9.1.
1070 * configure: Regenerate.
1071 * Makefile.in: Likewise.
1072 * include/Makefile.in: Likewise.
1073 * libmath/Makefile.in: Likewise.
1074 * libsupc++/Makefile.in: Likewise.
1075 * po/Makefile.in: Likewise.
1076 * src/Makefile.in: Likewise.
1077 * testsuite/Makefile.in: Likewise.
1079 2004-08-22 Paolo Carlini <pcarlini@suse.de>
1081 * include/bits/locale_facets.tcc (num_put<>::do_put(bool)): Cast
1082 to a signed type, long according to the resolution of DR 359.
1083 * testsuite/22_locale/num_put/put/char/9.cc: New.
1084 * testsuite/22_locale/num_put/put/wchar_t/9.cc: New.
1086 * include/bits/locale_facets.tcc (num_put<>::do_put(const void*)):
1087 Simplify a bit: no need to clear showpos.
1089 2004-08-21 Paolo Carlini <pcarlini@suse.de>
1091 * include/bits/char_traits.h (struct _Char_traits_match): Remove,
1094 2004-08-21 Paolo Carlini <pcarlini@suse.de>
1096 * testsuite/22_locale/money_put/put/wchar_t/1.cc: Use proper
1097 wchar_t type for the fill argument; minor formatting tweaks.
1098 * testsuite/22_locale/money_put/put/wchar_t/12971.cc: Likewise.
1099 * testsuite/22_locale/money_put/put/wchar_t/2.cc: Likewise.
1100 * testsuite/22_locale/money_put/put/wchar_t/3.cc: Likewise.
1101 * testsuite/22_locale/money_put/put/wchar_t/4.cc: Likewise.
1102 * testsuite/22_locale/money_put/put/wchar_t/5.cc: Likewise.
1103 * testsuite/22_locale/money_put/put/wchar_t/6.cc: Likewise.
1105 2004-08-21 Paolo Carlini <pcarlini@suse.de>
1107 * include/bits/basic_ios.tcc (basic_ios<>::copyfmt): Don't deal
1108 with _M_word != _M_local_word two times, redundantly.
1110 2004-08-20 Jason Merrill <jason@redhat.com>
1112 * include/Makefile.am (${host_builddir}/gthr.h): Don't add
1113 _GLIBCXX_ to #pragma lines.
1114 * include/Makefile.in: Update.
1116 2004-08-20 Paolo Carlini <pcarlini@suse.de>
1118 PR libstdc++/7219 (continued)
1119 * include/bits/ios_base.h (class ios_base): Expose Annex D.6
1120 typedefs by default.
1121 * testsuite/27_io/types/1.cc: Remove #if _GLIBCXX_DEPRECATED.
1122 * testsuite/27_io/ios_base/cons/assign_neg.cc: Tweak dg-error
1124 * testsuite/27_io/ios_base/cons/copy_neg.cc: Likewise.
1126 2004-08-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1128 * cpu/hppa/atomicity.h (__exchange_and_add, __atomic_add): Add memory
1129 barrier to locking asm.
1131 2004-08-20 Paolo Carlini <pcarlini@suse.de>
1133 * include/c_std/cmath.tcc (__cmath_power): Revert previous commit:
1134 actually the warning is a front-end bug (c++/17120).
1136 2004-08-20 Matthias Klose <doko@debian.org>
1138 * config/abi/s390-linux-gnu/baseline_symbols.txt: New.
1140 2004-08-20 Paolo Carlini <pcarlini@suse.de>
1142 * include/c_std/cmath.tcc (__cmath_power): Suppress assignment
1143 used as truth value warning.
1145 2004-08-20 Paolo Carlini <pcarlini@suse.de>
1147 * config/abi/x86_64-linux-gnu/32/baseline_symbols.txt: Add 32 bit
1150 2004-08-20 Paolo Carlini <pcarlini@suse.de>
1152 * config/abi/x86_64-linux-gnu/baseline_symbols.txt: Fix it.
1154 2004-08-19 Benjamin Kosnik <bkoz@redhat.com>
1156 * testsuite/22_locale/time_put/put/char/3.cc (test03): Don't check
1158 * testsuite/22_locale/time_put/put/wchar_t/3.cc (test03): Same.
1160 2004-08-19 Paolo Carlini <pcarlini@suse.de>
1162 * testsuite/performance/20_util/allocator/insert.cc: For std::map
1163 instantiate the allocator for a correct pair type.
1164 * testsuite/performance/20_util/allocator/insert_insert.cc: Likewise.
1165 * testsuite/performance/20_util/allocator/map_thread.cc: Likewise.
1166 * testsuite/performance/20_util/allocator/producer_consumer.cc:
1169 * testsuite/performance/20_util/allocator/list_sort_search.cc: Very
1170 minor formatting fixes.
1171 * testsuite/performance/20_util/allocator/map_mt_find.cc: Likewise.
1173 2004-08-19 Paolo Carlini <pcarlini@suse.de>
1175 * testsuite/22_locale/time_put/put/char/1.cc: Add VERIFY on the
1177 * testsuite/22_locale/time_put/put/char/2.cc: Likewise.
1178 * testsuite/22_locale/time_put/put/char/3.cc: Likewise.
1179 * testsuite/22_locale/time_put/put/char/4.cc: Likewise.
1180 * testsuite/22_locale/time_put/put/wchar_t/1.cc: Likewise.
1181 * testsuite/22_locale/time_put/put/wchar_t/2.cc: Likewise.
1182 * testsuite/22_locale/time_put/put/wchar_t/3.cc: Likewise.
1183 * testsuite/22_locale/time_put/put/wchar_t/4.cc: Likewise.
1185 2004-08-19 Paolo Carlini <pcarlini@suse.de>
1187 * config/abi/x86_64-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1189 2004-08-18 Matthias Klose <doko@debian.org>
1191 * config/abi/hppa-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1192 * config/abi/i386-linux-gnu/baseline_symbols.txt: New.
1193 * config/abi/powerpc-linux-gnu/baseline_symbols.txt: New.
1195 2004-08-17 Paolo Carlini <pcarlini@suse.de>
1197 * config/abi/alpha-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1199 2004-08-17 Paolo Carlini <pcarlini@suse.de>
1201 * config/abi/ia64-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1203 2004-08-17 Benjamin Kosnik <bkoz@redhat.com>
1205 * config/abi/i486-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1207 2004-08-16 Paolo Carlini <pcarlini@suse.de>
1209 * include/bits/indirect_array.h: Trivial formatting fixes.
1210 * include/bits/valarray_after.h: Likewise.
1211 * include/bits/valarray_array.h: Likewise.
1212 * src/valarray-inst.cc: Likewise.
1214 2004-08-15 Paolo Carlini <pcarlini@suse.de>
1216 * testsuite/27_io/basic_stringstream/rdbuf/char/2832.cc: Remove junk.
1217 * testsuite/27_io/basic_stringstream/str/char/1.cc: Likewise.
1218 * testsuite/27_io/basic_stringstream/str/char/3.cc: Likewise.
1220 * testsuite/27_io/basic_stringstream/rdbuf/wchar_t/2832.cc: New.
1221 * testsuite/27_io/basic_stringstream/str/wchar_t/1.cc: Likewise.
1222 * testsuite/27_io/basic_stringstream/str/wchar_t/2.cc: Likewise.
1223 * testsuite/27_io/basic_stringstream/str/wchar_t/3.cc: Likewise.
1224 * testsuite/27_io/basic_stringstream/str/wchar_t/4.cc: Likewise.
1226 2004-08-15 Paolo Carlini <pcarlini@suse.de>
1228 * include/bits/deque.tcc: Trivial formatting fixes.
1230 2004-08-15 Paolo Carlini <pcarlini@suse.de>
1232 * include/bits/deque.tcc: Trivial formatting fixes.
1234 * include/bits/locale_facets.tcc (num_get<>::do_get(&bool)):
1235 Remove unneded typedef.
1237 * include/bits/locale_facets.tcc: Very minor tweaks.
1239 * testsuite/22_locale/time_put/put/wchar_t/1.cc: Use proper
1240 type for the fill argument.
1241 * testsuite/22_locale/time_put/put/wchar_t/10.cc: Likewise.
1242 * testsuite/22_locale/time_put/put/wchar_t/2.cc: Likewise.
1243 * testsuite/22_locale/time_put/put/wchar_t/3.cc: Likewise.
1244 * testsuite/22_locale/time_put/put/wchar_t/4.cc: Likewise.
1245 * testsuite/22_locale/time_put/put/wchar_t/5.cc: Likewise.
1246 * testsuite/22_locale/time_put/put/wchar_t/6.cc: Likewise.
1247 * testsuite/22_locale/time_put/put/wchar_t/7.cc: Likewise.
1248 * testsuite/22_locale/time_put/put/wchar_t/8.cc: Likewise.
1250 2004-08-13 Paolo Carlini <pcarlini@suse.de>
1252 * src/debug.cc (_Error_formatter::_M_print_string): Fix thinko,
1253 memmove is not needed, memcpy suffices.
1255 2004-08-13 Paolo Carlini <pcarlini@suse.de>
1257 * include/std/std_fstream.h (class basic_ifstream,
1258 class basic_ofstream, class basic_fstream): Add const overloads
1259 of is_open, as per DR 365 [WP].
1260 * docs/html/ext/howto.html: Add an entry for DR 365.
1262 2004-08-12 Paolo Carlini <pcarlini@suse.de>
1264 * configure.ac: Specify version 1.8.5 in AM_INIT_AUTOMAKE.
1266 2004-08-12 Paolo Carlini <pcarlini@suse.de>
1269 * include/bits/sstream.tcc (basic_stringbuf<>::seekoff): Add __off
1270 to the returned value, reorganize a bit.
1271 * testsuite/27_io/basic_stringbuf/seekoff/char/16956.cc: New.
1272 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/16956.cc: New.
1274 * testsuite/27_io/basic_stringbuf/seekoff/char/1.cc: Remove junk.
1275 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc: Likewise.
1276 * testsuite/27_io/basic_stringbuf/seekpos/char/1.cc: Likewise.
1277 * testsuite/27_io/basic_stringbuf/seekpos/wchar_t/1.cc: Likewise.
1279 2004-08-12 Paul Brook <paul@codesourcery.com>
1281 * config/cpu/arm/cxxabi_tweaks.h: Define __cxa_vec_ctor_return and
1282 _GLIBCXX_CXA_VEC_CTOR_RETURN.
1283 * config/cpu/generic/cxxabi_tweaks.h: Ditto.
1284 * libsupc++/cxxabi.h (__cxa_vec_ctor, __cxa_vec_cctor): Use
1285 __cxa_vec_ctor_return.
1286 * libsupc++/vec.cc (__cxa_vec_ctor, __cxa_vec_cctor): Ditto.
1287 Use _GLIBCXX_CXA_VEC_CTOR_RETURN.
1289 2004-08-12 Kelley Cook <kcook@gcc.gnu.org>
1291 * Makefile.in, aclocal.m4, configure, include/Makefile.in,
1292 libmath/Makefile.in, libsupc++/Makefile.in, po/Makefile.in,
1293 src/Makefile.in, testsuite/Makefile.in: Regenerate
1295 2004-08-12 Jan Beulich <jbeulich@novell.com>
1297 * config/locale/generic/ctype_members.cc
1298 (ctype<wchar_t>::_M_convert_to_wmask): Default case must not use 0 as
1299 initializer for return value, as that is invalid for enumerated types.
1300 * config/locale/gnu/ctype_members.cc
1301 (ctype<wchar_t>::_M_convert_to_wmask): Likewise.
1303 2004-08-11 Paolo Carlini <pcarlini@suse.de>
1305 * testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc: Fix typo.
1307 2004-08-11 Paolo Carlini <pcarlini@suse.de>
1309 * testsuite/27_io/basic_stringbuf/imbue/char/1.cc: Declare test
1311 * testsuite/27_io/basic_stringbuf/imbue/wchar_t/1.cc: Ditto.
1312 * testsuite/27_io/basic_stringbuf/in_avail/char/1.cc: Remove junk.
1313 * testsuite/27_io/basic_stringbuf/in_avail/wchar_t/1.cc: Ditto.
1314 * testsuite/27_io/basic_stringbuf/sbumpc/char/1.cc: Ditto.
1315 * testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc: Ditto.
1316 * testsuite/27_io/basic_stringbuf/setbuf/char/1.cc: Ditto.
1317 * testsuite/27_io/basic_stringbuf/setbuf/wchar_t/1.cc: Ditto.
1318 * testsuite/27_io/basic_stringbuf/sgetc/char/1.cc: Ditto.
1319 * testsuite/27_io/basic_stringbuf/sgetc/wchar_t/1.cc: Ditto.
1320 * testsuite/27_io/basic_stringbuf/sgetn/char/1.cc: Ditto.
1321 * testsuite/27_io/basic_stringbuf/sgetn/wchar_t/1.cc: Ditto.
1322 * testsuite/27_io/basic_stringbuf/snextc/char/1.cc: Ditto.
1323 * testsuite/27_io/basic_stringbuf/snextc/wchar_t/1.cc: Ditto.
1324 * testsuite/27_io/basic_stringbuf/sputbackc/char/1.cc: Ditto.
1325 * testsuite/27_io/basic_stringbuf/sputbackc/wchar_t/1.cc: Ditto.
1326 * testsuite/27_io/basic_stringbuf/sputc/char/1.cc: Ditto.
1327 * testsuite/27_io/basic_stringbuf/sputc/wchar_t/1.cc: Ditto.
1328 * testsuite/27_io/basic_stringbuf/sputn/char/1.cc: Ditto.
1329 * testsuite/27_io/basic_stringbuf/sputn/wchar_t/1.cc: Ditto.
1330 * testsuite/27_io/basic_stringbuf/sungetc/char/1.cc: Ditto.
1331 * testsuite/27_io/basic_stringbuf/sungetc/wchar_t/1.cc: Ditto.
1333 2004-08-11 Paolo Carlini <pcarlini@suse.de>
1334 Petur Runolfsson <peturr02@ru.is>
1337 * src/ios_init.cc (ios_base::sync_with_stdio): Make sure the
1338 standard streams are constructed.
1339 * testsuite/27_io/ios_base/sync_with_stdio/16959.cc: New.
1341 2004-08-09 Paolo Carlini <pcarlini@suse.de>
1343 * include/bits/stl_bvector.h: Trivial formatting fixes.
1345 2004-08-09 Paolo Carlini <pcarlini@suse.de>
1347 * src/ios.cc (ios_base::_M_grow_words): Uglify the names.
1349 2004-08-07 Jonathan Wakely <redi@gcc.gnu.org>
1350 Paolo Carlini <pcarlini@suse.de>
1352 * src/debug.cc (_Error_formatter::_M_print_string): In order
1353 to print individual words from __string, _M_format_word can't
1354 be called since may be just sprintf, thus ignoring completely
1355 __n: instead, use memmove and append '\0' by hand.
1357 2004-08-07 Paolo Carlini <pcarlini@suse.de>
1359 * config/locale/generic/c_locale.h (__convert_from_v): Don't
1360 use a default for __prec, assume __prec >= 0 and simplify.
1361 * config/locale/gnu/c_locale.h (__convert_from_v): Likewise.
1362 * include/bits/locale_facets.tcc (money_put<>::do_put(long double)):
1363 Pass format "%.*Lf" + precision == 0, equivalent to "%.0Lf".
1365 2004-08-04 Phil Edwards <phil@codesourcery.com>
1367 * docs/html/configopts.html: Emphasize that options change.
1368 * docs/html/17_intro/configury.html: Update links.
1370 2004-08-03 Paolo Carlini <pcarlini@suse.de>
1372 * include/bits/list.tcc: Trivial formatting fixes.
1374 2004-08-03 Mark Mitchell <mark@codesourcery.com>
1376 * libsupc++/new_op.cc: Update comments.
1377 * libsupc++/del_op.cc: Likewise.
1379 2004-08-02 Mark Mitchell <mark@codesourcery.com>
1381 * libsupc++/cxxabi.h: Make all declarations have default
1383 * libsupc++/exception: Likewise.
1384 * libsupc++/new: Likewise.
1385 * libsupc++/typeinfo: Likewise.
1386 * libsupc++/unwind-cxx.h: Likewise.
1387 * libsupc++/eh_alloc.cc (__cxa_allocate_exception): Put it into
1388 the __cxxabiv1 namespace.
1389 (__cxa_free_exception): Likewise.
1390 * libsupc++/eh_aux_runtime.cc (__cxa_bad_cast): Likewise.
1391 (__cxa_bad_typeid): Likewise.
1392 * libsupc++/eh_catch.cc (__cxa_begin_catch): Likewise.
1393 (__cxa_end_catch): Likewise.
1394 * libsupc++/eh_globals.cc (__cxa_get_globals_fast): Likewise.
1395 (__cxa_get_globals): Likewise.
1396 * libsupc++/eh_throw.cc (__cxa_throw): Likewise.
1397 (__cxa_rethrow): Likewise.
1398 * libsupc++/pure.cc (__cxa_pure_virtual): Likewise.
1399 * libsupc++/eh_type.cc: Include <cxxabi.h>.
1401 * Makefile.am (hosted_source): Add libmath and testsuite.
1402 (SUBDIRS): Remove them.
1403 * acinclude.m4: (GLIBCXX_ENABLED_HOSTED): Default to freestanding
1404 on arm*-*-symbianelf*.
1405 * crossconfig.m4: Add arm*-*-symbianelf* support.
1406 * include/c_std/std/std_cstdlib.h (stdlib.h): Do not include it
1407 when freestanding. Do not bring names into std:: namespace with
1408 "using" when freestanding. Declare required functions and macros
1410 * libsupc++/Makefile.am (c_sources): Do not include cp-demangle.c
1412 * libsupc++/del_op.cc: Declare "free" only when freestanding.
1413 * libsupc++/eh_alloc.cc (cstring): Include it only when hosted.
1414 (malloc): Declare when freestanding.
1417 (__cxa_allocate_exception): Call malloc, not std::malloc. Likewise
1419 (__cxa_free_exception): Likewise for free.
1420 * libsupc++/new_op.cc: Declare "malloc" when freestanding.
1421 * libsupc++/pure.cc (writestr): Define to nothing when
1423 * libsupc++/vterminate.cc: Do not define anything when
1425 * Makefile.in: Regenerated.
1426 * aclocal.m4: Likewise.
1427 * configure: Likewise.
1428 * include/Makefile.in: Likewise.
1429 * libmath/Makefile.in: Likewise.
1430 * libsupc++/Makefile.in: Likewise.
1431 * po/Makefile.in: Likewise.
1432 * src/Makefile.in: Likewise.
1433 * testsuite/Makefile.in: Likewise.
1435 2004-08-01 Matt Austern <austern@apple.com>
1438 * include/bits/stl_list.h (_M_create_node): Remove unused
1439 zero-argument version.
1440 * include/ext/slist (_M_create_node): Pass two arguments to
1441 allocator's construct() member function.
1442 * testsuite/23_containers/deque/explicit_instantiation.cc: New.
1443 * testsuite/23_containers/list/explicit_instantiation.cc: New.
1444 * testsuite/23_containers/vector/explicit_instantiation.cc: New.
1445 * testsuite/23_containers/map/explicit_instantiation.cc: New.
1446 * testsuite/23_containers/set/explicit_instantiation.cc: New.
1447 * testsuite/23_containers/multimap/explicit_instantiation.cc: New.
1448 * testsuite/23_containers/multiset/explicit_instantiation.cc: New.
1449 * testsuite/ext/hash_set_explicit_instantiation.cc: New.
1450 * testsuite/ext/slist_explicit_instantiation.cc: New.
1452 2004-07-30 Paolo Carlini <pcarlini@suse.de>
1454 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
1455 num_get<>::_M_extract_int): In the main parsing loop delay the
1456 life of __q to the actual use point.
1458 2004-07-29 Paolo Carlini <pcarlini@suse.de>
1461 * include/bits/locale_facets.tcc (num_put<>::_M_insert_float):
1462 Don't clip the precision passed down to __convert_from_v:
1463 22.2.2.2.2 nowhere says so.
1464 * testsuite/22_locale/num_put/put/char/14220.cc: New.
1465 * testsuite/22_locale/num_put/put/wchar_t/14220.c: Likewise.
1467 2004-07-29 Paolo Carlini <pcarlini@suse.de>
1469 * docs/html/ext/lwg-active.html, lwg-defects.html: Import Revision 31.
1471 2004-07-29 Paolo Carlini <pcarlini@suse.de>
1472 Petur Runolfsson <peturr02@ru.is>
1474 PR libstdc++/12658 (continued)
1475 * src/locale_init.cc (locale::locale, locale::global): Use
1476 a single locale_mutex instead of two separate mutexes.
1478 2004-07-29 Paolo Carlini <pcarlini@suse.de>
1481 * include/debug/map.h (insert(_InputIterator, _InputIterator)):
1483 * testsuite/23_containers/map/insert/16813.cc: New.
1485 2004-07-29 Phil Edwards <phil@codesourcery.com>
1487 * docs/html/faq/index.html: Update version references. Make
1488 clear that code from SGI has diverged greatly. Remove references
1489 to library snapshots and what's-new sections.
1490 * docs/html/faq/index.txt: Regenerate.
1492 2004-07-28 Matt Austern <austern@apple.com>
1494 * include/bits/stl_construct.h (_Destroy): New three-argument
1495 overload that takes an allocator argument. Another inline
1496 three-argument overload that takes std::allocator and dispatches
1497 to the two-argument version.
1498 * include/bits/stl_uninitialized.h (__uninitialized_fill_n_aux):
1499 Change return type to void to match uninitialized_fill_n.
1500 (__uninitialized_copy_a_): New function. Like uninitialized_copy
1501 except that it takes an allocator and uses it for construct and
1502 destroy. If the allocator is std::allocator, dispatches to
1504 (__uninitialized_fill_a): Likewise.
1505 (__uninitialized_fill_n_a): Likewise.
1506 (__uninitialized_copy_copy): Give it an allocator argument.
1507 (__uninitialized_fill_copy): Likewise.
1508 (__uninitialized_copy_fill): Likewise.
1509 * include/bits/deque.tcc: Use new forms defined in stl_construct.h
1510 and stl_uninitialized.h. Replace use of single-argument _Construct
1511 and _Destroy with use of allocator's construct and destroy methods.
1512 * include/bits/list.tcc: Likewise.
1513 * include/bits/stl_deque.h: Likewise.
1514 * include/bits/stl_list.h: Likewise.
1515 * include/bits/stl_tree.h: Likewise.
1516 * include/bits/stl_vector.h: Likewise.
1517 * include/bits/vector.tcc: Likewise.
1518 * include/ext/hashtable.h: Use rebind so that allocator_type
1519 has correct type for a container's allocator. Replace use of
1520 single-argument _Construct and _Destroy with use of allocator's
1521 construct and destroy methods.
1522 * include/ext/memory (__uninitialized_copy_n_a): New function.
1523 Like uninitialized_copy_n except that it takes an extra parameter,
1524 an allocator, and uses it for construct and destroy operations.
1525 * include/ext/rope: Use new forms defined in stl_construct.h,
1526 stl_uninitialized.h, and ext/memory. Replace use of single-argument
1527 _Construct and _Destroy with allocator construct and destroy methods.
1528 * include/ext/ropeimpl.h: Likewise.
1529 * include/ext/slist.h: Likewise.
1530 * testsuite/testsuite_allocator.h (check_construct_destroy): New.
1531 * testsuite/testsuite_allocator.cc (check_construct_destroy): New.
1532 * testsuite/23_containers/deque/check_construct_destroy.cc: New.
1533 * testsuite/23_containers/list/check_construct_destroy.cc: New.
1534 * testsuite/23_containers/set/check_construct_destroy.cc: New.
1535 * testsuite/23_containers/vector/check_construct_destroy.cc: New.
1536 * testsuite/ext/hash_check_construct_destroy.cc: New.
1537 * testsuite/ext/slist_check_construct_destroy.cc: New.
1539 2004-07-28 Alexandre Oliva <aoliva@redhat.com>
1541 2003-10-01 Eric Christopher <echristo@redhat.com>
1542 * config/cpu/sh/atomicity.h (__exchange_and_add): Remove 'm'
1544 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
1545 * config/cpu/sh/atomicity.h: New. Use movli and movco on SH4a.
1547 2004-07-23 Benjamin Kosnik <bkoz@redhat.com>
1550 * include/bits/locale_facets.tcc: Fix for -Werror.
1552 2004-07-23 Jonathan Wakely <redi@gcc.gnu.org>
1554 * docs/html/debug.html: Say debug mode only available since 3.4.0.
1556 2004-07-21 Benjamin Kosnik <bkoz@redhat.com>
1558 * docs/doxygen/mainpage.html: Clarify links.
1559 * docs/doxygen/stdheader.cc: Add files.
1560 * docs/doxygen/style.css: Remove bolds, add h2, h3 styles.
1561 * docs/doxygen/user.cfg.in: New options, wrap.
1563 2004-07-20 Danny Smith <dannysmith@users.sourceforge.net>
1565 * include/c_std/std_cwchar.h (wcsstr): Correct signature.
1567 2004-07-19 Benjamin Kosnik <bkoz@redhat.com>
1570 * testsuite/lib/libstdc++.exp (v3-copy-files): Revert.
1572 2004-07-17 Richard Sandiford <rsandifo@redhat.com>
1575 * scripts/create_testsuite_files: Pass -print to find.
1577 2004-07-15 Paolo Carlini <pcarlini@suse.de>
1579 * docs/html/ext/lwg-active.html, lwg-defects.html: Import Revision 30.
1580 * docs/html/ext/howto.html: Tweak entries for DRs 167/253/389/402.
1582 2004-07-15 Jakub Jelinek <jakub@redhat.com>
1585 * acinclude.m4 (glibcxx_shared_libgcc): Correct
1586 glibcxx_shared_libgcc test for multilibs.
1587 * configure: Rebuilt.
1589 2004-07-14 Paolo Carlini <pcarlini@suse.de>
1592 * include/bits/stl_uninitialized.h (uninitialized_fill_n): Fix
1593 the signature to return void, as per 20.4.4.3.
1594 * include/bits/stl_vector.h (vector::vector(size_type,
1595 const value_type&, const allocator_type&), vector::vector(size_type),
1596 vector::_M_initialize_dispatch): Adjust callers.
1597 * include/bits/vector.tcc (vector<>::_M_fill_assign,
1598 vector<>::_M_fill_insert): Likewise.
1599 * testsuite/20_util/memory/16505.cc: New.
1601 2004-07-14 Paolo Carlini <pcarlini@suse.de>
1603 * testsuite/22_locale/locale/cons/12658_thread-1.cc,
1604 12658_thread-2.cc: Use __gnu_test::try_named_locale.
1606 2004-07-13 Benjamin Kosnik <bkoz@redhat.com>
1608 * docs/html/ext/mt_allocator.html: Add docs for _Tune.
1609 * include/ext/mt_allocator.h (__mt_alloc::_S_get_options): Make public.
1610 (__mt_alloc::_S_set_options): Same.
1613 2004-07-13 Benjamin Kosnik <bkoz@redhat.com>
1615 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Add allocator defaults
1617 * configure: Regenerated.
1619 2004-07-13 Paolo Carlini <pcarlini@suse.de>
1621 * testsuite/22_locale/locale/cons/12658_thread.cc: Move/rename
1622 to 12658_thread-1.cc and xfail.
1623 * testsuite/22_locale/locale/cons/12658_thread-2.c: New, much
1624 simpler version of 12658_thread-1.cc, still failing on 3_3 and
1625 not failing on 3_4/mainline - both on single processor and
1626 multiprocessor machines.
1628 2004-07-12 Benjamin Kosnik <bkoz@redhat.com>
1630 * docs/html/abi.html: Remove non-public qualification.
1632 * include/bits/concurrence.h: Tweak comments.
1634 2004-07-11 Paolo Carlini <pcarlini@suse.de>
1636 Add wchar_t counterparts of the basic_streambbuf<char> tests.
1637 * testsuite/27_io/basic_streambuf/cons/wchar_t/1.cc: New.
1638 * testsuite/27_io/basic_streambuf/imbue/wchar_t/1.cc, 9322.cc:
1640 * testsuite/27_io/basic_streambuf/in_avail/wchar_t/9701-3.cc: Likewise.
1641 * testsuite/27_io/basic_streambuf/overflow/wchar_t/1.cc, 2.cc,
1643 * testsuite/27_io/basic_streambuf/sgetc/wchar_t/1.cc: Likewise.
1644 * testsuite/27_io/basic_streambuf/sgetn/wchar_t/1.cc: Likewise.
1645 * testsuite/27_io/basic_streambuf/sputbackc/wchar_t/9538.cc: Likewise.
1646 * testsuite/27_io/basic_streambuf/sputc/wchar_t/1057.cc: Likewise.
1647 * testsuite/27_io/basic_streambuf/sputn/wchar_t/1.cc, 1057.cc:
1649 * testsuite/27_io/basic_streambuf/sync/wchar_t/1057.cc: Likewise.
1651 * testsuite/27_io/basic_streambuf/imbue/char/1.cc, 9322.cc: Minor
1653 * testsuite/27_io/basic_streambuf/overflow/char/2.cc, 3599.cc:
1655 * testsuite/27_io/basic_streambuf/sputn/char/1057.cc: Likewise.
1656 * testsuite/27_io/basic_streambuf/sync/char/1057.cc: Likewise.
1658 2004-07-11 Phil Edwards <phil@codesourcery.com>
1660 * acinclude.m4: Cosmetic shell syntax fixes.
1661 * configure.ac: Bring comment inline with reality.
1662 * configure.host: Both of the above. Move 'arm' case to right
1663 place in host_cpu switch.
1664 * aclocal.m4, configure: Regenerate.
1666 2004-07-09 Paolo Carlini <pcarlini@suse.de>
1668 Add wchar_t counterparts of the basic_stringbuf<char> tests.
1669 * testsuite/27_io/basic_stringbuf/imbue/wchar_t/1.cc, 9322.cc: New.
1670 * testsuite/27_io/basic_stringbuf/in_avail/wchar_t/1.cc: Likewise.
1671 * testsuite/27_io/basic_stringbuf/overflow/wchar_t/1.cc, 2.cc,
1672 3599.cc, 9988.cc: Likewise.
1673 * testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc, 9825.cc:
1675 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc, 2.cc:
1677 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc, 2.cc, 3.cc:
1679 * testsuite/27_io/basic_stringbuf/setbuf/wchar_t/1.cc, 2.cc, 3.cc:
1681 * testsuite/27_io/basic_stringbuf/sgetc/wchar_t/1.cc: Likewise.
1682 * testsuite/27_io/basic_stringbuf/sgetn/wchar_t/1.cc: Likewise.
1683 * testsuite/27_io/basic_stringbuf/snextc/wchar_t/1.cc: Likewise.
1684 * testsuite/27_io/basic_stringbuf/sputbackc/wchar_t/1.cc, 9425.cc:
1686 * testsuite/27_io/basic_stringbuf/sputc/wchar_t/1.cc, 1057.cc,
1687 9404-1.cc: Likewise.
1688 * testsuite/27_io/basic_stringbuf/sputn/wchar_t/1.cc, 1057.cc,
1689 9404-2.cc: Likewise.
1690 * testsuite/27_io/basic_stringbuf/str/wchar_t/1.cc, 2.cc, 3.cc,
1692 * testsuite/27_io/basic_stringbuf/sungetc/wchar_t/1.cc: Likewise.
1693 * testsuite/27_io/basic_stringbuf/sync/wchar_t/1057.cc: Likewise.
1695 2004-07-08 Paolo Carlini <pcarlini@suse.de>
1697 * include/bits/gslice.h: Trivial formatting fixes.
1698 * include/bits/gslice_array.h: Likewise.
1699 * include/bits/indirect_array.h: Likewise.
1700 * include/bits/mask_array.h: Likewise.
1701 * include/bits/slice_array.h: Likewise.
1702 * include/bits/valarray_after.h: Likewise.
1703 * include/bits/valarray_array.h: Likewise.
1704 * include/bits/valarray_before.h: Likewise.
1705 * include/std/std_valarray.h: Likewise.
1707 2004-07-08 Benjamin Kosnik <bkoz@redhat.com>
1710 * include/bits/basic_string.h (basic_string::operator=): Revert.
1712 2004-07-07 Benjamin Kosnik <bkoz@redhat.com>
1714 * configure.ac (libtool_VERSION): To 6:2:0.
1715 * configure: Regenerated.
1717 * testsuite/testsuite_abi.cc (check_version): Add 3.4.2.
1719 2004-07-07 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
1722 * config/linker-map.gnu: Add stdio_sync_filebuf::file exports.
1724 2004-07-07 Benjamin Kosnik <bkoz@redhat.com>
1726 * docs/html/abi.html: Updates for 3.4.1 release. Add summary of
1729 2004-07-07 Paolo Carlini <pcarlini@suse.de>
1732 * include/bits/sstream.tcc (overflow): When reallocating _M_string
1733 use an exponential grow policy.
1734 * testsuite/27_io/basic_stringbuf/overflow/char/1.cc: New.
1735 * testsuite/performance/27_io/stringbuf_overflow.cc: New.
1737 2004-07-06 Anssi Hannula <anssi.hannula@mbnet.fi>
1740 * crossconfig.m4: Add in bits for djgpp.
1741 * configure: Regenerate.
1743 2004-07-05 Jonathan Wakely <redi@gcc.gnu.org>
1745 * testsuite/23_containers/{set,multiset}/14340.cc: Fix typos in
1746 instantiation of set and multiset (functor param given as int).
1748 2004-07-04 Paolo Carlini <pcarlini@suse.de>
1750 * include/bits/basic_string.h: Trivial formatting fixes and/or
1751 const-ification of some variables.
1752 * include/bits/deque.tcc: Likewise.
1753 * include/bits/stl_algobase.h: Likewise.
1754 * include/bits/stl_bvector.h: Likewise.
1755 * include/bits/stl_construct.h: Likewise.
1756 * include/bits/stl_deque.h: Likewise.
1757 * include/bits/stl_pair.h: Likewise.
1758 * include/bits/stl_vector.h: Likewise.
1759 * include/bits/vector.tcc: Likewise.
1761 2004-07-04 Paolo Carlini <pcarlini@suse.de>
1763 * testsuite/25_algorithms/copy/1.cc: Add instantiations for
1764 systems with no COMDAT or weak support.
1765 * testsuite/25_algorithms/copy/2.cc: Likewise.
1766 * testsuite/25_algorithms/copy/3.cc: Likewise.
1767 * testsuite/25_algorithms/copy/4.cc: Likewise.
1769 2004-07-03 Paul Brook <paul@codesourcery.com>
1771 * configure.ac: Set ABI_TWEAKS_SRCDIR.
1772 * configure.host: Set abi_tweaks_dir. Check for atomicity.h when
1773 setting atomicity_dir. Override type_cpu for arm based targets.
1774 * include/Makefile.am (host_headers): Add cxxabi_tweaks.h.
1775 * libsupc++/cxxabi.h: Include bits/cxxabi.h. Don't declare __guard.
1776 * libsupc++/guard.cc: Use definitions from cxxabi_tweaks.h.
1777 * libsupc++/vec.cc: Ditto.
1778 * config/cpu/arm/cxxabi_tweaks.h: New file.
1779 * config/cpu/generic/cxxabi_tweaks.h: New file.
1780 * */Makefile.in: Regenerate.
1781 * configure: Regenerate.
1783 2004-07-02 Paolo Carlini <pcarlini@suse.de>
1785 * include/bits/type_traits.h (_Is_normal_iterator): Move...
1786 * include/bits/cpp_type_traits.h: ... here, renamed to
1787 __is_normal_iterator and consistent with the other traits.
1788 * include/bits/stl_algobase.h (__copy_ni1, __copy_ni2): Convert
1789 to the struct __copy_normal and three specializations.
1790 (__copy_backward_output_normal_iterator,
1791 __copy_backward_input_normal_iterator): Likewise, convert to
1792 the struct __copy_backward_normal and three specializations.
1793 (copy, copy_backward): Use the latter.
1794 (__copy_aux, __copy_backward_aux): Very minor tweaks.
1796 2004-07-01 Paolo Carlini <pcarlini@suse.de>
1798 * include/bits/stl_algobase.h (__copy_trivial): Remove.
1799 (__copy_aux2): Rewrite as __copy_aux to use __is_pointer,
1800 __is_trivially_copyable, __are_same and __copy::copy.
1801 (__copy): Rewrite as a class template and two specializations.
1802 (__copy_ni2): Simplify, just call __copy_aux.
1804 * include/bits/stl_algobase.h (__copy_backward_aux): Add __are_same
1806 * testsuite/25_algorithms/copy/1.cc, 2.cc, 3.cc, 4.cc: Test also
1807 for destination value type != source value type.
1809 2004-07-01 Benjamin Kosnik <bkoz@redhat.com>
1810 Per Bothner <per@bothner.com>
1811 Mohan Embar <gnustuff@thisiscool.com>
1814 * include/bits/concurrence.h (__glibcxx_mutex_type): New.
1815 (__glibcxx_mutex): Encapsulate mutex init function into type for
1816 threaded configurations without __GTHREAD_MUTEX_INIT.
1817 (lock::lock): Make device member a reference.
1818 (lock::~lock): Same.
1819 * include/ext/pool_allocator.h (__pool_base::_M_get_mutex): Change
1821 * src/allocator.cc: Same.
1823 2004-06-30 Brad Spencer <spencer@infointeractive.com>
1825 * include/ext/mt_allocator.h: Handle allocations at static
1826 initialization that happen before _S_options is (automatically)
1827 constructed; set _S_init even if _M_force_new is true.
1829 2004-06-30 Benjamin Kosnik <bkoz@redhat.com>
1831 * config/linker-map.gnu: Revert new exports.
1833 2004-06-30 Benjamin Kosnik <bkoz@redhat.com>
1834 Stuart Anderson <anderson@netsweng.com>
1836 * config/linker-map.gnu: Add destructor exports for abstract base
1837 classes to conform to LSB.
1839 2004-06-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
1840 Paolo Carlini <pcarlini@suse.de>
1842 * include/bits/cpp_type_traits.h: Add __is_pointer and
1843 __is_trivially_copyable.
1844 * include/bits/stl_algobase.h (fill, fill_n): Slightly
1845 tweak to use the latter.
1846 (__copy_backward_dispatch): Remove.
1847 (__copy_backward_aux): Rewrite to use __is_pointer and
1848 __is_trivially_copyable and __copy_backward::copy_b.
1849 (__copy_backward): Rewrite as a class template and two
1852 2004-06-30 Paolo Carlini <pcarlini@suse.de>
1854 * testsuite/25_algorithms/copy.cc: Move to...
1855 * testsuite/25_algorithms/copy/1.cc: ... here, extend.
1856 * testsuite/25_algorithms/copy/2.cc: New.
1857 * testsuite/25_algorithms/copy/3.cc: New.
1858 * testsuite/25_algorithms/copy/4.cc: New.
1860 2004-06-29 Paul Brook <paul@codesourcery.com>
1862 * libsupc++/vec.cc (__cxa_vec_new2, __cxa_vec_new3): Store the
1863 element size in the cookie.
1865 2004-06-28 Paolo Carlini <pcarlini@suse.de>
1867 * include/bits/cpp_type_traits.h: Move the additions to
1868 namespace __gnu_internal outside of namespace std; trivial
1871 2004-06-28 Benjamin Kosnik <bkoz@redhat.com>
1873 * include/debug/safe_base.h (__gnu_debug::_Safe_sequence_base):
1874 Revert -Weffc++ changes that defined copy ctory and or assignment
1876 * libsupc++/tinfo.cc (__upcast_result): Same.
1878 2004-06-28 Paolo Carlini <pcarlini@suse.de>
1880 * src/localename.cc (locale::_Impl::_Impl): Slightly improve
1881 the algorithm used to name the categories.
1883 2004-06-28 Paolo Bonzini <bonzini@gnu.org>
1885 * include/Makefile.am: Give a .gch extension to
1886 the PCH files, not only to the directory.
1887 * include/Makefile.in: Regenerate.
1889 2004-06-28 Paolo Carlini <pcarlini@suse.de>
1891 * config/locale/gnu/monetary_members.cc
1892 (moneypunct<wchar_t>::_M_initialize_moneypunct): Clean up
1893 assignments of _M_decimal_point and _M_thousands_sep.
1895 2004-06-27 Paolo Carlini <pcarlini@suse.de>
1897 * docs/html/17_intro/contribute.html: Update some links.
1898 * docs/html/17_intro/porting-howto.html: Likewise.
1899 * docs/html/17_intro/porting-howto.xml: Likewise.
1900 * docs/html/18_support/howto.html: Likewise.
1901 * docs/html/21_strings/howto.html: Likewise.
1902 * docs/html/27_io/howto.html: Likewise.
1903 * docs/html/configopts.html: Likewise.
1904 * docs/html/ext/howto.html: Likewise.
1905 * docs/html/faq/index.html: Likewise.
1906 * docs/html/install.html: Don't mention 2.x compilers.
1908 2004-06-27 Paolo Carlini <pcarlini@suse.de>
1910 * include/ext/rope: Trivial formatting fixes.
1911 * include/ext/ropeimpl.h: Likewise.
1913 2004-06-26 Paolo Carlini <pcarlini@suse.de>
1916 * acinclude.m4 (GLIBCXX_ENABLE_LONG_LONG): Do not check for the
1917 availability of strto(u)ll, not used anymore in the iostreams.
1918 * configure: Regenerate.
1920 2004-06-25 Benjamin Kosnik <bkoz@redhat.com>
1923 * linkage.m4 (GLIBCXX_CHECK_BUILTIN_MATH_DEC): Revert to
1925 * configure: Regenerate.
1927 2004-06-25 Paul Brook <paul@codesourcery.com>
1929 * libsupc++/cxxabi.h: Define __ARM_EABI__
1931 * libsupc++/guard.h (__cxa_guard_acquire, __cxa_guard_release): Ditto.
1933 2004-06-25 Paul Brook <paul@codesourcery.com>
1935 * include/bits/concurrence.h: Still create mutex object when
1938 2004-06-25 Paolo Carlini <pcarlini@suse.de>
1940 * include/bits/stl_algobase.h (fill, fill_n): Revert last
1941 change: actually we need to copy construct an object of type
1942 _Tp, not of type iterator_traits<>::value_type, therefore the
1945 2004-06-25 Paolo Carlini <pcarlini@suse.de>
1947 * include/bits/stl_algobase.h (fill, fill_n): Tighten the
1948 dispatch: use iterator_traits<>::value_type, not _Tp.
1950 2004-06-25 Paolo Carlini <pcarlini@suse.de>
1952 * testsuite/25_algorithms/fill/1.cc: Tweak instantiations.
1953 * testsuite/25_algorithms/fill/2.cc: Likewise.
1955 2004-06-25 Dan Nicolaescu <dann@ics.uci.edu>
1956 Paolo Carlini <pcarlini@suse.de>
1958 * include/bits/stl_algobase.h (__fill, __fill_n): New helpers
1959 for fill and fill_n, respectively: when copying is cheap, use a
1960 temporary to avoid a memory read in each iteration.
1962 2004-06-25 Paolo Carlini <pcarlini@suse.de>
1964 * testsuite/25_algorithms/fill/1.cc: New.
1965 * testsuite/25_algorithms/fill/2.cc: Likewise.
1967 2004-06-25 Benjamin Kosnik <bkoz@redhat.com>
1969 * include/debug/formatter.h (__gnu_debug::_Error_formatter):
1970 Remove copy constructor and assignment operator.
1972 2004-06-24 Benjamin Kosnik <bkoz@redhat.com>
1974 * include/bits/concurrence.h (__gnu_cxx::lock): New.
1975 * include/ext/pool_allocator.h (__pool_base::_Lock::_S_lock): Remove.
1976 (__pool_base::_M_get_mutex): New.
1977 * include/bits/allocator.h: Tweak.
1978 * src/allocator.cc (__pool_base::_M_get_free_list): Correct offset.
1979 * config/linker-map.gnu: Remove __pool_base::_Lock::_S_lock.
1980 * include/bits/stl_threads.h: Remove.
1981 * include/Makefile.am: Also here.
1982 * include/Makefile.in: Regenerate.
1984 * src/locale_init.cc: Use __gnu_cxx::lock.
1986 * src/allocator.cc: Move all instantiations...
1987 * src/allocator-inst.cc: ...here.
1989 2004-06-23 Andrew Pinski <apinski@apple.com>
1991 * linkage.m4: Remove check for libmx.
1992 * configure: Regenerate.
1994 2004-06-23 Paolo Carlini <pcarlini@suse.de>
1997 * include/bits/boost_concept_check.h (struct _TrivialIteratorConcept):
1998 Don't require the _DefaultConstructibleConcept.
1999 (struct _ForwardIteratorConcept): Require it here.
2001 2004-06-22 Alexandre Oliva <aoliva@redhat.com>
2003 * include/bits/istream.tcc (getline): Make sure arguments passed
2004 to min/max have the same type.
2005 * include/bits/locale_facets.tcc (__verify_grouping): Likewise.
2006 * include/bits/stl_deque.h (_Deque_base::_Deque_base): Likewise.
2008 2004-06-22 Benjamin Kosnik <bkoz@redhat.com>
2010 * docs/html/abi.html: Update links.
2012 2004-06-22 Paolo Carlini <pcarlini@suse.de>
2014 * testsuite/26_numerics/complex_inserters_extractors.cc,
2015 complex_value.cc, buggy_complex.cc: Move to...
2016 * testsuite/26_numerics/complex/: ... here.
2017 * testsuite/26_numerics/c99_classification_macros_c++.cc,
2018 c99_classification_macros_c.cc, c_math.cc, c_math_dynamic.cc,
2019 fabs_inline.cc: Move to...
2020 * testsuite/26_numerics/cmath/: ... here.
2021 * testsuite/26_numerics/binary_closure.cc, slice.cc,
2022 slice_array_assignment.cc, valarray.cc, valarray_const_bracket.cc,
2023 valarray_name_lookup.cc, valarray_operators.cc,
2024 valarray_subset_assignment.cc: Move to...
2025 * testsuite/26_numerics/valarray/: ... here (new dir).
2026 * testsuite/26_numerics/sum_diff.cc: Move to...
2027 * testsuite/26_numerics/numeric/: ... here (new dir).
2029 2004-06-22 Paolo Carlini <pcarlini@suse.de>
2031 * include/std/std_istream.h (ignore(streamsize __n = 1,
2032 int_type __delim = traits_type::eof())): Split into...
2033 (ignore(), ignore(streamsize __n), ignore(streamsize __n,
2034 int_type __delim)): The first two can be much more simpler
2035 and efficient than the fully general case; also, the last
2036 two can take advantage of the same mechanism already used
2038 * include/bits/istream.tcc (ignore(streamsize __n = 1,
2039 int_type __delim = traits_type::eof()): Remove.
2040 (ignore(), ignore(streamsize __n), ignore(streamsize __n,
2041 int_type __delim)): New.
2043 2004-06-21 Loren J. Rittle <ljrittle@acm.org>
2045 * config/linker-map.gnu: Use wildcards for
2046 __basic_file::sys_open(FILE*, _Ios_Openmode).
2048 2004-06-20 Paolo Carlini <pcarlini@suse.de>
2050 * testsuite/27_io/basic_istream/ignore/char/3.cc: New.
2052 2004-06-18 Paolo Carlini <pcarlini@suse.de>
2054 * include/ext/mt_allocator (__mt_alloc<>::_Tune): Add _M_align,
2055 the alignment requested.
2056 (__mt_alloc<>::_Tune::_Tune): Tweak consistently.
2057 (__mt_alloc<>::allocate): Use it instead of sizeof(_Block_record).
2058 (__mt_alloc<>::deallocate): Likewise.
2060 2004-06-18 Paolo Carlini <pcarlini@suse.de>
2063 * include/debug/safe_base.h
2064 (_Safe_sequence_base::_Safe_sequence_base(const _Safe_sequence_base&),
2065 _Safe_sequence_base::operator=): Provide definitions.
2066 * testsuite/23_containers/bitset/cons/16020.cc: New.
2068 2004-06-18 Benjamin Kosnik <bkoz@redhat.com>
2070 * include/ext/pool_allocator.h: Qualify __throw_bad_alloc.
2071 (__pool_base): Remove unused template parameter. Add
2072 protected. Move lock data into __pool_base::_Lock. Remove static
2073 on member functions.
2074 (__pool_base::_M_get_free_list): New.
2075 (__pool_alloc): Move _S_force new here.
2076 * src/allocator.cc: Move out of line __pool_base definitions here.
2077 * config/linker-map.gnu: Export bits from __pool_base.
2079 2004-06-18 Paolo Carlini <pcarlini@suse.de>
2081 * config/locale/gnu/numeric_members.cc
2082 (numpunct<wchar_t>::_M_initialize_numpunct): Clean up
2083 assignments of _M_decimal_point and _M_thousands_sep.
2084 * config/locale/gnu/time_members.cc
2085 (__timepunct<wchar_t>::_M_initialize_timepunct): Clean up
2086 and reformat assignments of date and time fields.
2088 2004-06-16 Paolo Carlini <pcarlini@suse.de>
2090 * include/ext/rope (rope(_CharT, const allocator_type&)): Fix
2091 to use _Data_allocate.
2092 * include/ext/ropeimpl.h (rope<>::_S_leaf_concat_char_iter): Likewise.
2093 (rope<>::_S_substring): Likewise.
2094 (rope<>::rope(size_t, _CharT, const allocator_type&)): Likewise.
2095 (rope<>::c_str()): Likewise.
2096 (rope<>::replace_with_c_str()): Likewise.
2098 * include/ext/ropeimpl.h (_Rope_iterator_base<>::_S_setbuf):
2099 Correctly qualify _S_leaf, _S_function, etc., with _Rope_constants::,
2101 (_Rope_iterator_base<>::_S_setcache): Likewise.
2102 (_Rope_iterator_base<>::_S_setcache_for_incr): Likewise.
2103 (rope<>::_S_substring): Likewise.
2104 (rope<>::_S_dump): Likewise.
2105 (rope<>::_S_fetch_ptr): Likewise.
2106 (rope<>::_S_compare): Likewise.
2107 (rope<>::replace_with_c_str()): Likewise.
2109 * testsuite/ext/rope.cc: Rename to testsuite/ext/rope/1.cc.
2110 * testsuite/ext/rope/2.cc: New.
2112 2004-06-16 Paolo Carlini <pcarlini@suse.de>
2113 Matt Austern <austern@apple.com>
2115 * testsuite/ext/rope/3.cc: New.
2117 2004-06-15 Paolo Bonzini <bonzini@gnu.org>
2119 * acinclude.m4: Remove useless multilib configury.
2120 * Makefile.am: Remove useless multilib rules.
2121 * aclocal.m4: Regenerate.
2122 * Makefile.in: Regenerate.
2123 * configure: Regenerate.
2125 2004-06-15 Paolo Carlini <pcarlini@suse.de>
2127 * include/ext/hashtable.h: Trivial formatting fixes.
2128 * include/ext/rb_tree: Likewise.
2130 2004-06-14 Paolo Carlini <pcarlini@suse.de>
2132 * include/ext/hash_map: Trivial formatting fixes.
2133 * include/ext/hash_set: Likewise.
2134 * include/ext/memory: Likewise.
2135 * include/ext/numeric: Likewise.
2137 2004-06-14 Benjamin Kosnik <bkoz@redhat.com>
2139 * Makefile.in: Regenerate with automake 1.8.5.
2141 * include/Makefile.in: Same.
2142 * libmath/Makefile.in: Same.
2143 * libsupc++/Makefile.in: Same.
2144 * po/Makefile.in: Same.
2145 * src/Makefile.in: Same.
2146 * testsuite/Makefile.in: Same.
2148 2004-06-14 Paolo Carlini <pcarlini@suse.de>
2150 * include/ext/slist: Trivial formatting fixes.
2152 2004-06-14 Paolo Carlini <pcarlini@suse.de>
2154 * include/bits/locale_facets.tcc (time_get<>::_M_extract_name):
2155 Don't use the 'magic number' 10 in the computation of __minlen;
2156 never access __name past __minlen; in the loop over __i3, don't
2157 decrease __nmatches and increase __i3 at once, only either of
2160 2004-06-13 Paolo Carlini <pcarlini@suse.de>
2162 * include/bits/locale_facets.tcc (time_get<>::do_get_time,
2163 time_get<>::do_get_date): Use only once _M_extract_via_format,
2164 instead of going through "%X"/"%x" and calling it two times
2167 2004-06-12 Paolo Carlini <pcarlini@suse.de>
2169 * include/ext/algorithm: Trivial formatting fixes.
2170 * include/ext/functional: Likewise.
2171 * include/ext/hash_fun.h: Likewise.
2172 * include/ext/iterator: Likewise.
2174 2004-06-12 Paolo Carlini <pcarlini@suse.de>
2176 * include/bits/basic_string.tcc (find(const _CharT*, size_type,
2177 size_type)): Reimplement using std::search.
2178 * src/string-inst.cc: Instantiate std::search for char/wchar_t.
2180 2004-06-12 Dhruv Matani <dhruvbird@gmx.net>
2182 * testsuite/performance/21_strings/string_find.cc: New.
2184 2004-06-10 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
2186 * include/bits/istream.tcc (istream::ignore): Fix for -Wuninitialized.
2188 2004-06-10 Jan van Dijk <jan@etpmod.phys.tue.nl>
2190 * include/std/std_complex.h (sin(const complex<_Tp>& __z)): Make
2191 this function return a value.
2193 2004-06-09 Paolo Carlini <pcarlini@suse.de>
2196 * include/bits/stl_deque.h: Consistently with stl_set.h, define
2197 pointer as allocator's pointer, likewise for reference,
2198 const_pointer, and const_reference.
2199 * include/bits/stl_list.h: Likewise.
2200 * include/bits/stl_map.h: Likewise.
2201 * include/bits/stl_multimap.h: Likewise.
2202 * include/bits/stl_vector.h: Likewise.
2204 2004-06-09 Benjamin Kosnik <bkoz@redhat.com>
2206 * crossconfig.m4: Remove signbit, signbitf, signbitl.
2207 * linkage.m4: Comment LIBMATHOBJS, tweak others. AC_DEFINES for
2208 builtin math functions instead of AC_DEFINE_UNQUOTED.
2209 * configure: Regenerate.
2211 2004-06-08 Benjamin Kosnik <bkoz@redhat.com>
2213 * docs/doxygen/filter.sed: Rename _GLIBCXX_STD to std.
2214 * docs/doxygen/mainpage.html: Remove links.
2216 2004-06-08 Jason Merrill <jason@redhat.com>
2218 * config/linker-map.gnu: Use wildcards for
2219 __basic_file::{xsgetn,xsputn,seekoff,xsputn_2}.
2221 2004-06-08 Paolo Carlini <pcarlini@suse.de>
2223 * include/ext/pool_allocator.h: Convert to a global free-list,
2224 as per the original SGI/HP design: move the implementation
2225 details to struct __pool_base, from which __pool_alloc derives.
2226 * src/allocator.cc: Instantiate __pool_base.
2228 2004-06-07 Dhruv Matani <dhruvbird@gmx.net>
2229 Paolo Carlini <pcarlini@suse.de>
2231 * testsuite/testsuite_performance.h
2232 (resource_counter::allocated_memory): Make it return the right
2233 number of bytes requested by the allocators/application. This is
2234 the sbrk+mmaped memory.
2236 2004-06-02 Gabriel Dos Reis <gdr@integrable-solutions.net>
2238 * include/std/std_complex.h (log): Tidy.
2240 2004-05-31 Benjamin Kosnik <bkoz@redhat.com>
2242 * config/linker-map.gnu (GLIBCXX_3.4.1): Add.
2243 * testsuite/testsuite_abi.cc: Same.
2244 * configure.ac (libtool_VERSION): Bump to 6:1:0.
2245 * configure: Regenerate.
2246 * aclocal.m4: Regenerate.
2248 2004-05-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
2250 * include/std/std_complex.h (complex<_Tp>): Properly indent
2252 (complex<>::__rep): New.
2253 (__complex_abs): New. Dispatch to built-ins.
2255 (__complex_arg): New. Dispatch to built-ins.
2257 (__complex_cos): New. Dispatch to built-ins.
2259 (__complex_cosh): New. Dispatch to built-ins.
2261 (__complex_exp): New. Dispatch to built-ins.
2263 (__complex_log): New. Dispatch to built-ins.
2265 (__complex_sin): New. Dispatch to built-ins.
2267 (__complex_sinh): New. Dispatch to built-ins.
2269 (__complex_sqrt): New. Dispatch to built-ins.
2271 (__complex_tan): New. Dispatch to built-ins.
2273 (__complex_tanh): New. Dispatch to built-ins.
2275 (__complex_pow): New. Dispatch to built-ins.
2278 2004-05-29 Richard B. Kreckel <Richard.Kreckel@Framatome-ANP.com>
2279 Benjamin Kosnik <bkoz@redhat.com>
2282 * include/ext/stdio_sync_filebuf.h (stdio_sync_filebuf::file): New.
2283 * include/ext/stdio_filebuf.h (stdio_filebuf::file): New.
2284 * config/io/basic_file_stdio.cc (__basic_file::file): New.
2285 * config/io/basic_file_stdio.h: Define.
2287 2004-05-27 Benjamin Kosnik <bkoz@redhat.com>
2290 * docs/html/documentation.html: Update doxygen links for 3.4.0.
2292 2004-05-27 Jan Beulich <jbeulich@novell.com>
2294 * scripts/create_testsuite_files: Tweak.
2296 2004-05-25 Benjamin Kosnik <bkoz@redhat.com>
2299 * scripts/create_testsuite_files: Revert xtype change, add non-GNU
2300 bits to do the same thing.
2302 2004-05-24 Paolo Carlini <pcarlini@suse.de>
2304 * include/bits/istream.tcc (ignore): Correctly deal with
2305 n == numeric_limits<streamsize>::max().
2306 * testsuite/27_io/basic_istream/ignore/char/2.cc: New.
2308 * include/bits/istream.tcc (basic_istream<>::getline): Prefer
2309 '_M_gcount + 1 < __n' to '--__n; _M_gcount < __n', just in case
2310 __n == numeric_limits<>::min().
2312 * include/bits/istream.tcc: Minor tweaks.
2314 * testsuite/21_strings/basic_string/inserters_extractors/char/10.cc:
2316 * testsuite/21_strings/basic_string/inserters_extractors/char/11.cc:
2318 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/10.cc:
2320 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc:
2322 * testsuite/27_io/basic_istream/getline/char/5.cc: Likewise.
2324 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
2327 Fixups for -Weffc++.
2328 * include/bits/basic_string.h (basic_string::operator=): Return
2329 pointer to this instead of result of assign. Although redundant,
2330 this doesn't impact resultant codegen.
2332 * include/bits/locale_facets.h (__numpunct_cache): Declare
2333 assignment opxserator and copy constructor private.
2334 (__timepunct_cache): Same.
2335 (__moneypunct_cache): Same.
2336 (collate): Use member initialization list for _M_c_locale_collate.
2337 * config/locale/gnu/messages_members.h: Same.
2338 * config/locale/gnu/time_members.h (__timepunct): Same.
2339 * src/codecvt.cc: Use member initialization list to initialize
2340 _M_c_locale_codecvt.
2341 * src/ctype.cc: Same, with _M_c_locale_ctype and _M_narrow_ok.
2342 * config/os/gnu-linux/ctype_noninline.h: Same.
2343 * src/locale.cc (_Impl): Same.
2344 * src/locale_init.cc: Same.
2345 * src/localename.cc: Same.
2347 * include/bits/basic_ios.h (basic_ios): Complete member
2348 initialization list.
2349 * include/bits/istream.tcc (basic_istream::sentry): Same.
2350 * include/bits/ostream.tcc (basic_ostream::sentry): Same.
2351 * include/bits/fstream.tcc (basic_filebuf): Add _M_lock and
2352 _M_pback to member initialization list.
2353 * include/std/std_streambuf.h: Same.
2354 * include/std/std_sstream.h: Same, for _M_mode.
2355 * src/ios.cc (ios_base): Same.
2357 * include/ext/rope: Make derived classes match exception
2359 specifications. Add copy constructors and assignment operators.
2361 * include/debug/safe_base.h (_Safe_sequence_base): Declare copy
2362 constructor and assignment operator protected.
2363 (_Safe_iterator_base): Same.
2364 * include/debug/formatter.h (_Error_formatter): Define copy
2365 constructor and assignment operator.
2367 * include/backward/strstream: Declare assignment operator and copy
2368 constructor private.
2370 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
2372 * testsuite/testsuite_hooks.h (func_callback): Declare copy
2373 constructor and assignment operator private.
2374 * testsuite/23_containers/deque/cons/clear_allocator.cc: Match
2375 exception specifications of base class.
2376 * testsuite/23_containers/list/cons/clear_allocator.cc: Same.
2377 * testsuite/23_containers/vector/cons/clear_allocator.cc: Same.
2378 * testsuite/23_containers/vector/bool/clear_allocator.cc: New.
2380 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
2382 * libsupc++/cxxabi.h: Remove duplicated and useless public and
2383 private keywords in class declarations. Format. Use
2384 stddef.h. Expose declarations to "C" compilation.
2385 * libsupc++/tinfo.cc (__upcast_result): Add copy constructor and
2386 assignment operator.
2387 (__dyncast_result): Same.
2388 * libsupc++/vec.cc (uncatch_exception): Same, use member
2389 initialization list.
2391 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
2393 * testsuite/abi_check.cc: Add unistd.h.
2395 2004-05-22 Paolo Carlini <pcarlini@suse.de>
2398 * include/bits/locale_facets.tcc (__int_to_char(unsigned long),
2399 __int_to_char(unsigned long long)): Showpos is not relevant
2401 * testsuite/22_locale/num_put/put/char/15565.cc: New.
2402 * testsuite/22_locale/num_put/put/wchar_t/15565.cc: New.
2404 * testsuite/22_locale/num_put/put/wchar_t/1.cc: Use L for the fill
2406 * testsuite/22_locale/num_put/put/wchar_t/2.cc: Likewise.
2407 * testsuite/22_locale/num_put/put/wchar_t/3.cc: Likewise.
2408 * testsuite/22_locale/num_put/put/wchar_t/4.cc: Likewise.
2409 * testsuite/22_locale/num_put/put/wchar_t/5.cc: Likewise.
2410 * testsuite/22_locale/num_put/put/wchar_t/6.cc: Likewise.
2411 * testsuite/22_locale/num_put/put/wchar_t/8.cc: Likewise.
2413 2004-05-21 Matthias Klose <doko@debian.org>
2415 * docs/doxygen/run_doxygen: Bump required version.
2417 2004-05-21 Benjamin Kosnik <bkoz@redhat.com>
2419 * docs/html/abi.html (libgcc_s): Additions suggested by Matthias Klose.
2420 * docs/doxygen/Intro.3: Subtractions suggested by Phil Edwards.
2422 2004-05-21 Paolo Carlini <pcarlini@suse.de>
2424 * include/bits/istream.tcc (ignore): Remove redundant line.
2425 (readsome): Tidy, closely following 27.6.1.3, p30.
2427 2004-05-20 Paolo Carlini <pcarlini@suse.de>
2429 * include/bits/istream.tcc (operator>>(basic_istream<>&,
2430 basic_string<>&)): Use a temporary buffer, thus avoiding
2431 reallocation for common case.
2432 * testsuite/21_strings/basic_string/inserters_extractors/char/11.cc:
2434 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc:
2437 * include/bits/istream.tcc: Const-ification of a few variables.
2439 * include/bits/ostream.tcc: Trivial formatting fixes and
2440 const-ification of some variables.
2442 2004-05-20 Benjamin Kosnik <bkoz@redhat.com>
2446 * docs/doxygen/Intro.3: Remove Allocators.3.
2447 Add new extension headers, extension namespace list.
2448 * docs/doxygen/run_doxygen (problematic): Remove Allocators.3
2449 Rename GLIBCXXSTD names to std::. Rename __gnu_debug to
2450 __gnu_debug::. Remove __policy_ renames.
2451 * docs/doxygen/guide.html: Add dot note.
2452 * docs/doxygen/stdheader.cc: Edit, add files.
2453 * docs/doxygen/user.cfg.in: Regenerate with Doxygen 1.3.7.
2455 2004-05-18 Jonathan Wakely <redi@gcc.gnu.org>
2457 * include/ext/stdio_filebuf.h: Update comments to reflect PR 11691.
2459 2004-05-18 Jan Beulich <jbeulich@novell.com>
2462 * scripts/create_testsuite_files: Also find source files through
2465 2004-05-18 Jan Beulich <jbeulich@novell.com>
2468 * testsuite/lib/libstdc++.exp: Make test files writable.
2470 2004-05-18 Paolo Carlini <pcarlini@suse.de>
2472 * include/ext/mt_allocator.h:(__mt_alloc::allocate): Minor
2475 2004-05-18 Dhruv Matani <dhruvbird@gmx.net>
2477 * include/ext/mt_allocator.h:(__mt_alloc::allocate): Re-write
2478 allocation loop which removes blocks from the global free list
2479 from O(N) to O(1) when the required blocks are <= the number
2482 2004-05-18 Jonathan Wakely <redi@gcc.gnu.org>
2484 * include/ext/enc_filebuf.h: Move concept-check macro to class scope.
2486 2004-05-17 Benjamin Kosnik <bkoz@redhat.com>
2488 * testsuite/testsuite_hooks.h (__gnu_test::conversion): New class.
2489 * testsuite/23_containers/deque/14340.cc: New.
2490 * testsuite/23_containers/list/14340.cc: New.
2491 * testsuite/23_containers/map/14340.cc: New.
2492 * testsuite/23_containers/multimap/14340.cc: New.
2493 * testsuite/23_containers/multiset/14340.cc: New.
2494 * testsuite/23_containers/set/14340.cc: New.
2495 * testsuite/23_containers/vector/14340.cc: New.
2497 2004-05-17 Douglas Gregor <gregod@cs.rpi.edu>
2500 * include/debug/safe_iterator.h (_Safe_iterator converting
2501 constructor): Only allow declaration to instantiate when the
2502 incoming _Safe_iterator has exactly the right iterator type.
2504 2004-05-17 Jonathan Wakely <redi@gcc.gnu.org>
2506 * include/bits/boost_concept_check.h: Fix old attribute syntax.
2507 * testsuite/23_containers/map/modifiers/swap.cc: Define operator<
2508 to pass concept-checks.
2509 * testsuite/23_containers/multimap/modifiers/swap.cc: Same.
2510 * testsuite/23_containers/set/modifiers/swap.cc: Same.
2511 * testsuite/23_containers/multiset/modifiers/swap.cc: Same.
2513 2004-05-16 Paolo Carlini <pcarlini@suse.de>
2515 * include/std/std_bitset.h: Minor formatting fixes.
2517 2004-05-16 Paolo Carlini <pcarlini@suse.de>
2519 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
2520 Consistently update __bin._M_free[0].
2521 (__mt_alloc<>::allocate): When __bin._M_first[0] != NULL use
2522 __bin._M_free[0] to simplify the while loop (i.e., the number
2523 of iterations becomes known at the outset).
2525 2004-05-15 Paolo Carlini <pcarlini@suse.de>
2527 * include/std/std_bitset.h: Trivial formatting fixes.
2529 2004-05-14 Paolo Carlini <pcarlini@suse.de>
2530 Ivan Godard <igodard@pacbell.net>
2533 * include/std/std_bitset.h (_Base_bitset<_Nw>::_M_do_find_next): Fix.
2534 * testsuite/23_containers/bitset/ext/15361.cc: New.
2536 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
2539 * crossconfig.m4: Add C99 math bits for linux crosses.
2540 * configure: Regenerate.
2542 2004-05-13 Simon Marshall <simon.marshall@misys.com>
2543 Benjamin Kosnik <bkoz@redhat.com>
2546 * include/bits/locale_facets.h: Fix for -fno-for-scope.
2547 * include/debug/safe_sequence.h: Same.
2548 * include/debug/safe_iterator.tcc: Same.
2549 * src/debug.cc: Same.
2550 * src/locale.cc: Same.
2551 * src/locale_init.cc: Same.
2552 * src/localename.cc: Same.
2553 * config/locale/gnu/ctype_members.cc: Same.
2554 * config/locale/gnu/numeric_members.cc: Same.
2555 * testsuite/testsuite_abi.cc: Same.
2556 * testsuite/testsuite_hooks.cc: Same.
2558 2004-05-13 Jonathan Wakely <redi@gcc.gnu.org>
2560 * docs/html/abi.html: Document effect of -fabi-version on value
2561 of __GXX_ABI_VERSION, and that it's defined in c-cppbuiltin.c.
2564 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
2567 * docs/html/faq/index.html: Update docs for libsupc++ usage.
2569 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
2572 * include/bits/stl_threads.h (_GLIBCXX_mutex): Move to namespace
2574 (_GLIBCXX_mutex_address): Same.
2575 (_GLIBCXX_once): Same.
2576 (_GLIBCXX_mutex_init): Same.
2577 (_GLIBCXX_mutex_address_init): Same.
2579 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
2581 * docs/html/abi.html: New.
2582 * docs/html/abi.txt: Remove.
2583 * docs/html/documentation.html: Add link.
2584 * testsuite/Makefile.am: Add files.
2585 * testsuite/Makefile.in: Regenerated.
2586 * testsuite/abi_check.cc: Move and modify code into...
2587 * testsuite/testsuite_abi.cc: Add.
2588 * testsuite/testsuite_abi.h: Add.
2590 * docs/html/17_intro/TODO: Update.
2591 * include/bits/stl_pair.h: Format.
2593 2004-05-06 Matthias Klose <doko@debian.org>
2595 * include/backward/iterator.h: Add GPL copyright info,
2596 with exception clause.
2597 * include/bits/boost_concept_check.h: Likewise.
2599 * libsupc++/tinfo.h: Likewise.
2600 * po/string_literals.cc: Likewise.
2602 2004-05-03 Andreas Tobler <a.tobler@schweiz.ch>
2604 * acinclude.m4: Replace -W with more speaking -Wextra.
2605 * configure: Rebuilt.
2607 2004-05-03 Paolo Carlini <pcarlini@suse.de>
2609 Optimize locale::_M_impl->_M_names for the most common cases:
2610 !_M_names[0] means unnamed; !_M_names[1] means all the categories
2611 the same name (_M_names[0] && _M_names[1] means that the full set
2612 of _M_names must be processed, the general case).
2613 * include/bits/locale_classes.h (locale::_Impl::_M_check_same_name):
2614 Tweak, saving work when !_M_names[1].
2615 (locale::locale(const locale&, _Facet*): Simplify: now just setting
2616 _M_names[0] = 0 means unnamed.
2617 * src/locale.cc (locale::operator==): Deal first with the common,
2618 easy cases, otherwise fall back to locale::name().
2619 (locale::name()): Tweak, if !_M_names[0] just return "*".
2620 (locale::_Impl::_Impl(const _Impl&, size_t): Tweak, early stop
2621 copying __imp._M_names if !__imp._M_names[0] or !__imp._M_names[1].
2622 * src/locale_init.cc (locale::_Impl::_Impl(size_t)): Tweak.
2623 * src/localename.cc (locale::_Impl::_Impl(const char*, size_t):
2624 Simplify when !std::strchr, just updating _M_names[0]; clean up.
2625 (locale::_Impl::_M_replace_categories): When !_M_names[1] prepare
2626 for the general case (full set of names), then do the usual work;
2629 * src/locale.cc (locale::name()): Reserve space in __ret.
2630 * src/locale_init.cc (locale::global(const locale&)): Save
2631 the name in a temporary.
2632 * src/localename.cc (locale::locale(const char*)): Reserve space
2635 2004-04-29 Paolo Carlini <pcarlini@suse.de>
2637 * src/locale.cc (locale::operator==): Always avoid constructing
2638 locale::name(), directly compare pairs of _M_names.
2640 2004-04-26 Paolo Carlini <pcarlini@suse.de>
2642 * include/bits/istream.tcc: Fix comment.
2644 2004-04-26 Paolo Carlini <pcarlini@suse.de>
2646 * include/bits/stl_vector.h: Trivial formatting fixes.
2647 * include/bits/vector.tcc: Likewise.
2649 2004-04-25 Paolo Carlini <pcarlini@suse.de>
2651 PR libstdc++/15002 (continued again)
2652 * include/bits/istream.tcc (getline(basic_istream<>&,
2653 basic_string<>&, _CharT)): Use a temporary buffer, thus
2654 avoiding reallocation for common case.
2656 * include/bits/basic_string.tcc (_S_construct(_InIterator,
2657 _InIterator, const _Alloc&, input_iterator_tag)): Tweak size
2658 of temporary buffer to a power of two.
2660 * testsuite/27_io/basic_istream/getline/char/4.cc: Add comment.
2662 2004-04-25 Paolo Carlini <pcarlini@suse.de>
2664 * testsuite/21_strings/basic_string/inserters_extractors/char/10.cc:
2666 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/10.cc:
2668 * testsuite/27_io/basic_istream/getline/char/5.cc: Likewise.
2670 2004-04-24 Paolo Carlini <pcarlini@suse.de>
2671 Petur Runolfsson <peturr02@ru.is>
2673 PR libstdc++/15002 (continued)
2674 * include/bits/istream.tcc (basic_istream<>::getline(char_type*,
2675 streamsize, char_type)): Use traits::find/copy in a loop to speed
2676 up greatly the function in the common case (I/O buffer size >> 1).
2678 2004-04-24 Paolo Carlini <pcarlini@suse.de>
2680 * testsuite/27_io/basic_istream/getline/char/4.cc: New.
2682 * include/bits/istream.tcc (getline(basic_istream<>&,
2683 basic_string<>&, _CharT)): Change to use sgetc()/snextc() instead
2684 of sbumpc(), consistently with the other functions, thus also
2685 dealing correctly with the case of exceeded string::max_size().
2687 2004-04-24 Matthias Klose <doko@debian.org>
2689 Jonathan Wakely <cow@compsoc.man.ac.uk>
2690 * docs/html/configopts.html: Fix reference to allocator config option.
2692 2004-04-23 Andrew Pinski <pinskia@physics.uc.edu>
2694 * linkage.m4 (GLIBCXX_CHECK_MATH_SUPPORT): Check for libmx also.
2695 * configure: Regenerate.
2697 2004-04-23 Daniel Jacobowitz <drow@mvista.com>
2699 PR libstdc++/15047, libstdc++/11610
2700 * testsuite/lib/libstdc++.exp (v3-copy-files): Use remote_download.
2701 (libstdc++_init): Don't pass outdir to v3-copy-files.
2703 2004-04-21 Paolo Carlini <pcarlini@suse.de>
2705 * include/bits/deque.tcc: Trivial formatting fixes.
2706 * include/bits/stl_deque.h: Likewise.
2707 * include/bits/stl_list.h: Likewise.
2708 * include/bits/stl_tree.h: Likewise.
2710 2004-04-21 Paolo Carlini <pcarlini@suse.de>
2711 Andrew Pinski <pinskia@physics.uc.edu>
2713 * include/bits/basic_string.tcc (_M_mutate): Don't compute
2714 __src unnecessarily.
2716 2004-04-19 Benjamin Kosnik <bkoz@redhat.com>
2718 * testsuite/27_io/basic_istream/extractors_character/char/9555-ic.cc:
2719 Clarify assertion, set test variable to false before assert.
2720 * testsuite/27_io/basic_istringstream/str/char/1.cc: Same.
2721 * testsuite/27_io/basic_stringstream/str/char/1.cc: Same.
2722 * testsuite/27_io/ios_base/storage/2.cc: Same.
2724 * testsuite/27_io/basic_filebuf/imbue/char/13171-4.cc: Fix
2726 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-3.cc: Same.
2727 * testsuite/27_io/fpos/14320-3.cc: Same.
2729 * testsuite/27_io/basic_filebuf/2.cc: Instantiate in namespace std.
2730 * testsuite/27_io/fpos/1.cc: Same.
2731 * testsuite/27_io/basic_stringstream/2.cc: Same.
2732 * testsuite/27_io/basic_stringbuf/4.cc: Same.
2733 * testsuite/27_io/basic_stringbuf/1.cc: Same.
2734 * testsuite/27_io/basic_stringbuf/2.cc: Same.
2735 * testsuite/27_io/basic_streambuf/2.cc: Same.
2736 * testsuite/27_io/basic_ostringstream/2.cc: Same.
2737 * testsuite/27_io/basic_ostream/2.cc: Same.
2738 * testsuite/27_io/basic_ofstream/2.cc: Same.
2739 * testsuite/27_io/basic_istringstream/2.cc: Same.
2740 * testsuite/27_io/basic_istream/2.cc: Same.
2741 * testsuite/27_io/basic_iostream/2.cc: Same.
2742 * testsuite/27_io/basic_ios/2.cc: Same.
2743 * testsuite/27_io/basic_ifstream/2.cc: Same.
2744 * testsuite/27_io/basic_fstream/2.cc: Same.
2745 * testsuite/ext/stdio_filebuf/char/1.cc: Same, in namespace __gnu_cxx.
2747 * testsuite/21_strings/basic_string/capacity/1.cc: Don't compare
2748 unsigned against zero.
2749 * testsuite/21_strings/basic_string/capacity/wchar_t/1.cc: Same.
2750 * testsuite/21_strings/basic_string/capacity/char/1.cc: Same.
2752 * testsuite/18_support/new_delete_placement.cc: Initialize
2753 variables before first use.
2754 * testsuite/21_strings/char_traits/requirements/wchar_t/1.cc: Same.
2755 * testsuite/21_strings/char_traits/requirements/char/1.cc: Same.
2756 * testsuite/21_strings/char_traits/requirements/short/1.cc: Same.
2757 * testsuite/27_io/basic_istream/seekg/char/exceptions_badbit_throw.cc:
2759 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/exceptions_badbit_throw.cc: Same.
2760 * testsuite/27_io/basic_ostream/seekp/char/exceptions_badbit_throw.cc:
2762 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/exceptions_failbit_throw.cc: Same.
2763 * testsuite/27_io/types/2.cc: Same.
2765 * testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc: Fix temporary
2767 * testsuite/27_io/fpos/14775.cc: Same.
2769 2004-04-19 Paolo Carlini <pcarlini@suse.de>
2771 PR libstdc++/15002 (partial)
2772 * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
2773 Special case __n2 == 1, not calling traits_type::assign/copy.
2775 2004-04-17 Benjamin Kosnik <bkoz@redhat.com>
2777 * include/bits/stl_bvector.h: Use _M_impl._M_start.
2779 2004-04-16 Benjamin Kosnik <bkoz@redhat.com>
2781 * include/bits/c++config (_GLIBCXX_STD): New.
2782 * src/list.cc: Use it.
2783 * include/std/std_bitset.h: Same.
2784 * include/bits/vector.tcc: Same.
2785 * include/bits/stl_set.h: Same.
2786 * include/bits/stl_multiset.h: Same.
2787 * include/bits/stl_multimap.h: Same.
2788 * include/bits/stl_map.h: Same.
2789 * include/bits/stl_list.h: Same.
2790 * include/bits/stl_vector.h: Same.
2791 * include/bits/stl_bvector.h: Same.
2792 * include/bits/stl_deque.h: Same.
2793 * include/bits/deque.tcc: Same.
2794 * include/bits/list.tcc: Same.
2795 * include/debug/vector: Same.
2796 * include/debug/set.h: Same.
2797 * include/debug/multiset.h: Same.
2798 * include/debug/multimap.h: Same.
2799 * include/debug/map.h: Same.
2800 * include/debug/list: Same.
2801 * include/debug/deque: Same.
2802 * include/debug/bitset: Same.
2803 * include/debug/formatter.h (__gnu_debug): Remove using directive.
2804 Add using declaration for std::type_info.
2805 * include/debug/safe_iterator.h: Add using declaration for
2806 std::iterator_traits and std::pair.
2807 * src/debug_list.cc: New.
2808 * src/Makefile.am: Add debug_list.cc.
2809 * src/Makefile.in: Regenerate.
2810 * config/linker-map.gnu: Add _List_node_base exports for std and
2813 * include/bits/stl_bvector.h (_Bvector_base): Use _Bvector_impl
2814 idiom that other containers use.
2815 * testsuite/23_containers/vector/bool/clear_allocator.cc: New.
2817 2004-04-16 Paolo Carlini <pcarlini@suse.de>
2820 * include/bits/fstream.tcc (basic_filebuf::imbue): Zero _M_codecvt
2822 * testsuite/27_io/basic_filebuf/imbue/char/14975-1.cc: New.
2823 * testsuite/27_io/basic_filebuf/imbue/wchar_t/14975-2.cc: New.
2825 2004-04-16 Paolo Carlini <pcarlini@suse.de>
2827 * acconfig.h: Remove _GLIBCXX_USE_LONG_DOUBLE entry, not
2829 * config.h.in: Regenerate.
2831 2004-04-16 Paolo Carlini <pcarlini@suse.de>
2833 * config/locale/generic/monetary_members.cc
2834 (moneypunct<wchar_t>::_M_initialize_moneypunct): Avoid calling
2835 btowc unnecessarily, just cast to wchar_t (the concerned chars
2836 all belong to the basic character set).
2837 * config/locale/generic/numeric_members.cc
2838 (numpunct<wchar_t>::_M_initialize_numpunct): Likewise.
2839 * config/locale/gnu/monetary_members.cc
2840 (moneypunct<wchar_t>::_M_initialize_moneypunct): Likewise.
2841 * config/locale/gnu/numeric_members.cc
2842 (numpunct<wchar_t>::_M_initialize_numpunct): Likewise.
2844 2004-04-15 Paolo Carlini <pcarlini@suse.de>
2846 * src/locale.cc (locale::operator==): When _M_impl == __rhs._M_impl
2847 avoid constructing unnecessarily this->name().
2849 2004-04-14 Zack Weinberg <zack@codesourcery.com>
2851 * testsuite/Makefile.am: Add definition of AM_CXXFLAGS.
2852 Change definition of CXX to use $(shell) instead of backticks.
2853 * testsuite/Makefile.in: Regenerate.
2855 2004-04-12 Dhruv Matani <dhruvbird@gmx.net>
2857 * testsuite/performance/20_util/allocator/list_sort_search.cc:
2858 Minor formatting fixes.
2859 * testsuite/performance/20_util/allocator/map_mt_find.cc:
2862 2004-04-12 Paolo Carlini <pcarlini@suse.de>
2864 * config/locale/gnu/numeric_members.cc
2865 (numpunct<wchar_t>::_M_initialize_numpunct): No need to wrap
2866 in __uselocale, since btowc is called for chars belonging to
2867 the basic character set.
2869 2004-04-09 Paolo Carlini <pcarlini@suse.de>
2871 * testsuite/22_locale/messages/members/char/1.cc: Remove junk.
2872 * testsuite/22_locale/messages/members/char/2.cc: Ditto.
2873 * testsuite/22_locale/messages/members/char/3.cc: Ditto.
2874 * testsuite/22_locale/num_get/get/char/1.cc: Ditto.
2875 * testsuite/22_locale/num_get/get/char/2.cc: Ditto.
2876 * testsuite/22_locale/num_get/get/char/3.cc: Ditto.
2877 * testsuite/22_locale/num_get/get/wchar_t/1.cc: Ditto.
2878 * testsuite/22_locale/num_get/get/wchar_t/2.cc: Ditto.
2879 * testsuite/22_locale/num_get/get/wchar_t/3.cc: Ditto.
2880 * testsuite/22_locale/num_put/put/char/1.cc: Ditto.
2881 * testsuite/22_locale/num_put/put/char/2.cc: Ditto.
2882 * testsuite/22_locale/num_put/put/char/3.cc: Ditto.
2883 * testsuite/22_locale/num_put/put/wchar_t/1.cc: Ditto.
2884 * testsuite/22_locale/num_put/put/wchar_t/2.cc: Ditto.
2885 * testsuite/22_locale/num_put/put/wchar_t/3.cc: Ditto.
2886 * testsuite/22_locale/numpunct/members/char/1.cc: Ditto.
2887 * testsuite/22_locale/numpunct/members/wchar_t/1.cc: Ditto.
2889 2004-04-07 Paolo Carlini <pcarlini@suse.de>
2891 * config/locale/generic/time_members.cc
2892 (__timepunct<char>::_M_initialize_timepunct,
2893 __timepunct<wchar_t>::_M_initialize_timepunct): the correct
2894 _M_amonth07 in the "C" locale is "Jul" and L"Jul", respectively.
2895 * config/locale/gnu/time_members.cc
2896 (__timepunct<char>::_M_initialize_timepunct,
2897 __timepunct<wchar_t>::_M_initialize_timepunct): Ditto.
2898 * testsuite/22_locale/time_get/get_monthname/char/4.cc: New.
2899 * testsuite/22_locale/time_get/get_monthname/wchar_t/4.cc: New.
2901 * testsuite/22_locale/time_get/date_order/char/1.cc: Remove junk.
2902 * testsuite/22_locale/time_get/date_order/wchar_t/1.cc: Ditto.
2903 * testsuite/22_locale/time_get/get_date/char/1.cc: Ditto.
2904 * testsuite/22_locale/time_get/get_date/char/2.cc: Ditto.
2905 * testsuite/22_locale/time_get/get_date/wchar_t/1.cc: Ditto.
2906 * testsuite/22_locale/time_get/get_date/wchar_t/2.cc: Ditto.
2907 * testsuite/22_locale/time_get/get_monthname/char/1.cc: Ditto.
2908 * testsuite/22_locale/time_get/get_monthname/char/2.cc: Ditto.
2909 * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Ditto.
2910 * testsuite/22_locale/time_get/get_monthname/wchar_t/2.cc: Ditto.
2911 * testsuite/22_locale/time_get/get_time/char/1.cc: Ditto.
2912 * testsuite/22_locale/time_get/get_time/char/2.cc: Ditto.
2913 * testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Ditto.
2914 * testsuite/22_locale/time_get/get_time/wchar_t/2.cc: Ditto.
2915 * testsuite/22_locale/time_get/get_weekday/char/1.cc: Ditto.
2916 * testsuite/22_locale/time_get/get_weekday/char/2.cc: Ditto.
2917 * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Ditto.
2918 * testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc: Ditto.
2919 * testsuite/22_locale/time_get/get_year/char/1.cc: Ditto.
2920 * testsuite/22_locale/time_get/get_year/wchar_t/1.cc: Ditto.
2921 * testsuite/22_locale/time_put/put/char/1.cc: Ditto.
2922 * testsuite/22_locale/time_put/put/char/2.cc: Ditto.
2923 * testsuite/22_locale/time_put/put/char/3.cc: Ditto.
2924 * testsuite/22_locale/time_put/put/char/4.cc: Ditto.
2925 * testsuite/22_locale/time_put/put/char/5.cc: Ditto.
2926 * testsuite/22_locale/time_put/put/char/6.cc: Ditto.
2927 * testsuite/22_locale/time_put/put/char/7.cc: Ditto.
2928 * testsuite/22_locale/time_put/put/char/8.cc: Ditto.
2929 * testsuite/22_locale/time_put/put/wchar_t/1.cc: Ditto.
2930 * testsuite/22_locale/time_put/put/wchar_t/2.cc: Ditto.
2931 * testsuite/22_locale/time_put/put/wchar_t/3.cc: Ditto.
2932 * testsuite/22_locale/time_put/put/wchar_t/4.cc: Ditto.
2933 * testsuite/22_locale/time_put/put/wchar_t/5.cc: Ditto.
2934 * testsuite/22_locale/time_put/put/wchar_t/6.cc: Ditto.
2935 * testsuite/22_locale/time_put/put/wchar_t/7.cc: Ditto.
2936 * testsuite/22_locale/time_put/put/wchar_t/8.cc: Ditto.
2938 * testsuite/22_locale/time_put/put/char/9780-1.cc: Fix typos.
2940 2004-04-07 Paolo Carlini <pcarlini@suse.de>
2942 * config/locale/gnu/monetary_members.cc
2943 (moneypunct<wchar_t>::_M_initialize_moneypunct): Prefer
2944 _NL_MONETARY_DECIMAL_POINT_WC, _NL_MONETARY_THOUSANDS_SEP_WC,
2945 and __MON_GROUPING to _NL_NUMERIC_DECIMAL_POINT_WC,
2946 _NL_NUMERIC_THOUSANDS_SEP_WC, and GROUPING.
2947 * config/locale/gnu/numeric_members.cc
2948 (numpunct<char>::_M_initialize_numpunct): Prefer DECIMAL_POINT
2949 and THOUSANDS_SEP to the deprecated RADIXCHAR and THOUSEP.
2951 2004-04-06 Benjamin Kosnik <bkoz@redhat.com>
2953 Fixups for EDG front end.
2954 * include/ext/rope: Instead of non-existent function
2955 _Data_allocate, use allocator's allocate. Use this.
2956 (namespace _Rope_constants): Move _S_max_rope_depth, and _Tag
2957 enumerations from _Rope_RopeRep here.
2958 * include/ext/ropeimpl.h: Same.
2959 * src/ext-inst.cc (_S_min_len): Fix up definition.
2961 * config/locale/gnu/ctype_members.cc: Qualify base class members
2963 * config/locale/generic/ctype_members.cc: Same.
2964 * config/locale/gnu/messages_members.h: Same.
2965 * config/locale/generic/messages_members.h: Same.
2966 * src/ctype.cc: Same.
2967 * include/bits/codecvt.h: Same.
2969 * include/bits/boost_concept_check.h: Declare.
2970 (__error_type_must_be_an_unsigned_integer_type): Remove this.
2971 (__error_type_must_be_an_integer_type): Remove this.
2972 (__error_type_must_be_a_signed_integer_type): Remove this.
2974 * config/io/basic_file_stdio.cc (__basic_file::sys_open): Remove cast.
2976 * libsupc++/eh_alloc.cc (__cxa_free_exception): Add exception
2977 specification to definition.
2978 (__cxa_allocate_exception): Same.
2979 * libsupc++/eh_catch.cc (__cxa_begin_catch): Same.
2980 * libsupc++/eh_globals.cc (__cxa_get_globals_fast): Same.
2981 (__cxa_get_globals): Same.
2983 * libsupc++/del_op.cc: Add comment about freestanding.
2985 2004-04-05 Paolo Carlini <pcarlini@suse.de>
2987 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
2988 The critical section is actually very small, only two assignments.
2990 2004-04-04 Paolo Carlini <pcarlini@suse.de>
2991 Petur Runolfsson <peturr02@ru.is>
2993 * testsuite/performance/27_io/filebuf_sputn_unbuf.cc: New,
2994 adapted from libstdc++/11378.
2996 2004-04-03 Paolo Carlini <pcarlini@suse.de>
2998 * include/ext/mt_allocator.h (__mt_alloc<>::allocate): Factor out
2999 some duplicated code.
3000 (__mt_alloc<>::_Bin_record): Spare the space of _M_free and _M_used
3001 in the single threaded case.
3002 * testsuite/performance/20_util/allocator/list_sort_search.cc:
3003 Reorder and renumber the tests consistently with the other testfiles.
3004 * testsuite/performance/20_util/allocator/map_mt_find.cc: Ditto.
3005 * testsuite/performance/20_util/allocator/map_thread.cc: Ditto.
3006 * testsuite/performance/20_util/allocator/producer_consumer.cc: Ditto.
3008 2004-04-02 Paolo Carlini <pcarlini@suse.de>
3010 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
3011 Rearrange arithmetic to avoid computing two divisions at
3014 2004-04-01 Paolo Carlini <pcarlini@suse.de>
3016 * include/ext/mt_allocator.h (__mt_alloc<>::_S_initialize):
3017 Streamline the second half, wrapping it in a single
3018 '#ifdef __GTHREADS if (__gthread_active_p())' and avoiding
3019 conditionals inside loops.
3021 2004-04-01 Paolo Carlini <pcarlini@suse.de>
3024 * acconfig.h: Rename _GLIBCXX_MEM_LIMITS to _GLIBCXX_RES_LIMITS.
3025 * acinclude.m4 (GLIBCXX_CHECK_SETRLIMIT): Call
3026 GLIBCXX_CHECK_SETRLIMIT_ancilliary for FSIZE too, adjust define
3027 to _GLIBCXX_RES_LIMITS.
3028 (GLIBCXX_CHECK_SETRLIMIT_ancilliary): Rename HAVE_MEMLIMIT_* to
3030 * testsuite/testsuite_hooks.h: Declare set_file_limit.
3031 * testsuite/testsuite_hooks.cc: Define it, using getrlimit
3032 and setrlimit(RLIMIT_FSIZE).
3033 * testsuite/27_io/fpos/14775.cc: New.
3034 * config.h.in: Regenerate.
3035 * configure: Likewise.
3037 2004-03-31 Paolo Carlini <pcarlini@suse.de>
3039 * config/locale/generic/c_locale.cc (__convert_to_v(long double&)):
3040 In v3 uses of sscanf, the special floating-point numbers INF,
3041 INFINITY, etc., cannot occur in input, therefore, if the latter
3042 is too large, ERANGE is always stored in errno, no need of finitel.
3044 2004-03-30 Benjamin Kosnik <bkoz@redhat.com>
3047 * include/bits/stl_tree.h: Adjust initialization list order.
3049 2004-03-29 Loren J. Rittle <ljrittle@acm.org>
3051 * testsuite/thread/pthread7-rope.cc: Update comment to reflect test.
3053 2004-03-29 Paolo Carlini <pcarlini@suse.de>
3055 * testsuite/thread/pthread7-rope.cc: Fix, unpredictably, depending
3056 on allocator behavior, the memory pointed by data2 may well be not
3059 2004-03-28 Chavdar Botev <cbotev@yahoo.com>
3062 * include/bits/basic_string.tcc
3063 (basic_string::basic_string(const basic_string&)): Pass to
3064 _Rep::_M_grab the actual allocator of the string being constructed
3065 not the default constructed one.
3067 2004-03-27 Benjamin Kosnik <bkoz@redhat.com>
3070 * config/locale/ieee_1003.1-2001/codecvt_specializations.h
3071 (__enc_traits::_M_destroy): New.
3072 (__enc_traits::~__enc_traits): Use it.
3073 (__enc_traits::operator=): Use _M_destroy, _M_init.
3074 (__enc_traits::__enc_traits): Same.
3076 2004-03-27 Petur Runolfsson <peturr02@ru.is>
3078 * testsuite/ext/enc_filebuf/char/13598.cc: New.
3080 2004-03-27 Paolo Carlini <pcarlini@suse.de>
3082 * include/ext/mt_allocator.h: Uglify consistently names of
3083 variables, members and classes; tidy.
3085 2004-03-27 Dhruv Matani <dhruvbird@gmx.net>
3087 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
3088 Deallocation loop rewrote.
3090 2004-03-26 Paolo Carlini <pcarlini@suse.de>
3092 * include/ext/mt_allocator.h (__mt_alloc<>::allocate,
3093 __mt_alloc<>::deallocate): Protect two instances of
3094 block->thread_id with __GTHREADS.
3096 2004-03-25 Gawain Bolton <gp.bolton@computer.org>
3098 * include/bits/stl_tree.h (_Rb_tree_impl): Add _Node_allocator
3099 default argument in constructors.
3100 (_Rb_tree::_M_empty_initialize): Remove.
3102 2004-03-25 Benjamin Kosnik <bkoz@redhat.com>
3104 * testsuite/23_containers/map/operators/1_neg.cc: Adjust line numbers.
3105 * testsuite/23_containers/set/operators/1_neg.cc: Same.
3107 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
3109 * include/bits/cpp_type_traits.h: Changed __is_pod
3110 completely. Now, it does not use any of the previous type_traits
3111 to detect the pod types, and it also detects function pointers as
3114 * include/bits/stl_tree.h: Introduced a new class _Rb_tree_impl,
3115 which encapsulates the internal implementation of an rb_tree. Made
3116 the allocator a base class of this class instead of the rb_tree,
3117 which was not conforming. This _Rb_tree_impl class is also
3118 specialized on whether the _Compare parameter is a POD type or
3119 not. If so, then it maintains the comparison function as a data
3120 member, otherwise it makes the _Compare parameter a base class of
3121 itself. Also, _M_key_compare is now a function instead of a data
3122 member, so that the above trick can work properly. Delegated the
3123 initialization of the other data members to this newly created
3124 class. Also, now other member functions of rb_tree must refer to
3125 _M_key_compare as _M_impl._M_key_compare(). The other data members
3126 (*) can be referenced to as _M_impl.(*), where
3127 (*) includes _M_header, and _M_node_count.
3129 2004-03-25 Paolo Carlini <pcarlini@suse.de>
3131 * include/ext/mt_allocator.h (__mt_alloc<>::tune):
3132 Add _M_min_bin, the size in bytes of the smallest bin.
3133 (__mt_alloc<>::tune()): Tweak accordingly.
3134 (__mt_alloc<>::tune(size_t, ...)): Likewise.
3135 (__mt_alloc<>::block_record): Change to a union: members next
3136 and thread_id are never used at the same time.
3137 (__mt_alloc<>::allocate): Update consistently.
3138 (__mt_alloc<>::deallocate): Likewise.
3139 (__mt_alloc<>::_S_initialize): Update setups of _S_binmap and
3140 _S_bin_size for the configurable _M_min_size.
3142 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
3144 * include/bits/stl_list.h: Created a _List_impl class and made it
3145 derive from the allocator, instead of the list deriving from the
3146 allocator class, which was not conformant. Changed all references
3147 from this->_M_node to this->_M_impl._M_node * bits/list.tcc: Same
3148 as above (changed all references to the concerned variables).
3150 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
3152 * include/bits/stl_deque.h: Created a _Deque_impl class and made
3153 it derive from the allocator, instead of the deque deriving from
3154 the allocator class, which was not conformant. Changed all
3155 references to the _M_start, _M_finish, _M_map, and _M_map_size to
3157 (_Deque_base<_Tp,_Alloc>::~_Deque_base()): Added this->
3158 qualification in 2 places where it was missing.
3159 (_Deque_base<_Tp,_Alloc>::_M_initialize_map(size_t)): Same as
3161 * include/bits/deque.tcc: Same as above (changed all references to
3162 the concerned variables).
3164 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
3166 * include/bits/stl_vector.h: Created a _Vector_impl class and made
3167 it derive from the allocator, instead of the _Vector_base class,
3168 deriving from the allocator which was not conformant. Changed all
3169 references to the _M_start, _M_finish, and _M_end_of_storage to
3171 * include/bits/vector.tcc: Same as above (changed all references
3172 to the concerned variables).
3174 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
3176 * testsuite/23_containers/deque/cons/clear_allocator.cc: New.
3177 * testsuite/23_containers/list/cons/clear_allocator.cc: New.
3178 * testsuite/23_containers/vector/cons/clear_allocator.cc: New.
3180 2004-03-24 Dhruv Matani <dhruvbird@gmx.net>
3182 * include/ext/malloc_allocator.h: Fixed the construct function to
3183 call global placement new instead of assignment. Added a check
3184 after the return from malloc to check whether returned pointer is
3185 NULL, and if so, throw std::bad_alloc().
3186 * include/ext/debug_allocator.h: Added a check in the deallocate
3187 function to check whether the user has passed a NULL pointer or
3190 2004-03-24 Benjamin Kosnik <bkoz@redhat.com>
3192 * docs/html/20_util/allocator.html: Add bitmap_allocator links.
3194 2004-03-24 Andreas Schwab <schwab@suse.de>
3196 * testsuite/lib/prune.exp (prune_g++_output): Ignore errata
3197 warning from IA64 assembler.
3199 2004-03-24 Dhruv Matani <dhruvbird@gmx.net>
3201 * include/ext/bitmap_allocator.h: (_Bit_scan_forward) -> Made this
3202 function call __builtin_ctz instead of the while loop.
3203 (allocate) -> If condition has __builtin_expect.
3204 (deallocate) -> Ditto.
3205 Renamed a few left-over variables and typedefs according to the
3206 C++STYLE mentioned in the documentation.
3207 Protected calls to __gthread* by __gthread_active_p(), whose value
3208 is cached in the local variable __threads_active.
3210 2004-03-24 Felix Yen <fwy@alumni.brown.edu>
3212 * testsuite/performance/20_util/allocator/producer_consumer.cc:
3213 Use linear algorithm for producer.
3215 2004-03-24 Paolo Carlini <pcarlini@suse.de>
3217 * include/ext/mt_allocator.h (__mt_alloc<>::allocate,
3218 __mt_alloc<>::deallocate): Avoid redundant conditionals.
3220 2004-03-23 Benjamin Kosnik <bkoz@redhat.com>
3222 * include/bits/locale_facets.h: Tweaks for 80 column.
3223 (__numpunct_cache::_M_cache): Move to locale_facets.tcc.
3224 (__moneypunct_cache::_M_cache): Same.
3225 (num_get): Don't inherit from __num_base.
3227 (money_get): Don't inherit from money_base.
3229 (__timepunct::_M_am_pm_format): New.
3230 (time_get::_M_extract_num): Return iterator, use ios_base as argument.
3231 (time_get::_M_extract_name): Same.
3232 (time_get::_M_extract_via_format): Same.
3233 * include/bits/locale_facets.tcc: Tweaks for 80 column.
3234 Use _M_getloc instead of getloc.
3235 * testsuite/22_locale/money_put/put/char/9780-3.cc: New.
3236 * testsuite/22_locale/num_put/put/char/9780-2.cc: New.
3237 * testsuite/22_locale/time_put/put/char/9780-1.cc: New.
3239 2004-03-22 Paolo Carlini <pcarlini@suse.de>
3241 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Add pool_allocator.
3242 * configure: Regenerate.
3243 * config/allocator/pool_allocator_base.h: New.
3244 * include/ext/pool_allocator.h: Convert to a standard-conforming
3246 * src/allocator.cc: Tweak instantiations.
3247 * testsuite/performance/20_util/allocator/insert.cc: Add __pool_alloc.
3248 * testsuite/performance/20_util/allocator/insert_insert.cc: Ditto.
3249 * testsuite/performance/20_util/allocator/list_sort_search.cc: Ditto.
3250 * testsuite/performance/20_util/allocator/map_mt_find.cc: Ditto.
3251 * testsuite/performance/20_util/allocator/map_thread.cc: Ditto.
3252 * testsuite/performance/20_util/allocator/producer_consumer.cc: Ditto.
3254 2004-03-22 Hans-Peter Nilsson <hp@axis.com>
3256 * config/cpu/cris/atomicity.h (__atomic_add): Remove "static
3257 inline" and attribute-unused. Qualify parameter __mem with
3259 (__exchange_and_add): Ditto. Add back memory clobber to asm.
3261 2004-03-20 Paolo Carlini <pcarlini@suse.de>
3263 * testsuite/27_io/basic_istream/extractors_arithmetic/char/2.cc:
3265 * testsuite/27_io/basic_istream/extractors_arithmetic/char/3.cc:
3267 * testsuite/27_io/basic_istream/extractors_arithmetic/char/6.cc:
3269 * testsuite/27_io/basic_istream/extractors_arithmetic/char/7.cc:
3271 * testsuite/27_io/basic_istream/extractors_arithmetic/char/8.cc:
3273 * testsuite/27_io/basic_istream/extractors_arithmetic/char/9.cc:
3275 * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
3277 * testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc:
3279 * testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc:
3281 * testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc:
3284 2004-03-20 Paolo Carlini <pcarlini@suse.de>
3286 * include/std/std_valarray.h: Document DR389 [Ready].
3287 * docs/html/ext/howto.html: Add an entry for DR389.
3289 2004-03-19 Michael Eager <eager@mvista.com>
3291 * config/cpu/mips/atomicity.h: Prevent reg loads between LL and
3294 2004-03-19 Paolo Carlini <pcarlini@suse.de>
3296 * testsuite/22_locale/num_get/get/char/11.cc: Remove redundant
3298 * testsuite/22_locale/num_get/get/char/12.cc: Likewise.
3299 * testsuite/22_locale/num_get/get/char/13.cc: Likewise.
3300 * testsuite/22_locale/num_get/get/char/14.cc: Likewise.
3301 * testsuite/22_locale/num_get/get/char/15.cc: Likewise.
3302 * testsuite/22_locale/num_get/get/wchar_t/11.cc: Likewise.
3303 * testsuite/22_locale/num_get/get/wchar_t/12.cc: Likewise.
3304 * testsuite/22_locale/num_get/get/wchar_t/13.cc: Likewise.
3305 * testsuite/22_locale/num_get/get/wchar_t/14.cc: Likewise.
3306 * testsuite/22_locale/num_get/get/wchar_t/15.cc: Likewise.
3308 2004-03-19 Paolo Carlini <pcarlini@suse.de>
3309 Petur Runolfsson <peturr02@ru.is>
3312 * include/ext/stdio_sync_filebuf.h (showmanyc): Remove, there's
3313 no way to find out the conversion used by the underlying FILE*.
3314 * testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc: New.
3315 * testsuite/27_io/objects/char/9.cc: Tweak.
3317 2004-03-19 Paolo Carlini <pcarlini@suse.de>
3320 * include/ext/ropeimpl.h (rope<>::_S_apply_to_pieces): Fix
3321 memory allocation/deallocation calls.
3322 * testsuite/ext/14648.cc: New.
3324 2004-03-19 Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de>
3327 * include/backward/bvector.h (bit_vector): Allocator is in std
3330 2004-03-19 Phil Edwards <phil@codesourcery.com>
3332 * acinclude.m4 (GLIBCXX_CHECK_WCHAR_T_SUPPORT): Set LIBICONV,
3333 not libiconv. SUBST this variable as well.
3334 * testsuite/Makefile.am (site.exp): New target, based on that
3335 created by automake. Also set libiconv.
3337 * configure, Makefile.in, include/Makefile.in, libmath/Makefile.in,
3338 libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in,
3339 testsuite/Makefile.in: Regenerate.
3341 2004-03-16 Benjamin Kosnik <bkoz@redhat.com>
3343 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Default setting is
3344 new_allocator for all hosts.
3345 * configure: Regenerate.
3347 2004-03-16 Paolo Carlini <pcarlini@suse.de>
3349 * testsuite/22_locale/num_put/put/char/4.cc: Fix for 64-bit pointers.
3350 * testsuite/22_locale/num_put/put/wchar_t/4.cc: Likewise.
3352 2004-03-15 Paolo Carlini <pcarlini@suse.de>
3354 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3355 Adjust the logic underlying the parsing of symbol to deal
3356 correctly with an optional sign component (i.e., when either
3357 negative_sign or positive_sign is empty)
3358 * testsuite/22_locale/money_get/get/char/19.cc: New.
3359 * testsuite/22_locale/money_get/get/wchar_t/19.cc: New.
3361 2004-03-15 Paolo Carlini <pcarlini@suse.de>
3363 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3364 Do not accept an incomplete currency symbol.
3365 * testsuite/22_locale/money_get/get/char/18.cc: New.
3366 * testsuite/22_locale/money_get/get/wchar_t/18.cc: New.
3368 2004-03-13 Benjamin Kosnik <bkoz@redhat.com>
3370 * config/allocator: New.
3371 * config/allocator/bitmap_allocator_base.h: New.
3372 * config/allocator/malloc_allocator_base.h: New.
3373 * config/allocator/mt_allocator_base.h: New.
3374 * config/allocator/new_allocator_base.h: New.
3375 * include/bits/allocator.h: Include c++allocator.h.
3376 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): New.
3377 * aclocal.m4: Regenerate.
3378 * configure.ac: Use GLIBCXX_ENABLE_ALLOCATOR.
3379 * configure: Regenerate.
3380 * include/Makefile.am (host_headers_extra): Add c++allocator.h.
3381 * include/Makefile.in: Regenerate.
3382 * docs/html/configopts.html: Add enable-libstdcxx-allocator.
3384 2004-03-12 Benjamin Kosnik <bkoz@redhat.com>
3386 * include/bits/allocator.h: Revert.
3388 2004-03-12 Paolo Carlini <pcarlini@suse.de>
3390 * docs/html/ext/howto.html: Add entry for DR 253 [Ready].
3391 * include/bits/gslice_array.h: Add comment about DR 253.
3392 * include/bits/indirect_array.h: Likewise.
3393 * include/bits/mask_array.h: Likewise.
3394 * include/bits/slice_array.h: Likewise.
3396 2004-03-12 Benjamin Kosnik <bkoz@redhat.com>
3398 * testsuite/20_util/allocator/14176.cc: New.
3399 * include/ext/mt_allocator.h: Formatting fixes.
3401 2004-03-11 Dhruv Matani <dhruvbird@HotPOP.com>
3403 * include/Makefile.am (ext_headers): Add
3404 ${ext_srcdir}/bitmap_allocator.h .
3405 * include/Makefile.in: Regenerate.
3406 * docs/html/ext/ballocator_doc.txt: New file.
3407 * include/ext/bitmap_allocator.h: New file.
3408 * testsuite/performance/20_util/allocator/list_sort_search.cc: Add
3410 * testsuite/performance/20_util/allocator/map_mt_find.cc: Likewise.
3411 * testsuite/performance/20_util/allocator/producer_consumer.cc: Add
3412 test for the bitmap_allocator<>.
3413 * testsuite/performance/20_util/allocator/insert.cc: Likewise.
3414 * testsuite/performance/20_util/allocator/insert_insert.cc: Likewise.
3415 * testsuite/performance/20_util/allocator/map_thread.cc: Likewise.
3417 2004-03-11 Paolo Carlini <pcarlini@suse.de>
3419 * include/std/std_complex.h (pow(const complex&, const _Tp&),
3420 pow(const _Tp&, const complex&), pow(const complex&,
3421 const complex&)): Fully qualify with std:: a few calls.
3422 * testsuite/26_numerics/complex/13450.cc: Minor tweak.
3424 2004-03-11 Steven Bosscher <stevenb@suse.de>
3427 * include/c_std/cmath.tcc (__cmath_power): Define inline.
3429 2004-03-10 Kelley Cook <kcook@gcc.gnu.org>
3431 * configure.ac: Bump AC_PREREQ to 2.59.
3433 2004-03-10 Paolo Carlini <pcarlini@suse.de>
3435 * testsuite/26_numerics/valarray_subset_assignment.cc: Fix typos.
3437 2004-03-10 Paul Kienzle <pkienzle@nist.gov>
3438 Paolo Carlini <pcarlini@suse.de>
3441 * include/std/std_complex.h (pow(const complex&, const _Tp&),
3442 pow(const _Tp&, const complex&)): Use cmath pow only when safe.
3443 * testsuite/26_numerics/complex/13450.cc: New.
3445 * testsuite/26_numerics/cmath/overloads.C: Rename to overloads.cc.
3446 * testsuite/26_numerics/complex/pow.C: Rename to pow.cc and fix.
3448 2004-03-10 Jerry Quinn <jlquinn@optonline.net>
3451 * include/bits/gslice_array.h (gslice_array()): Make public.
3452 (operator=(gslice_array)): Make public. Implement.
3453 * include/bits/indirect_array.h (indirect_array()): Make public.
3454 * include/bits/mask_array.h (mask_array()): Make public.
3455 (operator=(mask_array)): Make public. Implement.
3456 * include/bits/valarray_array.tcc (__valarray_copy):
3457 Comment. Add versions for gslice_array and mask_array.
3458 * testsuite/26_numerics/valarray_subset_assignment.cc: New test.
3460 2004-03-09 Benjamin Kosnik <bkoz@redhat.com>
3462 * testsuite/23_containers/deque/modifiers/swap.cc: Add in bits for
3464 * testsuite/23_containers/vector/modifiers/swap.cc: Same.
3465 * testsuite/23_containers/set/modifiers/swap.cc: Same.
3466 * testsuite/23_containers/multiset/modifiers/swap.cc: Same.
3467 * testsuite/23_containers/multimap/modifiers/swap.cc: Same.
3468 * testsuite/23_containers/map/modifiers/swap.cc: Same.
3469 * testsuite/23_containers/list/modifiers/swap.cc: Same.
3471 * testsuite/22_locale/locale/cons/12658_thread.cc: Catch exceptions.
3473 2004-03-08 Benjamin Kosnik <bkoz@redhat.com>
3476 * testsuite/23_containers/deque/modifiers/swap.cc: New.
3477 * testsuite/23_containers/list/modifiers/swap.cc: New.
3478 * testsuite/23_containers/map/modifiers/swap.cc: New.
3479 * testsuite/23_containers/multimap/modifiers/swap.cc: New.
3480 * testsuite/23_containers/multiset/modifiers/swap.cc: New.
3481 * testsuite/23_containers/set/modifiers/swap.cc: New.
3482 * testsuite/23_containers/vector/modifiers/swap.cc: New.
3484 2004-03-08 Petur Runolfsson <peturr02@ru.is>
3487 * testsuite/22_locale/locale/cons/12658_thread.cc: New.
3489 2004-03-08 Paolo Carlini <pcarlini@suse.de>
3491 * docs/html/ext/howto.html: Add entry for DR 103 [WP].
3492 * include/bits/stl_multiset.h: Add comment about DR 103.
3493 * include/bits/stl_set.h: Likewise.
3495 2004-03-08 Paolo Carlini <pcarlini@suse.de>
3497 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3498 The value _space_ indicates that at least one space is required
3500 * testsuite/22_locale/money_get/get/char/17.cc: New.
3501 * testsuite/22_locale/money_get/get/wchar_t/17.cc: New.
3503 * testsuite/22_locale/money_get/get/char/7.cc: Minor tweaks.
3504 * testsuite/22_locale/money_get/get/wchar_t/7.cc: Likewise.
3506 * include/bits/locale_facets.tcc (money_get<>::do_get(long_double&)):
3507 Remove redundant conditional on __str.size().
3509 2004-03-08 Benjamin Kosnik <bkoz@redhat.com>
3511 * include/bits/allocator.h: Switch defaults to mt_alloc.
3513 2004-03-06 Benjamin Kosnik <bkoz@redhat.com>
3515 * include/ext/mt_allocator.h (_S_initialize): If
3516 !__GTHREAD_MUTEX_INIT, then initialize _S_thread_freelist_mutex.
3518 2004-03-06 Benjamin Kosnik <bkoz@redhat.com>
3521 * src/locale_init.cc (locale::locale): Lock critical regions with
3523 (locale::global): Same.
3524 * include/bits/concurrence.h (__glibcxx_mutex_define_initialized):
3525 Add in once bits for cases without __GTHREAD_MUTEX_INIT.
3526 (__glibcxx_mutex_lock): Same.
3528 * config/cpu/generic/atomicity.h: Remove
3529 _GLIBCXX_NEED_GENERIC_MUTEX, use concurrence.h.
3530 * src/misc-inst.cc: Move all locking bits out of this file.
3532 * config/os/hpux/os_defines.h: Remove _GLIBCXX_INST_ATOMICITY_LOCK.
3533 * src/misc-inst.cc: Same.
3534 * config/cpu/hppa/atomicity.h: Same.
3536 * config/linker-map.gnu: Remove types in the signature of atomic
3537 exports, as they may vary.
3539 2004-03-06 Paolo Carlini <pcarlini@suse.de>
3541 * include/bits/locale_facets.tcc: Tweak the comment preceding
3542 has_facet: doesn't throw.
3544 2004-03-06 Paolo Carlini <pcarlini@suse.de>
3546 * testsuite/22_locale/money_get/get/char/1.cc: Clean up.
3547 * testsuite/22_locale/money_get/get/char/2.cc: Likewise.
3548 * testsuite/22_locale/money_get/get/char/3.cc: Likewise.
3549 * testsuite/22_locale/money_get/get/char/4.cc: Likewise.
3550 * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
3551 * testsuite/22_locale/money_get/get/wchar_t/2.cc: Likewise.
3552 * testsuite/22_locale/money_get/get/wchar_t/3.cc: Likewise.
3553 * testsuite/22_locale/money_get/get/wchar_t/4.cc: Likewise.
3555 2004-03-06 Paolo Carlini <pcarlini@suse.de>
3557 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
3558 num_get<>::_M_extract_int, num_get<>::do_get(bool&),
3559 __pad<>::_S_pad): Prefer plain operator== to traits::eq().
3560 * testsuite/testsuite_character.h (struct __gnu_test::character):
3562 * testsuite/testsuite_hooks.h (struct __gnu_test::pod_char):
3565 2004-03-05 Paolo Carlini <pcarlini@suse.de>
3567 * testsuite/27_io/fpos/14320-2.cc: Remove xfail.
3569 2004-03-04 Benjamin Kosnik <bkoz@redhat.com>
3571 * testsuite/23_containers/multiset/insert/1.cc: Test result string.
3573 * testsuite/23_containers/bitset/invalidation/1.cc: Main always
3575 * testsuite/23_containers/deque/invalidation/4.cc: Same.
3576 * testsuite/23_containers/list/invalidation/1.cc: Same.
3577 * testsuite/23_containers/list/invalidation/2.cc: Same.
3578 * testsuite/23_containers/list/invalidation/3.cc: Same.
3579 * testsuite/23_containers/list/invalidation/4.cc: Same.
3580 * testsuite/23_containers/map/invalidation/2.cc: Same.
3581 * testsuite/23_containers/multimap/invalidation/1.cc: Same.
3582 * testsuite/23_containers/multimap/invalidation/2.cc: Same.
3583 * testsuite/23_containers/multiset/invalidation/1.cc: Same.
3584 * testsuite/23_containers/multiset/invalidation/2.cc: Same.
3585 * testsuite/23_containers/set/invalidation/1.cc: Same.
3586 * testsuite/23_containers/set/invalidation/2.cc: Same.
3587 * testsuite/23_containers/vector/invalidation/1.cc: Same.
3588 * testsuite/23_containers/vector/invalidation/2.cc: Same.
3589 * testsuite/23_containers/vector/invalidation/3.cc: Same.
3590 * testsuite/23_containers/vector/invalidation/4.cc: Same.
3592 2004-03-04 Paolo Carlini <pcarlini@suse.de>
3594 * scripts/testsuite_flags.in: Add "-D_GLIBCXX_ASSERT" to
3596 * testsuite/lib/libstdc++.exp: Don't add it conditionally to
3598 * testsuite/18_support/numeric_limits.cc: Remove "-D_GLIBCXX_ASSERT"
3599 from the dg-options.
3600 * testsuite/23_containers/vector/invalidation/1.cc: Likewise.
3601 * testsuite/23_containers/vector/invalidation/2.cc: Likewise.
3602 * testsuite/23_containers/vector/invalidation/3.cc: Likewise.
3603 * testsuite/23_containers/vector/invalidation/4.cc: Likewise.
3604 * testsuite/23_containers/vector/resize/1.cc: Likewise.
3605 * testsuite/26_numerics/complex_value.cc: Likewise.
3606 * testsuite/27_io/ios_base/storage/1.cc: Likewise.
3607 * testsuite/27_io/ios_base/storage/2.cc: Likewise.
3608 * testsuite/27_io/ios_base/storage/3.cc: Likewise.
3609 * testsuite/27_io/manipulators/standard/char/2.cc: Likewise.
3610 * testsuite/27_io/objects/char/5.cc: Likewise.
3611 * testsuite/27_io/objects/wchar_t/5.cc: Likewise.
3612 * testsuite/backward/11460.cc: Likewise.
3613 * testsuite/thread/pthread7-rope.cc: Likewise.
3615 * testsuite/21_strings/basic_string/compare/char/1.cc: Add
3616 missing test variable.
3617 * testsuite/21_strings/basic_string/compare/wchar_t/1.cc: Add
3618 missing test variable.
3620 2004-03-04 Benjamin Kosnik <bkoz@redhat.com>
3622 * testsuite/20_util/allocator/1.cc: Provide explicit
3623 instantiations for non-weak systems.
3624 * testsuite/20_util/binders.cc: Same.
3625 * testsuite/20_util/allocator/8230.cc: Same.
3626 * testsuite/20_util/allocator/10378.cc: Same.
3627 * testsuite/22_locale/ctype/is/wchar_t/2.cc: Same.
3628 * testsuite/22_locale/ctype/is/char/2.cc: Same.
3629 * testsuite/thread/pthread7-rope.cc: Same.
3630 * testsuite/thread/pthread6.cc: Same.
3631 * testsuite/thread/pthread5.cc: Same.
3632 * testsuite/thread/pthread4.cc: Same.
3633 * testsuite/thread/pthread1.cc: Same.
3634 * testsuite/ext/rope.cc: Same.
3635 * testsuite/ext/hash_set.cc: Same.
3636 * testsuite/ext/hash_map.cc: Same.
3637 * testsuite/ext/concept_checks.cc: Same.
3638 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9874.cc: Same.
3639 * testsuite/25_algorithms/unique/2.cc: Same.
3640 * testsuite/25_algorithms/unique/1.cc: Same.
3641 * testsuite/25_algorithms/rotate.cc: Same.
3642 * testsuite/25_algorithms/min_max.cc: Same.
3643 * testsuite/25_algorithms/equal.cc: Same.
3644 * testsuite/24_iterators/rel_ops.cc: Same.
3645 * testsuite/24_iterators/iterator.cc: Same.
3646 * testsuite/24_iterators/insert_iterator.cc: Same.
3647 * testsuite/24_iterators/front_insert_iterator.cc: Same.
3648 * testsuite/24_iterators/back_insert_iterator.cc: Same.
3649 * testsuite/23_containers/vector/resize/1.cc: Same.
3650 * testsuite/23_containers/vector/modifiers/2.cc: Same.
3651 * testsuite/23_containers/vector/modifiers/1.cc: Same.
3652 * testsuite/23_containers/vector/invalidation/4.cc: Same.
3653 * testsuite/23_containers/vector/invalidation/3.cc: Same.
3654 * testsuite/23_containers/vector/invalidation/2.cc: Same.
3655 * testsuite/23_containers/vector/invalidation/1.cc: Same.
3656 * testsuite/23_containers/vector/element_access/1.cc: Same.
3657 * testsuite/23_containers/vector/cons/6513.cc: Same.
3658 * testsuite/23_containers/vector/cons/3.cc: Same.
3659 * testsuite/23_containers/vector/cons/2.cc: Same.
3660 * testsuite/23_containers/vector/cons/1.cc: Same.
3661 * testsuite/23_containers/vector/capacity/8230.cc: Same.
3662 * testsuite/23_containers/vector/capacity/1.cc: Same.
3663 * testsuite/23_containers/vector/bool/6886.cc: Same.
3664 * testsuite/23_containers/stack/members/7158.cc: Same.
3665 * testsuite/23_containers/set/invalidation/2.cc: Same.
3666 * testsuite/23_containers/set/invalidation/1.cc: Same.
3667 * testsuite/23_containers/queue/members/7157.cc: Same.
3668 * testsuite/23_containers/priority_queue/members/7161.cc: Same.
3669 * testsuite/23_containers/multiset/invalidation/2.cc: Same.
3670 * testsuite/23_containers/multiset/invalidation/2.cc: Same.
3671 * testsuite/23_containers/multiset/insert/1.cc: Same.
3672 * testsuite/23_containers/multimap/invalidation/2.cc: Same.
3673 * testsuite/23_containers/multimap/invalidation/2.cc: Same.
3674 * testsuite/23_containers/map/operators/1.cc: Same.
3675 * testsuite/23_containers/map/invalidation/2.cc: Same.
3676 * testsuite/23_containers/map/invalidation/1.cc: Same.
3677 * testsuite/23_containers/map/insert/1.cc: Same.
3678 * testsuite/23_containers/list/operators/4.cc: Same.
3679 * testsuite/23_containers/list/operators/3.cc: Same.
3680 * testsuite/23_containers/list/operators/2.cc: Same.
3681 * testsuite/23_containers/list/operators/1.cc: Same.
3682 * testsuite/23_containers/list/modifiers/3.cc: Same.
3683 * testsuite/23_containers/list/modifiers/2.cc: Same.
3684 * testsuite/23_containers/list/modifiers/1.cc: Same.
3685 * testsuite/23_containers/list/invalidation/4.cc: Same.
3686 * testsuite/23_containers/list/invalidation/3.cc: Same.
3687 * testsuite/23_containers/list/invalidation/2.cc: Same.
3688 * testsuite/23_containers/list/invalidation/1.cc: Same.
3689 * testsuite/23_containers/list/cons/9.cc: Same.
3690 * testsuite/23_containers/list/cons/8.cc: Same.
3691 * testsuite/23_containers/list/cons/7.cc: Same.
3692 * testsuite/23_containers/list/cons/6.cc: Same.
3693 * testsuite/23_containers/list/cons/5.cc: Same.
3694 * testsuite/23_containers/list/cons/4.cc: Same.
3695 * testsuite/23_containers/list/cons/3.cc: Same.
3696 * testsuite/23_containers/list/cons/2.cc: Same.
3697 * testsuite/23_containers/list/cons/1.cc: Same.
3698 * testsuite/23_containers/list/capacity/1.cc: Same.
3699 * testsuite/23_containers/deque/operators/1.cc: Same.
3700 * testsuite/23_containers/deque/invalidation/4.cc: Same.
3701 * testsuite/23_containers/deque/invalidation/3.cc: Same.
3702 * testsuite/23_containers/deque/invalidation/2.cc: Same.
3703 * testsuite/23_containers/deque/invalidation/1.cc: Same.
3704 * testsuite/23_containers/deque/cons/2.cc: Same.
3705 * testsuite/23_containers/deque/cons/1.cc: Same.
3707 * src/allocator.cc: Add char, wchar_t instantiations
3708 to match extern template declarations in memory.h.
3710 2004-03-03 Paolo Carlini <pcarlini@suse.de>
3712 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
3713 Fix warning regression.
3715 2004-03-03 Paolo Carlini <pcarlini@suse.de>
3717 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
3718 Deal properly with empty __digits and negative frac_digits,
3721 2004-03-03 Jonathan Wakely <redi@gcc.gnu.org>
3723 * docs/html/documentation.html: Regenerate.
3725 2004-03-02 Paolo Carlini <pcarlini@suse.de>
3728 * include/bits/postypes.h (class streamoff): Remove, now
3729 streamoff is just typedef a 64 bit signed integer type.
3730 (class fpos): Tweak consistently.
3731 * testsuite/27_io/fpos/14320-1.cc: New.
3732 * testsuite/27_io/fpos/14320-2.cc: New.
3733 * testsuite/27_io/fpos/14320-3.cc: New.
3734 * testsuite/27_io/fpos/14320-4.cc: New.
3735 * testsuite/27_io/fpos/14320-5.cc: New.
3736 * testsuite/27_io/fpos/mbstate_t/4_neg.cc: xfail for now.
3738 2004-03-02 Paolo Carlini <pcarlini@suse.de>
3740 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3741 Reorganize a bit the main parsing loop, thus early detecting
3742 an empty value component.
3743 * testsuite/22_locale/money_get/get/char/16.cc: New.
3744 * testsuite/22_locale/money_get/get/wchar_t/16.cc: New.
3746 2004-03-02 Benjamin Kosnik <bkoz@redhat.com>
3748 Support automake 1.8.2
3749 * configure.ac (AM_INIT_AUTOMAKE): Add -Wno-override.
3750 * po/Makefile.am (EXTRA_DIST): New.
3751 * po/Makefile.in: Regenerate.
3752 * Makefile.in: Same.
3753 * include/Makefile.in: Same.
3754 * libmath/Makefile.in: Same.
3755 * libsupc++/Makefile.in: Same.
3756 * src/Makefile.in: Same.
3757 * testsuite/Makefile.in: Same.
3759 * include/Makefile.am (${host_builddir}/gthr-posix.h): Use
3760 __GXX_WEAK__ instead of SUPPORTS_WEAK.
3761 (${host_builddir}/gthr-default.h): Same.
3762 (${host_builddir}/gthr.h): Same.
3763 * acinclude.m4 (GLIBCXX_ENABLE_THREAD): Remove
3764 _GLIBCXX_SUPPORTS_WEAK, as this behavior can be modified via
3766 * aclocal.m4: Regenerate.
3767 * acconfig.h: Remove _GLIBCXX_SUPPORTS_WEAK.
3768 * config.h.in: Regenerate.
3771 2004-03-01 Benjamin Kosnik <bkoz@redhat.com>
3773 Support autoconf 2.59
3774 * acinclude.m4: Quote correctly.
3775 * aclocal.m4: Regenerate.
3778 2004-03-01 Benjamin Kosnik <bkoz@redhat.com>
3780 * docs/html/test.html: Add multilib RUNTESTFLAGS example.
3782 * docs/html/18_support/howto.html: Add bit about writing to
3783 stderr, mostly by Zack.
3785 2004-03-01 Paolo Carlini <pcarlini@suse.de>
3787 * include/bits/locale_facets.tcc (money_get<>::_M_extract,
3788 money_get<>::do_get(string_type&)): ... and two more.
3790 2004-03-01 Paolo Carlini <pcarlini@suse.de>
3792 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3793 Fix thinkos in the switch from string_type& to string& as last
3796 2004-03-01 Paolo Carlini <pcarlini@suse.de>
3798 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
3799 Also when parsing exponent sign, first look for thousands_sep
3800 and decimal_point; tweak a bit.
3801 * testsuite/22_locale/num_get/get/char/15.cc: New.
3802 * testsuite/22_locale/num_get/get/wchar_t/15.cc: New.
3804 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
3805 num_get<>::_M_extract_int): Reorder some conditionals.
3807 2004-03-01 Paolo Carlini <pcarlini@suse.de>
3809 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3810 Consistently with numpunct, enforce the requirements in
3811 22.2.6.3, p3 for the thousands separators; tweak a bit.
3812 * testsuite/22_locale/money_get/get/char/15.cc: New.
3813 * testsuite/22_locale/money_get/get/wchar_t/15.cc: New.
3815 2004-03-01 David Billinghurst <David.Billinghurst@riotinto.com>
3817 * testsuite/lib/libstdc++.exp (v3-list-tests): Use
3818 testsuite_files from correct multilib blddir when running
3821 2004-02-29 Phil Edwards <phil@codesourcery.com>
3823 * testsuite/Makefile.am (check-abi, check-abi-verbose): Copy
3824 the summary file to the logfile.
3825 * testsuite/Makefile.in: Regenerate.
3827 2004-02-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3829 * config/cpu/hppa/atomicity.h (__atomic_add): Make first argument
3831 * config/os/hpux/os_defines.h (_GLIBCXX_INST_ATOMICITY_LOCK): Use
3832 __GXX_WEAK__ instead of _GLIBCXX_SUPPORTS_WEAK.
3834 2004-02-28 Paolo Carlini <pcarlini@suse.de>
3836 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
3837 According to 22.2.3.1, p2, 'units' may be followed by 'e' with
3838 no 'decimal-point' in the middle: in this case too we must fix
3839 up __found_grouping; slightly tweak.
3840 * testsuite/22_locale/num_get/get/char/14.cc: New.
3841 * testsuite/22_locale/num_get/get/wchar_t/14.cc: New.
3843 2004-02-27 Eric Christopher <echristo@redhat.com>
3844 Phil Edwards <phil@codesourcery.com>
3846 * testsuite/22_locale/collate/compare/wchar_t/2.cc,
3847 testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc,
3848 testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc,
3849 testsuite/22_locale/collate/hash/wchar_t/2.cc,
3850 testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc,
3851 testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc,
3852 testsuite/22_locale/collate/transform/wchar_t/2.cc,
3853 testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc,
3854 testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
3855 Use dg-require-iconv.
3856 * testsuite/lib/libstdc++.exp: Load target-supports.exp.
3858 2004-02-27 Phil Edwards <phil@codesourcery.com>
3859 Eric Christopher <echristo@redhat.com>
3861 * testsuite/config/default.exp: Update with comments.
3862 (${tool}_target_compile): New wrapper routine.
3863 * testsuite/lib/dg-options.exp: New file, with dg-require-iconv.
3864 * testsuite/lib/libstdc++.exp: Update with comments and cosmetic
3866 (load_gcc_lib, v3track): New routines.
3867 (v3-init): Rename to libstdc++_init.
3868 * testsuite/libstdc++-dg/normal.exp: No longer call v3-init.
3869 Move DEFAULT_CXXFLAGS handling into libstdc++_init.
3871 2004-02-27 Benjamin Kosnik <bkoz@redhat.com>
3873 * config/cpu/hppa/atomicity.h: Include c++config.h to get defines.
3875 * src/misc-inst.cc (_S_atomicity_lock): Move to __gnu_cxx.
3877 * config/os/irix/irix5.2/atomicity.h: Merge..
3878 * config/os/irix/irix6.5/atomicity.h: Merge..
3879 * config/os/irix/atomicity.h: ...into this.
3880 * config/os/irix/atomic_word.h: New.
3881 * configure.host: Set atomic_word_dir for irix.
3883 * hppa/atomicity.h: Change __Atomicity_lock to _Atomicity_lock.
3884 * i386/atomicity.h: Same.
3885 * m68k/atomicity.h: Same.
3886 * sparc/atomicity.h: Same.
3888 2004-02-27 David Edelsohn <edelsohn@gnu.org>
3890 * config/os/aix/atomicity.h: Use __gnu_cxx namespace. Remove
3891 static, and inline keywords.
3893 2004-02-27 Paolo Carlini <pcarlini@suse.de>
3895 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
3896 num_get<>::_M_extract_int, money_get<>::_M_extract): If appropriate,
3897 call reserve on the __tmp_gruping string.
3898 (num_get<>::_M_extract_float): Don't append unnecessarily a
3899 char() to the returned string.
3900 * include/bits/locale_facets.tcc: Trivial reformattings.
3902 2004-02-27 Paolo Carlini <pcarlini@suse.de>
3904 * include/bits/locale_facets.h (money_get<>::_M_extract):
3905 Change signature: now takes a plain string&.
3906 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3907 Update consistently the definition; use the moneypunct cache
3908 to parse the value; use swap to change __units.
3909 (money_get<>::do_get(long double&)): Update call of _M_extract,
3910 avoid ctype::narrow, not correct wrt the standard.
3911 (money_get<>::do_get(string_type&)): Likewise, update call
3912 of _M_extract, use ctype::widen.
3913 * src/locale-inst.cc: Tweak instantiations of _M_extract.
3915 2004-02-26 Ian Lance Taylor <ian@wasabisystems.com>
3917 * testsuite/demangle/abi_examples/01.cc: Expect error -2.
3918 * testsuite/demangle/abi_examples/02.cc: Likewise.
3919 * testsuite/demangle/regression/cw-11.cc: Likewise.
3920 * testsuite/demangle/regression/cw-16.cc: Change two expected
3921 results to match libiberty demangler output.
3923 2004-02-26 Benjamin Kosnik <bkoz@redhat.com>
3926 * libsupc++/Makefile.am: Use libiberty demangler.
3927 (c_sources): Add cp-demangle.c.
3928 * libsupc++/Makefile.in: Regenerate.
3929 * src/Makefile.am (sources): Remove demangle.cc.
3930 * src/Makefile.in: Regenerate.
3931 * include/Makefile.am (bits_headers): Move demangle.h.
3932 (ext_headers): ...here.
3933 * include/Makefile.in: Regenerate.
3934 * include/bits/demangle.h: Move...
3935 * include/ext/demangle.h: ...here.
3936 * src/demangle.cc: Remove.
3938 2004-02-26 Benjamin Kosnik <bkoz@redhat.com>
3940 * include/bits/demangle.h: Add type template parameter to all
3941 templates with just an Allocator template parameter.
3943 2004-02-25 Benjamin Kosnik <bkoz@redhat.com>
3945 * include/bits/atomicity.h: New, forward declarations for __atomic_add
3946 and __exchange_and_add.
3947 * config/cpu/generic/atomic_word.h: New, typdef for atomic word.
3948 * config/cpu/cris/atomic_word.h: Same.
3949 * config/cpu/sparc/atomic_word.h: Same.
3950 * include/bits/ios_base.h (_Callback_list::_M_remove_reference):
3951 Qualifiy with __gnu_cxx.
3952 (_Callback_list::_M_add_reference): Same.
3953 * include/bits/locale_classes.h (locale::facet::_M_add_reference): Add.
3954 (locale::facet::_M_remove_reference): Same.
3955 (locale::_Impl::_M_add_reference): Add.
3956 (locale::_Impl::_M_remove_reference): Same.
3957 * include/bits/basic_string.h (basic_string::_Rep::_M_refcopy): Same.
3958 (basic_string::_Rep::_M_dispose): Same.
3959 * src/ios.cc (ios_base::xalloc): Same.
3960 * src/ios_init.cc (ios_base::Init::Init): Same.
3961 (ios_base::Init::~Init): Same.
3962 * src/locale.cc (locale::id::_M_id): Same.
3963 * config/cpu/i486/atomicity.h: Use __gnu_cxx namespace. Remove
3964 static, and inline keywords.
3965 * config/cpu/alpha/atomicity.h: Same.
3966 * config/cpu/cris/atomicity.h: Same.
3967 * config/cpu/generic/atomicity.h: Same.
3968 * config/cpu/hppa/atomicity.h: Same.
3969 * config/cpu/i386/atomicity.h: Same.
3970 * config/cpu/ia64/atomicity.h: Same.
3971 * config/cpu/m68k/atomicity.h: Same.
3972 * config/cpu/mips/atomicity.h: Same.
3973 * config/cpu/powerpc/atomicity.h: Same.
3974 * config/cpu/s390/atomicity.h: Same.
3975 * config/cpu/sparc/atomicity.h: Same.
3977 * src/Makefile.am (host_sources): Add atomicity.cc.
3978 (atomicity.cc): New rule.
3979 * src/Makefile.in: Regenerate.
3980 * include/Makefile.am (host_headers): Remove host atomicity.h.
3981 (host_headers): Add atomic_word.h.
3982 (bits_headers): Add bits atomicity.h.
3983 Change ATOMICITY_INC_SRCDIR to ATOMICITY_SRCDIR.
3984 * include/Makefile.in: Regenerate.
3985 * configure.host (atomic_word_dir): Add.
3986 * configure.ac: Substitute ATOMIC_WORD_SRCDIR. Change
3987 ATOMICITY_INC_SRCDIR to ATOMICITY_SRCDIR.
3988 * configure: Regenerate.
3989 * config/linker-map.gnu: Export __exchange_and_add, and __atomic_add.
3991 * testsuite/27_io/ios_base/cons/assign_neg.cc: Adjust line numbers.
3992 * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
3994 2004-02-25 Jonathan Wakely <redi@gcc.gnu.org>
3996 * docs/html/20_util/howto.html, docs/html/20_util/allocator.html,
3997 docs/html/ext/howto.html, docs/html/ext/mt_allocator.html:
3998 Fix markup, more <link> tags.
4000 2004-02-25 Carlo Wood <carlo@alinoe.com>
4003 namespace __gnu_cxx::demangler
4004 (session<Allocator>::qualifier_list_Allocator): Add
4005 (session<Allocator>::M_qualifier_list_alloc): Add
4006 (session<Allocator>::decode_type_with_postfix):
4007 Use M_qualifier_list_alloc instead of calling operator new/delete.
4009 2004-02-24 Paolo Carlini <pcarlini@suse.de>
4012 * include/bits/postypes.h (class streamoff): Add operator++(),
4013 operator++(int), operator--() and operator--(int).
4014 * testsuite/27_io/fpos/14252.cc: New.
4016 2004-02-24 Richard Sandiford <rsandifo@redhat.com>
4018 * include/bits/locale_facets.tcc (num_get::_M_extract_int): Fix bounds
4019 error in handling of hex constants.
4021 2004-02-24 Paolo Carlini <pcarlini@suse.de>
4023 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
4024 Prefer basic_string::append to operator+= and a temporary.
4026 2004-02-23 Benjamin Kosnik <bkoz@redhat.com>
4028 * libsupc++/vterminate.cc (__gnu_cxx::__verbose_terminate_handler):
4029 Only use fputs, not write.
4031 2004-02-23 Benjamin Kosnik <bkoz@redhat.com>
4033 * include/ext/malloc_allocator.h: Add operators ==, !=.
4034 * include/ext/new_allocator.h: Add operators ==, !=.
4035 * include/ext/mt_allocator.h (__mt_alloc::tune): New.
4036 (__mt_alloc::_S_get_options): New.
4037 (__mt_alloc::_S_set_options): New.
4038 (__mt_alloc::_S_thread_key_destr): To _S_destroy_thread_key.
4039 (__mt_alloc::_S_no_of_bins): To _S_bin_size.
4040 Move functions out of line, simplify, format.
4041 * src/allocator.cc: Simplify explicit instantiations.
4042 * include/bits/allocator.h: Tweak.
4044 2004-02-22 Paolo Carlini <pcarlini@suse.de>
4046 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
4047 Restructure formatting of value component, first dealing with
4048 the non-decimal digits; use reserve.
4050 2004-02-22 Paolo Carlini <pcarlini@suse.de>
4052 * include/bits/locale_facets.h (class money_get): Inherit
4053 from money_base too; tweak declaration of _M_extract, now
4054 parameterized on _Intl too.
4055 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
4056 Update definition to use the cache; call reserve on __res to
4057 avoid multiple reallocations; fix parsing of sign component
4058 according to 22.2.6.1.2, p3.
4059 (money_get<>::do_get(long double&),
4060 money_get<>::do_get(string_type&)): Update calls of _M_extract.
4061 * src/locale-inst.cc: Add instantiations of
4062 money_get::_M_extract<false> and money_get::_M_extract<true>.
4063 * testsuite/22_locale/money_get/get/char/14.cc: New.
4064 * testsuite/22_locale/money_get/get/wchar_t/14.cc: Ditto.
4066 2004-02-21 Mark Mitchell <mark@codesourcery.com>
4068 * libsupc++/vterminate.cc
4069 (__gnu_cxx::__verbose_terminate_handler): Guard against recursive
4071 * src/demangle.cc (__cxa_demangle): Wrap in try-catch block.
4073 * testsuite/testsuite_hooks.cc (__gnu_test::set_memory_limits): Do
4074 not set RLIMIT_AS on HP-UX.
4076 2004-02-21 Mark Mitchell <mark@codesourcery.com>
4078 * testsuite/testsuite_hooks.cc (__gnu_test::set_memory_limits): Do
4079 not set RLIMIT_AS on HP-UX.
4081 2004-02-21 Paolo Carlini <pcarlini@suse.de>
4083 * include/bits/locale_facets.h (class money_base): Add { _S_minus,
4084 _S_zero, _S_end } enum, _S_atoms.
4085 (struct __moneypunct_cache<>): Parameterize on _Intl too; add
4086 _M_grouping_size, _M_curr_symbol_size, _M_positive_sign_size,
4087 _M_negative_sign_size, _M_atoms; tweak constructor consistently.
4088 (__moneypunct_cache<>::~__moneypunct_cache): Update.
4089 (__moneypunct_cache<>::_M_cache): Fill the cache.
4090 (class moneypunct): Tweak __cache_type typedef.
4091 (class money_put): Inherit from money_base too; tweak declaration
4092 of _M_insert, now parameterized on _Intl.
4093 * include/bits/locale_facets.tcc
4094 (struct __use_cache<__moneypunct_cache<_CharT, _Intl> >): New.
4095 (money_put<>::_M_insert): Update definition to use the cache;
4096 call reserve on __res to avoid multiple reallocations.
4097 (money_put<>::do_put(long double),
4098 money_put<>::do_put(const string_type&): Update calls of _M_insert.
4099 * config/locale/generic/monetary_members.cc
4100 (moneypunct<char, true>::_M_initialize_moneypunct,
4101 moneypunct<char, false>::_M_initialize_moneypunct,
4102 moneypunct<wchar_t, true>::_M_initialize_moneypunct,
4103 moneypunct<wchar_t, false>::_M_initialize_moneypunct): Update.
4104 * config/locale/gnu/monetary_members.cc: Likewise.
4105 * config/locale/gnu/monetary_members.cc
4106 (moneypunct<wchar_t, true>::~moneypunct(),
4107 moneypunct<wchar_t, false>::~moneypunct()): Likewise.
4108 * src/globals_locale.cc: Tweak fake_money_cache_c.
4109 * src/locale-inst.cc: Add instantiations for
4110 money_put::_M_insert<false> and money_put::_M_insert<true> and
4111 __moneypunct_cache<C, false>, __moneypunct_cache<C, true>.
4112 * src/locale_facets.cc: Define money_base::_S_atoms.
4113 * src/locale_init.cc: Update placement new of
4114 __moneypunct_cache<char, false>, __moneypunct_cache<char, true>,
4115 __moneypunct_cache<wchar_t, false>, __moneypunct_cache<wchar_T, true>.
4117 * config/locale/generic/numeric_members.cc: Clean up.
4118 * config/locale/gnu/numeric_members.cc: Likewise.
4119 * testsuite/22_locale/money_put/put/char/1.cc: Likewise.
4120 * testsuite/22_locale/money_put/put/char/2.cc: Likewise.
4121 * testsuite/22_locale/money_put/put/char/3.cc: Likewise.
4122 * testsuite/22_locale/money_put/put/wchar_t/1.cc: Likewise.
4123 * testsuite/22_locale/money_put/put/wchar_t/2.cc: Likewise.
4124 * testsuite/22_locale/money_put/put/wchar_t/3.cc: Likewise.
4126 2004-02-20 Mark Mitchell <mark@codesourcery.com>
4128 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: Open
4129 FIFO for writing with ios_base::in|ios_base::out.
4130 * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
4131 * testsuite/27_io/objects/char/7.cc: Likewise.
4132 * testsuite/27_io/objects/char/9661-1.cc: Open FIFO for writing
4135 2004-02-19 David Edelsohn <edelsohn@gnu.org>
4137 * 22_locale/collate/compare/wchar_t/2.cc: Change input-charset
4138 from iso-8859-1 to ISO8859-1.
4139 * 22_locale/collate/compare/wchar_t/wrapped_env.cc: Same.
4140 * 22_locale/collate/compare/wchar_t/wrapped_locale.cc: Same.
4141 * 22_locale/collate/hash/wchar_t/2.cc: Same.
4142 * 22_locale/collate/hash/wchar_t/wrapped_env.cc: Same.
4143 * 22_locale/collate/hash/wchar_t/wrapped_locale.cc: Same.
4144 * 22_locale/collate/transform/wchar_t/2.cc: Same.
4145 * 22_locale/collate/transform/wchar_t/wrapped_env.cc: Same.
4146 * 22_locale/collate/transform/wchar_t/wrapped_locale.cc: Same.
4148 2004-02-18 Paolo Carlini <pcarlini@suse.de>
4150 * include/bits/locale_facets.h (money_get<>::_M_extract):
4151 New, helper for do_get.
4152 (money_put<>::_M_insert): Likewise, for do_put.
4153 * include/bits/locale_facets.tcc (money_get<>::_M_extract,
4154 money_put<>::_M_insert): Define.
4155 (money_get<>::do_get(long double&), money_get<>::do_get(
4156 string_type&), money_put::do_put(long double),
4157 money_put::do_put(const string_type&)): Use the helpers.
4159 2004-02-18 Paolo Carlini <pcarlini@suse.de>
4161 * config/io/basic_file_stdio.cc (__gnu_internal::xwritev):
4162 Rewrite, avoiding recursion.
4163 (__gnu_internal::xwrite): Minor tweaks.
4165 2004-02-17 Stefan Olsson <stefan@xapa.se>
4167 * include/ext/mt_allocator.h: Removed the last
4168 pointer. Deallocated blocks are now added to the front of
4169 freelists as proposed by Felix Yen. This gives roughly 10%
4170 performance boost and saves some memory.
4171 * docs/html/ext/mt_allocator.html: Change due to that deallocated
4172 blocks now are added to the front of freelists. The reason to this
4173 approach is also explained.
4175 2004-02-17 Paolo Carlini <pcarlini@suse.de>
4177 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
4178 num_get<>::_M_extract_int, money_get<>::do_get): Simplify
4179 grouping fidelity conditional.
4181 2004-02-16 Paolo Carlini <pcarlini@suse.de>
4183 * testsuite/27_io/basic_filebuf/overflow/char/13858.cc:
4184 Qualify exception with std::.
4185 * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Ditto.
4186 * testsuite/27_io/basic_filebuf/overflow/wchar_t/13858.cc: Ditto.
4187 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
4188 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
4189 * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
4191 2004-02-16 Paolo Carlini <pcarlini@suse.de>
4193 * testsuite/ext/enc_filebuf/char/13189.cc: Don't check
4194 for now that the catch block is not reached.
4195 * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Likewise.
4197 2004-02-16 Paolo Carlini <pcarlini@suse.de>
4199 * include/bits/locale_facets.tcc (money_get::do_get(string_type&)):
4200 Fix parsing of the remaining sign characters.
4201 * 22_locale/money_get/get/char/2.cc: Tweak: now, correctly,
4202 the input is scanned 'til eof.
4203 * 22_locale/money_get/get/char/4.cc: Likewise.
4204 * 22_locale/money_get/get/wchar_t/2.cc: Likewise.
4205 * 22_locale/money_get/get/wchar_t/4.cc: Likewise.
4206 * 22_locale/money_get/get/char/8.cc: Tweak: override do_neg_format,
4207 not do_pos_format: the former is the only one that matters during
4209 * 22_locale/money_get/get/wchar_t/8.cc: Likewise.
4211 * 22_locale/money_get/get/char/6.cc: Minor tweak.
4212 * 22_locale/money_get/get/wchar_t/6.cc: Likewise.
4214 2004-02-15 David Asher <david.asher@cavium.com>
4217 * include/bits/locale_facets.tcc (__pad<>::_S_pad): Don't
4218 access __olds beyond __oldlen.
4220 2004-02-14 Paolo Carlini <pcarlini@suse.de>
4222 * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Make
4223 sure the exception is actually thrown.
4224 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
4225 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
4226 * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
4228 2004-02-14 Paolo Carlini <pcarlini@suse.de>
4231 * include/bits/fstream.tcc (basic_filebuf<>::_M_convert_to_external):
4232 In case of conversion errors, throw ios_failure; simplify.
4233 * testsuite/27_io/basic_filebuf/overflow/char/13858.cc: New.
4234 * testsuite/27_io/basic_filebuf/overflow/wchar_t/13858.cc: Ditto.
4235 * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Tweak,
4236 previously we didn't throw in case of conversion errors, instead
4237 just returned eof().
4238 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
4239 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
4240 * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
4242 * include/bits/fstream.tcc (basic_filebuf<>::overflow):
4243 Trivial simplification of a conditional.
4245 2004-02-12 Paolo Carlini <pcarlini@suse.de>
4247 PR libstdc++/13731 (final part: writev)
4248 * config/io/basic_file_stdio.cc (__gnu_internal::xwritev):
4249 New, a wrapper around writev() handling partial writes.
4250 (__basic_file<char>::xwrite): Move to __gnu_internal and make
4252 (__basic_file<char>::xsputn): Update call.
4253 (__basic_file<char>::xsputn_2): Likewise.
4254 * config/io/basic_file_stdio.h (__basic_file<char>::xwrite):
4255 Don't declare, now static.
4257 2004-02-11 Stefan Olsson <stefan@xapa.se>
4259 * docs/html/ext/mt_allocator.html: New.
4261 2004-02-11 Benjamin Kosnik <bkoz@redhat.com>
4263 * docs/html/20_util/allocator.html: New file, consolidate
4264 allocator information here. Revamp.
4265 * docs/html/documentation.html: Change links.
4266 * docs/html/20_util/howto.html: Same.
4267 * docs/html/ext/howto.html: Same.
4269 2004-02-11 Paolo Carlini <pcarlini@suse.de>
4271 PR libstdc++/13731 (first part: write)
4272 * config/io/basic_file_stdio.h (__basic_file<char>::xwrite):
4274 * config/io/basic_file_stdio.cc (__basic_file<char>::xwrite):
4275 Define it: a wrapper around write() handling partial write.
4276 (__basic_file<char>::xsputn): Use it.
4277 (__basic_file<char>::xsputn_2): Likewise.
4279 2004-02-11 Paolo Carlini <pcarlini@suse.de>
4280 Petur Runolfsson <peturr02@ru.is>
4283 * include/std/std_istream.h (operator>>(__istream_type& (*)
4284 (__istream_type&)), operator>>(__ios_type& (*)(__ios_type&)),
4285 operator>>(ios_base& (*)(ios_base&))): Declare inline.
4286 * include/std/std_ostream.h (operator<<(__ostream_type& (*)
4287 (__ostream_type&)), operator<<(__ios_type& (*)(__ios_type&)),
4288 operator<<(ios_base& (*) (ios_base&))): Likewise.
4289 * testsuite/performance/27_io/fmtflags_manipulators.cc: New.
4291 2004-02-10 Loren J. Rittle <ljrittle@acm.org>
4294 * config/linker-map.gnu: Add typeinfo and typeinfo name for
4295 __gnu_cxx::stdio_sync_filebuf<char, std::char_traits<char> >.
4298 * config/linker-map.gnu: Add typeinfo and typeinfo name for
4299 __gnu_cxx::stdio_filebuf<char, std::char_traits<char> >.
4301 2004-02-09 Loren J. Rittle <ljrittle@acm.org>
4303 * include/ext/pool_allocator.h: Include c++config.h.
4305 2004-02-09 Stefan Olsson <stefan@xapa.se>
4307 * include/ext/mt_allocator.h: thread_id is unused in non threaded
4308 applications and now has a ifdef to remove it completely on
4309 compilers without thread support. Include stdlib.h due to a
4310 compiler warning on getenv().
4312 2004-02-09 Paul Brook <paul@codesourcery.com>
4314 * libstdc++-v3/configure.host: Explicitly check for atomicity.h file.
4316 2004-02-09 Paolo Carlini <pcarlini@suse.de>
4319 * src/locale_init.cc (locale::global(const locale&)): Use
4320 locale::name() in order to decide whether calling setlocale.
4321 * testsuite/22_locale/locale/global_locale_objects/14071.cc: New.
4323 * include/bits/locale_classes.h (locale::_Impl::_M_check_same_name()):
4324 Avoid computing &= unnecessarily.
4326 2004-02-09 James E Wilson <wilson@specifixinc.com>
4329 * libsuspc++/eh_personality.cc (PERSONALITY_FUNCTION): Use
4330 __builtin_extend_pointer.
4332 2004-02-09 Paolo Carlini <pcarlini@suse.de>
4335 * include/bits/basic_ios.tcc (basic_ios<>::_M_cache_locale):
4336 Don't leave dangling pointers.
4337 * testsuite/27_io/basic_ios/imbue/14072.cc: New.
4338 * testsuite/22_locale/numpunct/members/pod/2.cc: Tweak, the num_put
4339 facet is needed in the final test.
4341 2004-02-09 Bernardo Innocenti <bernie@develer.com>
4343 * crossconfig.m4: Don't enable _GLIBCXX_USE_LFS on *-uclinux*.
4344 * configure: Regenerate.
4346 2004-02-08 Richard Henderson <rth@redhat.com>
4349 * libsupc++/eh_catch.cc (__cxa_begin_catch): Don't adjust
4350 uncaughtExceptions during nested catch rethrow.
4351 * testsuite/18_support/14026.cc: New.
4353 2004-02-08 Paolo Carlini <pcarlini@suse.de>
4355 * include/bits/basic_string.tcc (assign(const _CharT*, size_type)):
4356 When working in place remember to set the state to sharable
4357 (otherwise, _M_mutate does it).
4359 2004-02-08 Bernardo Innocenti <bernie@develer.com>
4361 * include/bits/allocator.h, include/bits/basic_ios.h,
4362 include/bits/basic_ios.tcc, include/bits/basic_string.h,
4363 include/bits/basic_string.tcc, include/bits/boost_concept_check.h,
4364 include/bits/char_traits.h, include/bits/codecvt.h,
4365 include/bits/concurrence.h, include/bits/cpp_type_traits.h,
4366 include/bits/demangle.h, include/bits/deque.tcc,
4367 include/bits/fstream.tcc, include/bits/functexcept.h,
4368 include/bits/gslice.h, include/bits/gslice_array.h,
4369 include/bits/indirect_array.h, include/bits/ios_base.h,
4370 include/bits/istream.tcc, include/bits/list.tcc,
4371 include/bits/locale_classes.h, include/bits/locale_facets.h,
4372 include/bits/locale_facets.tcc, include/bits/localefwd.h,
4373 include/bits/mask_array.h, include/bits/ostream.tcc,
4374 include/bits/postypes.h, include/bits/slice_array.h,
4375 include/bits/sstream.tcc, include/bits/stl_algo.h,
4376 include/bits/stl_algobase.h, include/bits/stl_bvector.h,
4377 include/bits/stl_construct.h, include/bits/stl_deque.h,
4378 include/bits/stl_function.h, include/bits/stl_heap.h,
4379 include/bits/stl_iterator.h, include/bits/stl_iterator_base_funcs.h,
4380 include/bits/stl_list.h, include/bits/stl_map.h,
4381 include/bits/stl_multimap.h, include/bits/stl_multiset.h,
4382 include/bits/stl_numeric.h, include/bits/stl_pair.h,
4383 include/bits/stl_queue.h, include/bits/stl_raw_storage_iter.h,
4384 include/bits/stl_relops.h, include/bits/stl_set.h,
4385 include/bits/stl_stack.h, include/bits/stl_tempbuf.h,
4386 include/bits/stl_threads.h, include/bits/stl_tree.h,
4387 include/bits/stl_uninitialized.h, include/bits/stl_vector.h,
4388 include/bits/stream_iterator.h, include/bits/streambuf.tcc,
4389 include/bits/streambuf_iterator.h,include/bits/stringfwd.h,
4390 include/bits/type_traits.h, include/bits/valarray_after.h,
4391 include/bits/valarray_array.h, include/bits/valarray_array.tcc,
4392 include/bits/valarray_before.h, include/bits/vector.tcc: Remove
4393 trailing whitespace.
4395 2004-02-06 Paolo Carlini <pcarlini@suse.de>
4397 * include/bits/basic_string.h: Fix comment.
4399 2004-02-06 Paolo Carlini <pcarlini@suse.de>
4401 * include/bits/stl_construct.h: Wrap overlong lines, reformat
4402 according to the coding standards.
4403 * include/bits/stl_pair.h: Likewise.
4404 * include/bits/stl_raw_storage_iter.h: Likewise.
4405 * include/bits/stl_stack.h: Likewise.
4406 * include/bits/stl_uninitialized.h: Likewise.
4407 * include/bits/stream_iterator.h: Likewise.
4408 * include/bits/streambuf_iterator.h: Likewise.
4409 * include/bits/type_traits.h: Likewise.
4411 2004-02-06 Paolo Carlini <pcarlini@suse.de>
4413 * testsuite/27_io/basic_filebuf/open/char/9507.cc:
4416 2004-02-05 Loren J. Rittle <ljrittle@acm.org>
4418 * scripts/check_performance: Support PCH.
4420 * scripts/check_performance (CXX): Add -DNOTHREAD.
4421 * testsuite/performance/20_util/allocator/insert.cc: Integrate
4422 threaded tests from insert_insert.cc. Tweak iterations,
4423 remove special cases.
4424 * testsuite/performance/20_util/allocator/insert_insert.cc:
4425 Make all tests single-threaded. Tweak iterations.
4426 * testsuite/performance/20_util/allocator/map_thread.cc:
4428 * testsuite/performance/20_util/allocator/producer_consumer.cc:
4431 2004-02-05 Geoffrey Keating <geoffk@apple.com>
4435 * acinclude.m4 (GLIBCXX_EXPORT_INSTALL_INFO): Use 'gcc', not
4436 'gcc-lib'. Add comment about poorly-named variables.
4437 * aclocal.m4: Regenerate.
4438 * configure: Regenerate.
4440 2004-02-05 Paolo Carlini <pcarlini@suse.de>
4442 * include/bits/locale_facets.tcc (money_get::do_get(string_type&)):
4443 Thousands-sep are always optional; thousands-sep are not allowed
4444 after the decimal_point.
4445 * testsuite/22_locale/money_get/get/char/12.cc: New.
4446 * testsuite/22_locale/money_get/get/char/13.cc: New.
4447 * testsuite/22_locale/money_get/get/wchar_t/12.cc: New.
4448 * testsuite/22_locale/money_get/get/wchar_t/13.cc: New.
4450 * testsuite/22_locale/money_get/get/char/1.cc: Clean-up.
4451 * testsuite/22_locale/money_get/get/char/2.cc: Likewise.
4452 * testsuite/22_locale/money_get/get/char/3.cc: Likewise.
4453 * testsuite/22_locale/money_get/get/char/4.cc: Likewise.
4454 * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
4455 * testsuite/22_locale/money_get/get/wchar_t/2.cc: Likewise.
4456 * testsuite/22_locale/money_get/get/wchar_t/3.cc: Likewise.
4457 * testsuite/22_locale/money_get/get/wchar_t/4.cc: Likewise.
4459 * testsuite/22_locale/money_get/get/char/9.cc: Fix citation from
4461 * testsuite/22_locale/money_get/get/wchar_t/9.cc: Likewise.
4463 2004-02-05 Richard Sandiford <rsandifo@redhat.com>
4465 * config/os/irix/irix6.5/os_defines.h (_GLIBCXX_FIONREAD_TAKES_OFF_T):
4467 * config/io/basic_file_stdio.cc (__basic_file<char>::showmanyc): Use
4468 it to decide whether FIONREAD should take an off_t or int argument.
4470 2004-02-05 Paolo Carlini <pcarlini@suse.de>
4472 * include/bits/stl_function.h: Minor formatting changes.
4474 2004-02-04 Zack Weinberg <zack@codesourcery.com>
4476 Revert previous change to config/abi/*/baseline_symbols.txt.
4478 2004-02-04 Benjamin Kosnik <bkoz@redhat.com>
4479 Zack Weinberg <zack@codesourcery.com>
4481 * config/io/basic_file_stdio.cc (__gnu_internal::fopen_mode):
4483 (__basic_file<char>::sys_open, __basic_file<char>::open): Use it.
4484 (__basic_file<char>::_M_open_mode): Delete.
4485 * config/io/basic_file_stdio.cc: Delete declaration of _M_open_mode.
4487 * testsuite/27_io/basic_filebuf/close/char/9964.cc
4488 * testsuite/27_io/basic_filebuf/open/char/9507.cc:
4489 Correct flags to filebuf::open calls.
4491 * config/abi/alpha-freebsd5/baseline_symbols.txt
4492 * config/abi/alpha-linux-gnu/baseline_symbols.txt
4493 * config/abi/hppa-linux-gnu/baseline_symbols.txt
4494 * config/abi/i386-freebsd4/baseline_symbols.txt
4495 * config/abi/i386-freebsd5/baseline_symbols.txt
4496 * config/abi/i486-linux-gnu/baseline_symbols.txt
4497 * config/abi/ia64-linux-gnu/baseline_symbols.txt
4498 * config/abi/mips-linux-gnu/baseline_symbols.txt
4499 * config/abi/sparc-freebsd5/baseline_symbols.txt
4500 * config/abi/sparc-linux-gnu/baseline_symbols.txt
4501 * config/abi/x86_64-linux-gnu/baseline_symbols.txt:
4502 Remove entry for __basic_file<char>::_M_open_mode.
4504 2004-02-04 Loren J. Rittle <ljrittle@acm.org>
4506 * testsuite/performance/20_util/allocator/insert.cc (main): Tweak.
4508 2004-02-04 Felix Yen <fwy@alumni.brown.edu>
4510 * testsuite/performance/20_util/producer_consumer.cc: New.
4511 * testsuite/performance/20_util/allocator/insert_insert.cc: Two loops.
4513 2004-02-04 Benjamin Kosnik <bkoz@redhat.com>
4515 * testsuite/performance/20_util/allocator.cc: Move to..
4516 * testsuite/performance/20_util/allocator/insert.cc: ...here.
4517 * testsuite/performance/20_util/allocator_thread.cc: Move to...
4518 * testsuite/performance/20_util/allocator/insert_insert.cc: ...here.
4519 * testsuite/performance/20_util/allocator_map_thread.cc: Move to...
4520 * testsuite/performance/20_util/allocator/map_thread.cc: ...here.
4522 2004-02-04 Jonathan Wakely <redi@gcc.gnu.org>
4524 * docs/html/faq/index.html: Recommend using LD_LIBRARY_PATH.
4525 * docs/html/faq/index.txt: Regenerate.
4527 2004-02-04 Dhruv Matani <dhruvbird@gmx.net>
4529 * include/ext/debug_allocator.h: _M_extra now stands for the
4530 number of extra objects instead of the number of extra bytes.
4531 (debug_allocator::allocate): Adjust.
4532 (debug_allocator::deallocate): Adjust.
4534 * include/ext/pool_allocator.h: Fix typo.
4536 2004-02-03 Felix Yen <fwy@alumni.brown.edu>
4537 Benjamin Kosnik <bkoz@redhat.com>
4539 * testsuite/performance/20_util/allocator.cc: Add map,
4541 * testsuite/performance/20_util/allocator_thread.cc: Same.
4543 2004-02-03 Paolo Carlini <pcarlini@suse.de>
4545 * include/bits/basic_string.h (insert(iterator)): Remove,
4546 non-standard and already scheduled for removal.
4548 2004-02-03 Paolo Carlini <pcarlini@suse.de>
4550 * include/bits/stl_iterator_base_funcs.h: Minor formatting
4551 and indentation tweaks.
4552 * include/bits/stl_iterator_base_types.h: Likewise.
4553 * include/bits/stl_list.h: Likewise.
4554 * include/bits/stl_map.h: Likewise.
4555 * include/bits/stl_tempbuf.h: Likewise.
4557 2004-02-02 Jerry Quinn <jlquinn@optonline.net>
4559 * include/bits/gslice.h, include/bits/gslice_array.h,
4560 include/bits/indirect_array.h, include/bits/mask_array.h,
4561 include/bits/slice_array.h, include/bits/stl_numeric.h,
4562 include/std/std_valarray.h: Update copyright years.
4564 2004-02-02 Jerry Quinn <jlquinn@optonline.net>
4566 * include/bits/gslice.h (gslice): Document.
4567 * include/bits/gslice_array.h (gslice_array): Document.
4568 * include/bits/indirect_array (indirect_array): Document.
4569 * include/bits/mask_array (mask_array): Document.
4570 * include/bits/slice_array.h (slice,slice_array): Document.
4571 * include/bits/stl_numeric.h (accumulate, inner_product, partial_sum,
4572 adjacent_difference): Document
4573 * include/std/std_valarray.h (valarray): Document.
4575 2004-02-02 Benjamin Kosnik <bkoz@redhat.com>
4577 * docs/html/19_diagnostics/howto.html: Move verbose terminate
4579 * docs/html/18_support/howto.html: Here.
4580 * docs/html/documentation.html: Add reference here.
4582 2004-02-02 Paolo Carlini <pcarlini@suse.de>
4584 * config/locale/gnu/c++locale_internal.h: Remove prototypes
4585 of no longer used GLIBC thread locale functions.
4587 2004-02-02 Eric Christopher <echristo@redhat.com>
4588 Zack Weinberg <zack@codesourcery.com>
4590 * testsuite/22_locale/collate/compare/wchar_t/2.cc: Remove xfail. Use
4592 * testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc: Ditto.
4593 * testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc: Ditto
4594 * testsuite/22_locale/collate/hash/wchar_t/2.cc: Ditto.
4595 * testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc: Ditto.
4596 * testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc: Ditto.
4597 * testsuite/22_locale/collate/transform/wchar_t/2.cc: Ditto.
4598 * testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc: Ditto.
4599 * testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
4602 2004-02-02 Paolo Carlini <pcarlini@suse.de>
4604 * include/bits/stl_function.h: Additional minor tweaks.
4605 * include/bits/stl_multiset.h: Likewise.
4607 * include/bits/stl_queue.h: Minor tweaks.
4609 2004-02-02 Paolo Carlini <pcarlini@suse.de>
4611 PR libstdc++/13976 (continued)
4612 * include/ext/malloc_allocator.h (malloc_allocator::deallocate):
4613 Make the second parameter unnamed, to void unused parameter
4615 * include/ext/new_allocator.h (new_allocator::deallocate): Ditto.
4617 2004-02-02 Paolo Carlini <pcarlini@suse.de>
4620 * include/ext/malloc_allocator.h (malloc_allocator::allocate):
4621 Make the second parameter unnamed, to void unused parameter
4623 * include/ext/mt_allocator.h (__mt_alloc::allocate): Ditto.
4624 * include/ext/new_allocator.h (new_allocator::allocate): Ditto.
4626 2004-02-01 Paolo Carlini <pcarlini@suse.de>
4628 * include/bits/stl_algo.h: Additional minor tweaks.
4629 * include/bits/stl_map.h: Likewise.
4630 * include/bits/stl_multimap.h: Likewise.
4631 * include/bits/stl_multiset.h: Likewise.
4632 * include/bits/stl_set.h: Likewise.
4633 * include/bits/stl_tree.h: Likewise.
4635 2004-02-01 Paolo Carlini <pcarlini@suse.de>
4637 * include/bits/vector.tcc (vector::_M_insert_aux(iterator)):
4640 2004-02-01 Paolo Carlini <pcarlini@suse.de>
4642 * include/bits/stl_function.h: Additional minor tweaks.
4644 2004-02-01 Paolo Carlini <pcarlini@suse.de>
4646 * include/bits/deque.tcc: Wrap overlong lines, constify
4647 a few variables, reformat according to the coding standards.
4648 * include/bits/list.tcc: Likewise.
4649 * include/bits/stl_deque.h: Likewise.
4650 * include/bits/stl_function.h: Likewise.
4651 * include/bits/stl_iterator.h: Likewise.
4652 * include/bits/stl_iterator_base_funcs.h: Likewise.
4653 * include/bits/stl_iterator_base_types.h: Likewise.
4654 * include/bits/stl_list.h: Likewise.
4655 * include/bits/stl_map.h: Likewise.
4656 * include/bits/stl_multimap.h: Likewise.
4657 * include/bits/stl_multiset.h: Likewise.
4658 * include/bits/stl_relops.h: Likewise.
4659 * include/bits/stl_set.h: Likewise.
4661 2004-02-01 Paolo Carlini <pcarlini@suse.de>
4663 * include/bits/stl_bvector.h: Wrap overlong lines, constify
4664 a few variables, reformat according to the coding standards.
4665 * include/bits/stl_tree.h: Likewise.
4667 2004-01-31 Paolo Carlini <pcarlini@suse.de>
4669 * include/bits/stl_algo.h: Minor additional reformat, add
4671 * include/bits/stl_algobase.h: Add copyright year.
4673 2004-01-31 Paolo Carlini <pcarlini@suse.de>
4675 * include/bits/stl_algo.h: Wrap overlong lines, constify
4676 a few variables, reformat according to the coding standards.
4677 * include/bits/stl_algobase.h: Likewise.
4678 * include/bits/stl_heap.h: Likewise.
4680 2004-01-31 Paolo Carlini <pcarlini@suse.de>
4682 * include/bits/basic_string.h (_Rep::operator[]): Remove, unused.
4684 * include/bits/basic_string.h: Fix two comments.
4686 2004-01-31 Per Bothner <per@bothner.com>
4688 * include/ext/mt_allocator.h
4689 (__mt_alloc::_S_thread_freelist_mutex): Guard with
4690 __GTHREAD_MUTEX_INIT.
4692 2004-01-31 Paolo Carlini <pcarlini@suse.de>
4694 * include/bits/basic_string.tcc (_Rep::_S_create): Minor tweak.
4696 2004-01-30 Paolo Carlini <pcarlini@suse.de>
4698 * testsuite/21_strings/basic_string/cons/char/6.cc: New.
4699 * testsuite/21_strings/basic_string/cons/wchar_t/6.cc: New.
4700 * testsuite/performance/21_strings/string_cons_input_iterator.cc: New.
4702 2004-01-30 Felix Yen <fwy@alumni.brown.edu>
4704 * testsuite/performance/20_util/allocator_thread.cc (do_loop):
4705 Don't use clear, but instead assign. Use insert.
4707 2004-01-30 Benjamin Kosnik <bkoz@redhat.com>
4709 * src/demangle.cc: Add instantiations.
4710 * src/Makefile.am: Remove special rules for demangle.lo, demangle.o.
4711 * src/Makefile.in: Regenerate.
4713 2004-01-30 David Edelsohn <edelsohn@gnu.org>
4715 * src/allocator.cc: Protect _S_get_thread_id() and
4716 _S_thread_key_destr() with #ifdef __GTHREADS.
4718 2004-01-30 Paolo Carlini <pcarlini@suse.de>
4720 Reshuffle performance testsuite.
4721 * testsuite/performance/allocator.cc, allocator_map_thread.cc,
4722 allocator_thread.cc, complex_norm.cc, container_benchmark.cc,
4723 cout_insert_int.cc, filebuf_copy.cc, filebuf_sputc.cc,
4724 fstream_seek_write.cc, ifstream_extract_float.cc,
4725 ifstream_extract_int.cc, ifstream_getline.cc, is_wchar_t.cc,
4726 list_create_fill_sort.cc, map_create_fill.cc,
4727 narrow_widen_char.cc, narrow_widen_wchar_t.cc,
4728 ofstream_insert_float.cc, ofstream_insert_int.cc,
4729 string_append.cc, wchar_t_in.cc, wchar_t_length.cc,
4730 wchar_t_out.cc: Split into...
4731 * testsuite/performance/20_util/allocator.cc: New.
4732 * testsuite/performance/20_util/allocator_map_thread.cc: New.
4733 * testsuite/performance/20_util/allocator_thread.cc: New.
4734 * testsuite/performance/21_strings/string_append: New.
4735 * testsuite/performance/22_locale/is_wchar_t.cc: New.
4736 * testsuite/performance/22_locale/narrow_widen_char.cc: New.
4737 * testsuite/performance/22_locale/narrow_widen_wchar_t.cc: New.
4738 * testsuite/performance/22_locale/wchar_t_in.cc: New.
4739 * testsuite/performance/22_locale/wchar_t_length.cc: New.
4740 * testsuite/performance/22_locale/wchar_t_out.cc: New.
4741 * testsuite/performance/23_containers/container_benchmark.cc: New.
4742 * testsuite/performance/23_containers/list_create_fill_sort.cc: New.
4743 * testsuite/performance/23_containers/map_create_fill.cc: New.
4744 * testsuite/performance/26_numerics/complex_norm.cc: New.
4745 * testsuite/performance/27_io/cout_insert_int.cc: New.
4746 * testsuite/performance/27_io/filebuf_copy.cc: New.
4747 * testsuite/performance/27_io/filebuf_sputc.cc: New.
4748 * testsuite/performance/27_io/fstream_seek_write.cc: New.
4749 * testsuite/performance/27_io/ifstream_extract_float.cc: New.
4750 * testsuite/performance/27_io/ifstream_extract_int.cc: New.
4751 * testsuite/performance/27_io/ifstream_getline.cc: New.
4752 * testsuite/performance/27_io/ofstream_insert_float.cc: New.
4753 * testsuite/performance/27_io/ofstream_insert_int.cc: New.
4755 2004-01-30 Paolo Carlini <pcarlini@suse.de>
4757 * include/bits/basic_string.tcc (_Rep::_S_create):
4758 Never allocate a string bigger than max_size(); always keep
4759 __capacity and __size in sync to avoid memory leaks at
4762 2004-01-30 Paolo Carlini <pcarlini@suse.de>
4764 * include/bits/basic_string.tcc (_S_construct(_InIterator,
4765 _InIterator, const _Alloc&, input_iterator_tag)): Simplify
4766 the double loop, streamline.
4768 * include/bits/basic_string.tcc: Very minor tweaks.
4770 2004-01-30 Loren J. Rittle <ljrittle@acm.org>
4772 * scripts/check_performance: Only compile with $THREAD_FLAG
4773 when test is marked to require it. Allow multiple
4774 compilations/executions of marked tests.
4775 * testsuite/testsuite_performance.h (report_performance):
4776 Report dynamic thread support status.
4777 (report_header): Likewise.
4778 * testsuite/performance/allocator.cc: Stabilize iteration
4779 count. Support more allocators. Mark each allocator test to
4780 run and report independently.
4781 * testsuite/performance/allocator_map_thread.cc: Likewise.
4782 * testsuite/performance/allocator_thread.cc: Likewise.
4784 2004-01-29 Stephen M. Webb <stephen.webb@bregmasoft.com>
4786 * config/local/generic/c_locale.h: Change ::malloc() to new char[].
4787 * config/local/gnu/c_locale.h: Change ::malloc() to new char[].
4788 * include/bits/stl_tempbuf.h: Convert _Temporary_buffer to use
4789 std::get_temporary_buffer() instead of duplicating its code.
4790 Update to C++STYLE conventions.
4791 * include/std/std_memory.h (get_temporary_buffer): Use ::operator
4792 new() instead of std::malloc().
4793 (return_temporary_buffer): Use ::operator delete() instead of
4796 2004-01-29 Benjamin Kosnik <bkoz@redhat.com>
4798 * include/bits/allocator.h: Temporary switch to new_allocator as
4799 the default to unjam bootstraps.
4801 2004-01-28 Benjamin Kosnik <bkoz@redhat.com>
4803 * include/Makefile.am (bits_headers): Remove allocator_traits.h.
4804 * include/Makefile.in: Regenerate.
4805 * include/bits/allocator_traits.h: Remove.
4806 * include/bits/allocator.h: Remove allocator_traits.h include, and
4808 (allocator): Empty base class, inherit from the underlying allocator.
4809 * src/allocator-inst.cc: Move __pool_alloc instantiation to...
4810 * src/allocator.cc: ...here. New. For the underlying allocators.
4811 Add __mt_alloc, __pool_alloc, new_allocator, malloc_allocator bits.
4812 * config/linker-map.gnu: Remove __pool_alloc bits.
4813 * src/Makefile.am (sources): Add allocator.cc.
4814 * src/Makefile.in: Regenerate.
4815 * testsuite/20_util/allocator/1.cc: Split second test into...
4816 * testsuite/20_util/allocator/8230.cc: ...this.
4817 * include/bits/stl_bvector.h (__gnu_norm): Change bit_vector
4818 typedef to use std::allocatore. Format.
4819 * include/ext/pool_allocator.h: Remove allocator_traits.h include,
4821 * include/ext/mt_allocator.h (__gnu_cxx): Qualify
4822 __throw_bad_alloc calls. Don't include <memory>.
4823 * include/ext/malloc_allocator.h: Remove <memory> include.
4824 * include/ext/new_allocator.h (new_allocator): Same.
4825 * include/ext/ropeimpl.h (__gnu_cxx): Remove __alloc using
4826 declaration. Switch __alloc to _Alloc.
4827 * include/ext/hashtable.h: Remove __alloc.
4828 * include/backward/alloc.h: Only inject allocator, not
4829 implementation details.
4831 * include/ext/mt_allocator.h: Replace free with delete.
4833 2004-01-28 Benjamin Kosnik <bkoz@redhat.com>
4835 * src/globals_io.cc: Change to __gnu_internal namespace.
4836 * src/globals_locale.cc: Same.
4837 * src/locale_init.cc: Same.
4838 * src/ios_init.cc: Same.
4840 2004-01-28 Stefan Olsson <stefan@snon.net>
4842 * include/ext/mt_allocator.h: Replaced all malloc() calls with
4843 operator new(). Added support for the env variable
4844 GLIBCXX_FORCE_NEW (this required the _S_init call to be the first
4845 one in allocate() as well). Fix typos.
4847 2004-01-28 Paolo Carlini <pcarlini@suse.de>
4849 * include/bits/basic_string.h (_S_create(size_t,
4850 const _Alloc&): Change signature to take two size_type
4852 * include/bits/basic_string.tcc (_S_construct(_InIterator,
4853 _InIterator, const _Alloc&, input_iterator_tag)): Update
4855 (_S_construct(_InIterator, _InIterator, const _Alloc&,
4856 forward_iterator_tag)): Likewise.
4857 (_S_construct(size_type, _CharT, const _Alloc&)): Likewise.
4858 (_M_mutate(size_type, size_type, size_type)): Don't
4859 implement the exponential growth policy, demand it to
4860 _S_create, update call and simplify.
4861 (_M_clone(const _Alloc&, size_type)): Likewise.
4862 (_S_create(size_type, size_type, const _Alloc&)): Implement
4863 the growth policy, simplify otherwise.
4865 * include/bits/basic_string.h (_Rep::operator[]): Tweak
4866 signature to take a size_type, consistently with the other
4869 2004-01-27 Benjamin Kosnik <bkoz@redhat.com>
4871 * testsuite/27_io/ios_base/storage/11584.cc: Correct new and
4872 delete declarations, add include and test variable.
4874 2003-01-27 Jerry Quinn <jlquinn@optonline.net>
4876 * include/bits/codecvt.h, include/bits/locale_facets.h,
4877 include/bits/postypes.h, include/bits/stl_bvector.h,
4878 include/bits/stl_multiset.h, include/bits/stl_set.h,
4879 include/bits/stream_iterator.h, include/bits/streambuf_iterator.h,
4880 include/std/std_complex.h: Document.
4882 2004-01-27 Jerry Quinn <jlquinn@optonline.net>
4885 * include/bits/ios_base.h (ios_base::_M_grow_words): Add
4886 iword/pword selector.
4887 (ios_base::iword, ios_base::pword): Use it.
4888 * src/ios.cc (ios_base::_M_grow_words): Clear _M_word_zero
4889 iword or pword member on alloc failure.
4890 * testsuite/27_io/ios_base/storage/11584.cc: New test.
4892 2004-01-27 Ulrich Weigand <uweigand@de.ibm.com>
4893 PJ Darcy <darcypj@us.ibm.com>
4895 * configure.host: Add support for *-tpf.
4896 * crossconfig.m4: Likewise.
4897 * configure: Regenerate.
4898 * config/os/tpf: New directory.
4899 * config/os/tpf/os_defines.h: New file.
4900 * config/os/tpf/ctype_base.h: Likewise.
4901 * config/os/tpf/ctype_inline.h: Likewise.
4902 * config/os/tpf/ctype_noninline.h: Likewise.
4904 2004-01-27 Paolo Carlini <pcarlini@suse.de>
4907 * include/bits/sstream.tcc: Guard use of extern template.
4909 2004-01-27 Paolo Carlini <pcarlini@suse.de>
4911 * include/bits/basic_string.tcc
4912 (basic_string(const basic_string&, size_type, size_type),
4913 basic_string(const basic_string&, size_type, size_type,
4914 const _Alloc&)): Avoid unnecessarily constructing iterators.
4916 2004-01-26 Paolo Carlini <pcarlini@suse.de>
4918 * config/locale/generic/c_locale.cc: Fix throw messages
4919 to use the __N marker.
4920 * config/locale/gnu/c_locale.cc: Likewise.
4921 * config/locale/ieee_1003.1-2001/codecvt_specializations.h:
4923 * docs/html/17_intro/C++STYLE: Likewise.
4924 * include/bits/basic_ios.tcc: Likewise.
4925 * include/bits/fstream.tcc: Likewise.
4926 * include/bits/vector.tcc: Likewise.
4927 * include/ext/ropeimpl.h: Likewise.
4928 * include/std/std_bitset.h: Likewise.
4929 * src/ios.cc: Likewise.
4930 * src/locale.cc: Likewise.
4931 * src/localename.cc: Likewise.
4933 2004-01-26 Paolo Carlini <pcarlini@suse.de>
4935 * include/bits/basic_string.h (_M_replace_aux): Use the
4936 __N marker in throw message.
4937 * include/bits/basic_string.tcc (assign(const _CharT*,
4938 size_type), insert(size_type, const _CharT*, size_type),
4939 replace(size_type, size_type, const _CharT*, size_type),
4940 reserve, _Rep::_S_create, resize, _M_replace_dispatch):
4943 * include/bits/basic_string.h, include/bits/basic_string.tcc:
4944 Fold overlong lines, minor formatting changes.
4946 2004-01-26 Paolo Carlini <pcarlini@suse.de>
4948 * include/bits/basic_string.h (replace(iterator, iterator,
4949 const basic_string&)): Remove _GLIBCXX_DEBUG_PEDASSERT.
4950 (replace(iterator, iterator, const _CharT*)): Ditto.
4951 (replace(iterator, iterator, const _CharT*, size_type)):
4952 Add missing _GLIBCXX_DEBUG_PEDASSERT.
4954 2004-01-26 Paolo Carlini <pcarlini@suse.de>
4956 * include/bits/basic_string.tcc (replace(size_type,
4957 size_type, const _CharT*, size_type)): Implement optimized
4958 in-place algorithm for non-overlapping ranges.
4959 * testsuite/21_strings/basic_string/replace/char/6.cc: New.
4960 * testsuite/21_strings/basic_string/replace/wchar_t/6.cc: New.
4962 * include/bits/basic_string.tcc (insert(size_type,
4963 const _CharT*, size_type)): Tweak slightly.
4965 2004-01-26 Andreas Schwab <schwab@suse.de>
4967 * config/locale/gnu/monetary_members.cc: Restore locale before
4968 rethrowing exception.
4970 2004-01-25 Paolo Carlini <pcarlini@suse.de>
4972 * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
4974 * include/bits/basic_string.tcc (_M_replace_aux, _M_replace_safe):
4977 * include/bits/basic_string.tcc: Very minor tweaks.
4979 2004-01-25 Paolo Carlini <pcarlini@suse.de>
4981 * testsuite/performance/string_append.cc: Increase number
4984 2004-01-25 Paolo Carlini <pcarlini@suse.de>
4986 * include/bits/basic_string.h (erase(size_type, size_type),
4987 erase(iterator), erase(iterator, iterator)): Call _M_replace_safe
4988 instead, thus avoiding redundant check for length_error.
4990 * include/bits/basic_string.h: Tweak some comments.
4992 2004-01-24 Paolo Carlini <pcarlini@suse.de>
4994 * include/bits/basic_string.tcc (operator+(const _CharT*,
4995 const basic_string&)): No need to go through the append
4996 taking two iterators.
4998 2004-01-24 Paolo Carlini <pcarlini@suse.de>
5000 * include/bits/basic_string.tcc (rfind(_CharT, size_type)):
5001 Revert last change to use std::min: machine language is worse.
5002 (find_last_of(const _CharT*, size_type, size_type)): Ditto.
5003 (find_last_not_of(const _CharT*, size_type, size_type)): Ditto.
5004 (find_last_not_of(_CharT, size_type)): Ditto.
5006 * include/bits/basic_string.tcc (insert(size_type, const _CharT*,
5007 size_type)): Discard the value returned by _M_check.
5008 (replace(size_type, size_type, const _CharT*, size_type)): Ditto.
5009 (append(const basic_string&, size_type, size_type)): Ditto.
5010 (copy(_CharT*, size_type, size_type)): Ditto.
5011 (compare(size_type, size_type, const basic_string&)): Ditto.
5012 (compare(size_type, size_type, const basic_string&,
5013 size_type, size_type)): Ditto.
5014 (compare(size_type, size_type, const _CharT*)): Ditto.
5015 (compare(size_type, size_type, const _CharT*, size_type)): Ditto.
5017 2004-01-24 Paolo Carlini <pcarlini@suse.de>
5019 * include/bits/basic_string.h (insert(size_type,
5020 const basic_string&, size_type, size_type)): Define inline here.
5021 * include/bits/basic_string.tcc (insert(size_type,
5022 const basic_string&, size_type, size_type)): Move inline.
5024 2004-01-24 Paolo Carlini <pcarlini@suse.de>
5026 * include/bits/basic_string.h (assign(const basic_string&,
5027 size_type, size_type)): Define inline here.
5028 (replace(size_type, size_type, const basic_string&,
5029 size_type, size_type)): Ditto.
5030 (_M_replace_dispatch(iterator, iterator, _InputIterator,
5031 _InputIterator, __false_type)): Only declare.
5032 (_M_replace(iterator, iterator, _InputIterator,
5033 _InputIterator)): Remove.
5034 * include/bits/basic_string.tcc (assign(const basic_string&,
5035 size_type, size_type)): Move inline.
5036 (replace(size_type, size_type, const basic_string&,
5037 size_type, size_type)): Ditto.
5038 (_M_replace_dispatch(iterator, iterator, _InputIterator,
5039 _InputIterator, __false_type)): Define, now does also what
5040 _M_replace did before.
5041 * src/string-inst.cc (_M_replace): Don't instantiate.
5043 * include/bits/basic_string.tcc (find(const _CharT*,
5044 size_type, size_type)): Tidy.
5045 (rfind(_CharT, size_type)): Ditto.
5046 (find_first_not_of(const _CharT*, size_type, size_type)): Ditto.
5047 (find_first_not_of(_CharT, size_type)): Ditto.
5048 (find_last_not_of(const _CharT*, size_type, size_type)): Ditto.
5049 (find_last_not_of(_CharT, size_type)): Ditto.
5051 2004-01-23 Paolo Carlini <pcarlini@suse.de>
5054 * include/debug/bitset (operator|=): Fix typo.
5055 * testsuite/23_containers/bitset/operations/13838.cc: New.
5057 2004-01-23 Paolo Carlini <pcarlini@suse.de>
5059 * include/bits/basic_string.tcc (insert(size_type,
5060 const _CharT*, size_type __n)): Fix length_error check.
5061 (replace(size_type, size_type, const _CharT*, size_type):
5062 Ditto; call _M_replace_safe.
5063 (_M_replace_aux(size_type, size_type, size_type, _CharT):
5064 Fix length_error check.
5065 (_M_replace(iterator, iterator, _InputIterator,
5066 _InputIterator)): Ditto, tweak.
5067 (_M_replace_safe(size_type, size_type, const _CharT*,
5068 size_type)): Remove length_error check.
5070 * include/bits/basic_string.tcc (append(const basic_string&),
5071 append(const basic_string&, size_type, size_type)): Tweak
5074 * include/bits/basic_string.tcc (copy(_CharT*, size_type,
5075 size_type)): If __n == 0 don't call traits::copy.
5077 2004-01-23 Stefan Olsson <stefan@snon.net>
5079 * include/ext/mt_allocator.h: Reduce lock contention.
5081 2004-01-23 Paolo Carlini <pcarlini@suse.de>
5084 * include/bits/fstream.tcc (underflow): Remove unused
5086 * include/bits/streambuf_iterator.h (equal): Ditto.
5087 * include/bits/locale_facets.h (_M_convert_from_char):
5090 2004-01-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5093 * config/linker-map.gnu (nan): Delete.
5094 * libmath/mathconf.h (NAN, nan): Delete.
5095 * linkage.m4 (nan): Don't check for it.
5096 * libmath/nan.c: Delete file.
5098 * config.h.in, configure: Regenerate.
5100 2004-01-23 Paolo Carlini <pcarlini@suse.de>
5102 * include/bits/basic_string.h (push_back(_CharT)):
5103 Call _M_replace_aux.
5104 (insert(size_type, const basic_string&)): Trivial tweak.
5105 (insert(size_type, size_type, _CharT)): Call _M_replace_aux.
5106 (insert(iterator, _CharT)): Ditto.
5107 (erase(size_type, size_type)): Ditto.
5108 (erase(iterator)): Ditto.
5109 (erase(iterator, iterator)): Ditto.
5110 (replace(size_type, size_type, size_type, _CharT)): Ditto.
5112 2004-01-23 Loren J. Rittle <ljrittle@acm.org>
5115 * testsuite/performance/allocator_map_thread.cc: New test.
5117 2004-01-22 Paolo Carlini <pcarlini@suse.de>
5119 * include/bits/locale_facets.tcc
5120 (money_put::do_put(..., long double)): Use the basic_string
5121 constructor for char arrays, not that for C-strings, to pass
5122 __digits to do_put(..., const string_type&): __ws isn't
5125 2004-01-22 Paolo Carlini <pcarlini@suse.de>
5127 * include/bits/basic_string.h (_M_replace_safe): Change
5128 signatures to take size_types and const _CharT*.
5129 (_M_replace_aux): Likewise, takes size_types instead of
5131 (append(size_type, _CharT)): Update call.
5132 (assign(size_type, _CharT)): Ditto.
5133 (replace(iterator, iterator, size_type, _CharT)): Ditto.
5134 (_M_replace_dispatch(iterator, iterator, _Integer,
5135 _Integer, __true_type)): Ditto.
5136 * include/bits/basic_string.tcc (assign(const _CharT*,
5138 (insert(size_type, const _CharT*, size_type)): Ditto.
5139 (replace(size_type, size_type, const _CharT*,
5141 (_M_replace(iterator, iterator, _InputIterator,
5142 _InputIterator)): Ditto.
5143 (append(const basic_string&)): Ditto.
5144 (append(const basic_string&, size_type, size_type): Ditto.
5145 (append(const _CharT*, size_type): Ditto.
5146 (_M_replace_safe, _M_replace_safe): Change definitions
5147 accordingly, simplify.
5148 * string-inst.cc (_M_replace_safe): Don't instantiate.
5150 2004-01-21 Paolo Carlini <pcarlini@suse.de>
5152 * include/bits/basic_string.tcc (append(const basic_string&)):
5153 Revert previous change.
5154 (append(const basic_string&, size_type, size_type)): Revert
5155 previous change, use _M_check and _M_limit.
5157 2004-01-21 Paolo Carlini <pcarlini@suse.de>
5159 * include/bits/basic_string.h (_M_check): Change to return
5160 a checked __pos and take an additional const char* argument.
5161 (_M_fold): Rename to _M_limit, change to return a size_type,
5162 corresponding to the __off limited to the actual length.
5163 (insert(size_type, size_type, _CharT)): Update call, call
5165 (insert(iterator, _CharT)): Call replace(iterator, iterator,
5166 size_type, _CharT) instead.
5167 (erase(size_type, size_type)): Update calls.
5168 (replace(size_type, size_type, size_type, _CharT)): Ditto.
5169 (substr(size_type, size_type)): Use _M_check.
5170 * include/bits/basic_string.tcc (basic_string(const basic_string&,
5171 size_type, size_type)): Update calls.
5172 (basic_string(const basic_string&, size_type, size_type,
5173 const _Alloc&)): Ditto.
5174 (assign(const basic_string&, size_type, size_type)): Use the
5175 new _M_check and _M_limit.
5176 (insert(size_type, const basic_string&, size_type, size_type):
5178 (insert(size_type, const _CharT*, size_type)): Ditto.
5179 (replace(size_type, size_type, const _CharT*, size_type): Ditto.
5180 (replace(size_type, size_type, const basic_string&,
5181 size_type, size_type)): Ditto.
5182 (append(const basic_string&)): Ditto.
5183 (append(const basic_string&, size_type, size_type)): Ditto.
5184 (copy(_CharT*, size_type, size_type)): Ditto.
5185 (compare(size_type, size_type, const basic_string&)): Ditto.
5186 (compare(size_type, size_type, const basic_string&,size_type,
5188 (compare(size_type, size_type, const _CharT*)): Ditto.
5189 (compare(size_type, size_type, const _CharT*, size_type)): Ditto.
5191 2004-01-19 Stefan Olsson <stefan@snon.net>
5193 * include/ext/mt_allocator.h: If a thread, when it dies, still has
5194 memory on it's freelist this memory is not returned to global
5195 list. Simplification of deallocate so that memory is always
5196 returned to the calling thread id's freelist instead of to
5197 global. Fix typos. Add volatile where appropriate.
5199 2004-01-19 Loren J. Rittle <ljrittle@acm.org>
5201 * testsuite/ext/stdio_filebuf/char/10063-2.cc: Treat unbuffered.
5202 * testsuite/ext/stdio_filebuf/char/10063-3.cc: New test. Like -2 but
5203 use __gnu_cxx::stdio_sync_filebuf<char> instead; allow buffered stream.
5205 2004-01-19 Paolo Carlini <pcarlini@suse.de>
5207 * src/debug.cc: Make sure all the names are prefixed with
5208 double (or single) underscore.
5210 2004-01-19 Paolo Carlini <pcarlini@suse.de>
5212 * src/debug.cc: Trivial formatting change.
5214 2004-01-19 Paolo Carlini <pcarlini@suse.de>
5216 * include/bits/basic_string.tcc (_S_construct(size_type,
5217 _CharT, const _Alloc&)): Remove redundant try/catch.
5218 (_M_mutate(size_type, size_type, size_type)): Ditto.
5219 (_M_clone(const _Alloc&, size_type)): Ditto.
5221 2004-01-18 Paolo Carlini <pcarlini@suse.de>
5223 * include/bits/basic_string.h (c_str()): Simplify, due to
5224 21.3.4 the internal representation is always kept null-terminated.
5225 * include/bits/basic_string.tcc (_M_clone): Null-terminate.
5226 * testsuite/21_strings/basic_string/element_access/char/4.cc: New.
5227 * testsuite/21_strings/basic_string/element_access/wchar_t/4.cc:
5230 2004-01-18 Paolo Carlini <pcarlini@suse.de>
5232 * include/bits/basic_string.h (append(size_type, _CharT)):
5233 Moved inline, just call _M_replace_aux, no source iterators at
5234 risk of being clobbered.
5235 (assign(size_type, _CharT)): Call directly _M_replace_aux.
5236 (_M_replace(iterator, iterator, _InputIterator, _InputIterator,
5237 input_iterator_tag)): Remove fifth unused argument.
5238 (_M_replace_dispatch(iterator, iterator, _InputIterator,
5239 _InputIterator, __false_type)): Update call.
5240 * include/bits/basic_string.tcc (replace(size_type, size_type,
5241 const _CharT*, size_type)): Update call.
5242 (_M_replace_aux(iterator, iterator, size_type, _CharT)): Tweak
5243 throw string literal.
5244 (_M_replace_safe(iterator, iterator, _ForwardIterator,
5245 _ForwardIterator)): Likewise.
5246 (_M_replace(iterator, iterator, _InputIterator, _InputIterator,
5247 input_iterator_tag)): Remove fifth unused argument.
5248 (append(size_type __n, _CharT __c)): Move inline.
5249 * src/string-inst.cc (S::_M_replace(S::iterator, S::iterator,
5250 const C*, const C*, input_iterator_tag)): Remove fifth unused
5253 2004-01-16 Benjamin Kosnik <bkoz@redhat.com>
5255 * testsuite/ext/enc_filebuf/char/13189.cc: Fix guards.
5256 * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Same.
5258 2004-01-16 Danny Smith <dannysmith@users.sourceforge.net>
5260 * testsuite/testsuite_hooks.cc (try_mkfifo): Avoid calling
5263 2004-01-15 Stefan Olsson <stefan@snon.net>
5265 * include/ext/mt_allocator.h: Reuse thread id's as soon as
5266 possible by changing the behaviour of thread_freelist to do
5267 push_front when threads die instead of push_back.
5269 2004-01-14 Paolo Carlini <pcarlini@suse.de>
5271 * include/bits/locale_facets.h (struct __numpunct_cache):
5272 Add member _M_grouping_size, caching the length of _M_grouping.
5273 (__numpunct_cache<>::_M_cache): Assign the latter.
5274 (__verify_grouping): Move declaration...
5275 * include/bits/locale_facets.tcc (__verify_grouping):
5276 ... here, change signature to take a const char* and a size_t
5277 for the grouping; not a template anymore.
5278 (__add_grouping, num_put::_M_group_int, num_put::_M_group_float):
5279 Likewise change signature and tweak consistently.
5280 (num_get::_M_extract_float, num_get::_M_extract_int,
5281 num_put::_M_insert_int, num_put::_M_insert_float,
5282 money_get::do_get(string_type&), money_get::do_put(string_type)):
5284 * config/locale/generic/numeric_members.cc
5285 (numpunct<>::_M_initialize_numpunct): Assign the new member.
5286 * config/locale/gnu/numeric_members.cc
5287 (numpunct<>::_M_initialize_numpunct): Likewise.
5288 * src/locale-inst.cc (__add_grouping): Tweak signature.
5289 (__verify_grouping): Don't instantiate, not a template anymore.
5291 * include/bits/locale_facets.h: Rename _M_truename_len ->
5292 _M_truename_size, _M_falsename_len -> _M_falsename_size.
5293 * include/bits/locale_facets.tcc: Likewise.
5294 * config/locale/generic/numeric_members.cc: Likewise.
5295 * config/locale/gnu/numeric_members.cc: Likewise.
5297 2004-01-14 Stefan Olsson <stefan@snon.net>
5299 * include/ext/mt_allocator.h: Fixups.
5300 * testsuite/performance/allocator.cc: Enable __mt_alloc tests.
5301 * testsuite/performance/allocator_thread.cc: Same.
5303 2004-01-13 Benjamin Kosnik <bkoz@redhat.com>
5305 * testsuite/performance/ifstream_extract_float.cc: Add higher
5307 * testsuite/performance/ofstream_insert_float.cc: Same.
5309 2004-01-13 Paolo Carlini <pcarlini@suse.de>
5311 * src/locale-misc-inst.cc (__convert_from_v(long),
5312 __convert_from_v(unsigned long), __convert_from_v(long long),
5313 __convert_from_v(unsigned long long)): Remove, unused.
5315 2004-01-13 Benjamin Kosnik <bkoz@redhat.com>
5317 * testsuite/performance/ifstream_extract_float.cc: New.
5318 * testsuite/performance/ofstream_insert_float.cc: Float generation
5321 * 20_util/auto_ptr.cc, auto_ptr_neg.cc: Break into...
5322 * 20_util/auto_ptr/1.cc: ...this.
5323 * 20_util/auto_ptr/2.cc: Same.
5324 * 20_util/auto_ptr/3.cc: Same.
5325 * 20_util/auto_ptr/3946.cc: Same.
5326 * 20_util/auto_ptr/4.cc: Same.
5327 * 20_util/auto_ptr/5.cc: Same.
5328 * 20_util/auto_ptr/6.cc: Same.
5329 * 20_util/auto_ptr/7.cc: Same.
5330 * 20_util/auto_ptr/assign_neg.cc
5331 * 20_util/pairs.cc: Break into...
5332 * 20_util/pair/1.cc: ...this.
5333 * 20_util/pair/2.cc: Same.
5334 * 20_util/pair/3.cc: Same.
5335 * 20_util/pair/4.cc: Same.
5337 2004-01-13 Paolo Carlini <pcarlini@suse.de>
5339 * include/bits/locale_facets.tcc (num_get::do_get(void*&)):
5340 Set correctly just basefield, the only group that matters.
5342 2004-01-13 Paolo Carlini <pcarlini@suse.de>
5344 * include/ext/rope (_Rope_rep_alloc_base): Eliminate.
5345 (_Rope_rep_base): Inherit directly from the rope allocator;
5346 use rebinding instead of _Alloc_traits; pick up data member
5347 from _Rope_rep_alloc_base.
5348 (_Rope_alloc_base): Eliminate.
5349 (_Rope_base): Inherit directly from the rope allocator; use
5350 rebinding instead of _Alloc_traits; pick up data member from
5352 (rope::_S_new_RopeLeaf, rope::_S_new_RopeConcatenation,
5353 rope::_S_new_RopeFunction, rope::_S_new_RopeSubstring): Tweak.
5355 2004-01-13 Paolo Carlini <pcarlini@suse.de>
5358 * include/bits/basic_string.tcc (compare(size_type, size_type,
5359 const _CharT*, size_type)): Implement correctly the resolution
5360 of DR 5: basically, s is a char array, -not- a C string.
5361 * include/bits/basic_string.h: Tweak some comments.
5362 * testsuite/21_strings/basic_string/compare/char/13650.cc: New.
5363 * testsuite/21_strings/basic_string/compare/wchar_t/13650.cc: New.
5365 2004-01-12 Andreas Tobler <a.tobler@schweiz.ch>
5367 * testsuite/lib/libstdc++.exp: Set LD_LIBRARY_PATH_32 for
5370 2004-01-12 Paolo Carlini <pcarlini@suse.de>
5372 * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc:
5374 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc:
5377 2004-01-12 Paolo Carlini <pcarlini@suse.de>
5379 * include/bits/locale_facets.h (struct __numpunct_cache):
5380 Add members _M_truename_len and _M_falsename_len, caching
5381 the lengths of _M_truename and _M_falsename.
5382 (__numpunct_cache<>::_M_cache): Assign the latter.
5383 * include/bits/locale_facets.tcc (num_get::do_get(bool&),
5384 num_put::do_put(bool)): Use the new members, thus avoiding
5385 computing string lengths again and again.
5386 * config/locale/generic/numeric_members.cc
5387 (numpunct<>::_M_initialize_numpunct): Assign the new members.
5388 * config/locale/gnu/numeric_members.cc
5389 (numpunct<>::_M_initialize_numpunct): Likewise.
5391 2004-01-12 Mark Mitchell <mark@codesourcery.com>
5393 * testsuite/testsuite_hooks.h (__gnu_test::try_mkfifo): Declare it.
5394 * testsuite/testsuite_hooks.cc (__gnu_test::try_mkfifo): Define
5396 * testsuite/27_io/basic_filebuf/close/char/4879.cc: Use try_mkfifo
5397 and remove Cygwin XFAIL.
5398 * testsuite/27_io/basic_filebuf/close/char/9964.cc: Likewise.
5399 * testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc: Likewise.
5400 * testsuite/27_io/basic_filebuf/open/char/9507.cc: Likewise.
5401 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc:
5403 * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
5404 * testsuite/27_io/objects/char/7.cc: Likewise.
5405 * testsuite/27_io/objects/char/9661-1.cc: Likewise.
5406 * testsuite/27_io/objects/wchar_t/7.cc: Likewise.
5407 * testsuite/27_io/objects/wchar_t/9661-1.cc: Likewise.
5409 2004-01-11 Gabriel Dos Reis <gdr@integrable-solutions.net>
5411 * include/std/std_complex.h (std::complex<>::real): Return a
5412 reference. Add non-const overload.
5413 (std::complex<>::real): Likewise.
5414 (std::real): Likewise.
5415 (std::imag): Likewise.
5416 (std::operator+): Tidy.
5417 (std::operator-): Likewise.
5418 (std::operator*): Likewise.
5419 (std::operator/): Likewise.
5420 (std::operator>>): Likewise.
5422 2004-01-11 Paolo Carlini <pcarlini@suse.de>
5425 * include/bits/fstream.tcc (imbue): Exploit the external
5426 buffer to imbue 'on the fly' a new locale and convert its
5427 remainder with the new codecvt facet.
5428 (underflow): Tweak slightly to deal with this special case.
5429 * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc: New.
5430 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc: Ditto.
5431 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-3.cc: Ditto.
5432 * testsuite/27_io/objects/wchar_t/13582-1_xin.cc: Ditto.
5433 * testsuite/27_io/objects/wchar_t/13582-1_xin.in: Ditto.
5435 2004-01-10 Paolo Carlini <pcarlini@suse.de>
5437 * docs/html/ext/lwg-active.html, docs/html/ext/lwg-defects.html:
5440 2004-01-10 Paolo Carlini <pcarlini@suse.de>
5443 * include/bits/locale_classes.h (class locale): Fix category
5445 * testsuite/22_locale/locale/13630.cc: Add.
5447 2004-01-10 Giovanni Bajo <giovannibajo@gcc.gnu.org>
5449 * include/bits/locale_facets.h: Make a name really dependent. This
5450 will be needed when Core Issue 224 is implemented.
5452 2004-01-09 Paolo Carlini <pcarlini@suse.de>
5454 * testsuite/performance/allocator.cc: Demangle typeid(obj).name().
5455 * testsuite/performance/allocator_thread.cc: Likewise.
5457 2004-01-07 Benjamin Kosnik <bkoz@redhat.com>
5459 * crossconfig.m4: Add LFS, io bits to linux cross config.
5460 * acconfig.h: Remove obsolete bits, reorder.
5461 * config.h.in: Regenerate.
5465 2004-01-07 Gawain Bolton <gp.bolton@computer.org>
5467 * include/bits/stl_list.h:
5468 * include/bits/list.tc:
5470 Performance enhancements for destructor, push_front(),
5471 push_back(), pop_front(), pop_back(), sort()
5472 Eliminated static_casts where possible.
5473 Moved code out of header files into new src/list.cc
5474 implementation file for library where possible.
5475 Remove inheritance from iterator class and create separate
5476 classes for non-constant and constant iterators.
5477 * include/bits/stl_tree.h (_Rb_tree class):
5479 Only erase contents in destructor.
5480 Eliminate unnecessary initialization in assignment operator.
5481 Optimize for the nominal case by not checking whether
5482 container is empty in clear().
5483 Re-order test in _M_insert() to improve performance.
5484 Move initialization of new node's left & right pointers to
5485 src/tree.cc to where new node's colour is initialized
5486 and to reduce the amount of inline code.
5487 Use _M_leftmost() and _M_end() to improve readability where
5489 Create separate classes for non-constant and constant
5490 iterators to clarify code, avoid extra template parameters and
5491 casting away constness.
5493 2004-01-07 Benjamin Kosnik <bkoz@redhat.com>
5495 * src/Makefile.am (sources): Add list.cc, tree.cc.
5496 * src/stl_tree.cc: Move to...
5497 * src/tree.cc: ...here.
5499 * config/linker-map.gnu: Tweaks.
5500 * testsuite/23_containers/map/operators/1_neg.cc: Add excess errors.
5501 * testsuite/23_containers/set/operators/1_neg.cc: Add excess errors.
5503 * bits/stl_vector.h: Column wrap comments.
5505 2004-01-07 Loren J. Rittle <ljrittle@acm.org>
5507 (re-open) PR libstdc++/12658
5508 * src/locale_init.cc (locale::locale): Remove ill-scoped mutex.
5509 (locale::global): Likewise.
5511 2004-01-07 Paolo Carlini <pcarlini@suse.de>
5513 * testsuite/27_io/basic_istream/extractors_other/char/9318-in.cc:
5514 Remove redundant #include.
5515 * testsuite/27_io/basic_ostream/endl/char/1.cc: Likewise.
5516 * testsuite/27_io/basic_ostream/ends/char/1.cc: Likewise,
5517 re-enable normal testing.
5518 * testsuite/27_io/basic_ostream/ends/char/2.cc: Remove redundant
5520 * testsuite/27_io/basic_ostream/flush/char/1.cc: Likewise.
5521 * testsuite/27_io/basic_ostream/inserters_character/char/1.cc:
5523 * testsuite/27_io/basic_ostream/inserters_character/char/2.cc:
5525 * testsuite/27_io/basic_ostream/inserters_character/char/3.cc:
5527 * testsuite/27_io/basic_ostream/inserters_character/char/4.cc:
5529 * testsuite/27_io/basic_ostream/inserters_character/char/5.cc:
5531 * testsuite/27_io/basic_ostream/inserters_character/char/6.cc:
5533 * testsuite/27_io/basic_ostream/inserters_character/char/8.cc:
5535 * testsuite/27_io/basic_ostream/inserters_character/wchar_t/7.cc:
5536 More properly, #include <locale>.
5537 * testsuite/27_io/basic_ostream/inserters_character/wchar_t/8.cc:
5538 Remove redundant #include.
5539 * testsuite/27_io/basic_ostream/inserters_other/char/2.cc: Likewise.
5540 * testsuite/27_io/basic_ostream/inserters_other/char/3.cc: Remove
5541 redundant DejaGnu directive.
5542 * testsuite/27_io/basic_ostream/inserters_other/char/4.cc: Remove
5545 2004-01-06 Benjamin Kosnik <bkoz@redhat.com>
5546 Stefan Olsson <stefan@snon.net>
5548 * scripts/check_performance: Use -pthread.
5549 * testsuite/performance/allocator.cc: Tweaks, add list.
5550 * testsuite/performance/allocator_thread.cc: New.
5552 2004-01-06 Jerry Quinn <jlquinn@optonline.net>
5554 * include/bits/locale_facets.h: Document public classes and
5556 * include/bits/locale_facets.tcc (time_get::_M_extract_via_format):
5559 2004-01-06 Paolo Carlini <pcarlini@suse.de>
5561 * testsuite/27_io/basic_istream/extractors_other/char/1.cc:
5562 Remove redundant #includes.
5563 * testsuite/27_io/basic_istream/extractors_other/char/2.cc:
5565 * testsuite/27_io/basic_istream/extractors_other/char/3.cc:
5567 * testsuite/27_io/basic_istream/get/char/1.cc: Likewise.
5568 * testsuite/27_io/basic_istream/get/char/2.cc: Likewise.
5569 * testsuite/27_io/basic_istream/getline/char/1.cc: Likewise.
5570 * testsuite/27_io/basic_istream/getline/char/2.cc: Likewise.
5571 * testsuite/27_io/basic_istream/getline/char/3.cc: Likewise.
5572 * testsuite/27_io/basic_istream/ignore/char/1.cc: Likewise.
5573 * testsuite/27_io/basic_istream/ignore/char/6360.cc: Likewise.
5574 * testsuite/27_io/basic_istream/ignore/char/7220.cc: Likewise.
5575 * testsuite/27_io/basic_istream/peek/char/1.cc: Likewise.
5576 * testsuite/27_io/basic_istream/peek/char/6414.cc: Likewise.
5577 * testsuite/27_io/basic_istream/putback/char/1.cc: Likewise.
5578 * testsuite/27_io/basic_istream/read/char/1.cc: Likewise.
5579 * testsuite/27_io/basic_istream/read/char/2.cc: Likewise.
5580 * testsuite/27_io/basic_istream/read/char/3.cc: Likewise.
5581 * testsuite/27_io/basic_istream/readsome/char/6746-1.cc:
5583 * testsuite/27_io/basic_istream/readsome/char/6746-2.cc:
5585 * testsuite/27_io/basic_istream/readsome/char/8258.cc:
5587 * testsuite/27_io/basic_istream/seekg/char/2346-fstream.cc:
5589 * testsuite/27_io/basic_istream/seekg/char/2346-sstream.cc:
5591 * testsuite/27_io/basic_istream/seekg/char/8348-1.cc: Likewise.
5592 * testsuite/27_io/basic_istream/seekg/char/8348-2.cc: Likewise.
5593 * testsuite/27_io/basic_istream/tellg/char/8348.cc: Likewise.
5595 2004-01-04 Paolo Carlini <pcarlini@suse.de>
5597 * testsuite/27_io/basic_istream/extractors_arithmetic/char/01.cc:
5598 Remove redundant #includes.
5599 * testsuite/27_io/basic_istream/extractors_arithmetic/char/02.cc:
5601 * testsuite/27_io/basic_istream/extractors_arithmetic/char/03.cc:
5603 * testsuite/27_io/basic_istream/extractors_arithmetic/char/06.cc:
5605 * testsuite/27_io/basic_istream/extractors_arithmetic/char/07.cc:
5607 * testsuite/27_io/basic_istream/extractors_arithmetic/char/08.cc:
5609 * testsuite/27_io/basic_istream/extractors_arithmetic/char/09.cc:
5611 * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
5613 * testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc:
5615 * testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc:
5617 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/1.cc:
5619 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/2.cc:
5621 * testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc:
5624 2004-01-04 Mark Mitchell <mark@codesourcery.com>
5627 * testsuite/27_io/basic_filebuf/4.cc: Remove use of invalid copy
5629 * testsuite/27_io/basic_fstream/4.cc: Likewise.
5630 * testsuite/27_io/basic_ifstream/4.cc: Likewise.
5631 * testsuite/27_io/basic_ios/4.cc: Likewise.
5632 * testsuite/27_io/basic_iostream/4.cc: Likewise.
5633 * testsuite/27_io/basic_istream/4.cc: Likewise.
5634 * testsuite/27_io/basic_istingstream/4.cc: Likewise.
5635 * testsuite/27_io/basic_ofstream/4.cc: Likewise.
5636 * testsuite/27_io/basic_ostream/4.cc: Likewise.
5637 * testsuite/27_io/basic_ostringstream/4.cc: Likewise.
5638 * testsuite/27_io/basic_stringbuf/5.cc: Likewise.
5639 * testsuite/27_io/basic_stringstream/4.cc: Likewise.
5641 2004-01-04 Paolo Carlini <pcarlini@suse.de>
5643 * config/locale/generic/numeric_members.cc (_M_initialize_numpunct):
5644 Avoid unnecessarily zero terminating _M_atoms_out and _M_atoms_in;
5645 always use double underscored names.
5646 * config/locale/gnu/numeric_members.cc (_M_initialize_numpunct):
5648 * include/bits/locale_facets.h (struct __numpunct_cache):
5649 Dimension _M_atoms_out and _M_atoms_in one position smaller.
5650 (__numpunct_cache<>::_M_cache): Don't zero terminate _M_atoms_out