1 2004-11-08 Paolo Carlini <pcarlini@suse.de>
3 * include/bits/streambuf_iterator.h (class istreambuf_iterator):
4 Consistently use _M_c to cache the current char, i.e., not only
5 when operator++(int) is involved; change _M_c to mutable.
6 (_M_get()): Always save the return value of _M_sbuf->sgetc() into
8 * testsuite/22_locale/time_get/get_monthname/char/1.cc: Fix
10 * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Likewise.
11 * testsuite/22_locale/time_get/get_weekday/char/1.cc: Likewise.
12 * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Likewise.
14 2004-11-08 Paolo Carlini <pcarlini@suse.de>
16 * include/bits/istream.tcc (getline(char_type*, streamsize,
17 char_type), ignore(streamsize), ignore(streamsize, int_type)):
18 Restore a generic version of the functions, not using the
19 protected members of basic_streambuf.
20 * include/std/std_istream.h (getline(char_type*, streamsize,
21 char_type), ignore(streamsize), ignore(streamsize, int_type)):
22 Declare optimized specializations for char and wchar_t.
23 * src/istream.cc: New file, define the latter.
24 * src/Makefile.am: Add.
25 * src/Makefile.in: Regenerate.
27 2004-11-07 Paolo Carlini <pcarlini@suse.de>
29 * testsuite/performance/27_io/ifstream_getline-2.cc: New.
31 2004-11-05 Benjamin Kosnik <bkoz@redhat.com>
35 * docs/doxygen/filter: Remove.
36 * docs/doxygen/filter.sed: Remove.
37 * docs/doxygen/mainpage.html: Add link to functions.
38 * docs/doxygen/run_doxygen: Changes due to new source filtering.
39 * docs/doxygen/user.cfg.in: Update to doxygen 1.3.9.1, tweak.
40 * include/bits/allocator.h: Tweaks for doxygen.
41 * include/bits/char_traits.h: Same.
42 * include/bits/codecvt.h: Same.
43 * include/bits/concurrence.h: Same.
44 * include/bits/locale_facets.h: Same.
45 * include/ext/array_allocator.h: Same.
46 * include/ext/debug_allocator.h: Same.
47 * include/ext/malloc_allocator.h: Same.
48 * include/ext/mt_allocator.h: Same.
49 * include/ext/new_allocator.h: Same.
50 * include/ext/pool_allocator.h: Same.
51 * include/ext/stdio_sync_filebuf.h: Same.
52 * include/std/std_memory.h: Same.
53 * include/tr1/array: Same.
54 * include/tr1/tuple: Same.
55 * config/locale/ieee_1003.1-2001/codecvt_specializations.h: Same.
56 * config/os/gnu-linux/ctype_base.h: Same.
58 2004-11-04 Paolo Carlini <pcarlini@suse.de>
60 * include/bits/locale_facets.tcc (num_get<>::do_get(bool&)):
61 Evaluate __beg == __end the exact strict minimum number of times.
63 2004-11-03 Jonathan Wakely <redi@gcc.gnu.org>
65 * include/bits/stl_numeric.h (partial_sum, adjacent_difference):
66 Avoid dereferencing two times __first in the prologue.
68 2004-11-03 Paolo Carlini <pcarlini@suse.de>
70 * include/bits/stl_numeric.h: Trivial formatting fixes.
72 2004-11-03 Benjamin Kosnik <bkoz@redhat.com>
74 * include/bits/c++config: Spacing.
75 * libsupc++/del_op.cc: Include c++config.h.
76 * libsupc++/del_opnt.cc: Same.
77 * libsupc++/del_opv.cc: Same.
78 * libsupc++/del_opvnt.cc: Same.
79 * libsupc++/new_op.cc: Same.
80 * libsupc++/new_opnt.cc: Same.
81 * libsupc++/new_opv.cc: Same.
82 * libsupc++/new_opvnt.cc: Same.
84 2004-11-03 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
86 * config/os/bsd/darwin/os_defines.h
87 (_GLIBCXX_WEAK_DEFINITION): Define.
88 * include/bits/c++config (_GLIBCXX_WEAK_DEFINITION): Define.
89 * libsupc++/del_op.cc (operator delete(void *)): Use
90 _GLIBCXX_WEAK_DEFINITION.
91 * libsupc++/del_opnt.cc
92 (operator delete(void *, const std::nothrow_t&)): Same.
93 * libsupc++/del_opv.cc (operator delete[](void *)): Same.
94 * libsupc++/del_opvnt.cc
95 (operator delete[](void *, const std::nothrow_t&)): Same.
96 * libsupc++/new_op.cc (operator new(std::size_t)): Same.
97 * libsupc++/new_opnt.cc
98 (operator new(std::size_t, const std::nothrow_t&)): Same
99 * libsupc++/new_opv.cc (operator new[](std::size_t)): Same.
100 * libsupc++/new_opvnt.cc
101 (operator new[](std::size_t, const std::nothrow_t&)): Same.
103 2004-11-02 Paolo Carlini <pcarlini@suse.de>
105 * include/bits/locale_facets.tcc (num_get<>::_M_extract_int):
106 Evaluate *__beg the exact strict minimum number of times; likewise
107 for __beg != __end; slightly simplify main parsing loop.
109 2004-11-02 Benjamin Kosnik <bkoz@redhat.com>
110 Lothar Werzinger <lothar@xcerla.com>
113 * src/debug.cc: Include concurrence, use mutexes.
114 (_Safe_iterator_base::_M_attach): Here.
115 (_Safe_iterator_base::_M_detach): Here.
117 2004-11-02 Benjamin Kosnik <bkoz@redhat.com>
120 * include/bits/ios_base.h : Add enum values.
121 * testsuite/testsuite_hooks.h (bitmask_operators): Add function.
122 * testsuite/27_io/ios_base/types/fmtflags/bitmask_operators.cc: New.
123 * testsuite/27_io/ios_base/types/fmtflags/case_label.cc: New.
124 * testsuite/27_io/ios_base/types/iostate/bitmask_operators.cc: New.
125 * testsuite/27_io/ios_base/types/iostate/case_label.cc: New.
126 * testsuite/27_io/ios_base/types/openmode/bitmask_operators.cc: New.
127 * testsuite/27_io/ios_base/types/openmode/case_label.cc: New.
128 * testsuite/27_io/ios_base/types/seekdir/case_label.cc: New.
130 * config/io/c_io_stdio.h (__ios_flags): Mark deprecated.
133 * testsuite/27_io/ios_base/cons/assign_neg.cc: Adjust line numbers.
134 * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
136 2004-11-01 Momchil Velikov <velco@fadata.bg>
139 * libsupc++/eh_globals.cc (get_globals_dtor): Delete unhandled
141 * testsuite/thread/18185.cc: New.
143 2004-11-01 Chris Jefferson <chris@bubblescope.net>
146 * include/tr1/tuple (get(pair)): Change occurrences of _I to _Int.
147 (get(const pair)): Likewise.
149 2004-11-01 Paolo Carlini <pcarlini@suse.de>
151 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
152 Evaluate *__beg the exact strict minimum number of times; likewise
153 for __beg != __end; in the main parsing loop, call ++__beg in two
154 places only. The former is also a correctness issue, because,
155 according to the standard (22.2.2.1.2, Stage 2), 'in' shall be
156 dereferenced only one time for each increment.
158 2004-10-31 Benjamin Kosnik <bkoz@redhat.com>
161 * testsuite/23_containers/set/modifiers/16728.cc: New.
163 2004-10-30 Paolo Carlini <pcarlini@suse.de>
165 * include/ext/bitmap_allocator.h (allocate(size_type)): Minor tweak.
167 * testsuite/ext/bitmap_allocator/check_delete.cc: New.
168 * testsuite/ext/bitmap_allocator/check_new.cc: Likewise.
170 2004-10-29 Geoffrey Keating <geoffk@apple.com>
172 * configure.host (darwin*): Set os_include_dir to a separate directory
174 * acinclude.m4 (GLIBCXX_ENABLE_CLOCALE): Add a new C locale kind,
176 * config/locale/darwin/ctype_members.cc: New.
177 * config/os/bsd/darwin/ctype_base.h: New.
178 * config/os/bsd/darwin/ctype_inline.h: New.
179 * config/os/bsd/darwin/ctype_noninline.h: New.
180 * config/os/bsd/darwin/os_defines.h: New.
182 * testsuite/22_locale/locale/cons/12658_thread-1.cc: Only xfail
185 2004-10-29 Chris Jefferson <chris@bubblescope.net>
187 * include/bit/stl_algo.h (find_first_of(,,,,pred)):
188 Remove invalid EqualOpConcept.
189 * testsuite/25_algorithms/find_first_of/concept_check_1.cc: New.
191 2004-10-29 Benjamin Kosnik <bkoz@redhat.com>
193 * testsuite/testsuite_allocator.h (check_delete): New.
194 (check_new): Simplify.
195 * testsuite/ext/array_allocator/check_delete.cc: New.
196 * testsuite/ext/array_allocator/check_new.cc: Simplify.
197 * testsuite/ext/debug_allocator/check_delete.cc: New.
198 * testsuite/ext/debug_allocator/check_new.cc: Simplify.
199 * testsuite/ext/malloc_allocator/check_delete.cc: New.
200 * testsuite/ext/malloc_allocator/check_new.cc: Simplify.
201 * testsuite/ext/mt_allocator/check_delete.cc: New.
202 * testsuite/ext/mt_allocator/check_new.cc: Simplify.
203 * testsuite/ext/new_allocator/check_delete.cc: New.
204 * testsuite/ext/new_allocator/check_new.cc: Simplify.
205 * testsuite/ext/pool_allocator/check_delete.cc: New.
206 * testsuite/ext/pool_allocator/check_new.cc: Simplify.
208 2004-10-28 Chris Jefferson <chris@bubblescope.net>
211 * include/tr1/tuple: Fix, change formatting.
213 2004-10-28 Benjamin Kosnik <bkoz@redhat.com>
215 * include/ext/mt_allocator.h (__common_pool_policy): Add template
216 template parameter for pool class type.
217 (__per_type_pool_policy): Same.
218 (__mt_allocator): Don't inherit policy. Qualify policy_type calls.
219 * testsuite/ext/mt_allocator/check_deallocate_null.cc: Fix.
220 * testsuite/ext/mt_allocator/check_deallocate_null_thread.cc: Same.
221 * testsuite/ext/mt_allocator/deallocate_global-2.cc: Same.
222 * testsuite/ext/mt_allocator/deallocate_global-4.cc: Same.
223 * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: Same.
224 * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: Same.
225 * testsuite/ext/mt_allocator/deallocate_local-2.cc: Same.
226 * testsuite/ext/mt_allocator/deallocate_local-4.cc: Same.
227 * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: Same.
228 * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: Same.
229 * testsuite/ext/mt_allocator/instantiate.cc: Same.
230 * testsuite/ext/mt_allocator/tune-1.cc: Same.
231 * testsuite/ext/mt_allocator/tune-2.cc: Same.
232 * testsuite/ext/mt_allocator/tune-3.cc: Same.
233 * testsuite/ext/mt_allocator/tune-4.cc: Same.
235 2004-10-28 Paolo Carlini <pcarlini@suse.de>
237 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
238 Cache *__beg in __c when parsing exponent sign too.
239 (num_get<>::do_get(..., bool&)): Cache *__beg.
240 (money_get<>::_M_extract)): Likewise, in money_base::value.
242 2004-10-27 Paolo Carlini <pcarlini@suse.de>
244 * include/bits/basic_string.h (assign(const basic_string&)):
246 * include/bits/basic_string.tcc: ... here.
248 2004-10-27 Paolo Carlini <pcarlini@suse.de>
250 * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
252 * include/bits/basic_string.tcc: ... here.
254 2004-10-26 Paolo Carlini <pcarlini@suse.de>
256 * include/bits/basic_string.h (append(const basic_string&),
257 append(size_type, _CharT)): Move out of line...
258 * include/bits/basic_string.tcc: ... here.
260 2004-10-26 Paolo Carlini <pcarlini@suse.de>
262 * include/bits/basic_string.h (erase(size_type, size_type),
263 erase(iterator), erase(iterator, iterator)): Call _M_mutate
264 instead of _M_replace_safe, equivalent when the fourth argument
267 2004-10-26 Benjamin Kosnik <bkoz@redhat.com>
269 * include/ext/array_allocator.h (array::allocate): Check for valid
270 array object, use its size member function directly.
271 * testsuite/ext/array_allocator/3.cc: New.
272 * docs/html/20_util/allocator.html: Add docs.
274 2004-10-25 Geoffrey Keating <geoffk@apple.com>
276 * configure.host (darwin*): Build libstdc++ single module
278 * libsupc++/new_op.cc (new): Make weak.
279 * libsupc++/new_opnt.cc (new): Make weak.
280 * libsupc++/new_opv.cc (new): Make weak.
281 * libsupc++/new_opvnt.cc (new): Make weak.
282 * libsupc++/delete_op.cc (delete): Make weak.
283 * libsupc++/delete_opnt.cc (delete): Make weak.
284 * libsupc++/delete_opv.cc (delete): Make weak.
285 * libsupc++/delete_opvnt.cc (delete): Make weak.
287 2004-10-25 Benjamin Kosnik <bkoz@redhat.com>
289 * testsuite/Makefile.am (GLIBCXX_INCLUDES): Add.
290 (AUTOMAKE_OPTIONS): Add nostdinc.
291 * testsuite/Makefile.in: Regenerate.
292 * scripts/testsuite_flags.in (build-includes): Remove redundant
293 search for libsupc++.
294 * fragment.am: Clean.
296 2004-10-25 Benjamin Kosnik <bkoz@redhat.com>
298 * include/Makefile.am (tr1_headers): Add tuple.
299 * include/Makefile.in: Regenerate.
301 2004-10-25 Chris Jefferson <chris@bubblescope.net>
303 * include/tr1/tuple: Implementation of tuple from library TR.
304 * testsuite/tr1/6_containers/tuple/tuple_element.cc: New.
305 * testsuite/tr1/6_containers/tuple/tuple_size.cc: New.
306 * testsuite/tr1/6_containers/tuple/comparison_operators/comparisons.cc:
308 * testsuite/tr1/6_containers/tuple/cons/assignment.cc: New.
309 * testsuite/tr1/6_containers/tuple/cons/big_tuples.cc: New.
310 * testsuite/tr1/6_containers/tuple/cons/constructor.cc: New.
311 * testsuite/tr1/6_containers/tuple/creation_functions/make_tuple.cc:
313 * testsuite/tr1/6_containers/tuple/creation_functions/tie.cc: New.
314 * testsuite/tr1/6_containers/tuple/element_access/get.cc: New.
316 2004-10-25 Paolo Carlini <pcarlini@suse.de>
318 * include/bits/basic_string.h (_Rep::_M_is_safe): Move to
319 basic_string as _M_disjunct, adjust to take only __s.
320 * include/bits/basic_string.tcc: Adjust consistently callers.
322 2004-10-25 Paolo Carlini <pcarlini@suse.de>
324 * include/bits/basic_string.tcc (assign(const _CharT*, size_type)):
325 Adjust bit missing from the previous commit.
327 2004-10-25 Eric Botcazou <ebotcazou@libertysurf.fr>
330 * testsuite/lib/libstdc++.exp: Accept more than one multilib libgcc.
332 2004-10-25 Paolo Carlini <pcarlini@suse.de>
334 * include/bits/basic_string.h (_Rep::_M_is_safe, _M_check_length,
335 _M_move, _M_copy, _M_assign): New, use througout.
336 (operator+=(_CharT)): Define in terms of push_back.
337 (append(const basic_string&)): Define here, inline, and simplify,
338 don't use the full _M_replace_safe.
339 (append(size_type, _CharT)): Likewise, don't use _M_replace_aux.
340 (push_back): Likewise.
341 (assign(const basic_string&)): Define here, inline.
342 * include/bits/basic_string.tcc (append(const _CharT* s, size_type):
343 Fix: when s points inside the _Rep, upon reallocation (reserve) we
344 were copying from deallocated memory.
345 (append(const basic_string&, size_type, size_type)): Simplify,
346 don't use _M_replace_safe.
347 (replace(size_type, size_type, const _CharT*, size_type)): Slightly
350 * testsuite/21_strings/basic_string/append/char/2.cc: New.
351 * testsuite/21_strings/basic_string/append/char/3.cc: Likewise.
352 * testsuite/21_strings/basic_string/append/wchar_t/2.cc: Likewise.
353 * testsuite/21_strings/basic_string/append/wchar_t/3.cc: Likewise.
355 * testsuite/21_strings/basic_string/assign/char/3.cc: Remove junk.
356 * testsuite/21_strings/basic_string/assign/wchar_t/3.cc: Likewise.
358 2004-10-23 Andrew Pinski <pinskia@physics.uc.edu>
360 * testsuite/ext/mt_allocator/deallocate_global-2.c:
361 s/value_t/value_type/. s/traits_t/traits_type/.
362 s/policy_t/policy_type/. s/allocator_t/allocator_type/.
363 s/string_t/string_type/. s/list_t/list_type/.
364 * testsuite/ext/mt_allocator/deallocate_global-4.cc: Likewise.
365 * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: Likewise.
366 * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: Likewise.
367 * testsuite/ext/mt_allocator/deallocate_local-2.cc: Likewise.
368 * testsuite/ext/mt_allocator/deallocate_local-4.cc: Likewise.
369 * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: Likewise.
370 * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: Likewise.
372 2004-10-21 Benjamin Kosnik <bkoz@redhat.com>
374 * include/tr1/array (array): Make safe for zero-sized arrays.
375 (array::end): Return one past the end.
376 (array::at): Use __throw_out_of_range, include functexcept.h.
377 (operator==): Implement.
383 * testsuite/tr1/6_containers/array/capacity/(empty.cc,
384 max_size.cc, size.cc): New.
385 * testsuite/tr1/6_containers/array/comparison_operators/(equal.cc,
386 greater.cc, greater_or_equal.cc, less.cc, less_or_equal.cc,
388 * testsuite/tr1/6_containers/array/cons/aggregate_initialization.cc:
390 * testsuite/tr1/6_containers/array/element_access/at_out_of_range.cc:
392 * testsuite/tr1/6_containers/array/iterators/end_is_one_past.cc: New.
393 * testsuite/tr1/6_containers/array/requirements/(contiguous.cc,
394 instantiate, typedefs, zero_size_arrays): New.
396 2004-10-21 Paolo Carlini <pcarlini@suse.de>
397 Benjamin Kosnik <bkoz@redhat.com>
399 * include/bits/basic_string.h (_M_set_length_and_sharable): New.
400 * include/bits/basic_string.tcc (_S_construct, assign(const _CharT*,
401 size_type), _M_mutate, _M_clone): Use it.
402 (_Rep::_S_create): Don't set/call _M_length/_M_set_sharable here.
404 2004-10-21 Paolo Carlini <pcarlini@suse.de>
405 Dhruv Matani <dhruvbird@gmx.net>
406 Nathan Myers <ncm@cantrip.org>
408 * include/bits/vector.tcc (_M_insert_aux, _M_fill_insert,
409 _M_range_insert): Check at the outset that we are not trying
410 to exceed max_size, then deal properly with __len overflows.
411 * testsuite/23_containers/vector/modifiers/insert/1.cc: New.
413 * testsuite/testsuite_allocator.h: Remove redundant include.
415 2004-10-20 Paolo Carlini <pcarlini@suse.de>
417 * include/ext/bitmap_allocator.h (allocate): Throw std::bad_alloc
419 * include/ext/malloc_allocator.h (allocate): Likewise.
420 * include/ext/mt_allocator.h (allocate): Likewise.
421 * include/ext/new_allocator.h (allocate): Likewise.
422 * include/ext/array_allocator.h: Use __throw_bad_alloc().
423 * include/ext/pool_allocator.h: Use __builtin_expect.
424 * testsuite/ext/array_allocator/check_allocate_max_size.cc: New.
425 * testsuite/ext/bitmap_allocator/check_allocate_max_size.cc: Likewise.
426 * testsuite/ext/malloc_allocator/check_allocate_max_size.cc: Likewise.
427 * testsuite/ext/mt_allocator/check_allocate_max_size.cc: Likewise.
428 * testsuite/ext/new_allocator/check_allocate_max_size.cc: Likewise.
429 * testsuite/ext/pool_allocator/check_allocate_max_size.cc: Likewise.
430 * testsuite/testsuite_allocator.h (check_allocate_max_size): New test.
432 2004-10-19 Paolo Carlini <pcarlini@suse.de>
434 * testsuite/performance/20_util/allocator/list_sort_search.cc:
435 Include <ext/new_allocator.h>.
436 * testsuite/performance/20_util/allocator/map_mt_find.cc: Likewise.
438 2004-10-18 Paolo Carlini <pcarlini@suse.de>
440 * include/bits/basic_string.tcc (_M_mutate): Do not reallocate
441 unnecessarily when _M_rep() == &_S_empty_rep() and __new_size
442 == capacity() (== 0): is ok to just leave everything unchanged.
444 * include/bits/basic_string.h: Minor formatting fixes.
445 * include/bits/basic_string.tcc: Likewise.
447 2004-10-17 Benjamin Kosnik <bkoz@redhat.com>
449 * include/ext/mt_allocator.h (__pool::_M_get_align): New.
450 (__mt_alloc::allocate): Use it.
451 * src/mt_allocator.cc (__pool::_M_reclaim_block): Use it.
452 (__pool::_M_reserve_block): Simplify block allocation.
454 2004-10-17 Dhruv Matani <dhruvbird@gmx.net>
455 Paolo Carlini <pcarlini@suse.de>
457 * include/ext/bitmap_allocator.h: Change unsigned int -> size_t: this
458 makes the code 64-bit correct and also fixes (together with using at
459 the beginning a bitmap 2 * size_t bytes wide) alignment issues: now
460 8 is guaranteed, easily tunable to 16 via _BALLOC_ALIGN_BYTES.
461 Fix pthread-rope7.cc fail by nulling out __mini_vector<> destructor.
462 * src/bitmap_allocator.cc: Change to size_t.
463 * config/linker-map.gnu: Adjust.
465 2004-10-16 Benjamin Kosnik <bkoz@redhat.com>
467 * include/tr1/array: Don't use layout_type.
469 2004-10-16 Sashan Govender <sashang@gmail.com>
471 * include/tr1/array (array::end const): Fix casting from iterator
474 2004-10-15 Paolo Carlini <pcarlini@suse.de>
476 * include/ext/bitmap_allocator.h: Qualify ::operator delete.
477 * src/bitmap_allocator.cc: Likewise.
478 * src/mt_allocator.cc: Use ::operator delete, not delete,
479 consistently with ::operator new.
481 * include/ext/bitmap_allocator.h (deallocate): Check for null
483 * testsuite/ext/bitmap_allocator/check_deallocate_null.cc: New.
484 * testsuite/testsuite_allocator.h (check_deallocate_null): Add test.
486 2004-10-14 Benjamin Kosnik <bkoz@redhat.com>
488 * include/ext/mt_allocator.h (__mt_alloc::deallocate): Check for
490 * include/ext/pool_allocator.h (debug_allocator::deallocate):
492 * include/ext/debug_allocator.h (debug_allocator::deallocate):
493 Throw exceptions, don't abort.
494 * include/ext/array_allocator.h
495 (array_allocator_base::deallocate): Remove unused parameters.
496 * testsuite/testsuite_allocator.h (check_deallocate_null): New.
497 * testsuite/ext/mt_allocator/check_deallocate_null.cc: New.
498 * testsuite/ext/mt_allocator/check_deallocate_null_thread.cc: New.
499 * testsuite/ext/array_allocator/check_deallocate_null.cc: New.
500 * testsuite/ext/debug_allocator/check_deallocate_null.cc: New.
501 * testsuite/ext/malloc_allocator/check_deallocate_null.cc: New.
502 * testsuite/ext/new_allocator/check_deallocate_null.cc: New.
503 * testsuite/ext/pool_allocator/check_deallocate_null.cc: New.
505 * testsuite/testsuite_allocator.h (check_new): Add instance argument.
506 * testsuite/ext/array_allocator/check_new.cc: New.
508 2004-10-14 Paolo Carlini <pcarlini@suse.de>
510 * include/ext/bitmap_allocator.h (bitmap_allocator::_Alloc_block):
511 Rename __unused to __M_unused.
513 2004-10-14 Benjamin Kosnik <bkoz@redhat.com>
515 * testsuite/ext/headers.cc: Add includes, compile only.
516 * testsuite/ext/hash_map.cc: Move to...
517 * testsuite/ext/hash_map/1.cc: ...here.
518 * testsuite/ext/14648.cc: Move to...
519 * testsuite/ext/hash_map/14648.cc: ...here.
520 * testsuite/ext/hash_map/instantiate.cc: Add.
521 * testsuite/ext/hash_set.cc: Move to...
522 * testsuite/ext/hash_set/1.cc: ...here.
523 * testsuite/ext/hash_set_explicit_instantiation.cc: Move to...
524 * testsuite/ext/hash_set/instantiate.cc: ...here.
525 * testsuite/ext/hash_check_construct_destroy.cc: Move to...
526 * testsuite/ext/hash_set/check_construct_destroy.cc: ...here.
527 * testsuite/ext/slist_check_construct_destroy.cc: Move to...
528 * testsuite/ext/slist/check_construct_destroy.cc: ...here.
529 * testsuite/ext/slist_explicit_instantiation.cc: Move to...
530 * testsuite/ext/slist/instantiate.cc: ...here.
532 2004-10-14 Benjamin Kosnik <bkoz@redhat.com>
534 * include/ext/mt_allocator.h: Tweaks.
535 * src/mt_allocator.cc: Same.
537 2004-10-14 Dhruv Matani <dhruvbird@gmx.net>
539 * ext/bitmap_allocator.h: Clean-up add/remove functions.
540 * src/bitmap_allocator.cc: New file. Contains the out-of-line
541 function definitions, static initialization of variables, and
542 explicit instantiations needed for the allocator.
543 * src/Makefile.am: Add.
544 * src/Makefile.in: Regenerate.
545 * config/linker.map.gnu: Add the necessary symbols.
547 2004-10-13 Paolo Carlini <pcarlini@suse.de>
549 * include/bits/basic_string.tcc (_S_create): Use consistently
550 the exponential policy, simplify.
551 * testsuite/performance/21_strings/string_append_2.cc: New.
553 * include/ext/array_allocator.h (allocate): Fix bad_alloc check.
554 * testsuite/ext/array_allocator/2.cc: Fix wrt 64-bit archs (in
555 that case sizeof(_Rep) == 24).
557 2004-10-12 Paolo Carlini <pcarlini@suse.de>
560 * include/bits/stl_tree.h (erase(iterator, iterator)): Revert
561 wrong commit of 2004-10-07.
563 2004-10-12 Scott Snyder <snyder@fnal.gov>
566 * testsuite/23_containers/set/modifiers/17948.cc: New.
568 2004-10-11 Benjamin Kosnik <bkoz@redhat.com>
570 * include/bits/stl_deque.h: Correct for over-long lines.
572 2004-10-11 Benjamin Kosnik <bkoz@redhat.com>
575 * include/ext/mt_allocator.h (__pool::_M_destroy): New.
576 * src/mt_allocator.cc (__pool::~__pool): Change definitions to
578 * acconfig.h: Remove _GLIBCXX_USE___CXA_ATEXIT.
579 * acinclude.m4 (GLIBCXX_ENABLE_CXA_ATEXIT): Remove.
580 * configure.ac: Remove call to GLIBCXX_ENABLE_CXA_EXIT.
581 * configure: Regenerate.
582 * config/linker-map.gnu: Tweak exports.
583 * docs/html/ext/mt_allocator.html: Update docs.
584 * testsuite/ext/mt_allocator/deallocate_global-2.cc: Fix.
585 * testsuite/ext/mt_allocator/deallocate_global-4.cc: Fix.
586 * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: Fix.
587 * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: Fix.
588 * testsuite/ext/mt_allocator/deallocate_local-2.cc: Fix.
589 * testsuite/ext/mt_allocator/deallocate_local-4.cc: Fix.
590 * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: Fix.
591 * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: Fix.
593 2004-10-11 Benjamin Kosnik <bkoz@redhat.com>
595 PR libstdc++/16614 continued.
596 * include/ext/mt_allocator.h
597 (__per_type_pool_policy::_S_get_pool): Use saner defaults based on
598 specific type characteristics.
599 (__pool_base): Add constructor that takes a _Tune argument.
601 * testsuite/ext/mt_allocator/tune-2.cc: Adjust default.
602 * testsuite/ext/mt_allocator/tune-4.cc: Same.
603 * testsuite/ext/mt_allocator/tune-3.cc: Same.
605 2004-10-11 Joachim Kuebart <kuebart@mathematik.uni-ulm.de>
606 Paolo Carlini <pcarlini@suse.de>
608 * src/pool_allocator.cc (__pool_alloc_base::_M_allocate_chunk):
609 Deal properly with exceptions thrown by ::operator new(size_t).
610 * testsuite/ext/pool_allocator/allocate_chunk.cc: New.
612 * include/ext/pool_allocator.h: Include <cstdlib>.
614 2004-10-10 Benjamin Kosnik <bkoz@redhat.com>
616 * include/bits/functexcept.h: Add guards.
618 * acinclude.m4 (GLIBCXX_ENABLE_THREADS): Tweak test.
619 * configure: Regenerate.
621 2004-10-10 Paolo Carlini <pcarlini@suse.de>
623 * config/locale/gnu/monetary_members.cc (_S_construct_pattern):
624 Give __ret a default value, thus avoiding spurious warnings.
626 * testsuite/performance/27_io/filebuf_sgetn_unbuf.cc: Open either
627 words or linux.words, otherwise exit.
628 * testsuite/performance/27_io/ifstream_getline.cc: Slighlty tweak.
630 2004-10-09 Paolo Carlini <pcarlini@suse.de>
632 * include/std/std_memory.h (__get_temporary_buffer): Don't use
633 INT_MAX, prefer numeric_limits<ptrdiff_t>::max(), ok on 64-bit
635 * testsuite/20_util/memory/auto_ptr/assign_neg.cc: Adjust dg-error
638 2004-10-08 Benjamin Kosnik <bkoz@redhat.com>
640 * acconfig.h: Add _GLIBCXX_USE___CXA_ATEXIT.
641 * acinclude.m4 (GLIBCXX_ENABLE_CXA_ATEXIT): New.
642 * configure.ac: Call GLIBCXX_ENABLE_CXA_EXIT.
643 * configure: Regenerate.
644 * src/mt_allocator.cc (__pool::~__pool): Make conditional on
645 _GLIBCXX_USE___CXA_ATEXIT macro.
646 * docs/html/ext/mt_allocator.html: Add note about deallocation.
647 * testsuite/ext/mt_allocator/deallocate_local-2.cc: Guard checks
648 with _GLIBCXX_USE___CXA_ATEXIT.
649 * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: Same.
650 * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: Same.
651 * testsuite/ext/mt_allocator/deallocate_global-4.cc: Same.
652 * testsuite/ext/mt_allocator/deallocate_global-2.cc: Same.
653 * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: Same.
654 * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: Same.
655 * testsuite/ext/mt_allocator/deallocate_local-4.cc: Same.
657 2004-10-07 Phil Edwards <phil@codesourcery.com>
659 * testsuite/lib/libstdc++.exp: Update list of undefined functions.
661 2004-10-07 Paolo Carlini <pcarlini@suse.de>
663 * include/bits/list.tcc (operator=): Avoid iterator postincrement.
664 * include/bits/stl_tree.h (erase(iterator, iterator)): Likewise.
666 2004-10-07 Benjamin Kosnik <bkoz@redhat.com>
669 * include/tr1/array: New.
670 * include/Makefile.am (tr1_headers): New.
672 (install-headers): New.
673 (allstamped): Add stamp-tr1.
675 * include/ext/array_allocator.h: New.
676 * include/Makefile.am: Add.
677 * include/Makefile.in: Regenerate.
678 * testsuite/ext/array_allocator/1.cc: New.
679 * testsuite/ext/array_allocator/2.cc: New.
681 2004-10-07 Richard Earnshaw <rearnsha@arm.com>
683 * testsuite/lib/libstdc++.exp (libstdc++_exit): New proc.
685 2004-10-07 Roger Sayle <roger@eyesopen.com>
688 * configure.ac: Newlib does not provide strtold.
689 * configure: Regenerate.
691 2004-10-06 Benjamin Kosnik <bkoz@redhat.com>
693 * acinclude.m4 (GLIBCXX_ENABLE_THREADS): Set enable_thread.
694 (GLIBCXX_CONFIGURE_TESTSUITE): Use it.
695 * configure: Regenerated.
696 * testsuite/Makefile.am (CLEANFILES): Add TEST for
697 check-performance executables.
700 * testsuite/Makefile.in: Regenerate.
701 * scripts/create_testsuite_files: Filter thread tests.
703 * testsuite/thread/pthread1.cc: Remove macro conditionals: this
704 file will only be run by thread enabled configurations.
705 * testsuite/thread/pthread7-rope.cc: Same, add rope_type typedef.
706 * testsuite/thread/pthread6.cc: Same.
707 * testsuite/thread/pthread5.cc: Same.
708 * testsuite/thread/pthread4.cc: Same.
709 * testsuite/thread/pthread3.cc: Same.
710 * testsuite/thread/pthread2.cc: Same.
712 * testsuite/ext/mt_allocator/instantiate.cc: Add in __GTHREADS guard.
713 * testsuite/ext/mt_allocator/deallocate_global-1.cc: Move to...
714 * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: ...here.
715 * testsuite/ext/mt_allocator/deallocate_global-3.cc: Move to...
716 * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: ...here.
717 * testsuite/ext/mt_allocator/deallocate_local-1.cc: Move to...
718 * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: ...here.
719 * testsuite/ext/mt_allocator/deallocate_local-3.cc: Move to...
720 * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: ...here.
722 2004-10-06 Benjamin Kosnik <bkoz@redhat.com>
723 Paolo Carlini <pcarlini@suse.de>
726 * src/mt_allocator.cc (__pool<true>::_M_reserve_block): Revert
727 to old locking order.
729 2004-10-06 Paolo Carlini <pcarlini@suse.de>
731 * include/std/std_sstream.h (_M_sync): When the caller is
732 setbuf, don't trust _M_string.capacity() to be the size of
733 the buffer area, use _M_string.size() in this case.
734 * testsuite/27_io/basic_stringbuf/setbuf/char/4.cc: New.
735 * testsuite/27_io/basic_stringbuf/setbuf/wchar_t/4.cc: Likewise.
737 * include/bits/sstream.tcc (overflow): Avoid calling string::assign
738 unnecessarily when the current _M_string is empty.
740 2004-10-06 Paolo Carlini <pcarlini@suse.de>
742 * include/bits/stl_algo.h (__reverse(bidirectional_iterator_tag)):
743 Avoid iterator postincrement.
744 (__rotate): Likewise.
746 * include/bits/stl_algo.h: Minor formatting tweaks.
748 2004-10-06 Christopher Jefferson <caj@cs.york.ac.uk>
750 * include/bits/stl_algo.h (__reverse(random_access_iterator_tag)):
751 Avoid iterator postincrement; fix swapping middle element with
752 itself on odd-length inputs.
754 2004-10-05 Benjamin Kosnik <bkoz@redhat.com>
757 * include/ext/mt_allocator.h (__pool_base::_Tune): Add default
758 options as compile-time constant enums.
759 (__pool_base::_Tune::is_default): New.
760 (__pool_base::_Block_address): New.
761 (__pool_base): Rearrange data members.
762 (__pool::_M_reserve_memory): To _M_reserve_block.
763 (__pool::_M_reclaim_memory): To _M_reclaim_block.
764 (__pool::_Bin_record): Add _Block_address data member.
765 (__pool<false>): Add _M_thread_freelist_initial.
766 (__pool::~__pool): Declare.
767 (__common_pool_policy): Move static data member to...
768 (__common_pool_policy::_S_get_pool): ...here, make static local.
769 (__per_type_pool_policy): Move static data member to...
770 (__per_type_pool_policy::_S_get_pool): ...here, make static local.
771 (__mt_alloc::__mt_alloc): Call __policy_type::_S_get_pool.
772 Remove static member definitions. Use define for __default_policy.
773 * src/mt_allocator.cc: Same.
774 * config/linker-map.gnu: Don't export _S_get_pool. Renames.
775 * testsuite/ext/new_allocator: New.
776 * testsuite/ext/new_allocator/instantiate.cc: New.
777 * testsuite/ext/new_allocator/check_new.cc: New.
778 * testsuite/ext/new_allocator/deallocate_global.cc: New.
779 * testsuite/ext/new_allocator/deallocate_local.cc: New.
780 * testsuite/ext/mt_allocator/instantiate.cc: Instantiate all
782 * testsuite/ext/mt_allocator/deallocate_global-1.cc: New.
783 * testsuite/ext/mt_allocator/deallocate_global-2.cc: New.
784 * testsuite/ext/mt_allocator/deallocate_global-3.cc: New.
785 * testsuite/ext/mt_allocator/deallocate_global-4.cc: New.
786 * testsuite/ext/mt_allocator/deallocate_local-1.cc: New.
787 * testsuite/ext/mt_allocator/deallocate_local-2.cc: New.
788 * testsuite/ext/mt_allocator/deallocate_local-3.cc: New.
789 * testsuite/ext/mt_allocator/deallocate_local-4.cc: New.
790 * testsuite/ext/mt_allocator/deallocate.cc: New.
791 * testsuite/ext/malloc_allocator/deallocate.cc: New.
792 * testsuite/ext/malloc_allocator/deallocate_global.cc: New.
793 * testsuite/ext/malloc_allocator/deallocate_local.cc: New.
795 2004-10-05 Ulrich Weigand <uweigand@de.ibm.com>
797 * configure.host (abi_baseline_pair): Define for s390-*-linux* and
799 * config/abi/s390-linux-gnu/baseline_symbols.txt: Add missing symbols.
800 * config/abi/s390x-linux-gnu/baseline_symbols.txt: New file.
802 2004-10-05 Christopher Jefferson <caj@cs.york.ac.uk>
804 * include/bits/stl_algobase.h (iter_swap): delegate to swap via
805 __iter_swap when iterator's value_types are equal.
806 (struct __iter_swap): New.
808 2004-10-04 Benjamin Kosnik <bkoz@redhat.com>
810 * configure.ac (libtool_VERSION): To 6:3:0.
811 * configure: Regnerate.
812 * testsuite/testsuite_abi.cc (check_version): Add 3.4.3.
814 2004-10-04 Roger Sayle <roger@eyesopen.com>
815 Eric Botcazou <ebotcazou@libertysurf.fr>
818 * config/linker-map.gnu: Synchronize the current list of stub
819 functions from libmath.
821 2004-10-03 Roger Sayle <roger@eyesopen.com>
823 * config/locale/generic/c_locale.cc (__convert_to_v): Use
824 _GLIBCXX_HAVE_STRTOF instead _GLIBCXX_USE_C99 to check for strtof.
825 Likewise, use _GLIBCXX_HAVE_STRTOLD instead of _GLIBCXX_USE_C99
826 to check for presence of strtold.
828 2004-10-03 Paolo Carlini <pcarlini@suse.de>
830 * include/bits/stl_list.h: Trivial formatting fixes.
831 * include/bits/stl_tree.h: Likewise.
833 2004-10-03 Paolo Carlini <pcarlini@suse.de>
835 * include/bits/sstream.tcc (seekpos): In case of success, just
838 2004-10-01 Paolo Carlini <pcarlini@suse.de>
840 * include/bits/sstream.tcc (pbackfail): Implement correctly
841 27.7.1.3/2, bullet 2: if mode & ios_base::out is false do not
843 * testsuite/27_io/basic_stringbuf/pbackfail/char/1.cc: New.
844 * testsuite/27_io/basic_stringbuf/pbackfail/char/2.cc: Likewise.
845 * testsuite/27_io/basic_stringbuf/pbackfail/wchar_t/1.cc: Likewise.
846 * testsuite/27_io/basic_stringbuf/pbackfail/wchar_t/2.cc: Likewise.
847 * testsuite/27_io/basic_istream/putback/char/1.cc: Tweak consistently.
849 2004-10-01 Paolo Carlini <pcarlini@suse.de>
851 * include/bits/sstream.tcc (seekpos): Minor rearrangement of two
852 conditionals consistently with seekoff.
853 * include/std/std_sstream.h (setbuf): Avoid a string temporary.
854 (_M_sync): Simplify a bit, clean-up comment.
856 2004-09-30 Paolo Carlini <pcarlini@suse.de>
858 PR libstdc++/10975 (DR 453)
859 * include/bits/sstream.tcc (seekoff): Don't fail if __beg == 0
861 * docs/html/ext/howto.html: Add an entry for DR 453.
862 * testsuite/27_io/basic_stringbuf/seekoff/char/10975.cc: New.
863 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/10975.cc: Likewise.
864 * testsuite/27_io/basic_istream/tellg/char/1.cc: Tweak consistently.
865 * testsuite/27_io/basic_ostream/tellp/char/1.cc: Likewise.
866 * testsuite/27_io/basic_ostream/tellp/char/2.cc: Likewise.
867 * testsuite/27_io/basic_istream/seekg/char/2346-fstream.cc: Fix and
869 * testsuite/27_io/basic_istream/seekp/char/2346-fstream.cc: ... here.
870 * testsuite/27_io/basic_istream/seekg/char/2346-sstream.cc: Fix and
872 * testsuite/27_io/basic_istream/seekp/char/2346-sstream.cc: ... here.
874 2004-09-29 Paolo Carlini <pcarlini@suse.de>
876 * include/std/std_sstream.h (basic_stringbuf(ios_base::openmode)):
877 Don't use _M_stringbuf_init, keep the pointers null, per 27.7.1.1.
878 (str()): Slightly tweak, protect from pptr() == 0.
879 (_M_update_egptr()): Likewise.
880 * include/bits/sstream.tcc (ssekoff, seekpos): In order to check
881 for an empty buffer use __beg instead of _M_string.capacity().
882 * testsuite/27_io/basic_stringbuf/cons/char/1.cc: New.
883 * testsuite/27_io/basic_stringbuf/cons/wchar_t/1.cc: Likewise.
885 * testsuite/27_io/basic_filebuf/cons/char/1.cc: New.
886 * testsuite/27_io/basic_filebuf/cons/wchar_t/1.cc: Likewise.
887 * testsuite/27_io/basic_streambuf/cons/char/1.cc: Update.
888 * testsuite/27_io/basic_streambuf/cons/wchar_t/1.cc: Likewise.
890 2004-09-29 Paolo Carlini <pcarlini@suse.de>
891 Benjamin Kosnik <bkoz@redhat.com>
893 * testsuite/testsuite_io.h (class constraint_buf): New, extended
894 and templatized version of constraint_filebuf; add typedefs for
895 streambuf/stringbuf/filebuf and wchar_t counterparts.
897 2004-09-28 Paolo Carlini <pcarlini@suse.de>
900 * include/bits/basic_string.h (_M_dispose, _M_refcopy,
901 basic_string()): When _GLIBCXX_FULLY_DYNAMIC_STRING is defined,
902 don't deal with _S_empty_rep.
903 * include/bits/basic_string.tcc (_S_construct, _M_destroy,
904 _M_leak_hard, _M_mutate): Likewise.
905 * acinclude.m4 (GLIBCXX_ENABLE_FULLY_DYNAMIC_STRING): New.
906 * acconfig.h: Add corresponding undef.
907 * configure.ac: Use GLIBCXX_ENABLE_FULLY_DYNAMIC_STRING.
908 * docs/html/configopts.html: Document --enable-fully-dynamic-string.
909 * configure: Regenerate.
910 * config.h.in: Likewise.
912 2004-09-28 Benjamin Kosnik <bkoz@redhat.com>
913 Paolo Carlini <pcarlini@suse.de>
915 * testsuite/21_strings/basic_string/operations/char/1.cc: New.
916 * testsuite/21_strings/basic_string/operations/wchar_t/1.cc: New.
917 * testsuite/21_strings/basic_string/element_access/char/empty.cc: New.
918 * testsuite/21_strings/basic_string/element_access/wchar_t/empty.cc:
921 2004-09-28 Paolo Carlini <pcarlini@suse.de>
923 * README: Remove obsolete entry about include/c_shadow.
925 2004-09-24 H.J. Lu <hongjiu.lu@intel.com>
928 * testsuite/lib/libstdc++.exp: Don't use global ld_library_path.
930 2004-09-24 Paolo Carlini <pcarlini@suse.de>
932 * src/localename.cc (locale::locale(const char*)): Minor tweaks:
933 rename a variable, move an assignment.
934 (locale::_Impl::_Impl(const char*, size_t)): Likewise, minor tweak.
936 2004-09-24 Paul Brook <paul@codesourcery.com>
938 * testsuite/27_io/basic_filebuf/sgetn/char/1-in.cc: XFAIL more arm
940 * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: Ditto.
941 * testsuite/27_io/basic_filebuf/sgetn/char/2-in.cc: Ditto.
942 * testsuite/27_io/basic_filebuf/sgetn/char/2-io.cc: Ditto.
943 * testsuite/27_io/basic_istream/readsome/char/6746-2.cc: Ditto.
944 * testsuite/ext/stdio_filebuf/char/10063-2.cc: Ditto.
945 * testsuite/ext/stdio_filebuf/char/10063-3.cc: Ditto.
947 2004-09-23 Zack Weinberg <zack@codesourcery.com>
949 * testsuite/20_util/memory/auto_ptr/assign_neg.cc
950 * testsuite/23_containers/map/operators/1_neg.cc
951 * testsuite/23_containers/set/operators/1_neg.cc:
952 Update locations and/or regexps of dg-error markers.
954 2004-09-23 P.J. Darcy <darcypj@us.ibm.com>
956 * include/Makefile.am (thread_host_headers): Add gthr-tpf.h.
957 Add rule to build ${host_builddir}/gthr-tpf.h.
958 * include/Makefile.in: Regenerate.
960 2004-09-23 Paolo Carlini <pcarlini@suse.de>
961 Magnus Fromreide <magfr@lysator.liu.se>
963 * include/bits/boost_concept_check.h (struct _SequenceConcept):
964 Remove wrong requirement, i.e., not present in Table 67.
966 2004-09-21 Paolo Carlini <pcarlini@suse.de>
968 PR libstdc++/12882 (cont)
969 * acinclude.m4 (GLIBCXX_CHECK_LFS): Check for fstat64 too.
970 * configure: Regenerate.
971 * config/io/basic_file_stdio.cc (__basic_file<>::showmanyc): When
972 _GLIBCXX_USE_LFS use fstat64 and lseek64, thus providing a non
973 trivial showmanyc for large files too.
975 2004-09-17 Jonathan Wakely <redi@gcc.gnu.org>
977 * include/bits/stl_algo.h (remove): Remove too restrictive
980 2004-09-17 Paolo Carlini <pcarlini@suse.de>
982 * include/bits/fstream.tcc (xsgetn): Slightly tweak conditional,
983 as per Nathan's original suggestion.
985 2004-09-17 Paolo Carlini <pcarlini@suse.de>
987 * testsuite/ext/mt_allocator/tune-1.cc: Use VERIFY, clean
989 * testsuite/ext/mt_allocator/tune-2.cc: Likewise.
990 * testsuite/ext/mt_allocator/tune-3.cc: Likewise.
991 * testsuite/ext/mt_allocator/tune-4.cc: Likewise.
993 2004-09-17 Paolo Carlini <pcarlini@suse.de>
994 Andrea Arcangeli <andrea@suse.de>
996 * config/io/basic_file_stdio.cc (__basic_file<>::close)): Don't
997 call unnecessarily sync, that is fflush: the library, since 3.4.0
998 does not use buffered fread/fwrite.
999 * include/bits/fstream.tcc (basic_filebuf<>::overflow): Likewise.
1001 2004-09-15 Mark Mitchell <mark@codesourcery.com>
1003 * config/cpu/arm/cxxabi_tweaks.h (__cxa_cdtor_return_type):
1005 * config/cpu/generic/cxxabi_tweaks.h (__cxa_cdtor_return_type):
1007 * libsupc++/cxxabi.h (__cxa_cdtor_return_type): New type.
1008 (__cxa_vec_new): Use it.
1009 (__cxa_vec_new2): Likewise.
1010 (__cxa_vec_new3): Likewise.
1011 (__cxa_vec_cdtor): Likewise.
1012 (__cxa_vec_cctor): Likeiwse.
1013 (__cxa_vec_dtor): Likewise.
1014 (__cxa_vec_cleanup): Likewise.
1015 (__cxa_vec_delete2): Likewise.
1016 (__cxa_vec_delete3): Likewise.
1017 * libsupc++/vec.cc (__cxa_vec_new): Likewise.
1018 (__cxa_vec_new2): Likewise.
1019 (__cxa_vec_new3): Likewise.
1020 (__cxa_vec_cdtor): Likewise.
1021 (__cxa_vec_cctor): Likeiwse.
1022 (__cxa_vec_dtor): Likewise.
1023 (__cxa_vec_cleanup): Likewise.
1024 (__cxa_vec_delete2): Likewise.
1025 (__cxa_vec_delete3): Likewise.
1026 (__aeabi_vec_ctor_nocookie_nodtor): New function.
1027 (__aeabi_vec_ctor_cookie_nodtor): Likewise.
1028 (__aeabi_vec_cctor_nocookie_nodtor): Likewise.
1029 (__aeabi_vec_new_cookie_noctor): Likewise.
1030 (__aeabi_vec_new_nocookie): Likewise.
1031 (__aeabi_vec_new_cookie_nodtor): Likewise.
1032 (__aeabi_vec_new_cookie): Likewise.
1033 (__aeabi_vec_dtor): Likewise.
1034 (__aeabi_vec_dtor_cookie): Likewise.
1035 (__aeabi_vec_delete): Likewise.
1036 (__aeabi_vec_delete3): Likewise.
1037 (__aeabi_vec_delete3_nodtor): Likewise.
1038 (__aeabi_atexit): Likewise.
1040 2004-09-14 Nathan Myers <ncm@cantrip.org>
1042 * include/bits/fstream.tcc (xsgetn): Slightly tweak the recent fix
1043 for 11722: copy can replace move; the common case is __avail == 0.
1045 2004-09-14 Paolo Carlini <pcarlini@suse.de>
1047 * include/bits/cpp_type_traits.h: Rename __is_trivially_copyable
1048 to __is_scalar, more clear and consistent with "tr1" naming.
1049 * include/bits/stl_algobase.h: Update consistently throughout.
1051 2004-09-13 Paolo Carlini <pcarlini@suse.de>
1054 * include/std/std_fstream.h (xsgetn): Declare only.
1055 * include/bits/fstream.tcc (xsgetn): Define, optimize for the
1056 always_noconv() case: when __n > __buflen, copy the available
1057 buffer and issue a direct read.
1058 * testsuite/performance/27_io/filebuf_sgetn_unbuf.cc: New.
1060 * include/bits/fstream.tcc (xsputn): Minor tweak, reorder a
1063 2004-09-13 Hans-Peter Nilsson <hp@bitrange.com>
1065 * testsuite/lib/libstdc++.exp: Use gcc wrapper.exp and call
1066 libstdc++_maybe_build_wrapper instead of using local code.
1068 2004-09-08 Benjamin Kosnik <bkoz@redhat.com>
1070 * config/linker-map.gnu (GLIBCXX_3.4.3): New, adjust symbol exports.
1072 2004-09-03 Jan Beulich <jbeulich@novell.com>
1074 * crossconfig.m4: Add NetWare as a target.
1075 * configure: Regenerate.
1077 2004-09-02 Mark Mitchell <mark@codesourcery.com>
1079 * libsupc++/typeinfo: Honor __GXX_MERGED_TYPEINFO_NAMES if already
1082 2004-09-02 Benjamin Kosnik <bkoz@redhat.com>
1083 Simon Richter <Simon.Richter@hogyros.de>
1086 * include/bits/istream.tcc: Add extern template for iostream
1087 char and wchar_t instantiations.
1089 2004-09-02 Benjamin Kosnik <bkoz@redhat.com>
1090 Leland Wang <llwang@infor.org>
1093 * include/ext/ropeimpl.h (rope::_S_compare): Use
1094 _Rope_constants::_S_leaf.
1096 2004-09-02 Benjamin Kosnik <bkoz@redhat.com>
1099 * include/Makefile.am (ext_headers): Remove demangle.h.
1100 * include/Makefile.in: Regenerate.
1101 * include/ext/demangle.h: Remove.
1103 2004-09-01 Benjamin Kosnik <bkoz@redhat.com>
1106 * include/ext/mt_allocator.h (__mt_base): Not type dependent,
1108 (__pool): New, specialize.
1109 (__common_pool): New, static bits here.
1110 (__per_type_pool): New, and here.
1111 (__mt_alloc_base): New.
1112 (__mt_alloc): Add template parameter, inherit from it.
1113 * src/allocator.cc: Split this...
1114 * src/allocator-inst.cc: And this...
1115 * src/pool_allocator.cc: ...into this.
1116 * src/mt_allocator.cc: ... and this. Add definitions for
1118 * src/Makefile.am (sources): Split allocator.cc to
1119 pool_allocator.cc and mt_allocator.cc.
1120 * src/Makefile.in: Regenerate.
1121 * config/linker-map.gnu: Add symbols.
1122 * docs/html/ext/mt_allocator.html: Document new design.
1123 * testsuite/ext/mt_allocator/tune-1.cc: New.
1124 * testsuite/ext/mt_allocator/tune-2.cc: New.
1125 * testsuite/ext/mt_allocator/tune-3.cc: New.
1126 * testsuite/ext/mt_allocator/tune-4.cc: New.
1128 * testsuite/testsuite_allocator.h (__gnu_test::check_new): New.
1129 * testsuite/ext/allocators.cc: Use check_new, split into...
1130 * testsuite/ext/mt_allocator/check_new.cc: this.
1131 * testsuite/ext/pool_allocator/check_new.cc: this.
1132 * testsuite/ext/malloc_allocator/check_new.cc: this.
1133 * testsuite/ext/debug_allocator/check_new.cc: this.
1134 * testsuite/ext/mt_allocator/instantiate.cc: this.
1135 * testsuite/ext/pool_allocator/instantiate.cc: this.
1136 * testsuite/ext/malloc_allocator/instantiate.cc: this.
1137 * testsuite/ext/debug_allocator/instantiate.cc: this.
1139 2004-08-30 Phil Edwards <phil@codesourcery.com>
1141 * docs/html/install.html: Update locales list (from Paolo).
1142 Remove other redundant information and point to the GCC install
1145 2004-08-30 Benjamin Kosnik <bkoz@redhat.com>
1147 * include/ext/pool_allocator.h: Rename __pool_base to
1149 * src/allocator.cc: Same.
1150 * config/linker-map.gnu: Same.
1152 2004-08-30 Paolo Carlini <pcarlini@suse.de>
1153 Kenneth C. Schalk <ken@xorian.net>
1156 * config/io/basic_file_stdio.cc (__basic_file<char>::close()):
1157 Check the return value of fclose/sync, loop on EINTR.
1158 (__basic_file<char>::sys_open): Likewise, for sync.
1160 2004-08-29 Paolo Carlini <pcarlini@suse.de>
1162 * include/bits/locale_facets.tcc (time_get<>::_M_extract_via_format,
1163 case 'S'): Allow for at least one leap-second (as per C99, 7.23.1
1164 and 7.23.3.5), two if !_GLIBCXX_USE_C99.
1165 * testsuite/22_locale/time_get/get_time/char/4.cc: New.
1166 * testsuite/22_locale/time_get/get_time/wchar_t/4.cc: Likewise.
1168 2004-08-27 Jason Merrill <jason@redhat.com>
1171 * libsupc++/guard.cc (static_mutex): Internal class implementing a
1172 recursive mutex which controls initialization of local statics.
1173 (__gnu_cxx::recursive_init): New exception class.
1174 (__cxa_guard_acquire): Deal with locking and recursion detection.
1175 (acquire_1, __cxa_guard_abort, __cxa_guard_release): Likewise.
1177 2004-08-27 Matthias Klose <doko@debian.org>
1179 * configure.host: For mips*-*-linux* update cpu_include_dir
1180 after atomicity_dir is set.
1182 2004-08-27 Matthias Klose <doko@debian.org>
1184 * config/abi/arm-linux-gnu/baseline_symbols.txt: New.
1185 * config/abi/mips-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1186 * configure.host: Set abi_baseline_pair for arm*-*-linux* and
1189 2004-08-27 Paolo Carlini <pcarlini@suse.de>
1191 * testsuite/27_io/manipulators/adjustfield/wchar_t/1.cc: New.
1192 * testsuite/27_io/manipulators/adjustfield/wchar_t/2.cc: Likewise.
1193 * testsuite/27_io/manipulators/basefield/wchar_t/1.cc: Likewise.
1194 * testsuite/27_io/manipulators/standard/wchar_t/1.cc: Likewise.
1195 * testsuite/27_io/manipulators/standard/wchar_t/2.cc: Likewise.
1197 * testsuite/27_io/manipulators/adjustfield/char/1.cc: Minor
1199 * testsuite/27_io/manipulators/adjustfield/char/2.cc: Likewise.
1200 * testsuite/27_io/manipulators/basefield/char/1.cc: Likewise.
1201 * testsuite/27_io/manipulators/standard/char/1.cc: Likewise.
1202 * testsuite/27_io/manipulators/standard/char/2.cc: Likewise.
1204 2004-08-25 Paolo Carlini <pcarlini@suse.de>
1206 PR libstdc++/17038 (partial)
1207 * include/bits/locale_facets.tcc (time_put<>::do_put): Increase
1209 * include/bits/locale_facets.h (class __timepunct): Add FIXME
1210 comment about _M_put.
1211 * config/locale/generic/time_members.cc (_M_put): Always null
1213 * config/locale/gnu/time_members.cc (_M_put): Likewise.
1214 * testsuite/22_locale/time_put/put/char/17038.cc: New.
1215 * testsuite/22_locale/time_put/put/wchar_t/17038.cc: New.
1217 2004-08-24 Paolo Carlini <pcarlini@suse.de>
1219 * testsuite/27_io/basic_istringstream/rdbuf/wchar_t/2832.cc: New.
1220 * testsuite/27_io/basic_istringstream/str/wchar_t/1.cc: Likewise.
1221 * testsuite/27_io/basic_ostringstream/cons/wchar_t/3.cc: Likewise.
1222 * testsuite/27_io/basic_ostringstream/rdbuf/wchar_t/2832.cc: Likewise.
1223 * testsuite/27_io/basic_ostringstream/str/wchar_t/1.cc: Likewise.
1224 * testsuite/27_io/basic_ostringstream/str/wchar_t/2.cc: Likewise.
1226 * testsuite/27_io/basic_istringstream/rdbuf/char/2832.cc: Trim excess
1228 * testsuite/27_io/basic_istringstream/str/char/1.cc: Likewise.
1230 2004-08-22 Matthias Klose <doko@debian.org>
1232 * config/abi/m68k-linux-gnu/baseline_symbols.txt: New.
1233 * config/abi/sparc-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1235 2004-08-23 Paolo Carlini <pcarlini@suse.de>
1237 * configure.ac: Specify version 1.9.1 in AM_INIT_AUTOMAKE.
1238 * aclocal.m4: Regenerate with automake-1.9.1.
1239 * configure: Regenerate.
1240 * Makefile.in: Likewise.
1241 * include/Makefile.in: Likewise.
1242 * libmath/Makefile.in: Likewise.
1243 * libsupc++/Makefile.in: Likewise.
1244 * po/Makefile.in: Likewise.
1245 * src/Makefile.in: Likewise.
1246 * testsuite/Makefile.in: Likewise.
1248 2004-08-22 Paolo Carlini <pcarlini@suse.de>
1250 * include/bits/locale_facets.tcc (num_put<>::do_put(bool)): Cast
1251 to a signed type, long according to the resolution of DR 359.
1252 * testsuite/22_locale/num_put/put/char/9.cc: New.
1253 * testsuite/22_locale/num_put/put/wchar_t/9.cc: New.
1255 * include/bits/locale_facets.tcc (num_put<>::do_put(const void*)):
1256 Simplify a bit: no need to clear showpos.
1258 2004-08-21 Paolo Carlini <pcarlini@suse.de>
1260 * include/bits/char_traits.h (struct _Char_traits_match): Remove,
1263 2004-08-21 Paolo Carlini <pcarlini@suse.de>
1265 * testsuite/22_locale/money_put/put/wchar_t/1.cc: Use proper
1266 wchar_t type for the fill argument; minor formatting tweaks.
1267 * testsuite/22_locale/money_put/put/wchar_t/12971.cc: Likewise.
1268 * testsuite/22_locale/money_put/put/wchar_t/2.cc: Likewise.
1269 * testsuite/22_locale/money_put/put/wchar_t/3.cc: Likewise.
1270 * testsuite/22_locale/money_put/put/wchar_t/4.cc: Likewise.
1271 * testsuite/22_locale/money_put/put/wchar_t/5.cc: Likewise.
1272 * testsuite/22_locale/money_put/put/wchar_t/6.cc: Likewise.
1274 2004-08-21 Paolo Carlini <pcarlini@suse.de>
1276 * include/bits/basic_ios.tcc (basic_ios<>::copyfmt): Don't deal
1277 with _M_word != _M_local_word two times, redundantly.
1279 2004-08-20 Jason Merrill <jason@redhat.com>
1281 * include/Makefile.am (${host_builddir}/gthr.h): Don't add
1282 _GLIBCXX_ to #pragma lines.
1283 * include/Makefile.in: Update.
1285 2004-08-20 Paolo Carlini <pcarlini@suse.de>
1287 PR libstdc++/7219 (continued)
1288 * include/bits/ios_base.h (class ios_base): Expose Annex D.6
1289 typedefs by default.
1290 * testsuite/27_io/types/1.cc: Remove #if _GLIBCXX_DEPRECATED.
1291 * testsuite/27_io/ios_base/cons/assign_neg.cc: Tweak dg-error
1293 * testsuite/27_io/ios_base/cons/copy_neg.cc: Likewise.
1295 2004-08-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1297 * cpu/hppa/atomicity.h (__exchange_and_add, __atomic_add): Add memory
1298 barrier to locking asm.
1300 2004-08-20 Paolo Carlini <pcarlini@suse.de>
1302 * include/c_std/cmath.tcc (__cmath_power): Revert previous commit:
1303 actually the warning is a front-end bug (c++/17120).
1305 2004-08-20 Matthias Klose <doko@debian.org>
1307 * config/abi/s390-linux-gnu/baseline_symbols.txt: New.
1309 2004-08-20 Paolo Carlini <pcarlini@suse.de>
1311 * include/c_std/cmath.tcc (__cmath_power): Suppress assignment
1312 used as truth value warning.
1314 2004-08-20 Paolo Carlini <pcarlini@suse.de>
1316 * config/abi/x86_64-linux-gnu/32/baseline_symbols.txt: Add 32 bit
1319 2004-08-20 Paolo Carlini <pcarlini@suse.de>
1321 * config/abi/x86_64-linux-gnu/baseline_symbols.txt: Fix it.
1323 2004-08-19 Benjamin Kosnik <bkoz@redhat.com>
1325 * testsuite/22_locale/time_put/put/char/3.cc (test03): Don't check
1327 * testsuite/22_locale/time_put/put/wchar_t/3.cc (test03): Same.
1329 2004-08-19 Paolo Carlini <pcarlini@suse.de>
1331 * testsuite/performance/20_util/allocator/insert.cc: For std::map
1332 instantiate the allocator for a correct pair type.
1333 * testsuite/performance/20_util/allocator/insert_insert.cc: Likewise.
1334 * testsuite/performance/20_util/allocator/map_thread.cc: Likewise.
1335 * testsuite/performance/20_util/allocator/producer_consumer.cc:
1338 * testsuite/performance/20_util/allocator/list_sort_search.cc: Very
1339 minor formatting fixes.
1340 * testsuite/performance/20_util/allocator/map_mt_find.cc: Likewise.
1342 2004-08-19 Paolo Carlini <pcarlini@suse.de>
1344 * testsuite/22_locale/time_put/put/char/1.cc: Add VERIFY on the
1346 * testsuite/22_locale/time_put/put/char/2.cc: Likewise.
1347 * testsuite/22_locale/time_put/put/char/3.cc: Likewise.
1348 * testsuite/22_locale/time_put/put/char/4.cc: Likewise.
1349 * testsuite/22_locale/time_put/put/wchar_t/1.cc: Likewise.
1350 * testsuite/22_locale/time_put/put/wchar_t/2.cc: Likewise.
1351 * testsuite/22_locale/time_put/put/wchar_t/3.cc: Likewise.
1352 * testsuite/22_locale/time_put/put/wchar_t/4.cc: Likewise.
1354 2004-08-19 Paolo Carlini <pcarlini@suse.de>
1356 * config/abi/x86_64-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1358 2004-08-18 Matthias Klose <doko@debian.org>
1360 * config/abi/hppa-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1361 * config/abi/i386-linux-gnu/baseline_symbols.txt: New.
1362 * config/abi/powerpc-linux-gnu/baseline_symbols.txt: New.
1364 2004-08-17 Paolo Carlini <pcarlini@suse.de>
1366 * config/abi/alpha-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1368 2004-08-17 Paolo Carlini <pcarlini@suse.de>
1370 * config/abi/ia64-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1372 2004-08-17 Benjamin Kosnik <bkoz@redhat.com>
1374 * config/abi/i486-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1376 2004-08-16 Paolo Carlini <pcarlini@suse.de>
1378 * include/bits/indirect_array.h: Trivial formatting fixes.
1379 * include/bits/valarray_after.h: Likewise.
1380 * include/bits/valarray_array.h: Likewise.
1381 * src/valarray-inst.cc: Likewise.
1383 2004-08-15 Paolo Carlini <pcarlini@suse.de>
1385 * testsuite/27_io/basic_stringstream/rdbuf/char/2832.cc: Remove junk.
1386 * testsuite/27_io/basic_stringstream/str/char/1.cc: Likewise.
1387 * testsuite/27_io/basic_stringstream/str/char/3.cc: Likewise.
1389 * testsuite/27_io/basic_stringstream/rdbuf/wchar_t/2832.cc: New.
1390 * testsuite/27_io/basic_stringstream/str/wchar_t/1.cc: Likewise.
1391 * testsuite/27_io/basic_stringstream/str/wchar_t/2.cc: Likewise.
1392 * testsuite/27_io/basic_stringstream/str/wchar_t/3.cc: Likewise.
1393 * testsuite/27_io/basic_stringstream/str/wchar_t/4.cc: Likewise.
1395 2004-08-15 Paolo Carlini <pcarlini@suse.de>
1397 * include/bits/deque.tcc: Trivial formatting fixes.
1399 2004-08-15 Paolo Carlini <pcarlini@suse.de>
1401 * include/bits/deque.tcc: Trivial formatting fixes.
1403 * include/bits/locale_facets.tcc (num_get<>::do_get(&bool)):
1404 Remove unneded typedef.
1406 * include/bits/locale_facets.tcc: Very minor tweaks.
1408 * testsuite/22_locale/time_put/put/wchar_t/1.cc: Use proper
1409 type for the fill argument.
1410 * testsuite/22_locale/time_put/put/wchar_t/10.cc: Likewise.
1411 * testsuite/22_locale/time_put/put/wchar_t/2.cc: Likewise.
1412 * testsuite/22_locale/time_put/put/wchar_t/3.cc: Likewise.
1413 * testsuite/22_locale/time_put/put/wchar_t/4.cc: Likewise.
1414 * testsuite/22_locale/time_put/put/wchar_t/5.cc: Likewise.
1415 * testsuite/22_locale/time_put/put/wchar_t/6.cc: Likewise.
1416 * testsuite/22_locale/time_put/put/wchar_t/7.cc: Likewise.
1417 * testsuite/22_locale/time_put/put/wchar_t/8.cc: Likewise.
1419 2004-08-13 Paolo Carlini <pcarlini@suse.de>
1421 * src/debug.cc (_Error_formatter::_M_print_string): Fix thinko,
1422 memmove is not needed, memcpy suffices.
1424 2004-08-13 Paolo Carlini <pcarlini@suse.de>
1426 * include/std/std_fstream.h (class basic_ifstream,
1427 class basic_ofstream, class basic_fstream): Add const overloads
1428 of is_open, as per DR 365 [WP].
1429 * docs/html/ext/howto.html: Add an entry for DR 365.
1431 2004-08-12 Paolo Carlini <pcarlini@suse.de>
1433 * configure.ac: Specify version 1.8.5 in AM_INIT_AUTOMAKE.
1435 2004-08-12 Paolo Carlini <pcarlini@suse.de>
1438 * include/bits/sstream.tcc (basic_stringbuf<>::seekoff): Add __off
1439 to the returned value, reorganize a bit.
1440 * testsuite/27_io/basic_stringbuf/seekoff/char/16956.cc: New.
1441 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/16956.cc: New.
1443 * testsuite/27_io/basic_stringbuf/seekoff/char/1.cc: Remove junk.
1444 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc: Likewise.
1445 * testsuite/27_io/basic_stringbuf/seekpos/char/1.cc: Likewise.
1446 * testsuite/27_io/basic_stringbuf/seekpos/wchar_t/1.cc: Likewise.
1448 2004-08-12 Paul Brook <paul@codesourcery.com>
1450 * config/cpu/arm/cxxabi_tweaks.h: Define __cxa_vec_ctor_return and
1451 _GLIBCXX_CXA_VEC_CTOR_RETURN.
1452 * config/cpu/generic/cxxabi_tweaks.h: Ditto.
1453 * libsupc++/cxxabi.h (__cxa_vec_ctor, __cxa_vec_cctor): Use
1454 __cxa_vec_ctor_return.
1455 * libsupc++/vec.cc (__cxa_vec_ctor, __cxa_vec_cctor): Ditto.
1456 Use _GLIBCXX_CXA_VEC_CTOR_RETURN.
1458 2004-08-12 Kelley Cook <kcook@gcc.gnu.org>
1460 * Makefile.in, aclocal.m4, configure, include/Makefile.in,
1461 libmath/Makefile.in, libsupc++/Makefile.in, po/Makefile.in,
1462 src/Makefile.in, testsuite/Makefile.in: Regenerate
1464 2004-08-12 Jan Beulich <jbeulich@novell.com>
1466 * config/locale/generic/ctype_members.cc
1467 (ctype<wchar_t>::_M_convert_to_wmask): Default case must not use 0 as
1468 initializer for return value, as that is invalid for enumerated types.
1469 * config/locale/gnu/ctype_members.cc
1470 (ctype<wchar_t>::_M_convert_to_wmask): Likewise.
1472 2004-08-11 Paolo Carlini <pcarlini@suse.de>
1474 * testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc: Fix typo.
1476 2004-08-11 Paolo Carlini <pcarlini@suse.de>
1478 * testsuite/27_io/basic_stringbuf/imbue/char/1.cc: Declare test
1480 * testsuite/27_io/basic_stringbuf/imbue/wchar_t/1.cc: Ditto.
1481 * testsuite/27_io/basic_stringbuf/in_avail/char/1.cc: Remove junk.
1482 * testsuite/27_io/basic_stringbuf/in_avail/wchar_t/1.cc: Ditto.
1483 * testsuite/27_io/basic_stringbuf/sbumpc/char/1.cc: Ditto.
1484 * testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc: Ditto.
1485 * testsuite/27_io/basic_stringbuf/setbuf/char/1.cc: Ditto.
1486 * testsuite/27_io/basic_stringbuf/setbuf/wchar_t/1.cc: Ditto.
1487 * testsuite/27_io/basic_stringbuf/sgetc/char/1.cc: Ditto.
1488 * testsuite/27_io/basic_stringbuf/sgetc/wchar_t/1.cc: Ditto.
1489 * testsuite/27_io/basic_stringbuf/sgetn/char/1.cc: Ditto.
1490 * testsuite/27_io/basic_stringbuf/sgetn/wchar_t/1.cc: Ditto.
1491 * testsuite/27_io/basic_stringbuf/snextc/char/1.cc: Ditto.
1492 * testsuite/27_io/basic_stringbuf/snextc/wchar_t/1.cc: Ditto.
1493 * testsuite/27_io/basic_stringbuf/sputbackc/char/1.cc: Ditto.
1494 * testsuite/27_io/basic_stringbuf/sputbackc/wchar_t/1.cc: Ditto.
1495 * testsuite/27_io/basic_stringbuf/sputc/char/1.cc: Ditto.
1496 * testsuite/27_io/basic_stringbuf/sputc/wchar_t/1.cc: Ditto.
1497 * testsuite/27_io/basic_stringbuf/sputn/char/1.cc: Ditto.
1498 * testsuite/27_io/basic_stringbuf/sputn/wchar_t/1.cc: Ditto.
1499 * testsuite/27_io/basic_stringbuf/sungetc/char/1.cc: Ditto.
1500 * testsuite/27_io/basic_stringbuf/sungetc/wchar_t/1.cc: Ditto.
1502 2004-08-11 Paolo Carlini <pcarlini@suse.de>
1503 Petur Runolfsson <peturr02@ru.is>
1506 * src/ios_init.cc (ios_base::sync_with_stdio): Make sure the
1507 standard streams are constructed.
1508 * testsuite/27_io/ios_base/sync_with_stdio/16959.cc: New.
1510 2004-08-09 Paolo Carlini <pcarlini@suse.de>
1512 * include/bits/stl_bvector.h: Trivial formatting fixes.
1514 2004-08-09 Paolo Carlini <pcarlini@suse.de>
1516 * src/ios.cc (ios_base::_M_grow_words): Uglify the names.
1518 2004-08-07 Jonathan Wakely <redi@gcc.gnu.org>
1519 Paolo Carlini <pcarlini@suse.de>
1521 * src/debug.cc (_Error_formatter::_M_print_string): In order
1522 to print individual words from __string, _M_format_word can't
1523 be called since may be just sprintf, thus ignoring completely
1524 __n: instead, use memmove and append '\0' by hand.
1526 2004-08-07 Paolo Carlini <pcarlini@suse.de>
1528 * config/locale/generic/c_locale.h (__convert_from_v): Don't
1529 use a default for __prec, assume __prec >= 0 and simplify.
1530 * config/locale/gnu/c_locale.h (__convert_from_v): Likewise.
1531 * include/bits/locale_facets.tcc (money_put<>::do_put(long double)):
1532 Pass format "%.*Lf" + precision == 0, equivalent to "%.0Lf".
1534 2004-08-04 Phil Edwards <phil@codesourcery.com>
1536 * docs/html/configopts.html: Emphasize that options change.
1537 * docs/html/17_intro/configury.html: Update links.
1539 2004-08-03 Paolo Carlini <pcarlini@suse.de>
1541 * include/bits/list.tcc: Trivial formatting fixes.
1543 2004-08-03 Mark Mitchell <mark@codesourcery.com>
1545 * libsupc++/new_op.cc: Update comments.
1546 * libsupc++/del_op.cc: Likewise.
1548 2004-08-02 Mark Mitchell <mark@codesourcery.com>
1550 * libsupc++/cxxabi.h: Make all declarations have default
1552 * libsupc++/exception: Likewise.
1553 * libsupc++/new: Likewise.
1554 * libsupc++/typeinfo: Likewise.
1555 * libsupc++/unwind-cxx.h: Likewise.
1556 * libsupc++/eh_alloc.cc (__cxa_allocate_exception): Put it into
1557 the __cxxabiv1 namespace.
1558 (__cxa_free_exception): Likewise.
1559 * libsupc++/eh_aux_runtime.cc (__cxa_bad_cast): Likewise.
1560 (__cxa_bad_typeid): Likewise.
1561 * libsupc++/eh_catch.cc (__cxa_begin_catch): Likewise.
1562 (__cxa_end_catch): Likewise.
1563 * libsupc++/eh_globals.cc (__cxa_get_globals_fast): Likewise.
1564 (__cxa_get_globals): Likewise.
1565 * libsupc++/eh_throw.cc (__cxa_throw): Likewise.
1566 (__cxa_rethrow): Likewise.
1567 * libsupc++/pure.cc (__cxa_pure_virtual): Likewise.
1568 * libsupc++/eh_type.cc: Include <cxxabi.h>.
1570 * Makefile.am (hosted_source): Add libmath and testsuite.
1571 (SUBDIRS): Remove them.
1572 * acinclude.m4: (GLIBCXX_ENABLED_HOSTED): Default to freestanding
1573 on arm*-*-symbianelf*.
1574 * crossconfig.m4: Add arm*-*-symbianelf* support.
1575 * include/c_std/std/std_cstdlib.h (stdlib.h): Do not include it
1576 when freestanding. Do not bring names into std:: namespace with
1577 "using" when freestanding. Declare required functions and macros
1579 * libsupc++/Makefile.am (c_sources): Do not include cp-demangle.c
1581 * libsupc++/del_op.cc: Declare "free" only when freestanding.
1582 * libsupc++/eh_alloc.cc (cstring): Include it only when hosted.
1583 (malloc): Declare when freestanding.
1586 (__cxa_allocate_exception): Call malloc, not std::malloc. Likewise
1588 (__cxa_free_exception): Likewise for free.
1589 * libsupc++/new_op.cc: Declare "malloc" when freestanding.
1590 * libsupc++/pure.cc (writestr): Define to nothing when
1592 * libsupc++/vterminate.cc: Do not define anything when
1594 * Makefile.in: Regenerated.
1595 * aclocal.m4: Likewise.
1596 * configure: Likewise.
1597 * include/Makefile.in: Likewise.
1598 * libmath/Makefile.in: Likewise.
1599 * libsupc++/Makefile.in: Likewise.
1600 * po/Makefile.in: Likewise.
1601 * src/Makefile.in: Likewise.
1602 * testsuite/Makefile.in: Likewise.
1604 2004-08-01 Matt Austern <austern@apple.com>
1607 * include/bits/stl_list.h (_M_create_node): Remove unused
1608 zero-argument version.
1609 * include/ext/slist (_M_create_node): Pass two arguments to
1610 allocator's construct() member function.
1611 * testsuite/23_containers/deque/explicit_instantiation.cc: New.
1612 * testsuite/23_containers/list/explicit_instantiation.cc: New.
1613 * testsuite/23_containers/vector/explicit_instantiation.cc: New.
1614 * testsuite/23_containers/map/explicit_instantiation.cc: New.
1615 * testsuite/23_containers/set/explicit_instantiation.cc: New.
1616 * testsuite/23_containers/multimap/explicit_instantiation.cc: New.
1617 * testsuite/23_containers/multiset/explicit_instantiation.cc: New.
1618 * testsuite/ext/hash_set_explicit_instantiation.cc: New.
1619 * testsuite/ext/slist_explicit_instantiation.cc: New.
1621 2004-07-30 Paolo Carlini <pcarlini@suse.de>
1623 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
1624 num_get<>::_M_extract_int): In the main parsing loop delay the
1625 life of __q to the actual use point.
1627 2004-07-29 Paolo Carlini <pcarlini@suse.de>
1630 * include/bits/locale_facets.tcc (num_put<>::_M_insert_float):
1631 Don't clip the precision passed down to __convert_from_v:
1632 22.2.2.2.2 nowhere says so.
1633 * testsuite/22_locale/num_put/put/char/14220.cc: New.
1634 * testsuite/22_locale/num_put/put/wchar_t/14220.c: Likewise.
1636 2004-07-29 Paolo Carlini <pcarlini@suse.de>
1638 * docs/html/ext/lwg-active.html, lwg-defects.html: Import Revision 31.
1640 2004-07-29 Paolo Carlini <pcarlini@suse.de>
1641 Petur Runolfsson <peturr02@ru.is>
1643 PR libstdc++/12658 (continued)
1644 * src/locale_init.cc (locale::locale, locale::global): Use
1645 a single locale_mutex instead of two separate mutexes.
1647 2004-07-29 Paolo Carlini <pcarlini@suse.de>
1650 * include/debug/map.h (insert(_InputIterator, _InputIterator)):
1652 * testsuite/23_containers/map/insert/16813.cc: New.
1654 2004-07-29 Phil Edwards <phil@codesourcery.com>
1656 * docs/html/faq/index.html: Update version references. Make
1657 clear that code from SGI has diverged greatly. Remove references
1658 to library snapshots and what's-new sections.
1659 * docs/html/faq/index.txt: Regenerate.
1661 2004-07-28 Matt Austern <austern@apple.com>
1663 * include/bits/stl_construct.h (_Destroy): New three-argument
1664 overload that takes an allocator argument. Another inline
1665 three-argument overload that takes std::allocator and dispatches
1666 to the two-argument version.
1667 * include/bits/stl_uninitialized.h (__uninitialized_fill_n_aux):
1668 Change return type to void to match uninitialized_fill_n.
1669 (__uninitialized_copy_a_): New function. Like uninitialized_copy
1670 except that it takes an allocator and uses it for construct and
1671 destroy. If the allocator is std::allocator, dispatches to
1673 (__uninitialized_fill_a): Likewise.
1674 (__uninitialized_fill_n_a): Likewise.
1675 (__uninitialized_copy_copy): Give it an allocator argument.
1676 (__uninitialized_fill_copy): Likewise.
1677 (__uninitialized_copy_fill): Likewise.
1678 * include/bits/deque.tcc: Use new forms defined in stl_construct.h
1679 and stl_uninitialized.h. Replace use of single-argument _Construct
1680 and _Destroy with use of allocator's construct and destroy methods.
1681 * include/bits/list.tcc: Likewise.
1682 * include/bits/stl_deque.h: Likewise.
1683 * include/bits/stl_list.h: Likewise.
1684 * include/bits/stl_tree.h: Likewise.
1685 * include/bits/stl_vector.h: Likewise.
1686 * include/bits/vector.tcc: Likewise.
1687 * include/ext/hashtable.h: Use rebind so that allocator_type
1688 has correct type for a container's allocator. Replace use of
1689 single-argument _Construct and _Destroy with use of allocator's
1690 construct and destroy methods.
1691 * include/ext/memory (__uninitialized_copy_n_a): New function.
1692 Like uninitialized_copy_n except that it takes an extra parameter,
1693 an allocator, and uses it for construct and destroy operations.
1694 * include/ext/rope: Use new forms defined in stl_construct.h,
1695 stl_uninitialized.h, and ext/memory. Replace use of single-argument
1696 _Construct and _Destroy with allocator construct and destroy methods.
1697 * include/ext/ropeimpl.h: Likewise.
1698 * include/ext/slist.h: Likewise.
1699 * testsuite/testsuite_allocator.h (check_construct_destroy): New.
1700 * testsuite/testsuite_allocator.cc (check_construct_destroy): New.
1701 * testsuite/23_containers/deque/check_construct_destroy.cc: New.
1702 * testsuite/23_containers/list/check_construct_destroy.cc: New.
1703 * testsuite/23_containers/set/check_construct_destroy.cc: New.
1704 * testsuite/23_containers/vector/check_construct_destroy.cc: New.
1705 * testsuite/ext/hash_check_construct_destroy.cc: New.
1706 * testsuite/ext/slist_check_construct_destroy.cc: New.
1708 2004-07-28 Alexandre Oliva <aoliva@redhat.com>
1710 2003-10-01 Eric Christopher <echristo@redhat.com>
1711 * config/cpu/sh/atomicity.h (__exchange_and_add): Remove 'm'
1713 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
1714 * config/cpu/sh/atomicity.h: New. Use movli and movco on SH4a.
1716 2004-07-23 Benjamin Kosnik <bkoz@redhat.com>
1719 * include/bits/locale_facets.tcc: Fix for -Werror.
1721 2004-07-23 Jonathan Wakely <redi@gcc.gnu.org>
1723 * docs/html/debug.html: Say debug mode only available since 3.4.0.
1725 2004-07-21 Benjamin Kosnik <bkoz@redhat.com>
1727 * docs/doxygen/mainpage.html: Clarify links.
1728 * docs/doxygen/stdheader.cc: Add files.
1729 * docs/doxygen/style.css: Remove bolds, add h2, h3 styles.
1730 * docs/doxygen/user.cfg.in: New options, wrap.
1732 2004-07-20 Danny Smith <dannysmith@users.sourceforge.net>
1734 * include/c_std/std_cwchar.h (wcsstr): Correct signature.
1736 2004-07-19 Benjamin Kosnik <bkoz@redhat.com>
1739 * testsuite/lib/libstdc++.exp (v3-copy-files): Revert.
1741 2004-07-17 Richard Sandiford <rsandifo@redhat.com>
1744 * scripts/create_testsuite_files: Pass -print to find.
1746 2004-07-15 Paolo Carlini <pcarlini@suse.de>
1748 * docs/html/ext/lwg-active.html, lwg-defects.html: Import Revision 30.
1749 * docs/html/ext/howto.html: Tweak entries for DRs 167/253/389/402.
1751 2004-07-15 Jakub Jelinek <jakub@redhat.com>
1754 * acinclude.m4 (glibcxx_shared_libgcc): Correct
1755 glibcxx_shared_libgcc test for multilibs.
1756 * configure: Rebuilt.
1758 2004-07-14 Paolo Carlini <pcarlini@suse.de>
1761 * include/bits/stl_uninitialized.h (uninitialized_fill_n): Fix
1762 the signature to return void, as per 20.4.4.3.
1763 * include/bits/stl_vector.h (vector::vector(size_type,
1764 const value_type&, const allocator_type&), vector::vector(size_type),
1765 vector::_M_initialize_dispatch): Adjust callers.
1766 * include/bits/vector.tcc (vector<>::_M_fill_assign,
1767 vector<>::_M_fill_insert): Likewise.
1768 * testsuite/20_util/memory/16505.cc: New.
1770 2004-07-14 Paolo Carlini <pcarlini@suse.de>
1772 * testsuite/22_locale/locale/cons/12658_thread-1.cc,
1773 12658_thread-2.cc: Use __gnu_test::try_named_locale.
1775 2004-07-13 Benjamin Kosnik <bkoz@redhat.com>
1777 * docs/html/ext/mt_allocator.html: Add docs for _Tune.
1778 * include/ext/mt_allocator.h (__mt_alloc::_S_get_options): Make public.
1779 (__mt_alloc::_S_set_options): Same.
1782 2004-07-13 Benjamin Kosnik <bkoz@redhat.com>
1784 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Add allocator defaults
1786 * configure: Regenerated.
1788 2004-07-13 Paolo Carlini <pcarlini@suse.de>
1790 * testsuite/22_locale/locale/cons/12658_thread.cc: Move/rename
1791 to 12658_thread-1.cc and xfail.
1792 * testsuite/22_locale/locale/cons/12658_thread-2.c: New, much
1793 simpler version of 12658_thread-1.cc, still failing on 3_3 and
1794 not failing on 3_4/mainline - both on single processor and
1795 multiprocessor machines.
1797 2004-07-12 Benjamin Kosnik <bkoz@redhat.com>
1799 * docs/html/abi.html: Remove non-public qualification.
1801 * include/bits/concurrence.h: Tweak comments.
1803 2004-07-11 Paolo Carlini <pcarlini@suse.de>
1805 Add wchar_t counterparts of the basic_streambbuf<char> tests.
1806 * testsuite/27_io/basic_streambuf/cons/wchar_t/1.cc: New.
1807 * testsuite/27_io/basic_streambuf/imbue/wchar_t/1.cc, 9322.cc:
1809 * testsuite/27_io/basic_streambuf/in_avail/wchar_t/9701-3.cc: Likewise.
1810 * testsuite/27_io/basic_streambuf/overflow/wchar_t/1.cc, 2.cc,
1812 * testsuite/27_io/basic_streambuf/sgetc/wchar_t/1.cc: Likewise.
1813 * testsuite/27_io/basic_streambuf/sgetn/wchar_t/1.cc: Likewise.
1814 * testsuite/27_io/basic_streambuf/sputbackc/wchar_t/9538.cc: Likewise.
1815 * testsuite/27_io/basic_streambuf/sputc/wchar_t/1057.cc: Likewise.
1816 * testsuite/27_io/basic_streambuf/sputn/wchar_t/1.cc, 1057.cc:
1818 * testsuite/27_io/basic_streambuf/sync/wchar_t/1057.cc: Likewise.
1820 * testsuite/27_io/basic_streambuf/imbue/char/1.cc, 9322.cc: Minor
1822 * testsuite/27_io/basic_streambuf/overflow/char/2.cc, 3599.cc:
1824 * testsuite/27_io/basic_streambuf/sputn/char/1057.cc: Likewise.
1825 * testsuite/27_io/basic_streambuf/sync/char/1057.cc: Likewise.
1827 2004-07-11 Phil Edwards <phil@codesourcery.com>
1829 * acinclude.m4: Cosmetic shell syntax fixes.
1830 * configure.ac: Bring comment inline with reality.
1831 * configure.host: Both of the above. Move 'arm' case to right
1832 place in host_cpu switch.
1833 * aclocal.m4, configure: Regenerate.
1835 2004-07-09 Paolo Carlini <pcarlini@suse.de>
1837 Add wchar_t counterparts of the basic_stringbuf<char> tests.
1838 * testsuite/27_io/basic_stringbuf/imbue/wchar_t/1.cc, 9322.cc: New.
1839 * testsuite/27_io/basic_stringbuf/in_avail/wchar_t/1.cc: Likewise.
1840 * testsuite/27_io/basic_stringbuf/overflow/wchar_t/1.cc, 2.cc,
1841 3599.cc, 9988.cc: Likewise.
1842 * testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc, 9825.cc:
1844 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc, 2.cc:
1846 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc, 2.cc, 3.cc:
1848 * testsuite/27_io/basic_stringbuf/setbuf/wchar_t/1.cc, 2.cc, 3.cc:
1850 * testsuite/27_io/basic_stringbuf/sgetc/wchar_t/1.cc: Likewise.
1851 * testsuite/27_io/basic_stringbuf/sgetn/wchar_t/1.cc: Likewise.
1852 * testsuite/27_io/basic_stringbuf/snextc/wchar_t/1.cc: Likewise.
1853 * testsuite/27_io/basic_stringbuf/sputbackc/wchar_t/1.cc, 9425.cc:
1855 * testsuite/27_io/basic_stringbuf/sputc/wchar_t/1.cc, 1057.cc,
1856 9404-1.cc: Likewise.
1857 * testsuite/27_io/basic_stringbuf/sputn/wchar_t/1.cc, 1057.cc,
1858 9404-2.cc: Likewise.
1859 * testsuite/27_io/basic_stringbuf/str/wchar_t/1.cc, 2.cc, 3.cc,
1861 * testsuite/27_io/basic_stringbuf/sungetc/wchar_t/1.cc: Likewise.
1862 * testsuite/27_io/basic_stringbuf/sync/wchar_t/1057.cc: Likewise.
1864 2004-07-08 Paolo Carlini <pcarlini@suse.de>
1866 * include/bits/gslice.h: Trivial formatting fixes.
1867 * include/bits/gslice_array.h: Likewise.
1868 * include/bits/indirect_array.h: Likewise.
1869 * include/bits/mask_array.h: Likewise.
1870 * include/bits/slice_array.h: Likewise.
1871 * include/bits/valarray_after.h: Likewise.
1872 * include/bits/valarray_array.h: Likewise.
1873 * include/bits/valarray_before.h: Likewise.
1874 * include/std/std_valarray.h: Likewise.
1876 2004-07-08 Benjamin Kosnik <bkoz@redhat.com>
1879 * include/bits/basic_string.h (basic_string::operator=): Revert.
1881 2004-07-07 Benjamin Kosnik <bkoz@redhat.com>
1883 * configure.ac (libtool_VERSION): To 6:2:0.
1884 * configure: Regenerated.
1886 * testsuite/testsuite_abi.cc (check_version): Add 3.4.2.
1888 2004-07-07 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
1891 * config/linker-map.gnu: Add stdio_sync_filebuf::file exports.
1893 2004-07-07 Benjamin Kosnik <bkoz@redhat.com>
1895 * docs/html/abi.html: Updates for 3.4.1 release. Add summary of
1898 2004-07-07 Paolo Carlini <pcarlini@suse.de>
1901 * include/bits/sstream.tcc (overflow): When reallocating _M_string
1902 use an exponential grow policy.
1903 * testsuite/27_io/basic_stringbuf/overflow/char/1.cc: New.
1904 * testsuite/performance/27_io/stringbuf_overflow.cc: New.
1906 2004-07-06 Anssi Hannula <anssi.hannula@mbnet.fi>
1909 * crossconfig.m4: Add in bits for djgpp.
1910 * configure: Regenerate.
1912 2004-07-05 Jonathan Wakely <redi@gcc.gnu.org>
1914 * testsuite/23_containers/{set,multiset}/14340.cc: Fix typos in
1915 instantiation of set and multiset (functor param given as int).
1917 2004-07-04 Paolo Carlini <pcarlini@suse.de>
1919 * include/bits/basic_string.h: Trivial formatting fixes and/or
1920 const-ification of some variables.
1921 * include/bits/deque.tcc: Likewise.
1922 * include/bits/stl_algobase.h: Likewise.
1923 * include/bits/stl_bvector.h: Likewise.
1924 * include/bits/stl_construct.h: Likewise.
1925 * include/bits/stl_deque.h: Likewise.
1926 * include/bits/stl_pair.h: Likewise.
1927 * include/bits/stl_vector.h: Likewise.
1928 * include/bits/vector.tcc: Likewise.
1930 2004-07-04 Paolo Carlini <pcarlini@suse.de>
1932 * testsuite/25_algorithms/copy/1.cc: Add instantiations for
1933 systems with no COMDAT or weak support.
1934 * testsuite/25_algorithms/copy/2.cc: Likewise.
1935 * testsuite/25_algorithms/copy/3.cc: Likewise.
1936 * testsuite/25_algorithms/copy/4.cc: Likewise.
1938 2004-07-03 Paul Brook <paul@codesourcery.com>
1940 * configure.ac: Set ABI_TWEAKS_SRCDIR.
1941 * configure.host: Set abi_tweaks_dir. Check for atomicity.h when
1942 setting atomicity_dir. Override type_cpu for arm based targets.
1943 * include/Makefile.am (host_headers): Add cxxabi_tweaks.h.
1944 * libsupc++/cxxabi.h: Include bits/cxxabi.h. Don't declare __guard.
1945 * libsupc++/guard.cc: Use definitions from cxxabi_tweaks.h.
1946 * libsupc++/vec.cc: Ditto.
1947 * config/cpu/arm/cxxabi_tweaks.h: New file.
1948 * config/cpu/generic/cxxabi_tweaks.h: New file.
1949 * */Makefile.in: Regenerate.
1950 * configure: Regenerate.
1952 2004-07-02 Paolo Carlini <pcarlini@suse.de>
1954 * include/bits/type_traits.h (_Is_normal_iterator): Move...
1955 * include/bits/cpp_type_traits.h: ... here, renamed to
1956 __is_normal_iterator and consistent with the other traits.
1957 * include/bits/stl_algobase.h (__copy_ni1, __copy_ni2): Convert
1958 to the struct __copy_normal and three specializations.
1959 (__copy_backward_output_normal_iterator,
1960 __copy_backward_input_normal_iterator): Likewise, convert to
1961 the struct __copy_backward_normal and three specializations.
1962 (copy, copy_backward): Use the latter.
1963 (__copy_aux, __copy_backward_aux): Very minor tweaks.
1965 2004-07-01 Paolo Carlini <pcarlini@suse.de>
1967 * include/bits/stl_algobase.h (__copy_trivial): Remove.
1968 (__copy_aux2): Rewrite as __copy_aux to use __is_pointer,
1969 __is_trivially_copyable, __are_same and __copy::copy.
1970 (__copy): Rewrite as a class template and two specializations.
1971 (__copy_ni2): Simplify, just call __copy_aux.
1973 * include/bits/stl_algobase.h (__copy_backward_aux): Add __are_same
1975 * testsuite/25_algorithms/copy/1.cc, 2.cc, 3.cc, 4.cc: Test also
1976 for destination value type != source value type.
1978 2004-07-01 Benjamin Kosnik <bkoz@redhat.com>
1979 Per Bothner <per@bothner.com>
1980 Mohan Embar <gnustuff@thisiscool.com>
1983 * include/bits/concurrence.h (__glibcxx_mutex_type): New.
1984 (__glibcxx_mutex): Encapsulate mutex init function into type for
1985 threaded configurations without __GTHREAD_MUTEX_INIT.
1986 (lock::lock): Make device member a reference.
1987 (lock::~lock): Same.
1988 * include/ext/pool_allocator.h (__pool_base::_M_get_mutex): Change
1990 * src/allocator.cc: Same.
1992 2004-06-30 Brad Spencer <spencer@infointeractive.com>
1994 * include/ext/mt_allocator.h: Handle allocations at static
1995 initialization that happen before _S_options is (automatically)
1996 constructed; set _S_init even if _M_force_new is true.
1998 2004-06-30 Benjamin Kosnik <bkoz@redhat.com>
2000 * config/linker-map.gnu: Revert new exports.
2002 2004-06-30 Benjamin Kosnik <bkoz@redhat.com>
2003 Stuart Anderson <anderson@netsweng.com>
2005 * config/linker-map.gnu: Add destructor exports for abstract base
2006 classes to conform to LSB.
2008 2004-06-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
2009 Paolo Carlini <pcarlini@suse.de>
2011 * include/bits/cpp_type_traits.h: Add __is_pointer and
2012 __is_trivially_copyable.
2013 * include/bits/stl_algobase.h (fill, fill_n): Slightly
2014 tweak to use the latter.
2015 (__copy_backward_dispatch): Remove.
2016 (__copy_backward_aux): Rewrite to use __is_pointer and
2017 __is_trivially_copyable and __copy_backward::copy_b.
2018 (__copy_backward): Rewrite as a class template and two
2021 2004-06-30 Paolo Carlini <pcarlini@suse.de>
2023 * testsuite/25_algorithms/copy.cc: Move to...
2024 * testsuite/25_algorithms/copy/1.cc: ... here, extend.
2025 * testsuite/25_algorithms/copy/2.cc: New.
2026 * testsuite/25_algorithms/copy/3.cc: New.
2027 * testsuite/25_algorithms/copy/4.cc: New.
2029 2004-06-29 Paul Brook <paul@codesourcery.com>
2031 * libsupc++/vec.cc (__cxa_vec_new2, __cxa_vec_new3): Store the
2032 element size in the cookie.
2034 2004-06-28 Paolo Carlini <pcarlini@suse.de>
2036 * include/bits/cpp_type_traits.h: Move the additions to
2037 namespace __gnu_internal outside of namespace std; trivial
2040 2004-06-28 Benjamin Kosnik <bkoz@redhat.com>
2042 * include/debug/safe_base.h (__gnu_debug::_Safe_sequence_base):
2043 Revert -Weffc++ changes that defined copy ctory and or assignment
2045 * libsupc++/tinfo.cc (__upcast_result): Same.
2047 2004-06-28 Paolo Carlini <pcarlini@suse.de>
2049 * src/localename.cc (locale::_Impl::_Impl): Slightly improve
2050 the algorithm used to name the categories.
2052 2004-06-28 Paolo Bonzini <bonzini@gnu.org>
2054 * include/Makefile.am: Give a .gch extension to
2055 the PCH files, not only to the directory.
2056 * include/Makefile.in: Regenerate.
2058 2004-06-28 Paolo Carlini <pcarlini@suse.de>
2060 * config/locale/gnu/monetary_members.cc
2061 (moneypunct<wchar_t>::_M_initialize_moneypunct): Clean up
2062 assignments of _M_decimal_point and _M_thousands_sep.
2064 2004-06-27 Paolo Carlini <pcarlini@suse.de>
2066 * docs/html/17_intro/contribute.html: Update some links.
2067 * docs/html/17_intro/porting-howto.html: Likewise.
2068 * docs/html/17_intro/porting-howto.xml: Likewise.
2069 * docs/html/18_support/howto.html: Likewise.
2070 * docs/html/21_strings/howto.html: Likewise.
2071 * docs/html/27_io/howto.html: Likewise.
2072 * docs/html/configopts.html: Likewise.
2073 * docs/html/ext/howto.html: Likewise.
2074 * docs/html/faq/index.html: Likewise.
2075 * docs/html/install.html: Don't mention 2.x compilers.
2077 2004-06-27 Paolo Carlini <pcarlini@suse.de>
2079 * include/ext/rope: Trivial formatting fixes.
2080 * include/ext/ropeimpl.h: Likewise.
2082 2004-06-26 Paolo Carlini <pcarlini@suse.de>
2085 * acinclude.m4 (GLIBCXX_ENABLE_LONG_LONG): Do not check for the
2086 availability of strto(u)ll, not used anymore in the iostreams.
2087 * configure: Regenerate.
2089 2004-06-25 Benjamin Kosnik <bkoz@redhat.com>
2092 * linkage.m4 (GLIBCXX_CHECK_BUILTIN_MATH_DEC): Revert to
2094 * configure: Regenerate.
2096 2004-06-25 Paul Brook <paul@codesourcery.com>
2098 * libsupc++/cxxabi.h: Define __ARM_EABI__
2100 * libsupc++/guard.h (__cxa_guard_acquire, __cxa_guard_release): Ditto.
2102 2004-06-25 Paul Brook <paul@codesourcery.com>
2104 * include/bits/concurrence.h: Still create mutex object when
2107 2004-06-25 Paolo Carlini <pcarlini@suse.de>
2109 * include/bits/stl_algobase.h (fill, fill_n): Revert last
2110 change: actually we need to copy construct an object of type
2111 _Tp, not of type iterator_traits<>::value_type, therefore the
2114 2004-06-25 Paolo Carlini <pcarlini@suse.de>
2116 * include/bits/stl_algobase.h (fill, fill_n): Tighten the
2117 dispatch: use iterator_traits<>::value_type, not _Tp.
2119 2004-06-25 Paolo Carlini <pcarlini@suse.de>
2121 * testsuite/25_algorithms/fill/1.cc: Tweak instantiations.
2122 * testsuite/25_algorithms/fill/2.cc: Likewise.
2124 2004-06-25 Dan Nicolaescu <dann@ics.uci.edu>
2125 Paolo Carlini <pcarlini@suse.de>
2127 * include/bits/stl_algobase.h (__fill, __fill_n): New helpers
2128 for fill and fill_n, respectively: when copying is cheap, use a
2129 temporary to avoid a memory read in each iteration.
2131 2004-06-25 Paolo Carlini <pcarlini@suse.de>
2133 * testsuite/25_algorithms/fill/1.cc: New.
2134 * testsuite/25_algorithms/fill/2.cc: Likewise.
2136 2004-06-25 Benjamin Kosnik <bkoz@redhat.com>
2138 * include/debug/formatter.h (__gnu_debug::_Error_formatter):
2139 Remove copy constructor and assignment operator.
2141 2004-06-24 Benjamin Kosnik <bkoz@redhat.com>
2143 * include/bits/concurrence.h (__gnu_cxx::lock): New.
2144 * include/ext/pool_allocator.h (__pool_base::_Lock::_S_lock): Remove.
2145 (__pool_base::_M_get_mutex): New.
2146 * include/bits/allocator.h: Tweak.
2147 * src/allocator.cc (__pool_base::_M_get_free_list): Correct offset.
2148 * config/linker-map.gnu: Remove __pool_base::_Lock::_S_lock.
2149 * include/bits/stl_threads.h: Remove.
2150 * include/Makefile.am: Also here.
2151 * include/Makefile.in: Regenerate.
2153 * src/locale_init.cc: Use __gnu_cxx::lock.
2155 * src/allocator.cc: Move all instantiations...
2156 * src/allocator-inst.cc: ...here.
2158 2004-06-23 Andrew Pinski <apinski@apple.com>
2160 * linkage.m4: Remove check for libmx.
2161 * configure: Regenerate.
2163 2004-06-23 Paolo Carlini <pcarlini@suse.de>
2166 * include/bits/boost_concept_check.h (struct _TrivialIteratorConcept):
2167 Don't require the _DefaultConstructibleConcept.
2168 (struct _ForwardIteratorConcept): Require it here.
2170 2004-06-22 Alexandre Oliva <aoliva@redhat.com>
2172 * include/bits/istream.tcc (getline): Make sure arguments passed
2173 to min/max have the same type.
2174 * include/bits/locale_facets.tcc (__verify_grouping): Likewise.
2175 * include/bits/stl_deque.h (_Deque_base::_Deque_base): Likewise.
2177 2004-06-22 Benjamin Kosnik <bkoz@redhat.com>
2179 * docs/html/abi.html: Update links.
2181 2004-06-22 Paolo Carlini <pcarlini@suse.de>
2183 * testsuite/26_numerics/complex_inserters_extractors.cc,
2184 complex_value.cc, buggy_complex.cc: Move to...
2185 * testsuite/26_numerics/complex/: ... here.
2186 * testsuite/26_numerics/c99_classification_macros_c++.cc,
2187 c99_classification_macros_c.cc, c_math.cc, c_math_dynamic.cc,
2188 fabs_inline.cc: Move to...
2189 * testsuite/26_numerics/cmath/: ... here.
2190 * testsuite/26_numerics/binary_closure.cc, slice.cc,
2191 slice_array_assignment.cc, valarray.cc, valarray_const_bracket.cc,
2192 valarray_name_lookup.cc, valarray_operators.cc,
2193 valarray_subset_assignment.cc: Move to...
2194 * testsuite/26_numerics/valarray/: ... here (new dir).
2195 * testsuite/26_numerics/sum_diff.cc: Move to...
2196 * testsuite/26_numerics/numeric/: ... here (new dir).
2198 2004-06-22 Paolo Carlini <pcarlini@suse.de>
2200 * include/std/std_istream.h (ignore(streamsize __n = 1,
2201 int_type __delim = traits_type::eof())): Split into...
2202 (ignore(), ignore(streamsize __n), ignore(streamsize __n,
2203 int_type __delim)): The first two can be much more simpler
2204 and efficient than the fully general case; also, the last
2205 two can take advantage of the same mechanism already used
2207 * include/bits/istream.tcc (ignore(streamsize __n = 1,
2208 int_type __delim = traits_type::eof()): Remove.
2209 (ignore(), ignore(streamsize __n), ignore(streamsize __n,
2210 int_type __delim)): New.
2212 2004-06-21 Loren J. Rittle <ljrittle@acm.org>
2214 * config/linker-map.gnu: Use wildcards for
2215 __basic_file::sys_open(FILE*, _Ios_Openmode).
2217 2004-06-20 Paolo Carlini <pcarlini@suse.de>
2219 * testsuite/27_io/basic_istream/ignore/char/3.cc: New.
2221 2004-06-18 Paolo Carlini <pcarlini@suse.de>
2223 * include/ext/mt_allocator (__mt_alloc<>::_Tune): Add _M_align,
2224 the alignment requested.
2225 (__mt_alloc<>::_Tune::_Tune): Tweak consistently.
2226 (__mt_alloc<>::allocate): Use it instead of sizeof(_Block_record).
2227 (__mt_alloc<>::deallocate): Likewise.
2229 2004-06-18 Paolo Carlini <pcarlini@suse.de>
2232 * include/debug/safe_base.h
2233 (_Safe_sequence_base::_Safe_sequence_base(const _Safe_sequence_base&),
2234 _Safe_sequence_base::operator=): Provide definitions.
2235 * testsuite/23_containers/bitset/cons/16020.cc: New.
2237 2004-06-18 Benjamin Kosnik <bkoz@redhat.com>
2239 * include/ext/pool_allocator.h: Qualify __throw_bad_alloc.
2240 (__pool_base): Remove unused template parameter. Add
2241 protected. Move lock data into __pool_base::_Lock. Remove static
2242 on member functions.
2243 (__pool_base::_M_get_free_list): New.
2244 (__pool_alloc): Move _S_force new here.
2245 * src/allocator.cc: Move out of line __pool_base definitions here.
2246 * config/linker-map.gnu: Export bits from __pool_base.
2248 2004-06-18 Paolo Carlini <pcarlini@suse.de>
2250 * config/locale/gnu/numeric_members.cc
2251 (numpunct<wchar_t>::_M_initialize_numpunct): Clean up
2252 assignments of _M_decimal_point and _M_thousands_sep.
2253 * config/locale/gnu/time_members.cc
2254 (__timepunct<wchar_t>::_M_initialize_timepunct): Clean up
2255 and reformat assignments of date and time fields.
2257 2004-06-16 Paolo Carlini <pcarlini@suse.de>
2259 * include/ext/rope (rope(_CharT, const allocator_type&)): Fix
2260 to use _Data_allocate.
2261 * include/ext/ropeimpl.h (rope<>::_S_leaf_concat_char_iter): Likewise.
2262 (rope<>::_S_substring): Likewise.
2263 (rope<>::rope(size_t, _CharT, const allocator_type&)): Likewise.
2264 (rope<>::c_str()): Likewise.
2265 (rope<>::replace_with_c_str()): Likewise.
2267 * include/ext/ropeimpl.h (_Rope_iterator_base<>::_S_setbuf):
2268 Correctly qualify _S_leaf, _S_function, etc., with _Rope_constants::,
2270 (_Rope_iterator_base<>::_S_setcache): Likewise.
2271 (_Rope_iterator_base<>::_S_setcache_for_incr): Likewise.
2272 (rope<>::_S_substring): Likewise.
2273 (rope<>::_S_dump): Likewise.
2274 (rope<>::_S_fetch_ptr): Likewise.
2275 (rope<>::_S_compare): Likewise.
2276 (rope<>::replace_with_c_str()): Likewise.
2278 * testsuite/ext/rope.cc: Rename to testsuite/ext/rope/1.cc.
2279 * testsuite/ext/rope/2.cc: New.
2281 2004-06-16 Paolo Carlini <pcarlini@suse.de>
2282 Matt Austern <austern@apple.com>
2284 * testsuite/ext/rope/3.cc: New.
2286 2004-06-15 Paolo Bonzini <bonzini@gnu.org>
2288 * acinclude.m4: Remove useless multilib configury.
2289 * Makefile.am: Remove useless multilib rules.
2290 * aclocal.m4: Regenerate.
2291 * Makefile.in: Regenerate.
2292 * configure: Regenerate.
2294 2004-06-15 Paolo Carlini <pcarlini@suse.de>
2296 * include/ext/hashtable.h: Trivial formatting fixes.
2297 * include/ext/rb_tree: Likewise.
2299 2004-06-14 Paolo Carlini <pcarlini@suse.de>
2301 * include/ext/hash_map: Trivial formatting fixes.
2302 * include/ext/hash_set: Likewise.
2303 * include/ext/memory: Likewise.
2304 * include/ext/numeric: Likewise.
2306 2004-06-14 Benjamin Kosnik <bkoz@redhat.com>
2308 * Makefile.in: Regenerate with automake 1.8.5.
2310 * include/Makefile.in: Same.
2311 * libmath/Makefile.in: Same.
2312 * libsupc++/Makefile.in: Same.
2313 * po/Makefile.in: Same.
2314 * src/Makefile.in: Same.
2315 * testsuite/Makefile.in: Same.
2317 2004-06-14 Paolo Carlini <pcarlini@suse.de>
2319 * include/ext/slist: Trivial formatting fixes.
2321 2004-06-14 Paolo Carlini <pcarlini@suse.de>
2323 * include/bits/locale_facets.tcc (time_get<>::_M_extract_name):
2324 Don't use the 'magic number' 10 in the computation of __minlen;
2325 never access __name past __minlen; in the loop over __i3, don't
2326 decrease __nmatches and increase __i3 at once, only either of
2329 2004-06-13 Paolo Carlini <pcarlini@suse.de>
2331 * include/bits/locale_facets.tcc (time_get<>::do_get_time,
2332 time_get<>::do_get_date): Use only once _M_extract_via_format,
2333 instead of going through "%X"/"%x" and calling it two times
2336 2004-06-12 Paolo Carlini <pcarlini@suse.de>
2338 * include/ext/algorithm: Trivial formatting fixes.
2339 * include/ext/functional: Likewise.
2340 * include/ext/hash_fun.h: Likewise.
2341 * include/ext/iterator: Likewise.
2343 2004-06-12 Paolo Carlini <pcarlini@suse.de>
2345 * include/bits/basic_string.tcc (find(const _CharT*, size_type,
2346 size_type)): Reimplement using std::search.
2347 * src/string-inst.cc: Instantiate std::search for char/wchar_t.
2349 2004-06-12 Dhruv Matani <dhruvbird@gmx.net>
2351 * testsuite/performance/21_strings/string_find.cc: New.
2353 2004-06-10 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
2355 * include/bits/istream.tcc (istream::ignore): Fix for -Wuninitialized.
2357 2004-06-10 Jan van Dijk <jan@etpmod.phys.tue.nl>
2359 * include/std/std_complex.h (sin(const complex<_Tp>& __z)): Make
2360 this function return a value.
2362 2004-06-09 Paolo Carlini <pcarlini@suse.de>
2365 * include/bits/stl_deque.h: Consistently with stl_set.h, define
2366 pointer as allocator's pointer, likewise for reference,
2367 const_pointer, and const_reference.
2368 * include/bits/stl_list.h: Likewise.
2369 * include/bits/stl_map.h: Likewise.
2370 * include/bits/stl_multimap.h: Likewise.
2371 * include/bits/stl_vector.h: Likewise.
2373 2004-06-09 Benjamin Kosnik <bkoz@redhat.com>
2375 * crossconfig.m4: Remove signbit, signbitf, signbitl.
2376 * linkage.m4: Comment LIBMATHOBJS, tweak others. AC_DEFINES for
2377 builtin math functions instead of AC_DEFINE_UNQUOTED.
2378 * configure: Regenerate.
2380 2004-06-08 Benjamin Kosnik <bkoz@redhat.com>
2382 * docs/doxygen/filter.sed: Rename _GLIBCXX_STD to std.
2383 * docs/doxygen/mainpage.html: Remove links.
2385 2004-06-08 Jason Merrill <jason@redhat.com>
2387 * config/linker-map.gnu: Use wildcards for
2388 __basic_file::{xsgetn,xsputn,seekoff,xsputn_2}.
2390 2004-06-08 Paolo Carlini <pcarlini@suse.de>
2392 * include/ext/pool_allocator.h: Convert to a global free-list,
2393 as per the original SGI/HP design: move the implementation
2394 details to struct __pool_base, from which __pool_alloc derives.
2395 * src/allocator.cc: Instantiate __pool_base.
2397 2004-06-07 Dhruv Matani <dhruvbird@gmx.net>
2398 Paolo Carlini <pcarlini@suse.de>
2400 * testsuite/testsuite_performance.h
2401 (resource_counter::allocated_memory): Make it return the right
2402 number of bytes requested by the allocators/application. This is
2403 the sbrk+mmaped memory.
2405 2004-06-02 Gabriel Dos Reis <gdr@integrable-solutions.net>
2407 * include/std/std_complex.h (log): Tidy.
2409 2004-05-31 Benjamin Kosnik <bkoz@redhat.com>
2411 * config/linker-map.gnu (GLIBCXX_3.4.1): Add.
2412 * testsuite/testsuite_abi.cc: Same.
2413 * configure.ac (libtool_VERSION): Bump to 6:1:0.
2414 * configure: Regenerate.
2415 * aclocal.m4: Regenerate.
2417 2004-05-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
2419 * include/std/std_complex.h (complex<_Tp>): Properly indent
2421 (complex<>::__rep): New.
2422 (__complex_abs): New. Dispatch to built-ins.
2424 (__complex_arg): New. Dispatch to built-ins.
2426 (__complex_cos): New. Dispatch to built-ins.
2428 (__complex_cosh): New. Dispatch to built-ins.
2430 (__complex_exp): New. Dispatch to built-ins.
2432 (__complex_log): New. Dispatch to built-ins.
2434 (__complex_sin): New. Dispatch to built-ins.
2436 (__complex_sinh): New. Dispatch to built-ins.
2438 (__complex_sqrt): New. Dispatch to built-ins.
2440 (__complex_tan): New. Dispatch to built-ins.
2442 (__complex_tanh): New. Dispatch to built-ins.
2444 (__complex_pow): New. Dispatch to built-ins.
2447 2004-05-29 Richard B. Kreckel <Richard.Kreckel@Framatome-ANP.com>
2448 Benjamin Kosnik <bkoz@redhat.com>
2451 * include/ext/stdio_sync_filebuf.h (stdio_sync_filebuf::file): New.
2452 * include/ext/stdio_filebuf.h (stdio_filebuf::file): New.
2453 * config/io/basic_file_stdio.cc (__basic_file::file): New.
2454 * config/io/basic_file_stdio.h: Define.
2456 2004-05-27 Benjamin Kosnik <bkoz@redhat.com>
2459 * docs/html/documentation.html: Update doxygen links for 3.4.0.
2461 2004-05-27 Jan Beulich <jbeulich@novell.com>
2463 * scripts/create_testsuite_files: Tweak.
2465 2004-05-25 Benjamin Kosnik <bkoz@redhat.com>
2468 * scripts/create_testsuite_files: Revert xtype change, add non-GNU
2469 bits to do the same thing.
2471 2004-05-24 Paolo Carlini <pcarlini@suse.de>
2473 * include/bits/istream.tcc (ignore): Correctly deal with
2474 n == numeric_limits<streamsize>::max().
2475 * testsuite/27_io/basic_istream/ignore/char/2.cc: New.
2477 * include/bits/istream.tcc (basic_istream<>::getline): Prefer
2478 '_M_gcount + 1 < __n' to '--__n; _M_gcount < __n', just in case
2479 __n == numeric_limits<>::min().
2481 * include/bits/istream.tcc: Minor tweaks.
2483 * testsuite/21_strings/basic_string/inserters_extractors/char/10.cc:
2485 * testsuite/21_strings/basic_string/inserters_extractors/char/11.cc:
2487 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/10.cc:
2489 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc:
2491 * testsuite/27_io/basic_istream/getline/char/5.cc: Likewise.
2493 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
2496 Fixups for -Weffc++.
2497 * include/bits/basic_string.h (basic_string::operator=): Return
2498 pointer to this instead of result of assign. Although redundant,
2499 this doesn't impact resultant codegen.
2501 * include/bits/locale_facets.h (__numpunct_cache): Declare
2502 assignment opxserator and copy constructor private.
2503 (__timepunct_cache): Same.
2504 (__moneypunct_cache): Same.
2505 (collate): Use member initialization list for _M_c_locale_collate.
2506 * config/locale/gnu/messages_members.h: Same.
2507 * config/locale/gnu/time_members.h (__timepunct): Same.
2508 * src/codecvt.cc: Use member initialization list to initialize
2509 _M_c_locale_codecvt.
2510 * src/ctype.cc: Same, with _M_c_locale_ctype and _M_narrow_ok.
2511 * config/os/gnu-linux/ctype_noninline.h: Same.
2512 * src/locale.cc (_Impl): Same.
2513 * src/locale_init.cc: Same.
2514 * src/localename.cc: Same.
2516 * include/bits/basic_ios.h (basic_ios): Complete member
2517 initialization list.
2518 * include/bits/istream.tcc (basic_istream::sentry): Same.
2519 * include/bits/ostream.tcc (basic_ostream::sentry): Same.
2520 * include/bits/fstream.tcc (basic_filebuf): Add _M_lock and
2521 _M_pback to member initialization list.
2522 * include/std/std_streambuf.h: Same.
2523 * include/std/std_sstream.h: Same, for _M_mode.
2524 * src/ios.cc (ios_base): Same.
2526 * include/ext/rope: Make derived classes match exception
2528 specifications. Add copy constructors and assignment operators.
2530 * include/debug/safe_base.h (_Safe_sequence_base): Declare copy
2531 constructor and assignment operator protected.
2532 (_Safe_iterator_base): Same.
2533 * include/debug/formatter.h (_Error_formatter): Define copy
2534 constructor and assignment operator.
2536 * include/backward/strstream: Declare assignment operator and copy
2537 constructor private.
2539 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
2541 * testsuite/testsuite_hooks.h (func_callback): Declare copy
2542 constructor and assignment operator private.
2543 * testsuite/23_containers/deque/cons/clear_allocator.cc: Match
2544 exception specifications of base class.
2545 * testsuite/23_containers/list/cons/clear_allocator.cc: Same.
2546 * testsuite/23_containers/vector/cons/clear_allocator.cc: Same.
2547 * testsuite/23_containers/vector/bool/clear_allocator.cc: New.
2549 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
2551 * libsupc++/cxxabi.h: Remove duplicated and useless public and
2552 private keywords in class declarations. Format. Use
2553 stddef.h. Expose declarations to "C" compilation.
2554 * libsupc++/tinfo.cc (__upcast_result): Add copy constructor and
2555 assignment operator.
2556 (__dyncast_result): Same.
2557 * libsupc++/vec.cc (uncatch_exception): Same, use member
2558 initialization list.
2560 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
2562 * testsuite/abi_check.cc: Add unistd.h.
2564 2004-05-22 Paolo Carlini <pcarlini@suse.de>
2567 * include/bits/locale_facets.tcc (__int_to_char(unsigned long),
2568 __int_to_char(unsigned long long)): Showpos is not relevant
2570 * testsuite/22_locale/num_put/put/char/15565.cc: New.
2571 * testsuite/22_locale/num_put/put/wchar_t/15565.cc: New.
2573 * testsuite/22_locale/num_put/put/wchar_t/1.cc: Use L for the fill
2575 * testsuite/22_locale/num_put/put/wchar_t/2.cc: Likewise.
2576 * testsuite/22_locale/num_put/put/wchar_t/3.cc: Likewise.
2577 * testsuite/22_locale/num_put/put/wchar_t/4.cc: Likewise.
2578 * testsuite/22_locale/num_put/put/wchar_t/5.cc: Likewise.
2579 * testsuite/22_locale/num_put/put/wchar_t/6.cc: Likewise.
2580 * testsuite/22_locale/num_put/put/wchar_t/8.cc: Likewise.
2582 2004-05-21 Matthias Klose <doko@debian.org>
2584 * docs/doxygen/run_doxygen: Bump required version.
2586 2004-05-21 Benjamin Kosnik <bkoz@redhat.com>
2588 * docs/html/abi.html (libgcc_s): Additions suggested by Matthias Klose.
2589 * docs/doxygen/Intro.3: Subtractions suggested by Phil Edwards.
2591 2004-05-21 Paolo Carlini <pcarlini@suse.de>
2593 * include/bits/istream.tcc (ignore): Remove redundant line.
2594 (readsome): Tidy, closely following 27.6.1.3, p30.
2596 2004-05-20 Paolo Carlini <pcarlini@suse.de>
2598 * include/bits/istream.tcc (operator>>(basic_istream<>&,
2599 basic_string<>&)): Use a temporary buffer, thus avoiding
2600 reallocation for common case.
2601 * testsuite/21_strings/basic_string/inserters_extractors/char/11.cc:
2603 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc:
2606 * include/bits/istream.tcc: Const-ification of a few variables.
2608 * include/bits/ostream.tcc: Trivial formatting fixes and
2609 const-ification of some variables.
2611 2004-05-20 Benjamin Kosnik <bkoz@redhat.com>
2615 * docs/doxygen/Intro.3: Remove Allocators.3.
2616 Add new extension headers, extension namespace list.
2617 * docs/doxygen/run_doxygen (problematic): Remove Allocators.3
2618 Rename GLIBCXXSTD names to std::. Rename __gnu_debug to
2619 __gnu_debug::. Remove __policy_ renames.
2620 * docs/doxygen/guide.html: Add dot note.
2621 * docs/doxygen/stdheader.cc: Edit, add files.
2622 * docs/doxygen/user.cfg.in: Regenerate with Doxygen 1.3.7.
2624 2004-05-18 Jonathan Wakely <redi@gcc.gnu.org>
2626 * include/ext/stdio_filebuf.h: Update comments to reflect PR 11691.
2628 2004-05-18 Jan Beulich <jbeulich@novell.com>
2631 * scripts/create_testsuite_files: Also find source files through
2634 2004-05-18 Jan Beulich <jbeulich@novell.com>
2637 * testsuite/lib/libstdc++.exp: Make test files writable.
2639 2004-05-18 Paolo Carlini <pcarlini@suse.de>
2641 * include/ext/mt_allocator.h:(__mt_alloc::allocate): Minor
2644 2004-05-18 Dhruv Matani <dhruvbird@gmx.net>
2646 * include/ext/mt_allocator.h:(__mt_alloc::allocate): Re-write
2647 allocation loop which removes blocks from the global free list
2648 from O(N) to O(1) when the required blocks are <= the number
2651 2004-05-18 Jonathan Wakely <redi@gcc.gnu.org>
2653 * include/ext/enc_filebuf.h: Move concept-check macro to class scope.
2655 2004-05-17 Benjamin Kosnik <bkoz@redhat.com>
2657 * testsuite/testsuite_hooks.h (__gnu_test::conversion): New class.
2658 * testsuite/23_containers/deque/14340.cc: New.
2659 * testsuite/23_containers/list/14340.cc: New.
2660 * testsuite/23_containers/map/14340.cc: New.
2661 * testsuite/23_containers/multimap/14340.cc: New.
2662 * testsuite/23_containers/multiset/14340.cc: New.
2663 * testsuite/23_containers/set/14340.cc: New.
2664 * testsuite/23_containers/vector/14340.cc: New.
2666 2004-05-17 Douglas Gregor <gregod@cs.rpi.edu>
2669 * include/debug/safe_iterator.h (_Safe_iterator converting
2670 constructor): Only allow declaration to instantiate when the
2671 incoming _Safe_iterator has exactly the right iterator type.
2673 2004-05-17 Jonathan Wakely <redi@gcc.gnu.org>
2675 * include/bits/boost_concept_check.h: Fix old attribute syntax.
2676 * testsuite/23_containers/map/modifiers/swap.cc: Define operator<
2677 to pass concept-checks.
2678 * testsuite/23_containers/multimap/modifiers/swap.cc: Same.
2679 * testsuite/23_containers/set/modifiers/swap.cc: Same.
2680 * testsuite/23_containers/multiset/modifiers/swap.cc: Same.
2682 2004-05-16 Paolo Carlini <pcarlini@suse.de>
2684 * include/std/std_bitset.h: Minor formatting fixes.
2686 2004-05-16 Paolo Carlini <pcarlini@suse.de>
2688 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
2689 Consistently update __bin._M_free[0].
2690 (__mt_alloc<>::allocate): When __bin._M_first[0] != NULL use
2691 __bin._M_free[0] to simplify the while loop (i.e., the number
2692 of iterations becomes known at the outset).
2694 2004-05-15 Paolo Carlini <pcarlini@suse.de>
2696 * include/std/std_bitset.h: Trivial formatting fixes.
2698 2004-05-14 Paolo Carlini <pcarlini@suse.de>
2699 Ivan Godard <igodard@pacbell.net>
2702 * include/std/std_bitset.h (_Base_bitset<_Nw>::_M_do_find_next): Fix.
2703 * testsuite/23_containers/bitset/ext/15361.cc: New.
2705 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
2708 * crossconfig.m4: Add C99 math bits for linux crosses.
2709 * configure: Regenerate.
2711 2004-05-13 Simon Marshall <simon.marshall@misys.com>
2712 Benjamin Kosnik <bkoz@redhat.com>
2715 * include/bits/locale_facets.h: Fix for -fno-for-scope.
2716 * include/debug/safe_sequence.h: Same.
2717 * include/debug/safe_iterator.tcc: Same.
2718 * src/debug.cc: Same.
2719 * src/locale.cc: Same.
2720 * src/locale_init.cc: Same.
2721 * src/localename.cc: Same.
2722 * config/locale/gnu/ctype_members.cc: Same.
2723 * config/locale/gnu/numeric_members.cc: Same.
2724 * testsuite/testsuite_abi.cc: Same.
2725 * testsuite/testsuite_hooks.cc: Same.
2727 2004-05-13 Jonathan Wakely <redi@gcc.gnu.org>
2729 * docs/html/abi.html: Document effect of -fabi-version on value
2730 of __GXX_ABI_VERSION, and that it's defined in c-cppbuiltin.c.
2733 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
2736 * docs/html/faq/index.html: Update docs for libsupc++ usage.
2738 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
2741 * include/bits/stl_threads.h (_GLIBCXX_mutex): Move to namespace
2743 (_GLIBCXX_mutex_address): Same.
2744 (_GLIBCXX_once): Same.
2745 (_GLIBCXX_mutex_init): Same.
2746 (_GLIBCXX_mutex_address_init): Same.
2748 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
2750 * docs/html/abi.html: New.
2751 * docs/html/abi.txt: Remove.
2752 * docs/html/documentation.html: Add link.
2753 * testsuite/Makefile.am: Add files.
2754 * testsuite/Makefile.in: Regenerated.
2755 * testsuite/abi_check.cc: Move and modify code into...
2756 * testsuite/testsuite_abi.cc: Add.
2757 * testsuite/testsuite_abi.h: Add.
2759 * docs/html/17_intro/TODO: Update.
2760 * include/bits/stl_pair.h: Format.
2762 2004-05-06 Matthias Klose <doko@debian.org>
2764 * include/backward/iterator.h: Add GPL copyright info,
2765 with exception clause.
2766 * include/bits/boost_concept_check.h: Likewise.
2768 * libsupc++/tinfo.h: Likewise.
2769 * po/string_literals.cc: Likewise.
2771 2004-05-03 Andreas Tobler <a.tobler@schweiz.ch>
2773 * acinclude.m4: Replace -W with more speaking -Wextra.
2774 * configure: Rebuilt.
2776 2004-05-03 Paolo Carlini <pcarlini@suse.de>
2778 Optimize locale::_M_impl->_M_names for the most common cases:
2779 !_M_names[0] means unnamed; !_M_names[1] means all the categories
2780 the same name (_M_names[0] && _M_names[1] means that the full set
2781 of _M_names must be processed, the general case).
2782 * include/bits/locale_classes.h (locale::_Impl::_M_check_same_name):
2783 Tweak, saving work when !_M_names[1].
2784 (locale::locale(const locale&, _Facet*): Simplify: now just setting
2785 _M_names[0] = 0 means unnamed.
2786 * src/locale.cc (locale::operator==): Deal first with the common,
2787 easy cases, otherwise fall back to locale::name().
2788 (locale::name()): Tweak, if !_M_names[0] just return "*".
2789 (locale::_Impl::_Impl(const _Impl&, size_t): Tweak, early stop
2790 copying __imp._M_names if !__imp._M_names[0] or !__imp._M_names[1].
2791 * src/locale_init.cc (locale::_Impl::_Impl(size_t)): Tweak.
2792 * src/localename.cc (locale::_Impl::_Impl(const char*, size_t):
2793 Simplify when !std::strchr, just updating _M_names[0]; clean up.
2794 (locale::_Impl::_M_replace_categories): When !_M_names[1] prepare
2795 for the general case (full set of names), then do the usual work;
2798 * src/locale.cc (locale::name()): Reserve space in __ret.
2799 * src/locale_init.cc (locale::global(const locale&)): Save
2800 the name in a temporary.
2801 * src/localename.cc (locale::locale(const char*)): Reserve space
2804 2004-04-29 Paolo Carlini <pcarlini@suse.de>
2806 * src/locale.cc (locale::operator==): Always avoid constructing
2807 locale::name(), directly compare pairs of _M_names.
2809 2004-04-26 Paolo Carlini <pcarlini@suse.de>
2811 * include/bits/istream.tcc: Fix comment.
2813 2004-04-26 Paolo Carlini <pcarlini@suse.de>
2815 * include/bits/stl_vector.h: Trivial formatting fixes.
2816 * include/bits/vector.tcc: Likewise.
2818 2004-04-25 Paolo Carlini <pcarlini@suse.de>
2820 PR libstdc++/15002 (continued again)
2821 * include/bits/istream.tcc (getline(basic_istream<>&,
2822 basic_string<>&, _CharT)): Use a temporary buffer, thus
2823 avoiding reallocation for common case.
2825 * include/bits/basic_string.tcc (_S_construct(_InIterator,
2826 _InIterator, const _Alloc&, input_iterator_tag)): Tweak size
2827 of temporary buffer to a power of two.
2829 * testsuite/27_io/basic_istream/getline/char/4.cc: Add comment.
2831 2004-04-25 Paolo Carlini <pcarlini@suse.de>
2833 * testsuite/21_strings/basic_string/inserters_extractors/char/10.cc:
2835 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/10.cc:
2837 * testsuite/27_io/basic_istream/getline/char/5.cc: Likewise.
2839 2004-04-24 Paolo Carlini <pcarlini@suse.de>
2840 Petur Runolfsson <peturr02@ru.is>
2842 PR libstdc++/15002 (continued)
2843 * include/bits/istream.tcc (basic_istream<>::getline(char_type*,
2844 streamsize, char_type)): Use traits::find/copy in a loop to speed
2845 up greatly the function in the common case (I/O buffer size >> 1).
2847 2004-04-24 Paolo Carlini <pcarlini@suse.de>
2849 * testsuite/27_io/basic_istream/getline/char/4.cc: New.
2851 * include/bits/istream.tcc (getline(basic_istream<>&,
2852 basic_string<>&, _CharT)): Change to use sgetc()/snextc() instead
2853 of sbumpc(), consistently with the other functions, thus also
2854 dealing correctly with the case of exceeded string::max_size().
2856 2004-04-24 Matthias Klose <doko@debian.org>
2858 Jonathan Wakely <cow@compsoc.man.ac.uk>
2859 * docs/html/configopts.html: Fix reference to allocator config option.
2861 2004-04-23 Andrew Pinski <pinskia@physics.uc.edu>
2863 * linkage.m4 (GLIBCXX_CHECK_MATH_SUPPORT): Check for libmx also.
2864 * configure: Regenerate.
2866 2004-04-23 Daniel Jacobowitz <drow@mvista.com>
2868 PR libstdc++/15047, libstdc++/11610
2869 * testsuite/lib/libstdc++.exp (v3-copy-files): Use remote_download.
2870 (libstdc++_init): Don't pass outdir to v3-copy-files.
2872 2004-04-21 Paolo Carlini <pcarlini@suse.de>
2874 * include/bits/deque.tcc: Trivial formatting fixes.
2875 * include/bits/stl_deque.h: Likewise.
2876 * include/bits/stl_list.h: Likewise.
2877 * include/bits/stl_tree.h: Likewise.
2879 2004-04-21 Paolo Carlini <pcarlini@suse.de>
2880 Andrew Pinski <pinskia@physics.uc.edu>
2882 * include/bits/basic_string.tcc (_M_mutate): Don't compute
2883 __src unnecessarily.
2885 2004-04-19 Benjamin Kosnik <bkoz@redhat.com>
2887 * testsuite/27_io/basic_istream/extractors_character/char/9555-ic.cc:
2888 Clarify assertion, set test variable to false before assert.
2889 * testsuite/27_io/basic_istringstream/str/char/1.cc: Same.
2890 * testsuite/27_io/basic_stringstream/str/char/1.cc: Same.
2891 * testsuite/27_io/ios_base/storage/2.cc: Same.
2893 * testsuite/27_io/basic_filebuf/imbue/char/13171-4.cc: Fix
2895 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-3.cc: Same.
2896 * testsuite/27_io/fpos/14320-3.cc: Same.
2898 * testsuite/27_io/basic_filebuf/2.cc: Instantiate in namespace std.
2899 * testsuite/27_io/fpos/1.cc: Same.
2900 * testsuite/27_io/basic_stringstream/2.cc: Same.
2901 * testsuite/27_io/basic_stringbuf/4.cc: Same.
2902 * testsuite/27_io/basic_stringbuf/1.cc: Same.
2903 * testsuite/27_io/basic_stringbuf/2.cc: Same.
2904 * testsuite/27_io/basic_streambuf/2.cc: Same.
2905 * testsuite/27_io/basic_ostringstream/2.cc: Same.
2906 * testsuite/27_io/basic_ostream/2.cc: Same.
2907 * testsuite/27_io/basic_ofstream/2.cc: Same.
2908 * testsuite/27_io/basic_istringstream/2.cc: Same.
2909 * testsuite/27_io/basic_istream/2.cc: Same.
2910 * testsuite/27_io/basic_iostream/2.cc: Same.
2911 * testsuite/27_io/basic_ios/2.cc: Same.
2912 * testsuite/27_io/basic_ifstream/2.cc: Same.
2913 * testsuite/27_io/basic_fstream/2.cc: Same.
2914 * testsuite/ext/stdio_filebuf/char/1.cc: Same, in namespace __gnu_cxx.
2916 * testsuite/21_strings/basic_string/capacity/1.cc: Don't compare
2917 unsigned against zero.
2918 * testsuite/21_strings/basic_string/capacity/wchar_t/1.cc: Same.
2919 * testsuite/21_strings/basic_string/capacity/char/1.cc: Same.
2921 * testsuite/18_support/new_delete_placement.cc: Initialize
2922 variables before first use.
2923 * testsuite/21_strings/char_traits/requirements/wchar_t/1.cc: Same.
2924 * testsuite/21_strings/char_traits/requirements/char/1.cc: Same.
2925 * testsuite/21_strings/char_traits/requirements/short/1.cc: Same.
2926 * testsuite/27_io/basic_istream/seekg/char/exceptions_badbit_throw.cc:
2928 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/exceptions_badbit_throw.cc: Same.
2929 * testsuite/27_io/basic_ostream/seekp/char/exceptions_badbit_throw.cc:
2931 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/exceptions_failbit_throw.cc: Same.
2932 * testsuite/27_io/types/2.cc: Same.
2934 * testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc: Fix temporary
2936 * testsuite/27_io/fpos/14775.cc: Same.
2938 2004-04-19 Paolo Carlini <pcarlini@suse.de>
2940 PR libstdc++/15002 (partial)
2941 * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
2942 Special case __n2 == 1, not calling traits_type::assign/copy.
2944 2004-04-17 Benjamin Kosnik <bkoz@redhat.com>
2946 * include/bits/stl_bvector.h: Use _M_impl._M_start.
2948 2004-04-16 Benjamin Kosnik <bkoz@redhat.com>
2950 * include/bits/c++config (_GLIBCXX_STD): New.
2951 * src/list.cc: Use it.
2952 * include/std/std_bitset.h: Same.
2953 * include/bits/vector.tcc: Same.
2954 * include/bits/stl_set.h: Same.
2955 * include/bits/stl_multiset.h: Same.
2956 * include/bits/stl_multimap.h: Same.
2957 * include/bits/stl_map.h: Same.
2958 * include/bits/stl_list.h: Same.
2959 * include/bits/stl_vector.h: Same.
2960 * include/bits/stl_bvector.h: Same.
2961 * include/bits/stl_deque.h: Same.
2962 * include/bits/deque.tcc: Same.
2963 * include/bits/list.tcc: Same.
2964 * include/debug/vector: Same.
2965 * include/debug/set.h: Same.
2966 * include/debug/multiset.h: Same.
2967 * include/debug/multimap.h: Same.
2968 * include/debug/map.h: Same.
2969 * include/debug/list: Same.
2970 * include/debug/deque: Same.
2971 * include/debug/bitset: Same.
2972 * include/debug/formatter.h (__gnu_debug): Remove using directive.
2973 Add using declaration for std::type_info.
2974 * include/debug/safe_iterator.h: Add using declaration for
2975 std::iterator_traits and std::pair.
2976 * src/debug_list.cc: New.
2977 * src/Makefile.am: Add debug_list.cc.
2978 * src/Makefile.in: Regenerate.
2979 * config/linker-map.gnu: Add _List_node_base exports for std and
2982 * include/bits/stl_bvector.h (_Bvector_base): Use _Bvector_impl
2983 idiom that other containers use.
2984 * testsuite/23_containers/vector/bool/clear_allocator.cc: New.
2986 2004-04-16 Paolo Carlini <pcarlini@suse.de>
2989 * include/bits/fstream.tcc (basic_filebuf::imbue): Zero _M_codecvt
2991 * testsuite/27_io/basic_filebuf/imbue/char/14975-1.cc: New.
2992 * testsuite/27_io/basic_filebuf/imbue/wchar_t/14975-2.cc: New.
2994 2004-04-16 Paolo Carlini <pcarlini@suse.de>
2996 * acconfig.h: Remove _GLIBCXX_USE_LONG_DOUBLE entry, not
2998 * config.h.in: Regenerate.
3000 2004-04-16 Paolo Carlini <pcarlini@suse.de>
3002 * config/locale/generic/monetary_members.cc
3003 (moneypunct<wchar_t>::_M_initialize_moneypunct): Avoid calling
3004 btowc unnecessarily, just cast to wchar_t (the concerned chars
3005 all belong to the basic character set).
3006 * config/locale/generic/numeric_members.cc
3007 (numpunct<wchar_t>::_M_initialize_numpunct): Likewise.
3008 * config/locale/gnu/monetary_members.cc
3009 (moneypunct<wchar_t>::_M_initialize_moneypunct): Likewise.
3010 * config/locale/gnu/numeric_members.cc
3011 (numpunct<wchar_t>::_M_initialize_numpunct): Likewise.
3013 2004-04-15 Paolo Carlini <pcarlini@suse.de>
3015 * src/locale.cc (locale::operator==): When _M_impl == __rhs._M_impl
3016 avoid constructing unnecessarily this->name().
3018 2004-04-14 Zack Weinberg <zack@codesourcery.com>
3020 * testsuite/Makefile.am: Add definition of AM_CXXFLAGS.
3021 Change definition of CXX to use $(shell) instead of backticks.
3022 * testsuite/Makefile.in: Regenerate.
3024 2004-04-12 Dhruv Matani <dhruvbird@gmx.net>
3026 * testsuite/performance/20_util/allocator/list_sort_search.cc:
3027 Minor formatting fixes.
3028 * testsuite/performance/20_util/allocator/map_mt_find.cc:
3031 2004-04-12 Paolo Carlini <pcarlini@suse.de>
3033 * config/locale/gnu/numeric_members.cc
3034 (numpunct<wchar_t>::_M_initialize_numpunct): No need to wrap
3035 in __uselocale, since btowc is called for chars belonging to
3036 the basic character set.
3038 2004-04-09 Paolo Carlini <pcarlini@suse.de>
3040 * testsuite/22_locale/messages/members/char/1.cc: Remove junk.
3041 * testsuite/22_locale/messages/members/char/2.cc: Ditto.
3042 * testsuite/22_locale/messages/members/char/3.cc: Ditto.
3043 * testsuite/22_locale/num_get/get/char/1.cc: Ditto.
3044 * testsuite/22_locale/num_get/get/char/2.cc: Ditto.
3045 * testsuite/22_locale/num_get/get/char/3.cc: Ditto.
3046 * testsuite/22_locale/num_get/get/wchar_t/1.cc: Ditto.
3047 * testsuite/22_locale/num_get/get/wchar_t/2.cc: Ditto.
3048 * testsuite/22_locale/num_get/get/wchar_t/3.cc: Ditto.
3049 * testsuite/22_locale/num_put/put/char/1.cc: Ditto.
3050 * testsuite/22_locale/num_put/put/char/2.cc: Ditto.
3051 * testsuite/22_locale/num_put/put/char/3.cc: Ditto.
3052 * testsuite/22_locale/num_put/put/wchar_t/1.cc: Ditto.
3053 * testsuite/22_locale/num_put/put/wchar_t/2.cc: Ditto.
3054 * testsuite/22_locale/num_put/put/wchar_t/3.cc: Ditto.
3055 * testsuite/22_locale/numpunct/members/char/1.cc: Ditto.
3056 * testsuite/22_locale/numpunct/members/wchar_t/1.cc: Ditto.
3058 2004-04-07 Paolo Carlini <pcarlini@suse.de>
3060 * config/locale/generic/time_members.cc
3061 (__timepunct<char>::_M_initialize_timepunct,
3062 __timepunct<wchar_t>::_M_initialize_timepunct): the correct
3063 _M_amonth07 in the "C" locale is "Jul" and L"Jul", respectively.
3064 * config/locale/gnu/time_members.cc
3065 (__timepunct<char>::_M_initialize_timepunct,
3066 __timepunct<wchar_t>::_M_initialize_timepunct): Ditto.
3067 * testsuite/22_locale/time_get/get_monthname/char/4.cc: New.
3068 * testsuite/22_locale/time_get/get_monthname/wchar_t/4.cc: New.
3070 * testsuite/22_locale/time_get/date_order/char/1.cc: Remove junk.
3071 * testsuite/22_locale/time_get/date_order/wchar_t/1.cc: Ditto.
3072 * testsuite/22_locale/time_get/get_date/char/1.cc: Ditto.
3073 * testsuite/22_locale/time_get/get_date/char/2.cc: Ditto.
3074 * testsuite/22_locale/time_get/get_date/wchar_t/1.cc: Ditto.
3075 * testsuite/22_locale/time_get/get_date/wchar_t/2.cc: Ditto.
3076 * testsuite/22_locale/time_get/get_monthname/char/1.cc: Ditto.
3077 * testsuite/22_locale/time_get/get_monthname/char/2.cc: Ditto.
3078 * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Ditto.
3079 * testsuite/22_locale/time_get/get_monthname/wchar_t/2.cc: Ditto.
3080 * testsuite/22_locale/time_get/get_time/char/1.cc: Ditto.
3081 * testsuite/22_locale/time_get/get_time/char/2.cc: Ditto.
3082 * testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Ditto.
3083 * testsuite/22_locale/time_get/get_time/wchar_t/2.cc: Ditto.
3084 * testsuite/22_locale/time_get/get_weekday/char/1.cc: Ditto.
3085 * testsuite/22_locale/time_get/get_weekday/char/2.cc: Ditto.
3086 * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Ditto.
3087 * testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc: Ditto.
3088 * testsuite/22_locale/time_get/get_year/char/1.cc: Ditto.
3089 * testsuite/22_locale/time_get/get_year/wchar_t/1.cc: Ditto.
3090 * testsuite/22_locale/time_put/put/char/1.cc: Ditto.
3091 * testsuite/22_locale/time_put/put/char/2.cc: Ditto.
3092 * testsuite/22_locale/time_put/put/char/3.cc: Ditto.
3093 * testsuite/22_locale/time_put/put/char/4.cc: Ditto.
3094 * testsuite/22_locale/time_put/put/char/5.cc: Ditto.
3095 * testsuite/22_locale/time_put/put/char/6.cc: Ditto.
3096 * testsuite/22_locale/time_put/put/char/7.cc: Ditto.
3097 * testsuite/22_locale/time_put/put/char/8.cc: Ditto.
3098 * testsuite/22_locale/time_put/put/wchar_t/1.cc: Ditto.
3099 * testsuite/22_locale/time_put/put/wchar_t/2.cc: Ditto.
3100 * testsuite/22_locale/time_put/put/wchar_t/3.cc: Ditto.
3101 * testsuite/22_locale/time_put/put/wchar_t/4.cc: Ditto.
3102 * testsuite/22_locale/time_put/put/wchar_t/5.cc: Ditto.
3103 * testsuite/22_locale/time_put/put/wchar_t/6.cc: Ditto.
3104 * testsuite/22_locale/time_put/put/wchar_t/7.cc: Ditto.
3105 * testsuite/22_locale/time_put/put/wchar_t/8.cc: Ditto.
3107 * testsuite/22_locale/time_put/put/char/9780-1.cc: Fix typos.
3109 2004-04-07 Paolo Carlini <pcarlini@suse.de>
3111 * config/locale/gnu/monetary_members.cc
3112 (moneypunct<wchar_t>::_M_initialize_moneypunct): Prefer
3113 _NL_MONETARY_DECIMAL_POINT_WC, _NL_MONETARY_THOUSANDS_SEP_WC,
3114 and __MON_GROUPING to _NL_NUMERIC_DECIMAL_POINT_WC,
3115 _NL_NUMERIC_THOUSANDS_SEP_WC, and GROUPING.
3116 * config/locale/gnu/numeric_members.cc
3117 (numpunct<char>::_M_initialize_numpunct): Prefer DECIMAL_POINT
3118 and THOUSANDS_SEP to the deprecated RADIXCHAR and THOUSEP.
3120 2004-04-06 Benjamin Kosnik <bkoz@redhat.com>
3122 Fixups for EDG front end.
3123 * include/ext/rope: Instead of non-existent function
3124 _Data_allocate, use allocator's allocate. Use this.
3125 (namespace _Rope_constants): Move _S_max_rope_depth, and _Tag
3126 enumerations from _Rope_RopeRep here.
3127 * include/ext/ropeimpl.h: Same.
3128 * src/ext-inst.cc (_S_min_len): Fix up definition.
3130 * config/locale/gnu/ctype_members.cc: Qualify base class members
3132 * config/locale/generic/ctype_members.cc: Same.
3133 * config/locale/gnu/messages_members.h: Same.
3134 * config/locale/generic/messages_members.h: Same.
3135 * src/ctype.cc: Same.
3136 * include/bits/codecvt.h: Same.
3138 * include/bits/boost_concept_check.h: Declare.
3139 (__error_type_must_be_an_unsigned_integer_type): Remove this.
3140 (__error_type_must_be_an_integer_type): Remove this.
3141 (__error_type_must_be_a_signed_integer_type): Remove this.
3143 * config/io/basic_file_stdio.cc (__basic_file::sys_open): Remove cast.
3145 * libsupc++/eh_alloc.cc (__cxa_free_exception): Add exception
3146 specification to definition.
3147 (__cxa_allocate_exception): Same.
3148 * libsupc++/eh_catch.cc (__cxa_begin_catch): Same.
3149 * libsupc++/eh_globals.cc (__cxa_get_globals_fast): Same.
3150 (__cxa_get_globals): Same.
3152 * libsupc++/del_op.cc: Add comment about freestanding.
3154 2004-04-05 Paolo Carlini <pcarlini@suse.de>
3156 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
3157 The critical section is actually very small, only two assignments.
3159 2004-04-04 Paolo Carlini <pcarlini@suse.de>
3160 Petur Runolfsson <peturr02@ru.is>
3162 * testsuite/performance/27_io/filebuf_sputn_unbuf.cc: New,
3163 adapted from libstdc++/11378.
3165 2004-04-03 Paolo Carlini <pcarlini@suse.de>
3167 * include/ext/mt_allocator.h (__mt_alloc<>::allocate): Factor out
3168 some duplicated code.
3169 (__mt_alloc<>::_Bin_record): Spare the space of _M_free and _M_used
3170 in the single threaded case.
3171 * testsuite/performance/20_util/allocator/list_sort_search.cc:
3172 Reorder and renumber the tests consistently with the other testfiles.
3173 * testsuite/performance/20_util/allocator/map_mt_find.cc: Ditto.
3174 * testsuite/performance/20_util/allocator/map_thread.cc: Ditto.
3175 * testsuite/performance/20_util/allocator/producer_consumer.cc: Ditto.
3177 2004-04-02 Paolo Carlini <pcarlini@suse.de>
3179 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
3180 Rearrange arithmetic to avoid computing two divisions at
3183 2004-04-01 Paolo Carlini <pcarlini@suse.de>
3185 * include/ext/mt_allocator.h (__mt_alloc<>::_S_initialize):
3186 Streamline the second half, wrapping it in a single
3187 '#ifdef __GTHREADS if (__gthread_active_p())' and avoiding
3188 conditionals inside loops.
3190 2004-04-01 Paolo Carlini <pcarlini@suse.de>
3193 * acconfig.h: Rename _GLIBCXX_MEM_LIMITS to _GLIBCXX_RES_LIMITS.
3194 * acinclude.m4 (GLIBCXX_CHECK_SETRLIMIT): Call
3195 GLIBCXX_CHECK_SETRLIMIT_ancilliary for FSIZE too, adjust define
3196 to _GLIBCXX_RES_LIMITS.
3197 (GLIBCXX_CHECK_SETRLIMIT_ancilliary): Rename HAVE_MEMLIMIT_* to
3199 * testsuite/testsuite_hooks.h: Declare set_file_limit.
3200 * testsuite/testsuite_hooks.cc: Define it, using getrlimit
3201 and setrlimit(RLIMIT_FSIZE).
3202 * testsuite/27_io/fpos/14775.cc: New.
3203 * config.h.in: Regenerate.
3204 * configure: Likewise.
3206 2004-03-31 Paolo Carlini <pcarlini@suse.de>
3208 * config/locale/generic/c_locale.cc (__convert_to_v(long double&)):
3209 In v3 uses of sscanf, the special floating-point numbers INF,
3210 INFINITY, etc., cannot occur in input, therefore, if the latter
3211 is too large, ERANGE is always stored in errno, no need of finitel.
3213 2004-03-30 Benjamin Kosnik <bkoz@redhat.com>
3216 * include/bits/stl_tree.h: Adjust initialization list order.
3218 2004-03-29 Loren J. Rittle <ljrittle@acm.org>
3220 * testsuite/thread/pthread7-rope.cc: Update comment to reflect test.
3222 2004-03-29 Paolo Carlini <pcarlini@suse.de>
3224 * testsuite/thread/pthread7-rope.cc: Fix, unpredictably, depending
3225 on allocator behavior, the memory pointed by data2 may well be not
3228 2004-03-28 Chavdar Botev <cbotev@yahoo.com>
3231 * include/bits/basic_string.tcc
3232 (basic_string::basic_string(const basic_string&)): Pass to
3233 _Rep::_M_grab the actual allocator of the string being constructed
3234 not the default constructed one.
3236 2004-03-27 Benjamin Kosnik <bkoz@redhat.com>
3239 * config/locale/ieee_1003.1-2001/codecvt_specializations.h
3240 (__enc_traits::_M_destroy): New.
3241 (__enc_traits::~__enc_traits): Use it.
3242 (__enc_traits::operator=): Use _M_destroy, _M_init.
3243 (__enc_traits::__enc_traits): Same.
3245 2004-03-27 Petur Runolfsson <peturr02@ru.is>
3247 * testsuite/ext/enc_filebuf/char/13598.cc: New.
3249 2004-03-27 Paolo Carlini <pcarlini@suse.de>
3251 * include/ext/mt_allocator.h: Uglify consistently names of
3252 variables, members and classes; tidy.
3254 2004-03-27 Dhruv Matani <dhruvbird@gmx.net>
3256 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
3257 Deallocation loop rewrote.
3259 2004-03-26 Paolo Carlini <pcarlini@suse.de>
3261 * include/ext/mt_allocator.h (__mt_alloc<>::allocate,
3262 __mt_alloc<>::deallocate): Protect two instances of
3263 block->thread_id with __GTHREADS.
3265 2004-03-25 Gawain Bolton <gp.bolton@computer.org>
3267 * include/bits/stl_tree.h (_Rb_tree_impl): Add _Node_allocator
3268 default argument in constructors.
3269 (_Rb_tree::_M_empty_initialize): Remove.
3271 2004-03-25 Benjamin Kosnik <bkoz@redhat.com>
3273 * testsuite/23_containers/map/operators/1_neg.cc: Adjust line numbers.
3274 * testsuite/23_containers/set/operators/1_neg.cc: Same.
3276 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
3278 * include/bits/cpp_type_traits.h: Changed __is_pod
3279 completely. Now, it does not use any of the previous type_traits
3280 to detect the pod types, and it also detects function pointers as
3283 * include/bits/stl_tree.h: Introduced a new class _Rb_tree_impl,
3284 which encapsulates the internal implementation of an rb_tree. Made
3285 the allocator a base class of this class instead of the rb_tree,
3286 which was not conforming. This _Rb_tree_impl class is also
3287 specialized on whether the _Compare parameter is a POD type or
3288 not. If so, then it maintains the comparison function as a data
3289 member, otherwise it makes the _Compare parameter a base class of
3290 itself. Also, _M_key_compare is now a function instead of a data
3291 member, so that the above trick can work properly. Delegated the
3292 initialization of the other data members to this newly created
3293 class. Also, now other member functions of rb_tree must refer to
3294 _M_key_compare as _M_impl._M_key_compare(). The other data members
3295 (*) can be referenced to as _M_impl.(*), where
3296 (*) includes _M_header, and _M_node_count.
3298 2004-03-25 Paolo Carlini <pcarlini@suse.de>
3300 * include/ext/mt_allocator.h (__mt_alloc<>::tune):
3301 Add _M_min_bin, the size in bytes of the smallest bin.
3302 (__mt_alloc<>::tune()): Tweak accordingly.
3303 (__mt_alloc<>::tune(size_t, ...)): Likewise.
3304 (__mt_alloc<>::block_record): Change to a union: members next
3305 and thread_id are never used at the same time.
3306 (__mt_alloc<>::allocate): Update consistently.
3307 (__mt_alloc<>::deallocate): Likewise.
3308 (__mt_alloc<>::_S_initialize): Update setups of _S_binmap and
3309 _S_bin_size for the configurable _M_min_size.
3311 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
3313 * include/bits/stl_list.h: Created a _List_impl class and made it
3314 derive from the allocator, instead of the list deriving from the
3315 allocator class, which was not conformant. Changed all references
3316 from this->_M_node to this->_M_impl._M_node * bits/list.tcc: Same
3317 as above (changed all references to the concerned variables).
3319 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
3321 * include/bits/stl_deque.h: Created a _Deque_impl class and made
3322 it derive from the allocator, instead of the deque deriving from
3323 the allocator class, which was not conformant. Changed all
3324 references to the _M_start, _M_finish, _M_map, and _M_map_size to
3326 (_Deque_base<_Tp,_Alloc>::~_Deque_base()): Added this->
3327 qualification in 2 places where it was missing.
3328 (_Deque_base<_Tp,_Alloc>::_M_initialize_map(size_t)): Same as
3330 * include/bits/deque.tcc: Same as above (changed all references to
3331 the concerned variables).
3333 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
3335 * include/bits/stl_vector.h: Created a _Vector_impl class and made
3336 it derive from the allocator, instead of the _Vector_base class,
3337 deriving from the allocator which was not conformant. Changed all
3338 references to the _M_start, _M_finish, and _M_end_of_storage to
3340 * include/bits/vector.tcc: Same as above (changed all references
3341 to the concerned variables).
3343 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
3345 * testsuite/23_containers/deque/cons/clear_allocator.cc: New.
3346 * testsuite/23_containers/list/cons/clear_allocator.cc: New.
3347 * testsuite/23_containers/vector/cons/clear_allocator.cc: New.
3349 2004-03-24 Dhruv Matani <dhruvbird@gmx.net>
3351 * include/ext/malloc_allocator.h: Fixed the construct function to
3352 call global placement new instead of assignment. Added a check
3353 after the return from malloc to check whether returned pointer is
3354 NULL, and if so, throw std::bad_alloc().
3355 * include/ext/debug_allocator.h: Added a check in the deallocate
3356 function to check whether the user has passed a NULL pointer or
3359 2004-03-24 Benjamin Kosnik <bkoz@redhat.com>
3361 * docs/html/20_util/allocator.html: Add bitmap_allocator links.
3363 2004-03-24 Andreas Schwab <schwab@suse.de>
3365 * testsuite/lib/prune.exp (prune_g++_output): Ignore errata
3366 warning from IA64 assembler.
3368 2004-03-24 Dhruv Matani <dhruvbird@gmx.net>
3370 * include/ext/bitmap_allocator.h: (_Bit_scan_forward) -> Made this
3371 function call __builtin_ctz instead of the while loop.
3372 (allocate) -> If condition has __builtin_expect.
3373 (deallocate) -> Ditto.
3374 Renamed a few left-over variables and typedefs according to the
3375 C++STYLE mentioned in the documentation.
3376 Protected calls to __gthread* by __gthread_active_p(), whose value
3377 is cached in the local variable __threads_active.
3379 2004-03-24 Felix Yen <fwy@alumni.brown.edu>
3381 * testsuite/performance/20_util/allocator/producer_consumer.cc:
3382 Use linear algorithm for producer.
3384 2004-03-24 Paolo Carlini <pcarlini@suse.de>
3386 * include/ext/mt_allocator.h (__mt_alloc<>::allocate,
3387 __mt_alloc<>::deallocate): Avoid redundant conditionals.
3389 2004-03-23 Benjamin Kosnik <bkoz@redhat.com>
3391 * include/bits/locale_facets.h: Tweaks for 80 column.
3392 (__numpunct_cache::_M_cache): Move to locale_facets.tcc.
3393 (__moneypunct_cache::_M_cache): Same.
3394 (num_get): Don't inherit from __num_base.
3396 (money_get): Don't inherit from money_base.
3398 (__timepunct::_M_am_pm_format): New.
3399 (time_get::_M_extract_num): Return iterator, use ios_base as argument.
3400 (time_get::_M_extract_name): Same.
3401 (time_get::_M_extract_via_format): Same.
3402 * include/bits/locale_facets.tcc: Tweaks for 80 column.
3403 Use _M_getloc instead of getloc.
3404 * testsuite/22_locale/money_put/put/char/9780-3.cc: New.
3405 * testsuite/22_locale/num_put/put/char/9780-2.cc: New.
3406 * testsuite/22_locale/time_put/put/char/9780-1.cc: New.
3408 2004-03-22 Paolo Carlini <pcarlini@suse.de>
3410 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Add pool_allocator.
3411 * configure: Regenerate.
3412 * config/allocator/pool_allocator_base.h: New.
3413 * include/ext/pool_allocator.h: Convert to a standard-conforming
3415 * src/allocator.cc: Tweak instantiations.
3416 * testsuite/performance/20_util/allocator/insert.cc: Add __pool_alloc.
3417 * testsuite/performance/20_util/allocator/insert_insert.cc: Ditto.
3418 * testsuite/performance/20_util/allocator/list_sort_search.cc: Ditto.
3419 * testsuite/performance/20_util/allocator/map_mt_find.cc: Ditto.
3420 * testsuite/performance/20_util/allocator/map_thread.cc: Ditto.
3421 * testsuite/performance/20_util/allocator/producer_consumer.cc: Ditto.
3423 2004-03-22 Hans-Peter Nilsson <hp@axis.com>
3425 * config/cpu/cris/atomicity.h (__atomic_add): Remove "static
3426 inline" and attribute-unused. Qualify parameter __mem with
3428 (__exchange_and_add): Ditto. Add back memory clobber to asm.
3430 2004-03-20 Paolo Carlini <pcarlini@suse.de>
3432 * testsuite/27_io/basic_istream/extractors_arithmetic/char/2.cc:
3434 * testsuite/27_io/basic_istream/extractors_arithmetic/char/3.cc:
3436 * testsuite/27_io/basic_istream/extractors_arithmetic/char/6.cc:
3438 * testsuite/27_io/basic_istream/extractors_arithmetic/char/7.cc:
3440 * testsuite/27_io/basic_istream/extractors_arithmetic/char/8.cc:
3442 * testsuite/27_io/basic_istream/extractors_arithmetic/char/9.cc:
3444 * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
3446 * testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc:
3448 * testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc:
3450 * testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc:
3453 2004-03-20 Paolo Carlini <pcarlini@suse.de>
3455 * include/std/std_valarray.h: Document DR389 [Ready].
3456 * docs/html/ext/howto.html: Add an entry for DR389.
3458 2004-03-19 Michael Eager <eager@mvista.com>
3460 * config/cpu/mips/atomicity.h: Prevent reg loads between LL and
3463 2004-03-19 Paolo Carlini <pcarlini@suse.de>
3465 * testsuite/22_locale/num_get/get/char/11.cc: Remove redundant
3467 * testsuite/22_locale/num_get/get/char/12.cc: Likewise.
3468 * testsuite/22_locale/num_get/get/char/13.cc: Likewise.
3469 * testsuite/22_locale/num_get/get/char/14.cc: Likewise.
3470 * testsuite/22_locale/num_get/get/char/15.cc: Likewise.
3471 * testsuite/22_locale/num_get/get/wchar_t/11.cc: Likewise.
3472 * testsuite/22_locale/num_get/get/wchar_t/12.cc: Likewise.
3473 * testsuite/22_locale/num_get/get/wchar_t/13.cc: Likewise.
3474 * testsuite/22_locale/num_get/get/wchar_t/14.cc: Likewise.
3475 * testsuite/22_locale/num_get/get/wchar_t/15.cc: Likewise.
3477 2004-03-19 Paolo Carlini <pcarlini@suse.de>
3478 Petur Runolfsson <peturr02@ru.is>
3481 * include/ext/stdio_sync_filebuf.h (showmanyc): Remove, there's
3482 no way to find out the conversion used by the underlying FILE*.
3483 * testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc: New.
3484 * testsuite/27_io/objects/char/9.cc: Tweak.
3486 2004-03-19 Paolo Carlini <pcarlini@suse.de>
3489 * include/ext/ropeimpl.h (rope<>::_S_apply_to_pieces): Fix
3490 memory allocation/deallocation calls.
3491 * testsuite/ext/14648.cc: New.
3493 2004-03-19 Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de>
3496 * include/backward/bvector.h (bit_vector): Allocator is in std
3499 2004-03-19 Phil Edwards <phil@codesourcery.com>
3501 * acinclude.m4 (GLIBCXX_CHECK_WCHAR_T_SUPPORT): Set LIBICONV,
3502 not libiconv. SUBST this variable as well.
3503 * testsuite/Makefile.am (site.exp): New target, based on that
3504 created by automake. Also set libiconv.
3506 * configure, Makefile.in, include/Makefile.in, libmath/Makefile.in,
3507 libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in,
3508 testsuite/Makefile.in: Regenerate.
3510 2004-03-16 Benjamin Kosnik <bkoz@redhat.com>
3512 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Default setting is
3513 new_allocator for all hosts.
3514 * configure: Regenerate.
3516 2004-03-16 Paolo Carlini <pcarlini@suse.de>
3518 * testsuite/22_locale/num_put/put/char/4.cc: Fix for 64-bit pointers.
3519 * testsuite/22_locale/num_put/put/wchar_t/4.cc: Likewise.
3521 2004-03-15 Paolo Carlini <pcarlini@suse.de>
3523 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3524 Adjust the logic underlying the parsing of symbol to deal
3525 correctly with an optional sign component (i.e., when either
3526 negative_sign or positive_sign is empty)
3527 * testsuite/22_locale/money_get/get/char/19.cc: New.
3528 * testsuite/22_locale/money_get/get/wchar_t/19.cc: New.
3530 2004-03-15 Paolo Carlini <pcarlini@suse.de>
3532 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3533 Do not accept an incomplete currency symbol.
3534 * testsuite/22_locale/money_get/get/char/18.cc: New.
3535 * testsuite/22_locale/money_get/get/wchar_t/18.cc: New.
3537 2004-03-13 Benjamin Kosnik <bkoz@redhat.com>
3539 * config/allocator: New.
3540 * config/allocator/bitmap_allocator_base.h: New.
3541 * config/allocator/malloc_allocator_base.h: New.
3542 * config/allocator/mt_allocator_base.h: New.
3543 * config/allocator/new_allocator_base.h: New.
3544 * include/bits/allocator.h: Include c++allocator.h.
3545 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): New.
3546 * aclocal.m4: Regenerate.
3547 * configure.ac: Use GLIBCXX_ENABLE_ALLOCATOR.
3548 * configure: Regenerate.
3549 * include/Makefile.am (host_headers_extra): Add c++allocator.h.
3550 * include/Makefile.in: Regenerate.
3551 * docs/html/configopts.html: Add enable-libstdcxx-allocator.
3553 2004-03-12 Benjamin Kosnik <bkoz@redhat.com>
3555 * include/bits/allocator.h: Revert.
3557 2004-03-12 Paolo Carlini <pcarlini@suse.de>
3559 * docs/html/ext/howto.html: Add entry for DR 253 [Ready].
3560 * include/bits/gslice_array.h: Add comment about DR 253.
3561 * include/bits/indirect_array.h: Likewise.
3562 * include/bits/mask_array.h: Likewise.
3563 * include/bits/slice_array.h: Likewise.
3565 2004-03-12 Benjamin Kosnik <bkoz@redhat.com>
3567 * testsuite/20_util/allocator/14176.cc: New.
3568 * include/ext/mt_allocator.h: Formatting fixes.
3570 2004-03-11 Dhruv Matani <dhruvbird@HotPOP.com>
3572 * include/Makefile.am (ext_headers): Add
3573 ${ext_srcdir}/bitmap_allocator.h .
3574 * include/Makefile.in: Regenerate.
3575 * docs/html/ext/ballocator_doc.txt: New file.
3576 * include/ext/bitmap_allocator.h: New file.
3577 * testsuite/performance/20_util/allocator/list_sort_search.cc: Add
3579 * testsuite/performance/20_util/allocator/map_mt_find.cc: Likewise.
3580 * testsuite/performance/20_util/allocator/producer_consumer.cc: Add
3581 test for the bitmap_allocator<>.
3582 * testsuite/performance/20_util/allocator/insert.cc: Likewise.
3583 * testsuite/performance/20_util/allocator/insert_insert.cc: Likewise.
3584 * testsuite/performance/20_util/allocator/map_thread.cc: Likewise.
3586 2004-03-11 Paolo Carlini <pcarlini@suse.de>
3588 * include/std/std_complex.h (pow(const complex&, const _Tp&),
3589 pow(const _Tp&, const complex&), pow(const complex&,
3590 const complex&)): Fully qualify with std:: a few calls.
3591 * testsuite/26_numerics/complex/13450.cc: Minor tweak.
3593 2004-03-11 Steven Bosscher <stevenb@suse.de>
3596 * include/c_std/cmath.tcc (__cmath_power): Define inline.
3598 2004-03-10 Kelley Cook <kcook@gcc.gnu.org>
3600 * configure.ac: Bump AC_PREREQ to 2.59.
3602 2004-03-10 Paolo Carlini <pcarlini@suse.de>
3604 * testsuite/26_numerics/valarray_subset_assignment.cc: Fix typos.
3606 2004-03-10 Paul Kienzle <pkienzle@nist.gov>
3607 Paolo Carlini <pcarlini@suse.de>
3610 * include/std/std_complex.h (pow(const complex&, const _Tp&),
3611 pow(const _Tp&, const complex&)): Use cmath pow only when safe.
3612 * testsuite/26_numerics/complex/13450.cc: New.
3614 * testsuite/26_numerics/cmath/overloads.C: Rename to overloads.cc.
3615 * testsuite/26_numerics/complex/pow.C: Rename to pow.cc and fix.
3617 2004-03-10 Jerry Quinn <jlquinn@optonline.net>
3620 * include/bits/gslice_array.h (gslice_array()): Make public.
3621 (operator=(gslice_array)): Make public. Implement.
3622 * include/bits/indirect_array.h (indirect_array()): Make public.
3623 * include/bits/mask_array.h (mask_array()): Make public.
3624 (operator=(mask_array)): Make public. Implement.
3625 * include/bits/valarray_array.tcc (__valarray_copy):
3626 Comment. Add versions for gslice_array and mask_array.
3627 * testsuite/26_numerics/valarray_subset_assignment.cc: New test.
3629 2004-03-09 Benjamin Kosnik <bkoz@redhat.com>
3631 * testsuite/23_containers/deque/modifiers/swap.cc: Add in bits for
3633 * testsuite/23_containers/vector/modifiers/swap.cc: Same.
3634 * testsuite/23_containers/set/modifiers/swap.cc: Same.
3635 * testsuite/23_containers/multiset/modifiers/swap.cc: Same.
3636 * testsuite/23_containers/multimap/modifiers/swap.cc: Same.
3637 * testsuite/23_containers/map/modifiers/swap.cc: Same.
3638 * testsuite/23_containers/list/modifiers/swap.cc: Same.
3640 * testsuite/22_locale/locale/cons/12658_thread.cc: Catch exceptions.
3642 2004-03-08 Benjamin Kosnik <bkoz@redhat.com>
3645 * testsuite/23_containers/deque/modifiers/swap.cc: New.
3646 * testsuite/23_containers/list/modifiers/swap.cc: New.
3647 * testsuite/23_containers/map/modifiers/swap.cc: New.
3648 * testsuite/23_containers/multimap/modifiers/swap.cc: New.
3649 * testsuite/23_containers/multiset/modifiers/swap.cc: New.
3650 * testsuite/23_containers/set/modifiers/swap.cc: New.
3651 * testsuite/23_containers/vector/modifiers/swap.cc: New.
3653 2004-03-08 Petur Runolfsson <peturr02@ru.is>
3656 * testsuite/22_locale/locale/cons/12658_thread.cc: New.
3658 2004-03-08 Paolo Carlini <pcarlini@suse.de>
3660 * docs/html/ext/howto.html: Add entry for DR 103 [WP].
3661 * include/bits/stl_multiset.h: Add comment about DR 103.
3662 * include/bits/stl_set.h: Likewise.
3664 2004-03-08 Paolo Carlini <pcarlini@suse.de>
3666 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3667 The value _space_ indicates that at least one space is required
3669 * testsuite/22_locale/money_get/get/char/17.cc: New.
3670 * testsuite/22_locale/money_get/get/wchar_t/17.cc: New.
3672 * testsuite/22_locale/money_get/get/char/7.cc: Minor tweaks.
3673 * testsuite/22_locale/money_get/get/wchar_t/7.cc: Likewise.
3675 * include/bits/locale_facets.tcc (money_get<>::do_get(long_double&)):
3676 Remove redundant conditional on __str.size().
3678 2004-03-08 Benjamin Kosnik <bkoz@redhat.com>
3680 * include/bits/allocator.h: Switch defaults to mt_alloc.
3682 2004-03-06 Benjamin Kosnik <bkoz@redhat.com>
3684 * include/ext/mt_allocator.h (_S_initialize): If
3685 !__GTHREAD_MUTEX_INIT, then initialize _S_thread_freelist_mutex.
3687 2004-03-06 Benjamin Kosnik <bkoz@redhat.com>
3690 * src/locale_init.cc (locale::locale): Lock critical regions with
3692 (locale::global): Same.
3693 * include/bits/concurrence.h (__glibcxx_mutex_define_initialized):
3694 Add in once bits for cases without __GTHREAD_MUTEX_INIT.
3695 (__glibcxx_mutex_lock): Same.
3697 * config/cpu/generic/atomicity.h: Remove
3698 _GLIBCXX_NEED_GENERIC_MUTEX, use concurrence.h.
3699 * src/misc-inst.cc: Move all locking bits out of this file.
3701 * config/os/hpux/os_defines.h: Remove _GLIBCXX_INST_ATOMICITY_LOCK.
3702 * src/misc-inst.cc: Same.
3703 * config/cpu/hppa/atomicity.h: Same.
3705 * config/linker-map.gnu: Remove types in the signature of atomic
3706 exports, as they may vary.
3708 2004-03-06 Paolo Carlini <pcarlini@suse.de>
3710 * include/bits/locale_facets.tcc: Tweak the comment preceding
3711 has_facet: doesn't throw.
3713 2004-03-06 Paolo Carlini <pcarlini@suse.de>
3715 * testsuite/22_locale/money_get/get/char/1.cc: Clean up.
3716 * testsuite/22_locale/money_get/get/char/2.cc: Likewise.
3717 * testsuite/22_locale/money_get/get/char/3.cc: Likewise.
3718 * testsuite/22_locale/money_get/get/char/4.cc: Likewise.
3719 * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
3720 * testsuite/22_locale/money_get/get/wchar_t/2.cc: Likewise.
3721 * testsuite/22_locale/money_get/get/wchar_t/3.cc: Likewise.
3722 * testsuite/22_locale/money_get/get/wchar_t/4.cc: Likewise.
3724 2004-03-06 Paolo Carlini <pcarlini@suse.de>
3726 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
3727 num_get<>::_M_extract_int, num_get<>::do_get(bool&),
3728 __pad<>::_S_pad): Prefer plain operator== to traits::eq().
3729 * testsuite/testsuite_character.h (struct __gnu_test::character):
3731 * testsuite/testsuite_hooks.h (struct __gnu_test::pod_char):
3734 2004-03-05 Paolo Carlini <pcarlini@suse.de>
3736 * testsuite/27_io/fpos/14320-2.cc: Remove xfail.
3738 2004-03-04 Benjamin Kosnik <bkoz@redhat.com>
3740 * testsuite/23_containers/multiset/insert/1.cc: Test result string.
3742 * testsuite/23_containers/bitset/invalidation/1.cc: Main always
3744 * testsuite/23_containers/deque/invalidation/4.cc: Same.
3745 * testsuite/23_containers/list/invalidation/1.cc: Same.
3746 * testsuite/23_containers/list/invalidation/2.cc: Same.
3747 * testsuite/23_containers/list/invalidation/3.cc: Same.
3748 * testsuite/23_containers/list/invalidation/4.cc: Same.
3749 * testsuite/23_containers/map/invalidation/2.cc: Same.
3750 * testsuite/23_containers/multimap/invalidation/1.cc: Same.
3751 * testsuite/23_containers/multimap/invalidation/2.cc: Same.
3752 * testsuite/23_containers/multiset/invalidation/1.cc: Same.
3753 * testsuite/23_containers/multiset/invalidation/2.cc: Same.
3754 * testsuite/23_containers/set/invalidation/1.cc: Same.
3755 * testsuite/23_containers/set/invalidation/2.cc: Same.
3756 * testsuite/23_containers/vector/invalidation/1.cc: Same.
3757 * testsuite/23_containers/vector/invalidation/2.cc: Same.
3758 * testsuite/23_containers/vector/invalidation/3.cc: Same.
3759 * testsuite/23_containers/vector/invalidation/4.cc: Same.
3761 2004-03-04 Paolo Carlini <pcarlini@suse.de>
3763 * scripts/testsuite_flags.in: Add "-D_GLIBCXX_ASSERT" to
3765 * testsuite/lib/libstdc++.exp: Don't add it conditionally to
3767 * testsuite/18_support/numeric_limits.cc: Remove "-D_GLIBCXX_ASSERT"
3768 from the dg-options.
3769 * testsuite/23_containers/vector/invalidation/1.cc: Likewise.
3770 * testsuite/23_containers/vector/invalidation/2.cc: Likewise.
3771 * testsuite/23_containers/vector/invalidation/3.cc: Likewise.
3772 * testsuite/23_containers/vector/invalidation/4.cc: Likewise.
3773 * testsuite/23_containers/vector/resize/1.cc: Likewise.
3774 * testsuite/26_numerics/complex_value.cc: Likewise.
3775 * testsuite/27_io/ios_base/storage/1.cc: Likewise.
3776 * testsuite/27_io/ios_base/storage/2.cc: Likewise.
3777 * testsuite/27_io/ios_base/storage/3.cc: Likewise.
3778 * testsuite/27_io/manipulators/standard/char/2.cc: Likewise.
3779 * testsuite/27_io/objects/char/5.cc: Likewise.
3780 * testsuite/27_io/objects/wchar_t/5.cc: Likewise.
3781 * testsuite/backward/11460.cc: Likewise.
3782 * testsuite/thread/pthread7-rope.cc: Likewise.
3784 * testsuite/21_strings/basic_string/compare/char/1.cc: Add
3785 missing test variable.
3786 * testsuite/21_strings/basic_string/compare/wchar_t/1.cc: Add
3787 missing test variable.
3789 2004-03-04 Benjamin Kosnik <bkoz@redhat.com>
3791 * testsuite/20_util/allocator/1.cc: Provide explicit
3792 instantiations for non-weak systems.
3793 * testsuite/20_util/binders.cc: Same.
3794 * testsuite/20_util/allocator/8230.cc: Same.
3795 * testsuite/20_util/allocator/10378.cc: Same.
3796 * testsuite/22_locale/ctype/is/wchar_t/2.cc: Same.
3797 * testsuite/22_locale/ctype/is/char/2.cc: Same.
3798 * testsuite/thread/pthread7-rope.cc: Same.
3799 * testsuite/thread/pthread6.cc: Same.
3800 * testsuite/thread/pthread5.cc: Same.
3801 * testsuite/thread/pthread4.cc: Same.
3802 * testsuite/thread/pthread1.cc: Same.
3803 * testsuite/ext/rope.cc: Same.
3804 * testsuite/ext/hash_set.cc: Same.
3805 * testsuite/ext/hash_map.cc: Same.
3806 * testsuite/ext/concept_checks.cc: Same.
3807 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9874.cc: Same.
3808 * testsuite/25_algorithms/unique/2.cc: Same.
3809 * testsuite/25_algorithms/unique/1.cc: Same.
3810 * testsuite/25_algorithms/rotate.cc: Same.
3811 * testsuite/25_algorithms/min_max.cc: Same.
3812 * testsuite/25_algorithms/equal.cc: Same.
3813 * testsuite/24_iterators/rel_ops.cc: Same.
3814 * testsuite/24_iterators/iterator.cc: Same.
3815 * testsuite/24_iterators/insert_iterator.cc: Same.
3816 * testsuite/24_iterators/front_insert_iterator.cc: Same.
3817 * testsuite/24_iterators/back_insert_iterator.cc: Same.
3818 * testsuite/23_containers/vector/resize/1.cc: Same.
3819 * testsuite/23_containers/vector/modifiers/2.cc: Same.
3820 * testsuite/23_containers/vector/modifiers/1.cc: Same.
3821 * testsuite/23_containers/vector/invalidation/4.cc: Same.
3822 * testsuite/23_containers/vector/invalidation/3.cc: Same.
3823 * testsuite/23_containers/vector/invalidation/2.cc: Same.
3824 * testsuite/23_containers/vector/invalidation/1.cc: Same.
3825 * testsuite/23_containers/vector/element_access/1.cc: Same.
3826 * testsuite/23_containers/vector/cons/6513.cc: Same.
3827 * testsuite/23_containers/vector/cons/3.cc: Same.
3828 * testsuite/23_containers/vector/cons/2.cc: Same.
3829 * testsuite/23_containers/vector/cons/1.cc: Same.
3830 * testsuite/23_containers/vector/capacity/8230.cc: Same.
3831 * testsuite/23_containers/vector/capacity/1.cc: Same.
3832 * testsuite/23_containers/vector/bool/6886.cc: Same.
3833 * testsuite/23_containers/stack/members/7158.cc: Same.
3834 * testsuite/23_containers/set/invalidation/2.cc: Same.
3835 * testsuite/23_containers/set/invalidation/1.cc: Same.
3836 * testsuite/23_containers/queue/members/7157.cc: Same.
3837 * testsuite/23_containers/priority_queue/members/7161.cc: Same.
3838 * testsuite/23_containers/multiset/invalidation/2.cc: Same.
3839 * testsuite/23_containers/multiset/invalidation/2.cc: Same.
3840 * testsuite/23_containers/multiset/insert/1.cc: Same.
3841 * testsuite/23_containers/multimap/invalidation/2.cc: Same.
3842 * testsuite/23_containers/multimap/invalidation/2.cc: Same.
3843 * testsuite/23_containers/map/operators/1.cc: Same.
3844 * testsuite/23_containers/map/invalidation/2.cc: Same.
3845 * testsuite/23_containers/map/invalidation/1.cc: Same.
3846 * testsuite/23_containers/map/insert/1.cc: Same.
3847 * testsuite/23_containers/list/operators/4.cc: Same.
3848 * testsuite/23_containers/list/operators/3.cc: Same.
3849 * testsuite/23_containers/list/operators/2.cc: Same.
3850 * testsuite/23_containers/list/operators/1.cc: Same.
3851 * testsuite/23_containers/list/modifiers/3.cc: Same.
3852 * testsuite/23_containers/list/modifiers/2.cc: Same.
3853 * testsuite/23_containers/list/modifiers/1.cc: Same.
3854 * testsuite/23_containers/list/invalidation/4.cc: Same.
3855 * testsuite/23_containers/list/invalidation/3.cc: Same.
3856 * testsuite/23_containers/list/invalidation/2.cc: Same.
3857 * testsuite/23_containers/list/invalidation/1.cc: Same.
3858 * testsuite/23_containers/list/cons/9.cc: Same.
3859 * testsuite/23_containers/list/cons/8.cc: Same.
3860 * testsuite/23_containers/list/cons/7.cc: Same.
3861 * testsuite/23_containers/list/cons/6.cc: Same.
3862 * testsuite/23_containers/list/cons/5.cc: Same.
3863 * testsuite/23_containers/list/cons/4.cc: Same.
3864 * testsuite/23_containers/list/cons/3.cc: Same.
3865 * testsuite/23_containers/list/cons/2.cc: Same.
3866 * testsuite/23_containers/list/cons/1.cc: Same.
3867 * testsuite/23_containers/list/capacity/1.cc: Same.
3868 * testsuite/23_containers/deque/operators/1.cc: Same.
3869 * testsuite/23_containers/deque/invalidation/4.cc: Same.
3870 * testsuite/23_containers/deque/invalidation/3.cc: Same.
3871 * testsuite/23_containers/deque/invalidation/2.cc: Same.
3872 * testsuite/23_containers/deque/invalidation/1.cc: Same.
3873 * testsuite/23_containers/deque/cons/2.cc: Same.
3874 * testsuite/23_containers/deque/cons/1.cc: Same.
3876 * src/allocator.cc: Add char, wchar_t instantiations
3877 to match extern template declarations in memory.h.
3879 2004-03-03 Paolo Carlini <pcarlini@suse.de>
3881 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
3882 Fix warning regression.
3884 2004-03-03 Paolo Carlini <pcarlini@suse.de>
3886 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
3887 Deal properly with empty __digits and negative frac_digits,
3890 2004-03-03 Jonathan Wakely <redi@gcc.gnu.org>
3892 * docs/html/documentation.html: Regenerate.
3894 2004-03-02 Paolo Carlini <pcarlini@suse.de>
3897 * include/bits/postypes.h (class streamoff): Remove, now
3898 streamoff is just typedef a 64 bit signed integer type.
3899 (class fpos): Tweak consistently.
3900 * testsuite/27_io/fpos/14320-1.cc: New.
3901 * testsuite/27_io/fpos/14320-2.cc: New.
3902 * testsuite/27_io/fpos/14320-3.cc: New.
3903 * testsuite/27_io/fpos/14320-4.cc: New.
3904 * testsuite/27_io/fpos/14320-5.cc: New.
3905 * testsuite/27_io/fpos/mbstate_t/4_neg.cc: xfail for now.
3907 2004-03-02 Paolo Carlini <pcarlini@suse.de>
3909 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3910 Reorganize a bit the main parsing loop, thus early detecting
3911 an empty value component.
3912 * testsuite/22_locale/money_get/get/char/16.cc: New.
3913 * testsuite/22_locale/money_get/get/wchar_t/16.cc: New.
3915 2004-03-02 Benjamin Kosnik <bkoz@redhat.com>
3917 Support automake 1.8.2
3918 * configure.ac (AM_INIT_AUTOMAKE): Add -Wno-override.
3919 * po/Makefile.am (EXTRA_DIST): New.
3920 * po/Makefile.in: Regenerate.
3921 * Makefile.in: Same.
3922 * include/Makefile.in: Same.
3923 * libmath/Makefile.in: Same.
3924 * libsupc++/Makefile.in: Same.
3925 * src/Makefile.in: Same.
3926 * testsuite/Makefile.in: Same.
3928 * include/Makefile.am (${host_builddir}/gthr-posix.h): Use
3929 __GXX_WEAK__ instead of SUPPORTS_WEAK.
3930 (${host_builddir}/gthr-default.h): Same.
3931 (${host_builddir}/gthr.h): Same.
3932 * acinclude.m4 (GLIBCXX_ENABLE_THREAD): Remove
3933 _GLIBCXX_SUPPORTS_WEAK, as this behavior can be modified via
3935 * aclocal.m4: Regenerate.
3936 * acconfig.h: Remove _GLIBCXX_SUPPORTS_WEAK.
3937 * config.h.in: Regenerate.
3940 2004-03-01 Benjamin Kosnik <bkoz@redhat.com>
3942 Support autoconf 2.59
3943 * acinclude.m4: Quote correctly.
3944 * aclocal.m4: Regenerate.
3947 2004-03-01 Benjamin Kosnik <bkoz@redhat.com>
3949 * docs/html/test.html: Add multilib RUNTESTFLAGS example.
3951 * docs/html/18_support/howto.html: Add bit about writing to
3952 stderr, mostly by Zack.
3954 2004-03-01 Paolo Carlini <pcarlini@suse.de>
3956 * include/bits/locale_facets.tcc (money_get<>::_M_extract,
3957 money_get<>::do_get(string_type&)): ... and two more.
3959 2004-03-01 Paolo Carlini <pcarlini@suse.de>
3961 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3962 Fix thinkos in the switch from string_type& to string& as last
3965 2004-03-01 Paolo Carlini <pcarlini@suse.de>
3967 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
3968 Also when parsing exponent sign, first look for thousands_sep
3969 and decimal_point; tweak a bit.
3970 * testsuite/22_locale/num_get/get/char/15.cc: New.
3971 * testsuite/22_locale/num_get/get/wchar_t/15.cc: New.
3973 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
3974 num_get<>::_M_extract_int): Reorder some conditionals.
3976 2004-03-01 Paolo Carlini <pcarlini@suse.de>
3978 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3979 Consistently with numpunct, enforce the requirements in
3980 22.2.6.3, p3 for the thousands separators; tweak a bit.
3981 * testsuite/22_locale/money_get/get/char/15.cc: New.
3982 * testsuite/22_locale/money_get/get/wchar_t/15.cc: New.
3984 2004-03-01 David Billinghurst <David.Billinghurst@riotinto.com>
3986 * testsuite/lib/libstdc++.exp (v3-list-tests): Use
3987 testsuite_files from correct multilib blddir when running
3990 2004-02-29 Phil Edwards <phil@codesourcery.com>
3992 * testsuite/Makefile.am (check-abi, check-abi-verbose): Copy
3993 the summary file to the logfile.
3994 * testsuite/Makefile.in: Regenerate.
3996 2004-02-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3998 * config/cpu/hppa/atomicity.h (__atomic_add): Make first argument
4000 * config/os/hpux/os_defines.h (_GLIBCXX_INST_ATOMICITY_LOCK): Use
4001 __GXX_WEAK__ instead of _GLIBCXX_SUPPORTS_WEAK.
4003 2004-02-28 Paolo Carlini <pcarlini@suse.de>
4005 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
4006 According to 22.2.3.1, p2, 'units' may be followed by 'e' with
4007 no 'decimal-point' in the middle: in this case too we must fix
4008 up __found_grouping; slightly tweak.
4009 * testsuite/22_locale/num_get/get/char/14.cc: New.
4010 * testsuite/22_locale/num_get/get/wchar_t/14.cc: New.
4012 2004-02-27 Eric Christopher <echristo@redhat.com>
4013 Phil Edwards <phil@codesourcery.com>
4015 * testsuite/22_locale/collate/compare/wchar_t/2.cc,
4016 testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc,
4017 testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc,
4018 testsuite/22_locale/collate/hash/wchar_t/2.cc,
4019 testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc,
4020 testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc,
4021 testsuite/22_locale/collate/transform/wchar_t/2.cc,
4022 testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc,
4023 testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
4024 Use dg-require-iconv.
4025 * testsuite/lib/libstdc++.exp: Load target-supports.exp.
4027 2004-02-27 Phil Edwards <phil@codesourcery.com>
4028 Eric Christopher <echristo@redhat.com>
4030 * testsuite/config/default.exp: Update with comments.
4031 (${tool}_target_compile): New wrapper routine.
4032 * testsuite/lib/dg-options.exp: New file, with dg-require-iconv.
4033 * testsuite/lib/libstdc++.exp: Update with comments and cosmetic
4035 (load_gcc_lib, v3track): New routines.
4036 (v3-init): Rename to libstdc++_init.
4037 * testsuite/libstdc++-dg/normal.exp: No longer call v3-init.
4038 Move DEFAULT_CXXFLAGS handling into libstdc++_init.
4040 2004-02-27 Benjamin Kosnik <bkoz@redhat.com>
4042 * config/cpu/hppa/atomicity.h: Include c++config.h to get defines.
4044 * src/misc-inst.cc (_S_atomicity_lock): Move to __gnu_cxx.
4046 * config/os/irix/irix5.2/atomicity.h: Merge..
4047 * config/os/irix/irix6.5/atomicity.h: Merge..
4048 * config/os/irix/atomicity.h: ...into this.
4049 * config/os/irix/atomic_word.h: New.
4050 * configure.host: Set atomic_word_dir for irix.
4052 * hppa/atomicity.h: Change __Atomicity_lock to _Atomicity_lock.
4053 * i386/atomicity.h: Same.
4054 * m68k/atomicity.h: Same.
4055 * sparc/atomicity.h: Same.
4057 2004-02-27 David Edelsohn <edelsohn@gnu.org>
4059 * config/os/aix/atomicity.h: Use __gnu_cxx namespace. Remove
4060 static, and inline keywords.
4062 2004-02-27 Paolo Carlini <pcarlini@suse.de>
4064 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
4065 num_get<>::_M_extract_int, money_get<>::_M_extract): If appropriate,
4066 call reserve on the __tmp_gruping string.
4067 (num_get<>::_M_extract_float): Don't append unnecessarily a
4068 char() to the returned string.
4069 * include/bits/locale_facets.tcc: Trivial reformattings.
4071 2004-02-27 Paolo Carlini <pcarlini@suse.de>
4073 * include/bits/locale_facets.h (money_get<>::_M_extract):
4074 Change signature: now takes a plain string&.
4075 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
4076 Update consistently the definition; use the moneypunct cache
4077 to parse the value; use swap to change __units.
4078 (money_get<>::do_get(long double&)): Update call of _M_extract,
4079 avoid ctype::narrow, not correct wrt the standard.
4080 (money_get<>::do_get(string_type&)): Likewise, update call
4081 of _M_extract, use ctype::widen.
4082 * src/locale-inst.cc: Tweak instantiations of _M_extract.
4084 2004-02-26 Ian Lance Taylor <ian@wasabisystems.com>
4086 * testsuite/demangle/abi_examples/01.cc: Expect error -2.
4087 * testsuite/demangle/abi_examples/02.cc: Likewise.
4088 * testsuite/demangle/regression/cw-11.cc: Likewise.
4089 * testsuite/demangle/regression/cw-16.cc: Change two expected
4090 results to match libiberty demangler output.
4092 2004-02-26 Benjamin Kosnik <bkoz@redhat.com>
4095 * libsupc++/Makefile.am: Use libiberty demangler.
4096 (c_sources): Add cp-demangle.c.
4097 * libsupc++/Makefile.in: Regenerate.
4098 * src/Makefile.am (sources): Remove demangle.cc.
4099 * src/Makefile.in: Regenerate.
4100 * include/Makefile.am (bits_headers): Move demangle.h.
4101 (ext_headers): ...here.
4102 * include/Makefile.in: Regenerate.
4103 * include/bits/demangle.h: Move...
4104 * include/ext/demangle.h: ...here.
4105 * src/demangle.cc: Remove.
4107 2004-02-26 Benjamin Kosnik <bkoz@redhat.com>
4109 * include/bits/demangle.h: Add type template parameter to all
4110 templates with just an Allocator template parameter.
4112 2004-02-25 Benjamin Kosnik <bkoz@redhat.com>
4114 * include/bits/atomicity.h: New, forward declarations for __atomic_add
4115 and __exchange_and_add.
4116 * config/cpu/generic/atomic_word.h: New, typdef for atomic word.
4117 * config/cpu/cris/atomic_word.h: Same.
4118 * config/cpu/sparc/atomic_word.h: Same.
4119 * include/bits/ios_base.h (_Callback_list::_M_remove_reference):
4120 Qualifiy with __gnu_cxx.
4121 (_Callback_list::_M_add_reference): Same.
4122 * include/bits/locale_classes.h (locale::facet::_M_add_reference): Add.
4123 (locale::facet::_M_remove_reference): Same.
4124 (locale::_Impl::_M_add_reference): Add.
4125 (locale::_Impl::_M_remove_reference): Same.
4126 * include/bits/basic_string.h (basic_string::_Rep::_M_refcopy): Same.
4127 (basic_string::_Rep::_M_dispose): Same.
4128 * src/ios.cc (ios_base::xalloc): Same.
4129 * src/ios_init.cc (ios_base::Init::Init): Same.
4130 (ios_base::Init::~Init): Same.
4131 * src/locale.cc (locale::id::_M_id): Same.
4132 * config/cpu/i486/atomicity.h: Use __gnu_cxx namespace. Remove
4133 static, and inline keywords.
4134 * config/cpu/alpha/atomicity.h: Same.
4135 * config/cpu/cris/atomicity.h: Same.
4136 * config/cpu/generic/atomicity.h: Same.
4137 * config/cpu/hppa/atomicity.h: Same.
4138 * config/cpu/i386/atomicity.h: Same.
4139 * config/cpu/ia64/atomicity.h: Same.
4140 * config/cpu/m68k/atomicity.h: Same.
4141 * config/cpu/mips/atomicity.h: Same.
4142 * config/cpu/powerpc/atomicity.h: Same.
4143 * config/cpu/s390/atomicity.h: Same.
4144 * config/cpu/sparc/atomicity.h: Same.
4146 * src/Makefile.am (host_sources): Add atomicity.cc.
4147 (atomicity.cc): New rule.
4148 * src/Makefile.in: Regenerate.
4149 * include/Makefile.am (host_headers): Remove host atomicity.h.
4150 (host_headers): Add atomic_word.h.
4151 (bits_headers): Add bits atomicity.h.
4152 Change ATOMICITY_INC_SRCDIR to ATOMICITY_SRCDIR.
4153 * include/Makefile.in: Regenerate.
4154 * configure.host (atomic_word_dir): Add.
4155 * configure.ac: Substitute ATOMIC_WORD_SRCDIR. Change
4156 ATOMICITY_INC_SRCDIR to ATOMICITY_SRCDIR.
4157 * configure: Regenerate.
4158 * config/linker-map.gnu: Export __exchange_and_add, and __atomic_add.
4160 * testsuite/27_io/ios_base/cons/assign_neg.cc: Adjust line numbers.
4161 * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
4163 2004-02-25 Jonathan Wakely <redi@gcc.gnu.org>
4165 * docs/html/20_util/howto.html, docs/html/20_util/allocator.html,
4166 docs/html/ext/howto.html, docs/html/ext/mt_allocator.html:
4167 Fix markup, more <link> tags.
4169 2004-02-25 Carlo Wood <carlo@alinoe.com>
4172 namespace __gnu_cxx::demangler
4173 (session<Allocator>::qualifier_list_Allocator): Add
4174 (session<Allocator>::M_qualifier_list_alloc): Add
4175 (session<Allocator>::decode_type_with_postfix):
4176 Use M_qualifier_list_alloc instead of calling operator new/delete.
4178 2004-02-24 Paolo Carlini <pcarlini@suse.de>
4181 * include/bits/postypes.h (class streamoff): Add operator++(),
4182 operator++(int), operator--() and operator--(int).
4183 * testsuite/27_io/fpos/14252.cc: New.
4185 2004-02-24 Richard Sandiford <rsandifo@redhat.com>
4187 * include/bits/locale_facets.tcc (num_get::_M_extract_int): Fix bounds
4188 error in handling of hex constants.
4190 2004-02-24 Paolo Carlini <pcarlini@suse.de>
4192 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
4193 Prefer basic_string::append to operator+= and a temporary.
4195 2004-02-23 Benjamin Kosnik <bkoz@redhat.com>
4197 * libsupc++/vterminate.cc (__gnu_cxx::__verbose_terminate_handler):
4198 Only use fputs, not write.
4200 2004-02-23 Benjamin Kosnik <bkoz@redhat.com>
4202 * include/ext/malloc_allocator.h: Add operators ==, !=.
4203 * include/ext/new_allocator.h: Add operators ==, !=.
4204 * include/ext/mt_allocator.h (__mt_alloc::tune): New.
4205 (__mt_alloc::_S_get_options): New.
4206 (__mt_alloc::_S_set_options): New.
4207 (__mt_alloc::_S_thread_key_destr): To _S_destroy_thread_key.
4208 (__mt_alloc::_S_no_of_bins): To _S_bin_size.
4209 Move functions out of line, simplify, format.
4210 * src/allocator.cc: Simplify explicit instantiations.
4211 * include/bits/allocator.h: Tweak.
4213 2004-02-22 Paolo Carlini <pcarlini@suse.de>
4215 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
4216 Restructure formatting of value component, first dealing with
4217 the non-decimal digits; use reserve.
4219 2004-02-22 Paolo Carlini <pcarlini@suse.de>
4221 * include/bits/locale_facets.h (class money_get): Inherit
4222 from money_base too; tweak declaration of _M_extract, now
4223 parameterized on _Intl too.
4224 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
4225 Update definition to use the cache; call reserve on __res to
4226 avoid multiple reallocations; fix parsing of sign component
4227 according to 22.2.6.1.2, p3.
4228 (money_get<>::do_get(long double&),
4229 money_get<>::do_get(string_type&)): Update calls of _M_extract.
4230 * src/locale-inst.cc: Add instantiations of
4231 money_get::_M_extract<false> and money_get::_M_extract<true>.
4232 * testsuite/22_locale/money_get/get/char/14.cc: New.
4233 * testsuite/22_locale/money_get/get/wchar_t/14.cc: Ditto.
4235 2004-02-21 Mark Mitchell <mark@codesourcery.com>
4237 * libsupc++/vterminate.cc
4238 (__gnu_cxx::__verbose_terminate_handler): Guard against recursive
4240 * src/demangle.cc (__cxa_demangle): Wrap in try-catch block.
4242 * testsuite/testsuite_hooks.cc (__gnu_test::set_memory_limits): Do
4243 not set RLIMIT_AS on HP-UX.
4245 2004-02-21 Mark Mitchell <mark@codesourcery.com>
4247 * testsuite/testsuite_hooks.cc (__gnu_test::set_memory_limits): Do
4248 not set RLIMIT_AS on HP-UX.
4250 2004-02-21 Paolo Carlini <pcarlini@suse.de>
4252 * include/bits/locale_facets.h (class money_base): Add { _S_minus,
4253 _S_zero, _S_end } enum, _S_atoms.
4254 (struct __moneypunct_cache<>): Parameterize on _Intl too; add
4255 _M_grouping_size, _M_curr_symbol_size, _M_positive_sign_size,
4256 _M_negative_sign_size, _M_atoms; tweak constructor consistently.
4257 (__moneypunct_cache<>::~__moneypunct_cache): Update.
4258 (__moneypunct_cache<>::_M_cache): Fill the cache.
4259 (class moneypunct): Tweak __cache_type typedef.
4260 (class money_put): Inherit from money_base too; tweak declaration
4261 of _M_insert, now parameterized on _Intl.
4262 * include/bits/locale_facets.tcc
4263 (struct __use_cache<__moneypunct_cache<_CharT, _Intl> >): New.
4264 (money_put<>::_M_insert): Update definition to use the cache;
4265 call reserve on __res to avoid multiple reallocations.
4266 (money_put<>::do_put(long double),
4267 money_put<>::do_put(const string_type&): Update calls of _M_insert.
4268 * config/locale/generic/monetary_members.cc
4269 (moneypunct<char, true>::_M_initialize_moneypunct,
4270 moneypunct<char, false>::_M_initialize_moneypunct,
4271 moneypunct<wchar_t, true>::_M_initialize_moneypunct,
4272 moneypunct<wchar_t, false>::_M_initialize_moneypunct): Update.
4273 * config/locale/gnu/monetary_members.cc: Likewise.
4274 * config/locale/gnu/monetary_members.cc
4275 (moneypunct<wchar_t, true>::~moneypunct(),
4276 moneypunct<wchar_t, false>::~moneypunct()): Likewise.
4277 * src/globals_locale.cc: Tweak fake_money_cache_c.
4278 * src/locale-inst.cc: Add instantiations for
4279 money_put::_M_insert<false> and money_put::_M_insert<true> and
4280 __moneypunct_cache<C, false>, __moneypunct_cache<C, true>.
4281 * src/locale_facets.cc: Define money_base::_S_atoms.
4282 * src/locale_init.cc: Update placement new of
4283 __moneypunct_cache<char, false>, __moneypunct_cache<char, true>,
4284 __moneypunct_cache<wchar_t, false>, __moneypunct_cache<wchar_T, true>.
4286 * config/locale/generic/numeric_members.cc: Clean up.
4287 * config/locale/gnu/numeric_members.cc: Likewise.
4288 * testsuite/22_locale/money_put/put/char/1.cc: Likewise.
4289 * testsuite/22_locale/money_put/put/char/2.cc: Likewise.
4290 * testsuite/22_locale/money_put/put/char/3.cc: Likewise.
4291 * testsuite/22_locale/money_put/put/wchar_t/1.cc: Likewise.
4292 * testsuite/22_locale/money_put/put/wchar_t/2.cc: Likewise.
4293 * testsuite/22_locale/money_put/put/wchar_t/3.cc: Likewise.
4295 2004-02-20 Mark Mitchell <mark@codesourcery.com>
4297 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: Open
4298 FIFO for writing with ios_base::in|ios_base::out.
4299 * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
4300 * testsuite/27_io/objects/char/7.cc: Likewise.
4301 * testsuite/27_io/objects/char/9661-1.cc: Open FIFO for writing
4304 2004-02-19 David Edelsohn <edelsohn@gnu.org>
4306 * 22_locale/collate/compare/wchar_t/2.cc: Change input-charset
4307 from iso-8859-1 to ISO8859-1.
4308 * 22_locale/collate/compare/wchar_t/wrapped_env.cc: Same.
4309 * 22_locale/collate/compare/wchar_t/wrapped_locale.cc: Same.
4310 * 22_locale/collate/hash/wchar_t/2.cc: Same.
4311 * 22_locale/collate/hash/wchar_t/wrapped_env.cc: Same.
4312 * 22_locale/collate/hash/wchar_t/wrapped_locale.cc: Same.
4313 * 22_locale/collate/transform/wchar_t/2.cc: Same.
4314 * 22_locale/collate/transform/wchar_t/wrapped_env.cc: Same.
4315 * 22_locale/collate/transform/wchar_t/wrapped_locale.cc: Same.
4317 2004-02-18 Paolo Carlini <pcarlini@suse.de>
4319 * include/bits/locale_facets.h (money_get<>::_M_extract):
4320 New, helper for do_get.
4321 (money_put<>::_M_insert): Likewise, for do_put.
4322 * include/bits/locale_facets.tcc (money_get<>::_M_extract,
4323 money_put<>::_M_insert): Define.
4324 (money_get<>::do_get(long double&), money_get<>::do_get(
4325 string_type&), money_put::do_put(long double),
4326 money_put::do_put(const string_type&)): Use the helpers.
4328 2004-02-18 Paolo Carlini <pcarlini@suse.de>
4330 * config/io/basic_file_stdio.cc (__gnu_internal::xwritev):
4331 Rewrite, avoiding recursion.
4332 (__gnu_internal::xwrite): Minor tweaks.
4334 2004-02-17 Stefan Olsson <stefan@xapa.se>
4336 * include/ext/mt_allocator.h: Removed the last
4337 pointer. Deallocated blocks are now added to the front of
4338 freelists as proposed by Felix Yen. This gives roughly 10%
4339 performance boost and saves some memory.
4340 * docs/html/ext/mt_allocator.html: Change due to that deallocated
4341 blocks now are added to the front of freelists. The reason to this
4342 approach is also explained.
4344 2004-02-17 Paolo Carlini <pcarlini@suse.de>
4346 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
4347 num_get<>::_M_extract_int, money_get<>::do_get): Simplify
4348 grouping fidelity conditional.
4350 2004-02-16 Paolo Carlini <pcarlini@suse.de>
4352 * testsuite/27_io/basic_filebuf/overflow/char/13858.cc:
4353 Qualify exception with std::.
4354 * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Ditto.
4355 * testsuite/27_io/basic_filebuf/overflow/wchar_t/13858.cc: Ditto.
4356 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
4357 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
4358 * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
4360 2004-02-16 Paolo Carlini <pcarlini@suse.de>
4362 * testsuite/ext/enc_filebuf/char/13189.cc: Don't check
4363 for now that the catch block is not reached.
4364 * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Likewise.
4366 2004-02-16 Paolo Carlini <pcarlini@suse.de>
4368 * include/bits/locale_facets.tcc (money_get::do_get(string_type&)):
4369 Fix parsing of the remaining sign characters.
4370 * 22_locale/money_get/get/char/2.cc: Tweak: now, correctly,
4371 the input is scanned 'til eof.
4372 * 22_locale/money_get/get/char/4.cc: Likewise.
4373 * 22_locale/money_get/get/wchar_t/2.cc: Likewise.
4374 * 22_locale/money_get/get/wchar_t/4.cc: Likewise.
4375 * 22_locale/money_get/get/char/8.cc: Tweak: override do_neg_format,
4376 not do_pos_format: the former is the only one that matters during
4378 * 22_locale/money_get/get/wchar_t/8.cc: Likewise.
4380 * 22_locale/money_get/get/char/6.cc: Minor tweak.
4381 * 22_locale/money_get/get/wchar_t/6.cc: Likewise.
4383 2004-02-15 David Asher <david.asher@cavium.com>
4386 * include/bits/locale_facets.tcc (__pad<>::_S_pad): Don't
4387 access __olds beyond __oldlen.
4389 2004-02-14 Paolo Carlini <pcarlini@suse.de>
4391 * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Make
4392 sure the exception is actually thrown.
4393 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
4394 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
4395 * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
4397 2004-02-14 Paolo Carlini <pcarlini@suse.de>
4400 * include/bits/fstream.tcc (basic_filebuf<>::_M_convert_to_external):
4401 In case of conversion errors, throw ios_failure; simplify.
4402 * testsuite/27_io/basic_filebuf/overflow/char/13858.cc: New.
4403 * testsuite/27_io/basic_filebuf/overflow/wchar_t/13858.cc: Ditto.
4404 * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Tweak,
4405 previously we didn't throw in case of conversion errors, instead
4406 just returned eof().
4407 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
4408 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
4409 * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
4411 * include/bits/fstream.tcc (basic_filebuf<>::overflow):
4412 Trivial simplification of a conditional.
4414 2004-02-12 Paolo Carlini <pcarlini@suse.de>
4416 PR libstdc++/13731 (final part: writev)
4417 * config/io/basic_file_stdio.cc (__gnu_internal::xwritev):
4418 New, a wrapper around writev() handling partial writes.
4419 (__basic_file<char>::xwrite): Move to __gnu_internal and make
4421 (__basic_file<char>::xsputn): Update call.
4422 (__basic_file<char>::xsputn_2): Likewise.
4423 * config/io/basic_file_stdio.h (__basic_file<char>::xwrite):
4424 Don't declare, now static.
4426 2004-02-11 Stefan Olsson <stefan@xapa.se>
4428 * docs/html/ext/mt_allocator.html: New.
4430 2004-02-11 Benjamin Kosnik <bkoz@redhat.com>
4432 * docs/html/20_util/allocator.html: New file, consolidate
4433 allocator information here. Revamp.
4434 * docs/html/documentation.html: Change links.
4435 * docs/html/20_util/howto.html: Same.
4436 * docs/html/ext/howto.html: Same.
4438 2004-02-11 Paolo Carlini <pcarlini@suse.de>
4440 PR libstdc++/13731 (first part: write)
4441 * config/io/basic_file_stdio.h (__basic_file<char>::xwrite):
4443 * config/io/basic_file_stdio.cc (__basic_file<char>::xwrite):
4444 Define it: a wrapper around write() handling partial write.
4445 (__basic_file<char>::xsputn): Use it.
4446 (__basic_file<char>::xsputn_2): Likewise.
4448 2004-02-11 Paolo Carlini <pcarlini@suse.de>
4449 Petur Runolfsson <peturr02@ru.is>
4452 * include/std/std_istream.h (operator>>(__istream_type& (*)
4453 (__istream_type&)), operator>>(__ios_type& (*)(__ios_type&)),
4454 operator>>(ios_base& (*)(ios_base&))): Declare inline.
4455 * include/std/std_ostream.h (operator<<(__ostream_type& (*)
4456 (__ostream_type&)), operator<<(__ios_type& (*)(__ios_type&)),
4457 operator<<(ios_base& (*) (ios_base&))): Likewise.
4458 * testsuite/performance/27_io/fmtflags_manipulators.cc: New.
4460 2004-02-10 Loren J. Rittle <ljrittle@acm.org>
4463 * config/linker-map.gnu: Add typeinfo and typeinfo name for
4464 __gnu_cxx::stdio_sync_filebuf<char, std::char_traits<char> >.
4467 * config/linker-map.gnu: Add typeinfo and typeinfo name for
4468 __gnu_cxx::stdio_filebuf<char, std::char_traits<char> >.
4470 2004-02-09 Loren J. Rittle <ljrittle@acm.org>
4472 * include/ext/pool_allocator.h: Include c++config.h.
4474 2004-02-09 Stefan Olsson <stefan@xapa.se>
4476 * include/ext/mt_allocator.h: thread_id is unused in non threaded
4477 applications and now has a ifdef to remove it completely on
4478 compilers without thread support. Include stdlib.h due to a
4479 compiler warning on getenv().
4481 2004-02-09 Paul Brook <paul@codesourcery.com>
4483 * libstdc++-v3/configure.host: Explicitly check for atomicity.h file.
4485 2004-02-09 Paolo Carlini <pcarlini@suse.de>
4488 * src/locale_init.cc (locale::global(const locale&)): Use
4489 locale::name() in order to decide whether calling setlocale.
4490 * testsuite/22_locale/locale/global_locale_objects/14071.cc: New.
4492 * include/bits/locale_classes.h (locale::_Impl::_M_check_same_name()):
4493 Avoid computing &= unnecessarily.
4495 2004-02-09 James E Wilson <wilson@specifixinc.com>
4498 * libsuspc++/eh_personality.cc (PERSONALITY_FUNCTION): Use
4499 __builtin_extend_pointer.
4501 2004-02-09 Paolo Carlini <pcarlini@suse.de>
4504 * include/bits/basic_ios.tcc (basic_ios<>::_M_cache_locale):
4505 Don't leave dangling pointers.
4506 * testsuite/27_io/basic_ios/imbue/14072.cc: New.
4507 * testsuite/22_locale/numpunct/members/pod/2.cc: Tweak, the num_put
4508 facet is needed in the final test.
4510 2004-02-09 Bernardo Innocenti <bernie@develer.com>
4512 * crossconfig.m4: Don't enable _GLIBCXX_USE_LFS on *-uclinux*.
4513 * configure: Regenerate.
4515 2004-02-08 Richard Henderson <rth@redhat.com>
4518 * libsupc++/eh_catch.cc (__cxa_begin_catch): Don't adjust
4519 uncaughtExceptions during nested catch rethrow.
4520 * testsuite/18_support/14026.cc: New.
4522 2004-02-08 Paolo Carlini <pcarlini@suse.de>
4524 * include/bits/basic_string.tcc (assign(const _CharT*, size_type)):
4525 When working in place remember to set the state to sharable
4526 (otherwise, _M_mutate does it).
4528 2004-02-08 Bernardo Innocenti <bernie@develer.com>
4530 * include/bits/allocator.h, include/bits/basic_ios.h,
4531 include/bits/basic_ios.tcc, include/bits/basic_string.h,
4532 include/bits/basic_string.tcc, include/bits/boost_concept_check.h,
4533 include/bits/char_traits.h, include/bits/codecvt.h,
4534 include/bits/concurrence.h, include/bits/cpp_type_traits.h,
4535 include/bits/demangle.h, include/bits/deque.tcc,
4536 include/bits/fstream.tcc, include/bits/functexcept.h,
4537 include/bits/gslice.h, include/bits/gslice_array.h,
4538 include/bits/indirect_array.h, include/bits/ios_base.h,
4539 include/bits/istream.tcc, include/bits/list.tcc,
4540 include/bits/locale_classes.h, include/bits/locale_facets.h,
4541 include/bits/locale_facets.tcc, include/bits/localefwd.h,
4542 include/bits/mask_array.h, include/bits/ostream.tcc,
4543 include/bits/postypes.h, include/bits/slice_array.h,
4544 include/bits/sstream.tcc, include/bits/stl_algo.h,
4545 include/bits/stl_algobase.h, include/bits/stl_bvector.h,
4546 include/bits/stl_construct.h, include/bits/stl_deque.h,
4547 include/bits/stl_function.h, include/bits/stl_heap.h,
4548 include/bits/stl_iterator.h, include/bits/stl_iterator_base_funcs.h,
4549 include/bits/stl_list.h, include/bits/stl_map.h,
4550 include/bits/stl_multimap.h, include/bits/stl_multiset.h,
4551 include/bits/stl_numeric.h, include/bits/stl_pair.h,
4552 include/bits/stl_queue.h, include/bits/stl_raw_storage_iter.h,
4553 include/bits/stl_relops.h, include/bits/stl_set.h,
4554 include/bits/stl_stack.h, include/bits/stl_tempbuf.h,
4555 include/bits/stl_threads.h, include/bits/stl_tree.h,
4556 include/bits/stl_uninitialized.h, include/bits/stl_vector.h,
4557 include/bits/stream_iterator.h, include/bits/streambuf.tcc,
4558 include/bits/streambuf_iterator.h,include/bits/stringfwd.h,
4559 include/bits/type_traits.h, include/bits/valarray_after.h,
4560 include/bits/valarray_array.h, include/bits/valarray_array.tcc,
4561 include/bits/valarray_before.h, include/bits/vector.tcc: Remove
4562 trailing whitespace.
4564 2004-02-06 Paolo Carlini <pcarlini@suse.de>
4566 * include/bits/basic_string.h: Fix comment.
4568 2004-02-06 Paolo Carlini <pcarlini@suse.de>
4570 * include/bits/stl_construct.h: Wrap overlong lines, reformat
4571 according to the coding standards.
4572 * include/bits/stl_pair.h: Likewise.
4573 * include/bits/stl_raw_storage_iter.h: Likewise.
4574 * include/bits/stl_stack.h: Likewise.
4575 * include/bits/stl_uninitialized.h: Likewise.
4576 * include/bits/stream_iterator.h: Likewise.
4577 * include/bits/streambuf_iterator.h: Likewise.
4578 * include/bits/type_traits.h: Likewise.
4580 2004-02-06 Paolo Carlini <pcarlini@suse.de>
4582 * testsuite/27_io/basic_filebuf/open/char/9507.cc:
4585 2004-02-05 Loren J. Rittle <ljrittle@acm.org>
4587 * scripts/check_performance: Support PCH.
4589 * scripts/check_performance (CXX): Add -DNOTHREAD.
4590 * testsuite/performance/20_util/allocator/insert.cc: Integrate
4591 threaded tests from insert_insert.cc. Tweak iterations,
4592 remove special cases.
4593 * testsuite/performance/20_util/allocator/insert_insert.cc:
4594 Make all tests single-threaded. Tweak iterations.
4595 * testsuite/performance/20_util/allocator/map_thread.cc:
4597 * testsuite/performance/20_util/allocator/producer_consumer.cc:
4600 2004-02-05 Geoffrey Keating <geoffk@apple.com>
4604 * acinclude.m4 (GLIBCXX_EXPORT_INSTALL_INFO): Use 'gcc', not
4605 'gcc-lib'. Add comment about poorly-named variables.
4606 * aclocal.m4: Regenerate.
4607 * configure: Regenerate.
4609 2004-02-05 Paolo Carlini <pcarlini@suse.de>
4611 * include/bits/locale_facets.tcc (money_get::do_get(string_type&)):
4612 Thousands-sep are always optional; thousands-sep are not allowed
4613 after the decimal_point.
4614 * testsuite/22_locale/money_get/get/char/12.cc: New.
4615 * testsuite/22_locale/money_get/get/char/13.cc: New.
4616 * testsuite/22_locale/money_get/get/wchar_t/12.cc: New.
4617 * testsuite/22_locale/money_get/get/wchar_t/13.cc: New.
4619 * testsuite/22_locale/money_get/get/char/1.cc: Clean-up.
4620 * testsuite/22_locale/money_get/get/char/2.cc: Likewise.
4621 * testsuite/22_locale/money_get/get/char/3.cc: Likewise.
4622 * testsuite/22_locale/money_get/get/char/4.cc: Likewise.
4623 * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
4624 * testsuite/22_locale/money_get/get/wchar_t/2.cc: Likewise.
4625 * testsuite/22_locale/money_get/get/wchar_t/3.cc: Likewise.
4626 * testsuite/22_locale/money_get/get/wchar_t/4.cc: Likewise.
4628 * testsuite/22_locale/money_get/get/char/9.cc: Fix citation from
4630 * testsuite/22_locale/money_get/get/wchar_t/9.cc: Likewise.
4632 2004-02-05 Richard Sandiford <rsandifo@redhat.com>
4634 * config/os/irix/irix6.5/os_defines.h (_GLIBCXX_FIONREAD_TAKES_OFF_T):
4636 * config/io/basic_file_stdio.cc (__basic_file<char>::showmanyc): Use
4637 it to decide whether FIONREAD should take an off_t or int argument.
4639 2004-02-05 Paolo Carlini <pcarlini@suse.de>
4641 * include/bits/stl_function.h: Minor formatting changes.
4643 2004-02-04 Zack Weinberg <zack@codesourcery.com>
4645 Revert previous change to config/abi/*/baseline_symbols.txt.
4647 2004-02-04 Benjamin Kosnik <bkoz@redhat.com>
4648 Zack Weinberg <zack@codesourcery.com>
4650 * config/io/basic_file_stdio.cc (__gnu_internal::fopen_mode):
4652 (__basic_file<char>::sys_open, __basic_file<char>::open): Use it.
4653 (__basic_file<char>::_M_open_mode): Delete.
4654 * config/io/basic_file_stdio.cc: Delete declaration of _M_open_mode.
4656 * testsuite/27_io/basic_filebuf/close/char/9964.cc
4657 * testsuite/27_io/basic_filebuf/open/char/9507.cc:
4658 Correct flags to filebuf::open calls.
4660 * config/abi/alpha-freebsd5/baseline_symbols.txt
4661 * config/abi/alpha-linux-gnu/baseline_symbols.txt
4662 * config/abi/hppa-linux-gnu/baseline_symbols.txt
4663 * config/abi/i386-freebsd4/baseline_symbols.txt
4664 * config/abi/i386-freebsd5/baseline_symbols.txt
4665 * config/abi/i486-linux-gnu/baseline_symbols.txt
4666 * config/abi/ia64-linux-gnu/baseline_symbols.txt
4667 * config/abi/mips-linux-gnu/baseline_symbols.txt
4668 * config/abi/sparc-freebsd5/baseline_symbols.txt
4669 * config/abi/sparc-linux-gnu/baseline_symbols.txt
4670 * config/abi/x86_64-linux-gnu/baseline_symbols.txt:
4671 Remove entry for __basic_file<char>::_M_open_mode.
4673 2004-02-04 Loren J. Rittle <ljrittle@acm.org>
4675 * testsuite/performance/20_util/allocator/insert.cc (main): Tweak.
4677 2004-02-04 Felix Yen <fwy@alumni.brown.edu>
4679 * testsuite/performance/20_util/producer_consumer.cc: New.
4680 * testsuite/performance/20_util/allocator/insert_insert.cc: Two loops.
4682 2004-02-04 Benjamin Kosnik <bkoz@redhat.com>
4684 * testsuite/performance/20_util/allocator.cc: Move to..
4685 * testsuite/performance/20_util/allocator/insert.cc: ...here.
4686 * testsuite/performance/20_util/allocator_thread.cc: Move to...
4687 * testsuite/performance/20_util/allocator/insert_insert.cc: ...here.
4688 * testsuite/performance/20_util/allocator_map_thread.cc: Move to...
4689 * testsuite/performance/20_util/allocator/map_thread.cc: ...here.
4691 2004-02-04 Jonathan Wakely <redi@gcc.gnu.org>
4693 * docs/html/faq/index.html: Recommend using LD_LIBRARY_PATH.
4694 * docs/html/faq/index.txt: Regenerate.
4696 2004-02-04 Dhruv Matani <dhruvbird@gmx.net>
4698 * include/ext/debug_allocator.h: _M_extra now stands for the
4699 number of extra objects instead of the number of extra bytes.
4700 (debug_allocator::allocate): Adjust.
4701 (debug_allocator::deallocate): Adjust.
4703 * include/ext/pool_allocator.h: Fix typo.
4705 2004-02-03 Felix Yen <fwy@alumni.brown.edu>
4706 Benjamin Kosnik <bkoz@redhat.com>
4708 * testsuite/performance/20_util/allocator.cc: Add map,
4710 * testsuite/performance/20_util/allocator_thread.cc: Same.
4712 2004-02-03 Paolo Carlini <pcarlini@suse.de>
4714 * include/bits/basic_string.h (insert(iterator)): Remove,
4715 non-standard and already scheduled for removal.
4717 2004-02-03 Paolo Carlini <pcarlini@suse.de>
4719 * include/bits/stl_iterator_base_funcs.h: Minor formatting
4720 and indentation tweaks.
4721 * include/bits/stl_iterator_base_types.h: Likewise.
4722 * include/bits/stl_list.h: Likewise.
4723 * include/bits/stl_map.h: Likewise.
4724 * include/bits/stl_tempbuf.h: Likewise.
4726 2004-02-02 Jerry Quinn <jlquinn@optonline.net>
4728 * include/bits/gslice.h, include/bits/gslice_array.h,
4729 include/bits/indirect_array.h, include/bits/mask_array.h,
4730 include/bits/slice_array.h, include/bits/stl_numeric.h,
4731 include/std/std_valarray.h: Update copyright years.
4733 2004-02-02 Jerry Quinn <jlquinn@optonline.net>
4735 * include/bits/gslice.h (gslice): Document.
4736 * include/bits/gslice_array.h (gslice_array): Document.
4737 * include/bits/indirect_array (indirect_array): Document.
4738 * include/bits/mask_array (mask_array): Document.
4739 * include/bits/slice_array.h (slice,slice_array): Document.
4740 * include/bits/stl_numeric.h (accumulate, inner_product, partial_sum,
4741 adjacent_difference): Document
4742 * include/std/std_valarray.h (valarray): Document.
4744 2004-02-02 Benjamin Kosnik <bkoz@redhat.com>
4746 * docs/html/19_diagnostics/howto.html: Move verbose terminate
4748 * docs/html/18_support/howto.html: Here.
4749 * docs/html/documentation.html: Add reference here.
4751 2004-02-02 Paolo Carlini <pcarlini@suse.de>
4753 * config/locale/gnu/c++locale_internal.h: Remove prototypes
4754 of no longer used GLIBC thread locale functions.
4756 2004-02-02 Eric Christopher <echristo@redhat.com>
4757 Zack Weinberg <zack@codesourcery.com>
4759 * testsuite/22_locale/collate/compare/wchar_t/2.cc: Remove xfail. Use
4761 * testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc: Ditto.
4762 * testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc: Ditto
4763 * testsuite/22_locale/collate/hash/wchar_t/2.cc: Ditto.
4764 * testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc: Ditto.
4765 * testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc: Ditto.
4766 * testsuite/22_locale/collate/transform/wchar_t/2.cc: Ditto.
4767 * testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc: Ditto.
4768 * testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
4771 2004-02-02 Paolo Carlini <pcarlini@suse.de>
4773 * include/bits/stl_function.h: Additional minor tweaks.
4774 * include/bits/stl_multiset.h: Likewise.
4776 * include/bits/stl_queue.h: Minor tweaks.
4778 2004-02-02 Paolo Carlini <pcarlini@suse.de>
4780 PR libstdc++/13976 (continued)
4781 * include/ext/malloc_allocator.h (malloc_allocator::deallocate):
4782 Make the second parameter unnamed, to void unused parameter
4784 * include/ext/new_allocator.h (new_allocator::deallocate): Ditto.
4786 2004-02-02 Paolo Carlini <pcarlini@suse.de>
4789 * include/ext/malloc_allocator.h (malloc_allocator::allocate):
4790 Make the second parameter unnamed, to void unused parameter
4792 * include/ext/mt_allocator.h (__mt_alloc::allocate): Ditto.
4793 * include/ext/new_allocator.h (new_allocator::allocate): Ditto.
4795 2004-02-01 Paolo Carlini <pcarlini@suse.de>
4797 * include/bits/stl_algo.h: Additional minor tweaks.
4798 * include/bits/stl_map.h: Likewise.
4799 * include/bits/stl_multimap.h: Likewise.
4800 * include/bits/stl_multiset.h: Likewise.
4801 * include/bits/stl_set.h: Likewise.
4802 * include/bits/stl_tree.h: Likewise.
4804 2004-02-01 Paolo Carlini <pcarlini@suse.de>
4806 * include/bits/vector.tcc (vector::_M_insert_aux(iterator)):
4809 2004-02-01 Paolo Carlini <pcarlini@suse.de>
4811 * include/bits/stl_function.h: Additional minor tweaks.
4813 2004-02-01 Paolo Carlini <pcarlini@suse.de>
4815 * include/bits/deque.tcc: Wrap overlong lines, constify
4816 a few variables, reformat according to the coding standards.
4817 * include/bits/list.tcc: Likewise.
4818 * include/bits/stl_deque.h: Likewise.
4819 * include/bits/stl_function.h: Likewise.
4820 * include/bits/stl_iterator.h: Likewise.
4821 * include/bits/stl_iterator_base_funcs.h: Likewise.
4822 * include/bits/stl_iterator_base_types.h: Likewise.
4823 * include/bits/stl_list.h: Likewise.
4824 * include/bits/stl_map.h: Likewise.
4825 * include/bits/stl_multimap.h: Likewise.
4826 * include/bits/stl_multiset.h: Likewise.
4827 * include/bits/stl_relops.h: Likewise.
4828 * include/bits/stl_set.h: Likewise.
4830 2004-02-01 Paolo Carlini <pcarlini@suse.de>
4832 * include/bits/stl_bvector.h: Wrap overlong lines, constify
4833 a few variables, reformat according to the coding standards.
4834 * include/bits/stl_tree.h: Likewise.
4836 2004-01-31 Paolo Carlini <pcarlini@suse.de>
4838 * include/bits/stl_algo.h: Minor additional reformat, add
4840 * include/bits/stl_algobase.h: Add copyright year.
4842 2004-01-31 Paolo Carlini <pcarlini@suse.de>
4844 * include/bits/stl_algo.h: Wrap overlong lines, constify
4845 a few variables, reformat according to the coding standards.
4846 * include/bits/stl_algobase.h: Likewise.
4847 * include/bits/stl_heap.h: Likewise.
4849 2004-01-31 Paolo Carlini <pcarlini@suse.de>
4851 * include/bits/basic_string.h (_Rep::operator[]): Remove, unused.
4853 * include/bits/basic_string.h: Fix two comments.
4855 2004-01-31 Per Bothner <per@bothner.com>
4857 * include/ext/mt_allocator.h
4858 (__mt_alloc::_S_thread_freelist_mutex): Guard with
4859 __GTHREAD_MUTEX_INIT.
4861 2004-01-31 Paolo Carlini <pcarlini@suse.de>
4863 * include/bits/basic_string.tcc (_Rep::_S_create): Minor tweak.
4865 2004-01-30 Paolo Carlini <pcarlini@suse.de>
4867 * testsuite/21_strings/basic_string/cons/char/6.cc: New.
4868 * testsuite/21_strings/basic_string/cons/wchar_t/6.cc: New.
4869 * testsuite/performance/21_strings/string_cons_input_iterator.cc: New.
4871 2004-01-30 Felix Yen <fwy@alumni.brown.edu>
4873 * testsuite/performance/20_util/allocator_thread.cc (do_loop):
4874 Don't use clear, but instead assign. Use insert.
4876 2004-01-30 Benjamin Kosnik <bkoz@redhat.com>
4878 * src/demangle.cc: Add instantiations.
4879 * src/Makefile.am: Remove special rules for demangle.lo, demangle.o.
4880 * src/Makefile.in: Regenerate.
4882 2004-01-30 David Edelsohn <edelsohn@gnu.org>
4884 * src/allocator.cc: Protect _S_get_thread_id() and
4885 _S_thread_key_destr() with #ifdef __GTHREADS.
4887 2004-01-30 Paolo Carlini <pcarlini@suse.de>
4889 Reshuffle performance testsuite.
4890 * testsuite/performance/allocator.cc, allocator_map_thread.cc,
4891 allocator_thread.cc, complex_norm.cc, container_benchmark.cc,
4892 cout_insert_int.cc, filebuf_copy.cc, filebuf_sputc.cc,
4893 fstream_seek_write.cc, ifstream_extract_float.cc,
4894 ifstream_extract_int.cc, ifstream_getline.cc, is_wchar_t.cc,
4895 list_create_fill_sort.cc, map_create_fill.cc,
4896 narrow_widen_char.cc, narrow_widen_wchar_t.cc,
4897 ofstream_insert_float.cc, ofstream_insert_int.cc,
4898 string_append.cc, wchar_t_in.cc, wchar_t_length.cc,
4899 wchar_t_out.cc: Split into...
4900 * testsuite/performance/20_util/allocator.cc: New.
4901 * testsuite/performance/20_util/allocator_map_thread.cc: New.
4902 * testsuite/performance/20_util/allocator_thread.cc: New.
4903 * testsuite/performance/21_strings/string_append: New.
4904 * testsuite/performance/22_locale/is_wchar_t.cc: New.
4905 * testsuite/performance/22_locale/narrow_widen_char.cc: New.
4906 * testsuite/performance/22_locale/narrow_widen_wchar_t.cc: New.
4907 * testsuite/performance/22_locale/wchar_t_in.cc: New.
4908 * testsuite/performance/22_locale/wchar_t_length.cc: New.
4909 * testsuite/performance/22_locale/wchar_t_out.cc: New.
4910 * testsuite/performance/23_containers/container_benchmark.cc: New.
4911 * testsuite/performance/23_containers/list_create_fill_sort.cc: New.
4912 * testsuite/performance/23_containers/map_create_fill.cc: New.
4913 * testsuite/performance/26_numerics/complex_norm.cc: New.
4914 * testsuite/performance/27_io/cout_insert_int.cc: New.
4915 * testsuite/performance/27_io/filebuf_copy.cc: New.
4916 * testsuite/performance/27_io/filebuf_sputc.cc: New.
4917 * testsuite/performance/27_io/fstream_seek_write.cc: New.
4918 * testsuite/performance/27_io/ifstream_extract_float.cc: New.
4919 * testsuite/performance/27_io/ifstream_extract_int.cc: New.
4920 * testsuite/performance/27_io/ifstream_getline.cc: New.
4921 * testsuite/performance/27_io/ofstream_insert_float.cc: New.
4922 * testsuite/performance/27_io/ofstream_insert_int.cc: New.
4924 2004-01-30 Paolo Carlini <pcarlini@suse.de>
4926 * include/bits/basic_string.tcc (_Rep::_S_create):
4927 Never allocate a string bigger than max_size(); always keep
4928 __capacity and __size in sync to avoid memory leaks at
4931 2004-01-30 Paolo Carlini <pcarlini@suse.de>
4933 * include/bits/basic_string.tcc (_S_construct(_InIterator,
4934 _InIterator, const _Alloc&, input_iterator_tag)): Simplify
4935 the double loop, streamline.
4937 * include/bits/basic_string.tcc: Very minor tweaks.
4939 2004-01-30 Loren J. Rittle <ljrittle@acm.org>
4941 * scripts/check_performance: Only compile with $THREAD_FLAG
4942 when test is marked to require it. Allow multiple
4943 compilations/executions of marked tests.
4944 * testsuite/testsuite_performance.h (report_performance):
4945 Report dynamic thread support status.
4946 (report_header): Likewise.
4947 * testsuite/performance/allocator.cc: Stabilize iteration
4948 count. Support more allocators. Mark each allocator test to
4949 run and report independently.
4950 * testsuite/performance/allocator_map_thread.cc: Likewise.
4951 * testsuite/performance/allocator_thread.cc: Likewise.
4953 2004-01-29 Stephen M. Webb <stephen.webb@bregmasoft.com>
4955 * config/local/generic/c_locale.h: Change ::malloc() to new char[].
4956 * config/local/gnu/c_locale.h: Change ::malloc() to new char[].
4957 * include/bits/stl_tempbuf.h: Convert _Temporary_buffer to use
4958 std::get_temporary_buffer() instead of duplicating its code.
4959 Update to C++STYLE conventions.
4960 * include/std/std_memory.h (get_temporary_buffer): Use ::operator
4961 new() instead of std::malloc().
4962 (return_temporary_buffer): Use ::operator delete() instead of
4965 2004-01-29 Benjamin Kosnik <bkoz@redhat.com>
4967 * include/bits/allocator.h: Temporary switch to new_allocator as
4968 the default to unjam bootstraps.
4970 2004-01-28 Benjamin Kosnik <bkoz@redhat.com>
4972 * include/Makefile.am (bits_headers): Remove allocator_traits.h.
4973 * include/Makefile.in: Regenerate.
4974 * include/bits/allocator_traits.h: Remove.
4975 * include/bits/allocator.h: Remove allocator_traits.h include, and
4977 (allocator): Empty base class, inherit from the underlying allocator.
4978 * src/allocator-inst.cc: Move __pool_alloc instantiation to...
4979 * src/allocator.cc: ...here. New. For the underlying allocators.
4980 Add __mt_alloc, __pool_alloc, new_allocator, malloc_allocator bits.
4981 * config/linker-map.gnu: Remove __pool_alloc bits.
4982 * src/Makefile.am (sources): Add allocator.cc.
4983 * src/Makefile.in: Regenerate.
4984 * testsuite/20_util/allocator/1.cc: Split second test into...
4985 * testsuite/20_util/allocator/8230.cc: ...this.
4986 * include/bits/stl_bvector.h (__gnu_norm): Change bit_vector
4987 typedef to use std::allocatore. Format.
4988 * include/ext/pool_allocator.h: Remove allocator_traits.h include,
4990 * include/ext/mt_allocator.h (__gnu_cxx): Qualify
4991 __throw_bad_alloc calls. Don't include <memory>.
4992 * include/ext/malloc_allocator.h: Remove <memory> include.
4993 * include/ext/new_allocator.h (new_allocator): Same.
4994 * include/ext/ropeimpl.h (__gnu_cxx): Remove __alloc using
4995 declaration. Switch __alloc to _Alloc.
4996 * include/ext/hashtable.h: Remove __alloc.
4997 * include/backward/alloc.h: Only inject allocator, not
4998 implementation details.
5000 * include/ext/mt_allocator.h: Replace free with delete.
5002 2004-01-28 Benjamin Kosnik <bkoz@redhat.com>
5004 * src/globals_io.cc: Change to __gnu_internal namespace.
5005 * src/globals_locale.cc: Same.
5006 * src/locale_init.cc: Same.
5007 * src/ios_init.cc: Same.
5009 2004-01-28 Stefan Olsson <stefan@snon.net>
5011 * include/ext/mt_allocator.h: Replaced all malloc() calls with
5012 operator new(). Added support for the env variable
5013 GLIBCXX_FORCE_NEW (this required the _S_init call to be the first
5014 one in allocate() as well). Fix typos.
5016 2004-01-28 Paolo Carlini <pcarlini@suse.de>
5018 * include/bits/basic_string.h (_S_create(size_t,
5019 const _Alloc&): Change signature to take two size_type
5021 * include/bits/basic_string.tcc (_S_construct(_InIterator,
5022 _InIterator, const _Alloc&, input_iterator_tag)): Update
5024 (_S_construct(_InIterator, _InIterator, const _Alloc&,
5025 forward_iterator_tag)): Likewise.
5026 (_S_construct(size_type, _CharT, const _Alloc&)): Likewise.
5027 (_M_mutate(size_type, size_type, size_type)): Don't
5028 implement the exponential growth policy, demand it to
5029 _S_create, update call and simplify.
5030 (_M_clone(const _Alloc&, size_type)): Likewise.
5031 (_S_create(size_type, size_type, const _Alloc&)): Implement
5032 the growth policy, simplify otherwise.
5034 * include/bits/basic_string.h (_Rep::operator[]): Tweak
5035 signature to take a size_type, consistently with the other
5038 2004-01-27 Benjamin Kosnik <bkoz@redhat.com>
5040 * testsuite/27_io/ios_base/storage/11584.cc: Correct new and
5041 delete declarations, add include and test variable.
5043 2003-01-27 Jerry Quinn <jlquinn@optonline.net>
5045 * include/bits/codecvt.h, include/bits/locale_facets.h,
5046 include/bits/postypes.h, include/bits/stl_bvector.h,
5047 include/bits/stl_multiset.h, include/bits/stl_set.h,
5048 include/bits/stream_iterator.h, include/bits/streambuf_iterator.h,
5049 include/std/std_complex.h: Document.
5051 2004-01-27 Jerry Quinn <jlquinn@optonline.net>
5054 * include/bits/ios_base.h (ios_base::_M_grow_words): Add
5055 iword/pword selector.
5056 (ios_base::iword, ios_base::pword): Use it.
5057 * src/ios.cc (ios_base::_M_grow_words): Clear _M_word_zero
5058 iword or pword member on alloc failure.
5059 * testsuite/27_io/ios_base/storage/11584.cc: New test.
5061 2004-01-27 Ulrich Weigand <uweigand@de.ibm.com>
5062 PJ Darcy <darcypj@us.ibm.com>
5064 * configure.host: Add support for *-tpf.
5065 * crossconfig.m4: Likewise.
5066 * configure: Regenerate.
5067 * config/os/tpf: New directory.
5068 * config/os/tpf/os_defines.h: New file.
5069 * config/os/tpf/ctype_base.h: Likewise.
5070 * config/os/tpf/ctype_inline.h: Likewise.
5071 * config/os/tpf/ctype_noninline.h: Likewise.
5073 2004-01-27 Paolo Carlini <pcarlini@suse.de>
5076 * include/bits/sstream.tcc: Guard use of extern template.
5078 2004-01-27 Paolo Carlini <pcarlini@suse.de>
5080 * include/bits/basic_string.tcc
5081 (basic_string(const basic_string&, size_type, size_type),
5082 basic_string(const basic_string&, size_type, size_type,
5083 const _Alloc&)): Avoid unnecessarily constructing iterators.
5085 2004-01-26 Paolo Carlini <pcarlini@suse.de>
5087 * config/locale/generic/c_locale.cc: Fix throw messages
5088 to use the __N marker.
5089 * config/locale/gnu/c_locale.cc: Likewise.
5090 * config/locale/ieee_1003.1-2001/codecvt_specializations.h:
5092 * docs/html/17_intro/C++STYLE: Likewise.
5093 * include/bits/basic_ios.tcc: Likewise.
5094 * include/bits/fstream.tcc: Likewise.
5095 * include/bits/vector.tcc: Likewise.
5096 * include/ext/ropeimpl.h: Likewise.
5097 * include/std/std_bitset.h: Likewise.
5098 * src/ios.cc: Likewise.
5099 * src/locale.cc: Likewise.
5100 * src/localename.cc: Likewise.
5102 2004-01-26 Paolo Carlini <pcarlini@suse.de>
5104 * include/bits/basic_string.h (_M_replace_aux): Use the
5105 __N marker in throw message.
5106 * include/bits/basic_string.tcc (assign(const _CharT*,
5107 size_type), insert(size_type, const _CharT*, size_type),
5108 replace(size_type, size_type, const _CharT*, size_type),
5109 reserve, _Rep::_S_create, resize, _M_replace_dispatch):
5112 * include/bits/basic_string.h, include/bits/basic_string.tcc:
5113 Fold overlong lines, minor formatting changes.
5115 2004-01-26 Paolo Carlini <pcarlini@suse.de>
5117 * include/bits/basic_string.h (replace(iterator, iterator,
5118 const basic_string&)): Remove _GLIBCXX_DEBUG_PEDASSERT.
5119 (replace(iterator, iterator, const _CharT*)): Ditto.
5120 (replace(iterator, iterator, const _CharT*, size_type)):
5121 Add missing _GLIBCXX_DEBUG_PEDASSERT.
5123 2004-01-26 Paolo Carlini <pcarlini@suse.de>
5125 * include/bits/basic_string.tcc (replace(size_type,
5126 size_type, const _CharT*, size_type)): Implement optimized
5127 in-place algorithm for non-overlapping ranges.
5128 * testsuite/21_strings/basic_string/replace/char/6.cc: New.
5129 * testsuite/21_strings/basic_string/replace/wchar_t/6.cc: New.
5131 * include/bits/basic_string.tcc (insert(size_type,
5132 const _CharT*, size_type)): Tweak slightly.
5134 2004-01-26 Andreas Schwab <schwab@suse.de>
5136 * config/locale/gnu/monetary_members.cc: Restore locale before
5137 rethrowing exception.
5139 2004-01-25 Paolo Carlini <pcarlini@suse.de>
5141 * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
5143 * include/bits/basic_string.tcc (_M_replace_aux, _M_replace_safe):
5146 * include/bits/basic_string.tcc: Very minor tweaks.
5148 2004-01-25 Paolo Carlini <pcarlini@suse.de>
5150 * testsuite/performance/string_append.cc: Increase number
5153 2004-01-25 Paolo Carlini <pcarlini@suse.de>
5155 * include/bits/basic_string.h (erase(size_type, size_type),
5156 erase(iterator), erase(iterator, iterator)): Call _M_replace_safe
5157 instead, thus avoiding redundant check for length_error.
5159 * include/bits/basic_string.h: Tweak some comments.
5161 2004-01-24 Paolo Carlini <pcarlini@suse.de>
5163 * include/bits/basic_string.tcc (operator+(const _CharT*,
5164 const basic_string&)): No need to go through the append
5165 taking two iterators.
5167 2004-01-24 Paolo Carlini <pcarlini@suse.de>
5169 * include/bits/basic_string.tcc (rfind(_CharT, size_type)):
5170 Revert last change to use std::min: machine language is worse.
5171 (find_last_of(const _CharT*, size_type, size_type)): Ditto.
5172 (find_last_not_of(const _CharT*, size_type, size_type)): Ditto.
5173 (find_last_not_of(_CharT, size_type)): Ditto.
5175 * include/bits/basic_string.tcc (insert(size_type, const _CharT*,
5176 size_type)): Discard the value returned by _M_check.
5177 (replace(size_type, size_type, const _CharT*, size_type)): Ditto.
5178 (append(const basic_string&, size_type, size_type)): Ditto.
5179 (copy(_CharT*, size_type, size_type)): Ditto.
5180 (compare(size_type, size_type, const basic_string&)): Ditto.
5181 (compare(size_type, size_type, const basic_string&,
5182 size_type, size_type)): Ditto.
5183 (compare(size_type, size_type, const _CharT*)): Ditto.
5184 (compare(size_type, size_type, const _CharT*, size_type)): Ditto.
5186 2004-01-24 Paolo Carlini <pcarlini@suse.de>
5188 * include/bits/basic_string.h (insert(size_type,
5189 const basic_string&, size_type, size_type)): Define inline here.
5190 * include/bits/basic_string.tcc (insert(size_type,
5191 const basic_string&, size_type, size_type)): Move inline.
5193 2004-01-24 Paolo Carlini <pcarlini@suse.de>
5195 * include/bits/basic_string.h (assign(const basic_string&,
5196 size_type, size_type)): Define inline here.
5197 (replace(size_type, size_type, const basic_string&,
5198 size_type, size_type)): Ditto.
5199 (_M_replace_dispatch(iterator, iterator, _InputIterator,
5200 _InputIterator, __false_type)): Only declare.
5201 (_M_replace(iterator, iterator, _InputIterator,
5202 _InputIterator)): Remove.
5203 * include/bits/basic_string.tcc (assign(const basic_string&,
5204 size_type, size_type)): Move inline.
5205 (replace(size_type, size_type, const basic_string&,
5206 size_type, size_type)): Ditto.
5207 (_M_replace_dispatch(iterator, iterator, _InputIterator,
5208 _InputIterator, __false_type)): Define, now does also what
5209 _M_replace did before.
5210 * src/string-inst.cc (_M_replace): Don't instantiate.
5212 * include/bits/basic_string.tcc (find(const _CharT*,
5213 size_type, size_type)): Tidy.
5214 (rfind(_CharT, size_type)): Ditto.
5215 (find_first_not_of(const _CharT*, size_type, size_type)): Ditto.
5216 (find_first_not_of(_CharT, size_type)): Ditto.
5217 (find_last_not_of(const _CharT*, size_type, size_type)): Ditto.
5218 (find_last_not_of(_CharT, size_type)): Ditto.
5220 2004-01-23 Paolo Carlini <pcarlini@suse.de>
5223 * include/debug/bitset (operator|=): Fix typo.
5224 * testsuite/23_containers/bitset/operations/13838.cc: New.
5226 2004-01-23 Paolo Carlini <pcarlini@suse.de>
5228 * include/bits/basic_string.tcc (insert(size_type,
5229 const _CharT*, size_type __n)): Fix length_error check.
5230 (replace(size_type, size_type, const _CharT*, size_type):
5231 Ditto; call _M_replace_safe.
5232 (_M_replace_aux(size_type, size_type, size_type, _CharT):
5233 Fix length_error check.
5234 (_M_replace(iterator, iterator, _InputIterator,
5235 _InputIterator)): Ditto, tweak.
5236 (_M_replace_safe(size_type, size_type, const _CharT*,
5237 size_type)): Remove length_error check.
5239 * include/bits/basic_string.tcc (append(const basic_string&),
5240 append(const basic_string&, size_type, size_type)): Tweak
5243 * include/bits/basic_string.tcc (copy(_CharT*, size_type,
5244 size_type)): If __n == 0 don't call traits::copy.
5246 2004-01-23 Stefan Olsson <stefan@snon.net>
5248 * include/ext/mt_allocator.h: Reduce lock contention.
5250 2004-01-23 Paolo Carlini <pcarlini@suse.de>
5253 * include/bits/fstream.tcc (underflow): Remove unused
5255 * include/bits/streambuf_iterator.h (equal): Ditto.
5256 * include/bits/locale_facets.h (_M_convert_from_char):
5259 2004-01-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5262 * config/linker-map.gnu (nan): Delete.
5263 * libmath/mathconf.h (NAN, nan): Delete.
5264 * linkage.m4 (nan): Don't check for it.
5265 * libmath/nan.c: Delete file.
5267 * config.h.in, configure: Regenerate.
5269 2004-01-23 Paolo Carlini <pcarlini@suse.de>
5271 * include/bits/basic_string.h (push_back(_CharT)):
5272 Call _M_replace_aux.
5273 (insert(size_type, const basic_string&)): Trivial tweak.
5274 (insert(size_type, size_type, _CharT)): Call _M_replace_aux.
5275 (insert(iterator, _CharT)): Ditto.
5276 (erase(size_type, size_type)): Ditto.
5277 (erase(iterator)): Ditto.
5278 (erase(iterator, iterator)): Ditto.
5279 (replace(size_type, size_type, size_type, _CharT)): Ditto.
5281 2004-01-23 Loren J. Rittle <ljrittle@acm.org>
5284 * testsuite/performance/allocator_map_thread.cc: New test.
5286 2004-01-22 Paolo Carlini <pcarlini@suse.de>
5288 * include/bits/locale_facets.tcc
5289 (money_put::do_put(..., long double)): Use the basic_string
5290 constructor for char arrays, not that for C-strings, to pass
5291 __digits to do_put(..., const string_type&): __ws isn't
5294 2004-01-22 Paolo Carlini <pcarlini@suse.de>
5296 * include/bits/basic_string.h (_M_replace_safe): Change
5297 signatures to take size_types and const _CharT*.
5298 (_M_replace_aux): Likewise, takes size_types instead of
5300 (append(size_type, _CharT)): Update call.
5301 (assign(size_type, _CharT)): Ditto.
5302 (replace(iterator, iterator, size_type, _CharT)): Ditto.
5303 (_M_replace_dispatch(iterator, iterator, _Integer,
5304 _Integer, __true_type)): Ditto.
5305 * include/bits/basic_string.tcc (assign(const _CharT*,
5307 (insert(size_type, const _CharT*, size_type)): Ditto.
5308 (replace(size_type, size_type, const _CharT*,
5310 (_M_replace(iterator, iterator, _InputIterator,
5311 _InputIterator)): Ditto.
5312 (append(const basic_string&)): Ditto.
5313 (append(const basic_string&, size_type, size_type): Ditto.
5314 (append(const _CharT*, size_type): Ditto.
5315 (_M_replace_safe, _M_replace_safe): Change definitions
5316 accordingly, simplify.
5317 * string-inst.cc (_M_replace_safe): Don't instantiate.
5319 2004-01-21 Paolo Carlini <pcarlini@suse.de>
5321 * include/bits/basic_string.tcc (append(const basic_string&)):
5322 Revert previous change.
5323 (append(const basic_string&, size_type, size_type)): Revert
5324 previous change, use _M_check and _M_limit.
5326 2004-01-21 Paolo Carlini <pcarlini@suse.de>
5328 * include/bits/basic_string.h (_M_check): Change to return
5329 a checked __pos and take an additional const char* argument.
5330 (_M_fold): Rename to _M_limit, change to return a size_type,
5331 corresponding to the __off limited to the actual length.
5332 (insert(size_type, size_type, _CharT)): Update call, call
5334 (insert(iterator, _CharT)): Call replace(iterator, iterator,
5335 size_type, _CharT) instead.
5336 (erase(size_type, size_type)): Update calls.
5337 (replace(size_type, size_type, size_type, _CharT)): Ditto.
5338 (substr(size_type, size_type)): Use _M_check.
5339 * include/bits/basic_string.tcc (basic_string(const basic_string&,
5340 size_type, size_type)): Update calls.
5341 (basic_string(const basic_string&, size_type, size_type,
5342 const _Alloc&)): Ditto.
5343 (assign(const basic_string&, size_type, size_type)): Use the
5344 new _M_check and _M_limit.
5345 (insert(size_type, const basic_string&, size_type, size_type):
5347 (insert(size_type, const _CharT*, size_type)): Ditto.
5348 (replace(size_type, size_type, const _CharT*, size_type): Ditto.
5349 (replace(size_type, size_type, const basic_string&,
5350 size_type, size_type)): Ditto.
5351 (append(const basic_string&)): Ditto.
5352 (append(const basic_string&, size_type, size_type)): Ditto.
5353 (copy(_CharT*, size_type, size_type)): Ditto.
5354 (compare(size_type, size_type, const basic_string&)): Ditto.
5355 (compare(size_type, size_type, const basic_string&,size_type,
5357 (compare(size_type, size_type, const _CharT*)): Ditto.
5358 (compare(size_type, size_type, const _CharT*, size_type)): Ditto.
5360 2004-01-19 Stefan Olsson <stefan@snon.net>
5362 * include/ext/mt_allocator.h: If a thread, when it dies, still has
5363 memory on it's freelist this memory is not returned to global
5364 list. Simplification of deallocate so that memory is always
5365 returned to the calling thread id's freelist instead of to
5366 global. Fix typos. Add volatile where appropriate.
5368 2004-01-19 Loren J. Rittle <ljrittle@acm.org>
5370 * testsuite/ext/stdio_filebuf/char/10063-2.cc: Treat unbuffered.
5371 * testsuite/ext/stdio_filebuf/char/10063-3.cc: New test. Like -2 but
5372 use __gnu_cxx::stdio_sync_filebuf<char> instead; allow buffered stream.
5374 2004-01-19 Paolo Carlini <pcarlini@suse.de>
5376 * src/debug.cc: Make sure all the names are prefixed with
5377 double (or single) underscore.
5379 2004-01-19 Paolo Carlini <pcarlini@suse.de>
5381 * src/debug.cc: Trivial formatting change.
5383 2004-01-19 Paolo Carlini <pcarlini@suse.de>
5385 * include/bits/basic_string.tcc (_S_construct(size_type,
5386 _CharT, const _Alloc&)): Remove redundant try/catch.
5387 (_M_mutate(size_type, size_type, size_type)): Ditto.
5388 (_M_clone(const _Alloc&, size_type)): Ditto.
5390 2004-01-18 Paolo Carlini <pcarlini@suse.de>
5392 * include/bits/basic_string.h (c_str()): Simplify, due to
5393 21.3.4 the internal representation is always kept null-terminated.
5394 * include/bits/basic_string.tcc (_M_clone): Null-terminate.
5395 * testsuite/21_strings/basic_string/element_access/char/4.cc: New.
5396 * testsuite/21_strings/basic_string/element_access/wchar_t/4.cc:
5399 2004-01-18 Paolo Carlini <pcarlini@suse.de>
5401 * include/bits/basic_string.h (append(size_type, _CharT)):
5402 Moved inline, just call _M_replace_aux, no source iterators at
5403 risk of being clobbered.
5404 (assign(size_type, _CharT)): Call directly _M_replace_aux.
5405 (_M_replace(iterator, iterator, _InputIterator, _InputIterator,
5406 input_iterator_tag)): Remove fifth unused argument.
5407 (_M_replace_dispatch(iterator, iterator, _InputIterator,
5408 _InputIterator, __false_type)): Update call.
5409 * include/bits/basic_string.tcc (replace(size_type, size_type,
5410 const _CharT*, size_type)): Update call.
5411 (_M_replace_aux(iterator, iterator, size_type, _CharT)): Tweak
5412 throw string literal.
5413 (_M_replace_safe(iterator, iterator, _ForwardIterator,
5414 _ForwardIterator)): Likewise.
5415 (_M_replace(iterator, iterator, _InputIterator, _InputIterator,
5416 input_iterator_tag)): Remove fifth unused argument.
5417 (append(size_type __n, _CharT __c)): Move inline.
5418 * src/string-inst.cc (S::_M_replace(S::iterator, S::iterator,
5419 const C*, const C*, input_iterator_tag)): Remove fifth unused
5422 2004-01-16 Benjamin Kosnik <bkoz@redhat.com>
5424 * testsuite/ext/enc_filebuf/char/13189.cc: Fix guards.
5425 * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Same.
5427 2004-01-16 Danny Smith <dannysmith@users.sourceforge.net>
5429 * testsuite/testsuite_hooks.cc (try_mkfifo): Avoid calling
5432 2004-01-15 Stefan Olsson <stefan@snon.net>
5434 * include/ext/mt_allocator.h: Reuse thread id's as soon as
5435 possible by changing the behaviour of thread_freelist to do
5436 push_front when threads die instead of push_back.
5438 2004-01-14 Paolo Carlini <pcarlini@suse.de>
5440 * include/bits/locale_facets.h (struct __numpunct_cache):
5441 Add member _M_grouping_size, caching the length of _M_grouping.
5442 (__numpunct_cache<>::_M_cache): Assign the latter.
5443 (__verify_grouping): Move declaration...
5444 * include/bits/locale_facets.tcc (__verify_grouping):
5445 ... here, change signature to take a const char* and a size_t
5446 for the grouping; not a template anymore.
5447 (__add_grouping, num_put::_M_group_int, num_put::_M_group_float):
5448 Likewise change signature and tweak consistently.
5449 (num_get::_M_extract_float, num_get::_M_extract_int,
5450 num_put::_M_insert_int, num_put::_M_insert_float,
5451 money_get::do_get(string_type&), money_get::do_put(string_type)):
5453 * config/locale/generic/numeric_members.cc
5454 (numpunct<>::_M_initialize_numpunct): Assign the new member.
5455 * config/locale/gnu/numeric_members.cc
5456 (numpunct<>::_M_initialize_numpunct): Likewise.
5457 * src/locale-inst.cc (__add_grouping): Tweak signature.
5458 (__verify_grouping): Don't instantiate, not a template anymore.
5460 * include/bits/locale_facets.h: Rename _M_truename_len ->
5461 _M_truename_size, _M_falsename_len -> _M_falsename_size.
5462 * include/bits/locale_facets.tcc: Likewise.
5463 * config/locale/generic/numeric_members.cc: Likewise.
5464 * config/locale/gnu/numeric_members.cc: Likewise.
5466 2004-01-14 Stefan Olsson <stefan@snon.net>
5468 * include/ext/mt_allocator.h: Fixups.
5469 * testsuite/performance/allocator.cc: Enable __mt_alloc tests.
5470 * testsuite/performance/allocator_thread.cc: Same.
5472 2004-01-13 Benjamin Kosnik <bkoz@redhat.com>
5474 * testsuite/performance/ifstream_extract_float.cc: Add higher
5476 * testsuite/performance/ofstream_insert_float.cc: Same.
5478 2004-01-13 Paolo Carlini <pcarlini@suse.de>
5480 * src/locale-misc-inst.cc (__convert_from_v(long),
5481 __convert_from_v(unsigned long), __convert_from_v(long long),
5482 __convert_from_v(unsigned long long)): Remove, unused.
5484 2004-01-13 Benjamin Kosnik <bkoz@redhat.com>
5486 * testsuite/performance/ifstream_extract_float.cc: New.
5487 * testsuite/performance/ofstream_insert_float.cc: Float generation
5490 * 20_util/auto_ptr.cc, auto_ptr_neg.cc: Break into...
5491 * 20_util/auto_ptr/1.cc: ...this.
5492 * 20_util/auto_ptr/2.cc: Same.
5493 * 20_util/auto_ptr/3.cc: Same.
5494 * 20_util/auto_ptr/3946.cc: Same.
5495 * 20_util/auto_ptr/4.cc: Same.
5496 * 20_util/auto_ptr/5.cc: Same.
5497 * 20_util/auto_ptr/6.cc: Same.
5498 * 20_util/auto_ptr/7.cc: Same.
5499 * 20_util/auto_ptr/assign_neg.cc
5500 * 20_util/pairs.cc: Break into...
5501 * 20_util/pair/1.cc: ...this.
5502 * 20_util/pair/2.cc: Same.
5503 * 20_util/pair/3.cc: Same.
5504 * 20_util/pair/4.cc: Same.
5506 2004-01-13 Paolo Carlini <pcarlini@suse.de>
5508 * include/bits/locale_facets.tcc (num_get::do_get(void*&)):
5509 Set correctly just basefield, the only group that matters.
5511 2004-01-13 Paolo Carlini <pcarlini@suse.de>
5513 * include/ext/rope (_Rope_rep_alloc_base): Eliminate.
5514 (_Rope_rep_base): Inherit directly from the rope allocator;
5515 use rebinding instead of _Alloc_traits; pick up data member
5516 from _Rope_rep_alloc_base.
5517 (_Rope_alloc_base): Eliminate.
5518 (_Rope_base): Inherit directly from the rope allocator; use
5519 rebinding instead of _Alloc_traits; pick up data member from
5521 (rope::_S_new_RopeLeaf, rope::_S_new_RopeConcatenation,
5522 rope::_S_new_RopeFunction, rope::_S_new_RopeSubstring): Tweak.
5524 2004-01-13 Paolo Carlini <pcarlini@suse.de>
5527 * include/bits/basic_string.tcc (compare(size_type, size_type,
5528 const _CharT*, size_type)): Implement correctly the resolution
5529 of DR 5: basically, s is a char array, -not- a C string.
5530 * include/bits/basic_string.h: Tweak some comments.
5531 * testsuite/21_strings/basic_string/compare/char/13650.cc: New.
5532 * testsuite/21_strings/basic_string/compare/wchar_t/13650.cc: New.
5534 2004-01-12 Andreas Tobler <a.tobler@schweiz.ch>
5536 * testsuite/lib/libstdc++.exp: Set LD_LIBRARY_PATH_32 for
5539 2004-01-12 Paolo Carlini <pcarlini@suse.de>
5541 * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc:
5543 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc:
5546 2004-01-12 Paolo Carlini <pcarlini@suse.de>
5548 * include/bits/locale_facets.h (struct __numpunct_cache):
5549 Add members _M_truename_len and _M_falsename_len, caching
5550 the lengths of _M_truename and _M_falsename.
5551 (__numpunct_cache<>::_M_cache): Assign the latter.
5552 * include/bits/locale_facets.tcc (num_get::do_get(bool&),
5553 num_put::do_put(bool)): Use the new members, thus avoiding
5554 computing string lengths again and again.
5555 * config/locale/generic/numeric_members.cc
5556 (numpunct<>::_M_initialize_numpunct): Assign the new members.
5557 * config/locale/gnu/numeric_members.cc
5558 (numpunct<>::_M_initialize_numpunct): Likewise.
5560 2004-01-12 Mark Mitchell <mark@codesourcery.com>
5562 * testsuite/testsuite_hooks.h (__gnu_test::try_mkfifo): Declare it.
5563 * testsuite/testsuite_hooks.cc (__gnu_test::try_mkfifo): Define
5565 * testsuite/27_io/basic_filebuf/close/char/4879.cc: Use try_mkfifo
5566 and remove Cygwin XFAIL.
5567 * testsuite/27_io/basic_filebuf/close/char/9964.cc: Likewise.
5568 * testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc: Likewise.
5569 * testsuite/27_io/basic_filebuf/open/char/9507.cc: Likewise.
5570 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc:
5572 * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
5573 * testsuite/27_io/objects/char/7.cc: Likewise.
5574 * testsuite/27_io/objects/char/9661-1.cc: Likewise.
5575 * testsuite/27_io/objects/wchar_t/7.cc: Likewise.
5576 * testsuite/27_io/objects/wchar_t/9661-1.cc: Likewise.
5578 2004-01-11 Gabriel Dos Reis <gdr@integrable-solutions.net>
5580 * include/std/std_complex.h (std::complex<>::real): Return a
5581 reference. Add non-const overload.
5582 (std::complex<>::real): Likewise.
5583 (std::real): Likewise.
5584 (std::imag): Likewise.
5585 (std::operator+): Tidy.
5586 (std::operator-): Likewise.
5587 (std::operator*): Likewise.
5588 (std::operator/): Likewise.
5589 (std::operator>>): Likewise.
5591 2004-01-11 Paolo Carlini <pcarlini@suse.de>
5594 * include/bits/fstream.tcc (imbue): Exploit the external
5595 buffer to imbue 'on the fly' a new locale and convert its
5596 remainder with the new codecvt facet.
5597 (underflow): Tweak slightly to deal with this special case.
5598 * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc: New.
5599 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc: Ditto.
5600 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-3.cc: Ditto.
5601 * testsuite/27_io/objects/wchar_t/13582-1_xin.cc: Ditto.
5602 * testsuite/27_io/objects/wchar_t/13582-1_xin.in: Ditto.
5604 2004-01-10 Paolo Carlini <pcarlini@suse.de>
5606 * docs/html/ext/lwg-active.html, docs/html/ext/lwg-defects.html:
5609 2004-01-10 Paolo Carlini <pcarlini@suse.de>
5612 * include/bits/locale_classes.h (class locale): Fix category
5614 * testsuite/22_locale/locale/13630.cc: Add.
5616 2004-01-10 Giovanni Bajo <giovannibajo@gcc.gnu.org>
5618 * include/bits/locale_facets.h: Make a name really dependent. This
5619 will be needed when Core Issue 224 is implemented.
5621 2004-01-09 Paolo Carlini <pcarlini@suse.de>
5623 * testsuite/performance/allocator.cc: Demangle typeid(obj).name().
5624 * testsuite/performance/allocator_thread.cc: Likewise.
5626 2004-01-07 Benjamin Kosnik <bkoz@redhat.com>
5628 * crossconfig.m4: Add LFS, io bits to linux cross config.
5629 * acconfig.h: Remove obsolete bits, reorder.
5630 * config.h.in: Regenerate.
5634 2004-01-07 Gawain Bolton <gp.bolton@computer.org>
5636 * include/bits/stl_list.h:
5637 * include/bits/list.tc:
5639 Performance enhancements for destructor, push_front(),
5640 push_back(), pop_front(), pop_back(), sort()
5641 Eliminated static_casts where possible.
5642 Moved code out of header files into new src/list.cc
5643 implementation file for library where possible.
5644 Remove inheritance from iterator class and create separate
5645 classes for non-constant and constant iterators.
5646 * include/bits/stl_tree.h (_Rb_tree class):
5648 Only erase contents in destructor.
5649 Eliminate unnecessary initialization in assignment operator.
5650 Optimize for the nominal case by not checking whether
5651 container is empty in clear().
5652 Re-order test in _M_insert() to improve performance.
5653 Move initialization of new node's left & right pointers to
5654 src/tree.cc to where new node's colour is initialized
5655 and to reduce the amount of inline code.
5656 Use _M_leftmost() and _M_end() to improve readability where
5658 Create separate classes for non-constant and constant
5659 iterators to clarify code, avoid extra template parameters and
5660 casting away constness.
5662 2004-01-07 Benjamin Kosnik <bkoz@redhat.com>
5664 * src/Makefile.am (sources): Add list.cc, tree.cc.
5665 * src/stl_tree.cc: Move to...
5666 * src/tree.cc: ...here.
5668 * config/linker-map.gnu: Tweaks.
5669 * testsuite/23_containers/map/operators/1_neg.cc: Add excess errors.
5670 * testsuite/23_containers/set/operators/1_neg.cc: Add excess errors.
5672 * bits/stl_vector.h: Column wrap comments.
5674 2004-01-07 Loren J. Rittle <ljrittle@acm.org>
5676 (re-open) PR libstdc++/12658
5677 * src/locale_init.cc (locale::locale): Remove ill-scoped mutex.
5678 (locale::global): Likewise.
5680 2004-01-07 Paolo Carlini <pcarlini@suse.de>
5682 * testsuite/27_io/basic_istream/extractors_other/char/9318-in.cc:
5683 Remove redundant #include.
5684 * testsuite/27_io/basic_ostream/endl/char/1.cc: Likewise.
5685 * testsuite/27_io/basic_ostream/ends/char/1.cc: Likewise,
5686 re-enable normal testing.
5687 * testsuite/27_io/basic_ostream/ends/char/2.cc: Remove redundant
5689 * testsuite/27_io/basic_ostream/flush/char/1.cc: Likewise.
5690 * testsuite/27_io/basic_ostream/inserters_character/char/1.cc:
5692 * testsuite/27_io/basic_ostream/inserters_character/char/2.cc:
5694 * testsuite/27_io/basic_ostream/inserters_character/char/3.cc:
5696 * testsuite/27_io/basic_ostream/inserters_character/char/4.cc:
5698 * testsuite/27_io/basic_ostream/inserters_character/char/5.cc:
5700 * testsuite/27_io/basic_ostream/inserters_character/char/6.cc:
5702 * testsuite/27_io/basic_ostream/inserters_character/char/8.cc:
5704 * testsuite/27_io/basic_ostream/inserters_character/wchar_t/7.cc:
5705 More properly, #include <locale>.
5706 * testsuite/27_io/basic_ostream/inserters_character/wchar_t/8.cc:
5707 Remove redundant #include.
5708 * testsuite/27_io/basic_ostream/inserters_other/char/2.cc: Likewise.
5709 * testsuite/27_io/basic_ostream/inserters_other/char/3.cc: Remove
5710 redundant DejaGnu directive.
5711 * testsuite/27_io/basic_ostream/inserters_other/char/4.cc: Remove
5714 2004-01-06 Benjamin Kosnik <bkoz@redhat.com>
5715 Stefan Olsson <stefan@snon.net>
5717 * scripts/check_performance: Use -pthread.
5718 * testsuite/performance/allocator.cc: Tweaks, add list.
5719 * testsuite/performance/allocator_thread.cc: New.
5721 2004-01-06 Jerry Quinn <jlquinn@optonline.net>
5723 * include/bits/locale_facets.h: Document public classes and
5725 * include/bits/locale_facets.tcc (time_get::_M_extract_via_format):
5728 2004-01-06 Paolo Carlini <pcarlini@suse.de>
5730 * testsuite/27_io/basic_istream/extractors_other/char/1.cc:
5731 Remove redundant #includes.
5732 * testsuite/27_io/basic_istream/extractors_other/char/2.cc:
5734 * testsuite/27_io/basic_istream/extractors_other/char/3.cc:
5736 * testsuite/27_io/basic_istream/get/char/1.cc: Likewise.
5737 * testsuite/27_io/basic_istream/get/char/2.cc: Likewise.
5738 * testsuite/27_io/basic_istream/getline/char/1.cc: Likewise.
5739 * testsuite/27_io/basic_istream/getline/char/2.cc: Likewise.
5740 * testsuite/27_io/basic_istream/getline/char/3.cc: Likewise.
5741 * testsuite/27_io/basic_istream/ignore/char/1.cc: Likewise.
5742 * testsuite/27_io/basic_istream/ignore/char/6360.cc: Likewise.
5743 * testsuite/27_io/basic_istream/ignore/char/7220.cc: Likewise.
5744 * testsuite/27_io/basic_istream/peek/char/1.cc: Likewise.
5745 * testsuite/27_io/basic_istream/peek/char/6414.cc: Likewise.
5746 * testsuite/27_io/basic_istream/putback/char/1.cc: Likewise.
5747 * testsuite/27_io/basic_istream/read/char/1.cc: Likewise.
5748 * testsuite/27_io/basic_istream/read/char/2.cc: Likewise.
5749 * testsuite/27_io/basic_istream/read/char/3.cc: Likewise.
5750 * testsuite/27_io/basic_istream/readsome/char/6746-1.cc:
5752 * testsuite/27_io/basic_istream/readsome/char/6746-2.cc:
5754 * testsuite/27_io/basic_istream/readsome/char/8258.cc:
5756 * testsuite/27_io/basic_istream/seekg/char/2346-fstream.cc:
5758 * testsuite/27_io/basic_istream/seekg/char/2346-sstream.cc:
5760 * testsuite/27_io/basic_istream/seekg/char/8348-1.cc: Likewise.
5761 * testsuite/27_io/basic_istream/seekg/char/8348-2.cc: Likewise.
5762 * testsuite/27_io/basic_istream/tellg/char/8348.cc: Likewise.
5764 2004-01-04 Paolo Carlini <pcarlini@suse.de>
5766 * testsuite/27_io/basic_istream/extractors_arithmetic/char/01.cc:
5767 Remove redundant #includes.
5768 * testsuite/27_io/basic_istream/extractors_arithmetic/char/02.cc:
5770 * testsuite/27_io/basic_istream/extractors_arithmetic/char/03.cc:
5772 * testsuite/27_io/basic_istream/extractors_arithmetic/char/06.cc:
5774 * testsuite/27_io/basic_istream/extractors_arithmetic/char/07.cc:
5776 * testsuite/27_io/basic_istream/extractors_arithmetic/char/08.cc:
5778 * testsuite/27_io/basic_istream/extractors_arithmetic/char/09.cc:
5780 * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
5782 * testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc:
5784 * testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc:
5786 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/1.cc:
5788 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/2.cc:
5790 * testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc:
5793 2004-01-04 Mark Mitchell <mark@codesourcery.com>
5796 * testsuite/27_io/basic_filebuf/4.cc: Remove use of invalid copy
5798 * testsuite/27_io/basic_fstream/4.cc: Likewise.
5799 * testsuite/27_io/basic_ifstream/4.cc: Likewise.
5800 * testsuite/27_io/basic_ios/4.cc: Likewise.
5801 * testsuite/27_io/basic_iostream/4.cc: Likewise.
5802 * testsuite/27_io/basic_istream/4.cc: Likewise.
5803 * testsuite/27_io/basic_istingstream/4.cc: Likewise.
5804 * testsuite/27_io/basic_ofstream/4.cc: Likewise.
5805 * testsuite/27_io/basic_ostream/4.cc: Likewise.
5806 * testsuite/27_io/basic_ostringstream/4.cc: Likewise.
5807 * testsuite/27_io/basic_stringbuf/5.cc: Likewise.
5808 * testsuite/27_io/basic_stringstream/4.cc: Likewise.
5810 2004-01-04 Paolo Carlini <pcarlini@suse.de>
5812 * config/locale/generic/numeric_members.cc (_M_initialize_numpunct):
5813 Avoid unnecessarily zero terminating _M_atoms_out and _M_atoms_in;
5814 always use double underscored names.
5815 * config/locale/gnu/numeric_members.cc (_M_initialize_numpunct):
5817 * include/bits/locale_facets.h (struct __numpunct_cache):
5818 Dimension _M_atoms_out and _M_atoms_in one position smaller.
5819 (__numpunct_cache<>::_M_cache): Don't zero terminate _M_atoms_out