* gcc.dg/pr16286.c: Fix last change.
[official-gcc.git] / libstdc++-v3 / ChangeLog
blob3cace9cc94a08ef6b1fa5f1230bac491f9409e8f
1 2004-11-09  Paolo Carlini  <pcarlini@suse.de>
3         * include/bits/locale_facets.tcc (time_get<>::do_get_weekday,
4         time_get<>::do_get_monthname): Absolutely avoid dereferencing
5         end iterators.
7         * include/bits/locale_facets.tcc (time_get<>::_M_extract_name):
8         Minor tweak.    
10 2004-11-08  Benjamin Kosnik  <bkoz@redhat.com>
11             Doug Gregor  <dgregor@cs.indiana.edu>
13         PR libstdc++/17664
14         * src/debug.cc : Just use one mutex.
16 2004-11-08  Benjamin Kosnik  <bkoz@redhat.com>
18         * configure.ac (libtool_VERSION): To 6:4:0.
19         * configure: Regenerate.
21         * config/linker-map.gnu: Slide new symbols into GLIBCXX_3.4.4.
23         * docs/doxygen/user.cfg.in: Add more extension files.
25 2004-11-08  Paolo Carlini  <pcarlini@suse.de>
27         * include/bits/streambuf_iterator.h (class istreambuf_iterator):
28         Consistently use _M_c to cache the current char, i.e., not only
29         when operator++(int) is involved; change _M_c to mutable.
30         (_M_get()): Always save the return value of _M_sbuf->sgetc() into
31         _M_c.
32         * testsuite/22_locale/time_get/get_monthname/char/1.cc: Fix
33         (long standing) typo.
34         * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Likewise.
35         * testsuite/22_locale/time_get/get_weekday/char/1.cc: Likewise.
36         * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Likewise.
38 2004-11-08  Paolo Carlini  <pcarlini@suse.de>
40         * include/bits/istream.tcc (getline(char_type*, streamsize,
41         char_type), ignore(streamsize), ignore(streamsize, int_type)):
42         Restore a generic version of the functions, not using the
43         protected members of basic_streambuf.
44         * include/std/std_istream.h (getline(char_type*, streamsize,
45         char_type), ignore(streamsize), ignore(streamsize, int_type)):
46         Declare optimized specializations for char and wchar_t.
47         * src/istream.cc: New file, define the latter.
48         * src/Makefile.am: Add.
49         * src/Makefile.in: Regenerate.
51 2004-11-07  Paolo Carlini  <pcarlini@suse.de>
53         * testsuite/performance/27_io/ifstream_getline-2.cc: New.
55 2004-11-05  Benjamin Kosnik  <bkoz@redhat.com>
57         PR libstdc++/17218
58         PR libstdc++/17223
59         * docs/doxygen/filter: Remove.
60         * docs/doxygen/filter.sed: Remove.
61         * docs/doxygen/mainpage.html: Add link to functions.
62         * docs/doxygen/run_doxygen: Changes due to new source filtering.
63         * docs/doxygen/user.cfg.in: Update to doxygen 1.3.9.1, tweak.
64         * include/bits/allocator.h: Tweaks for doxygen.
65         * include/bits/char_traits.h: Same.
66         * include/bits/codecvt.h: Same.
67         * include/bits/concurrence.h: Same.
68         * include/bits/locale_facets.h: Same.
69         * include/ext/array_allocator.h: Same.
70         * include/ext/debug_allocator.h: Same.
71         * include/ext/malloc_allocator.h: Same.
72         * include/ext/mt_allocator.h: Same.
73         * include/ext/new_allocator.h: Same.
74         * include/ext/pool_allocator.h: Same.
75         * include/ext/stdio_sync_filebuf.h: Same.
76         * include/std/std_memory.h: Same.
77         * include/tr1/array: Same.
78         * include/tr1/tuple: Same.
79         * config/locale/ieee_1003.1-2001/codecvt_specializations.h: Same.
80         * config/os/gnu-linux/ctype_base.h: Same.
82 2004-11-04  Paolo Carlini  <pcarlini@suse.de>
84         * include/bits/locale_facets.tcc (num_get<>::do_get(bool&)):
85         Evaluate __beg == __end the exact strict minimum number of times.
87 2004-11-03  Jonathan Wakely  <redi@gcc.gnu.org>
89         * include/bits/stl_numeric.h (partial_sum, adjacent_difference):
90         Avoid dereferencing two times __first in the prologue.
92 2004-11-03  Paolo Carlini  <pcarlini@suse.de>
94         * include/bits/stl_numeric.h: Trivial formatting fixes.
96 2004-11-03  Benjamin Kosnik  <bkoz@redhat.com>
98         * include/bits/c++config: Spacing.
99         * libsupc++/del_op.cc: Include c++config.h.
100         * libsupc++/del_opnt.cc: Same.
101         * libsupc++/del_opv.cc: Same.
102         * libsupc++/del_opvnt.cc: Same.
103         * libsupc++/new_op.cc: Same.
104         * libsupc++/new_opnt.cc: Same.
105         * libsupc++/new_opv.cc: Same.
106         * libsupc++/new_opvnt.cc: Same.
108 2004-11-03  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
110         * config/os/bsd/darwin/os_defines.h
111         (_GLIBCXX_WEAK_DEFINITION): Define.
112         * include/bits/c++config (_GLIBCXX_WEAK_DEFINITION): Define.
113         * libsupc++/del_op.cc (operator delete(void *)): Use
114         _GLIBCXX_WEAK_DEFINITION.
115         * libsupc++/del_opnt.cc
116         (operator delete(void *, const std::nothrow_t&)): Same.
117         * libsupc++/del_opv.cc (operator delete[](void *)): Same.
118         * libsupc++/del_opvnt.cc
119         (operator delete[](void *, const std::nothrow_t&)): Same.
120         * libsupc++/new_op.cc (operator new(std::size_t)): Same.
121         * libsupc++/new_opnt.cc
122         (operator new(std::size_t, const std::nothrow_t&)): Same
123         * libsupc++/new_opv.cc (operator new[](std::size_t)): Same.
124         * libsupc++/new_opvnt.cc
125         (operator new[](std::size_t, const std::nothrow_t&)): Same.
127 2004-11-02  Paolo Carlini  <pcarlini@suse.de>
129         * include/bits/locale_facets.tcc (num_get<>::_M_extract_int):
130         Evaluate *__beg the exact strict minimum number of times; likewise
131         for __beg != __end; slightly simplify main parsing loop.
133 2004-11-02  Benjamin Kosnik  <bkoz@redhat.com>
134             Lothar Werzinger  <lothar@xcerla.com>
135         
136         PR libstdc++/17664
137         * src/debug.cc: Include concurrence, use mutexes.
138         (_Safe_iterator_base::_M_attach): Here. 
139         (_Safe_iterator_base::_M_detach): Here. 
140         
141 2004-11-02  Benjamin Kosnik  <bkoz@redhat.com>
143         PR libstdc++/17922
144         * include/bits/ios_base.h : Add enum values.
145         * testsuite/testsuite_hooks.h (bitmask_operators): Add function.
146         * testsuite/27_io/ios_base/types/fmtflags/bitmask_operators.cc: New.
147         * testsuite/27_io/ios_base/types/fmtflags/case_label.cc: New.
148         * testsuite/27_io/ios_base/types/iostate/bitmask_operators.cc: New.
149         * testsuite/27_io/ios_base/types/iostate/case_label.cc: New.
150         * testsuite/27_io/ios_base/types/openmode/bitmask_operators.cc: New.
151         * testsuite/27_io/ios_base/types/openmode/case_label.cc: New.
152         * testsuite/27_io/ios_base/types/seekdir/case_label.cc: New.
154         * config/io/c_io_stdio.h (__ios_flags): Mark deprecated.
155         * src/ios.cc: Same.
157         * testsuite/27_io/ios_base/cons/assign_neg.cc: Adjust line numbers.
158         * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
160 2004-11-01  Momchil Velikov  <velco@fadata.bg>
162         PR libstdc++/18185
163         * libsupc++/eh_globals.cc (get_globals_dtor): Delete unhandled
164         exceptions.
165         * testsuite/thread/18185.cc: New.
166         
167 2004-11-01  Chris Jefferson  <chris@bubblescope.net>
169         PR libstdc++/18159
170         * include/tr1/tuple (get(pair)): Change occurrences of _I to _Int.
171         (get(const pair)): Likewise.
173 2004-11-01  Paolo Carlini  <pcarlini@suse.de>
175         * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
176         Evaluate *__beg the exact strict minimum number of times; likewise
177         for __beg != __end; in the main parsing loop, call ++__beg in two
178         places only. The former is also a correctness issue, because,
179         according to the standard (22.2.2.1.2, Stage 2), 'in' shall be
180         dereferenced only one time for each increment.
182 2004-10-31  Benjamin Kosnik  <bkoz@redhat.com>
184         PR c++/16728
185         * testsuite/23_containers/set/modifiers/16728.cc: New.
187 2004-10-30  Paolo Carlini  <pcarlini@suse.de>
189         * include/ext/bitmap_allocator.h (allocate(size_type)): Minor tweak.
191         * testsuite/ext/bitmap_allocator/check_delete.cc: New.
192         * testsuite/ext/bitmap_allocator/check_new.cc: Likewise.
194 2004-10-29  Geoffrey Keating  <geoffk@apple.com>
196         * configure.host (darwin*): Set os_include_dir to a separate directory
197         for Darwin.
198         * acinclude.m4 (GLIBCXX_ENABLE_CLOCALE): Add a new C locale kind,
199         'darwin'.
200         * config/locale/darwin/ctype_members.cc: New.
201         * config/os/bsd/darwin/ctype_base.h: New.
202         * config/os/bsd/darwin/ctype_inline.h: New.
203         * config/os/bsd/darwin/ctype_noninline.h: New.
204         * config/os/bsd/darwin/os_defines.h: New.
206         * testsuite/22_locale/locale/cons/12658_thread-1.cc: Only xfail
207         on Linux.
209 2004-10-29  Chris Jefferson  <chris@bubblescope.net>
211         * include/bit/stl_algo.h (find_first_of(,,,,pred)):
212         Remove invalid EqualOpConcept.
213         * testsuite/25_algorithms/find_first_of/concept_check_1.cc: New.
215 2004-10-29  Benjamin Kosnik  <bkoz@redhat.com>
217         * testsuite/testsuite_allocator.h (check_delete): New.
218         (check_new): Simplify.
219         * testsuite/ext/array_allocator/check_delete.cc: New.
220         * testsuite/ext/array_allocator/check_new.cc: Simplify.
221         * testsuite/ext/debug_allocator/check_delete.cc: New.
222         * testsuite/ext/debug_allocator/check_new.cc: Simplify.
223         * testsuite/ext/malloc_allocator/check_delete.cc: New.
224         * testsuite/ext/malloc_allocator/check_new.cc: Simplify.
225         * testsuite/ext/mt_allocator/check_delete.cc: New.
226         * testsuite/ext/mt_allocator/check_new.cc: Simplify.
227         * testsuite/ext/new_allocator/check_delete.cc: New.
228         * testsuite/ext/new_allocator/check_new.cc: Simplify.
229         * testsuite/ext/pool_allocator/check_delete.cc: New.
230         * testsuite/ext/pool_allocator/check_new.cc: Simplify.
232 2004-10-28  Chris Jefferson  <chris@bubblescope.net>
234         PR libstdc++/18159
235         * include/tr1/tuple: Fix, change formatting.
237 2004-10-28  Benjamin Kosnik  <bkoz@redhat.com>
239         * include/ext/mt_allocator.h (__common_pool_policy): Add template
240         template parameter for pool class type.
241         (__per_type_pool_policy): Same.
242         (__mt_allocator): Don't inherit policy. Qualify policy_type calls.
243         * testsuite/ext/mt_allocator/check_deallocate_null.cc: Fix.
244         * testsuite/ext/mt_allocator/check_deallocate_null_thread.cc: Same.
245         * testsuite/ext/mt_allocator/deallocate_global-2.cc: Same.
246         * testsuite/ext/mt_allocator/deallocate_global-4.cc: Same.
247         * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: Same.
248         * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: Same.
249         * testsuite/ext/mt_allocator/deallocate_local-2.cc: Same.
250         * testsuite/ext/mt_allocator/deallocate_local-4.cc: Same.
251         * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: Same.
252         * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: Same.
253         * testsuite/ext/mt_allocator/instantiate.cc: Same.
254         * testsuite/ext/mt_allocator/tune-1.cc: Same.
255         * testsuite/ext/mt_allocator/tune-2.cc: Same.
256         * testsuite/ext/mt_allocator/tune-3.cc: Same.
257         * testsuite/ext/mt_allocator/tune-4.cc: Same.
259 2004-10-28  Paolo Carlini  <pcarlini@suse.de>
261         * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
262         Cache *__beg in __c when parsing exponent sign too.
263         (num_get<>::do_get(..., bool&)): Cache *__beg.
264         (money_get<>::_M_extract)): Likewise, in money_base::value.
266 2004-10-27  Paolo Carlini  <pcarlini@suse.de>
268         * include/bits/basic_string.h (assign(const basic_string&)):
269         Move out of line...
270         * include/bits/basic_string.tcc: ... here.
272 2004-10-27  Paolo Carlini  <pcarlini@suse.de>
274         * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
275         Move out of line...
276         * include/bits/basic_string.tcc: ... here.
278 2004-10-26  Paolo Carlini  <pcarlini@suse.de>
280         * include/bits/basic_string.h (append(const basic_string&),
281         append(size_type, _CharT)): Move out of line...
282         * include/bits/basic_string.tcc: ... here.
284 2004-10-26  Paolo Carlini  <pcarlini@suse.de>
286         * include/bits/basic_string.h (erase(size_type, size_type),
287         erase(iterator), erase(iterator, iterator)): Call _M_mutate
288         instead of _M_replace_safe, equivalent when the fourth argument
289         is zero and simpler.
291 2004-10-26  Benjamin Kosnik  <bkoz@redhat.com>
293         * include/ext/array_allocator.h (array::allocate): Check for valid
294         array object, use its size member function directly.
295         * testsuite/ext/array_allocator/3.cc: New.
296         * docs/html/20_util/allocator.html: Add docs.
297         
298 2004-10-25  Geoffrey Keating  <geoffk@apple.com>
300         * configure.host (darwin*): Build libstdc++ single module
301         and flat namespace.
302         * libsupc++/new_op.cc (new): Make weak.
303         * libsupc++/new_opnt.cc (new): Make weak.
304         * libsupc++/new_opv.cc (new): Make weak.
305         * libsupc++/new_opvnt.cc (new): Make weak.
306         * libsupc++/delete_op.cc (delete): Make weak.
307         * libsupc++/delete_opnt.cc (delete): Make weak.
308         * libsupc++/delete_opv.cc (delete): Make weak.
309         * libsupc++/delete_opvnt.cc (delete): Make weak.
311 2004-10-25  Benjamin Kosnik  <bkoz@redhat.com>
313         * testsuite/Makefile.am (GLIBCXX_INCLUDES): Add.
314         (AUTOMAKE_OPTIONS): Add nostdinc.
315         * testsuite/Makefile.in: Regenerate.
316         * scripts/testsuite_flags.in (build-includes): Remove redundant
317         search for libsupc++.
318         * fragment.am: Clean.
319         
320 2004-10-25  Benjamin Kosnik  <bkoz@redhat.com>
322         * include/Makefile.am (tr1_headers): Add tuple.
323         * include/Makefile.in: Regenerate.
325 2004-10-25  Chris Jefferson  <chris@bubblescope.net>
327         * include/tr1/tuple: Implementation of tuple from library TR.
328         * testsuite/tr1/6_containers/tuple/tuple_element.cc: New.
329         * testsuite/tr1/6_containers/tuple/tuple_size.cc: New.
330         * testsuite/tr1/6_containers/tuple/comparison_operators/comparisons.cc:
331         New.
332         * testsuite/tr1/6_containers/tuple/cons/assignment.cc: New.
333         * testsuite/tr1/6_containers/tuple/cons/big_tuples.cc: New.
334         * testsuite/tr1/6_containers/tuple/cons/constructor.cc: New.
335         * testsuite/tr1/6_containers/tuple/creation_functions/make_tuple.cc: 
336         New.
337         * testsuite/tr1/6_containers/tuple/creation_functions/tie.cc: New.
338         * testsuite/tr1/6_containers/tuple/element_access/get.cc: New.
340 2004-10-25  Paolo Carlini  <pcarlini@suse.de>
341         
342         * include/bits/basic_string.h (_Rep::_M_is_safe): Move to
343         basic_string as _M_disjunct, adjust to take only __s.
344         * include/bits/basic_string.tcc: Adjust consistently callers. 
346 2004-10-25  Paolo Carlini  <pcarlini@suse.de>
348         * include/bits/basic_string.tcc (assign(const _CharT*, size_type)):
349         Adjust bit missing from the previous commit.
351 2004-10-25  Eric Botcazou  <ebotcazou@libertysurf.fr>
353         PR other/18138
354         * testsuite/lib/libstdc++.exp: Accept more than one multilib libgcc.
356 2004-10-25  Paolo Carlini  <pcarlini@suse.de>
358         * include/bits/basic_string.h (_Rep::_M_is_safe, _M_check_length,
359         _M_move, _M_copy, _M_assign): New, use througout.
360         (operator+=(_CharT)): Define in terms of push_back.
361         (append(const basic_string&)): Define here, inline, and simplify,
362         don't use the full _M_replace_safe.
363         (append(size_type, _CharT)): Likewise, don't use _M_replace_aux.
364         (push_back): Likewise.
365         (assign(const basic_string&)): Define here, inline.
366         * include/bits/basic_string.tcc (append(const _CharT* s, size_type):
367         Fix: when s points inside the _Rep, upon reallocation (reserve) we
368         were copying from deallocated memory.
369         (append(const basic_string&, size_type, size_type)): Simplify,
370         don't use _M_replace_safe.
371         (replace(size_type, size_type, const _CharT*, size_type)): Slightly
372         tweak.
373         (reserve): Likewise.
374         * testsuite/21_strings/basic_string/append/char/2.cc: New.
375         * testsuite/21_strings/basic_string/append/char/3.cc: Likewise.
376         * testsuite/21_strings/basic_string/append/wchar_t/2.cc: Likewise.
377         * testsuite/21_strings/basic_string/append/wchar_t/3.cc: Likewise.
379         * testsuite/21_strings/basic_string/assign/char/3.cc: Remove junk.
380         * testsuite/21_strings/basic_string/assign/wchar_t/3.cc: Likewise.
382 2004-10-23  Andrew Pinski  <pinskia@physics.uc.edu>
384         * testsuite/ext/mt_allocator/deallocate_global-2.c:
385         s/value_t/value_type/. s/traits_t/traits_type/.
386         s/policy_t/policy_type/. s/allocator_t/allocator_type/.
387         s/string_t/string_type/. s/list_t/list_type/.
388         * testsuite/ext/mt_allocator/deallocate_global-4.cc: Likewise.
389         * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: Likewise.
390         * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: Likewise.
391         * testsuite/ext/mt_allocator/deallocate_local-2.cc: Likewise.
392         * testsuite/ext/mt_allocator/deallocate_local-4.cc: Likewise.
393         * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: Likewise.
394         * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: Likewise.
396 2004-10-21  Benjamin Kosnik  <bkoz@redhat.com>
398         * include/tr1/array (array): Make safe for zero-sized arrays.
399         (array::end): Return one past the end.
400         (array::at): Use __throw_out_of_range, include functexcept.h.
401         (operator==): Implement.
402         (operator!=): Same.
403         (operator<): Same.
404         (operator>): Same.
405         (operator>=): Same.
406         (operator<=): Same.
407         * testsuite/tr1/6_containers/array/capacity/(empty.cc,
408         max_size.cc, size.cc): New.
409         * testsuite/tr1/6_containers/array/comparison_operators/(equal.cc,
410         greater.cc, greater_or_equal.cc, less.cc, less_or_equal.cc,
411         not_equal): New.
412         * testsuite/tr1/6_containers/array/cons/aggregate_initialization.cc: 
413         New.
414         * testsuite/tr1/6_containers/array/element_access/at_out_of_range.cc: 
415         New.
416         * testsuite/tr1/6_containers/array/iterators/end_is_one_past.cc: New.
417         * testsuite/tr1/6_containers/array/requirements/(contiguous.cc,
418         instantiate, typedefs, zero_size_arrays): New.
420 2004-10-21  Paolo Carlini  <pcarlini@suse.de>
421             Benjamin Kosnik  <bkoz@redhat.com>
423         * include/bits/basic_string.h (_M_set_length_and_sharable): New.
424         * include/bits/basic_string.tcc (_S_construct, assign(const _CharT*,
425         size_type), _M_mutate, _M_clone): Use it.
426         (_Rep::_S_create): Don't set/call _M_length/_M_set_sharable here.
428 2004-10-21  Paolo Carlini  <pcarlini@suse.de>
429             Dhruv Matani  <dhruvbird@gmx.net>
430             Nathan Myers  <ncm@cantrip.org>
432         * include/bits/vector.tcc (_M_insert_aux, _M_fill_insert,
433         _M_range_insert): Check at the outset that we are not trying
434         to exceed max_size, then deal properly with __len overflows.
435         * testsuite/23_containers/vector/modifiers/insert/1.cc: New.
436         
437         * testsuite/testsuite_allocator.h: Remove redundant include.
439 2004-10-20  Paolo Carlini  <pcarlini@suse.de>
441         * include/ext/bitmap_allocator.h (allocate): Throw std::bad_alloc
442         when n > max_size().
443         * include/ext/malloc_allocator.h (allocate): Likewise.
444         * include/ext/mt_allocator.h (allocate): Likewise.
445         * include/ext/new_allocator.h (allocate): Likewise.
446         * include/ext/array_allocator.h: Use __throw_bad_alloc().
447         * include/ext/pool_allocator.h: Use __builtin_expect.
448         * testsuite/ext/array_allocator/check_allocate_max_size.cc: New.
449         * testsuite/ext/bitmap_allocator/check_allocate_max_size.cc: Likewise.
450         * testsuite/ext/malloc_allocator/check_allocate_max_size.cc: Likewise.
451         * testsuite/ext/mt_allocator/check_allocate_max_size.cc: Likewise.
452         * testsuite/ext/new_allocator/check_allocate_max_size.cc: Likewise.
453         * testsuite/ext/pool_allocator/check_allocate_max_size.cc: Likewise.
454         * testsuite/testsuite_allocator.h (check_allocate_max_size): New test.
456 2004-10-19  Paolo Carlini  <pcarlini@suse.de>
458         * testsuite/performance/20_util/allocator/list_sort_search.cc:
459         Include <ext/new_allocator.h>.
460         * testsuite/performance/20_util/allocator/map_mt_find.cc: Likewise.
462 2004-10-18  Paolo Carlini  <pcarlini@suse.de>
464         * include/bits/basic_string.tcc (_M_mutate): Do not reallocate
465         unnecessarily when _M_rep() == &_S_empty_rep() and __new_size
466         == capacity() (== 0): is ok to just leave everything unchanged.
468         * include/bits/basic_string.h: Minor formatting fixes.
469         * include/bits/basic_string.tcc: Likewise.
471 2004-10-17  Benjamin Kosnik  <bkoz@redhat.com>
473         * include/ext/mt_allocator.h (__pool::_M_get_align): New.
474         (__mt_alloc::allocate): Use it.
475         * src/mt_allocator.cc (__pool::_M_reclaim_block): Use it.
476         (__pool::_M_reserve_block): Simplify block allocation.
477         
478 2004-10-17  Dhruv Matani  <dhruvbird@gmx.net>
479             Paolo Carlini  <pcarlini@suse.de>
480                 
481         * include/ext/bitmap_allocator.h: Change unsigned int -> size_t: this
482         makes the code 64-bit correct and also fixes (together with using at
483         the beginning a bitmap 2 * size_t bytes wide) alignment issues: now
484         8 is guaranteed, easily tunable to 16 via _BALLOC_ALIGN_BYTES.
485         Fix pthread-rope7.cc fail by nulling out __mini_vector<> destructor.
486         * src/bitmap_allocator.cc: Change to size_t.
487         * config/linker-map.gnu: Adjust.
489 2004-10-16  Benjamin Kosnik  <bkoz@redhat.com>
491         * include/tr1/array: Don't use layout_type.
493 2004-10-16  Sashan Govender  <sashang@gmail.com>
495         * include/tr1/array (array::end const): Fix casting from iterator
496         to const_iterator.
497         
498 2004-10-15  Paolo Carlini  <pcarlini@suse.de>
500         * include/ext/bitmap_allocator.h: Qualify ::operator delete.
501         * src/bitmap_allocator.cc: Likewise.
502         * src/mt_allocator.cc: Use ::operator delete, not delete,
503         consistently with ::operator new.
505         * include/ext/bitmap_allocator.h (deallocate): Check for null
506         pointer.
507         * testsuite/ext/bitmap_allocator/check_deallocate_null.cc: New.
508         * testsuite/testsuite_allocator.h (check_deallocate_null): Add test.
510 2004-10-14  Benjamin Kosnik  <bkoz@redhat.com>
512         * include/ext/mt_allocator.h (__mt_alloc::deallocate): Check for
513         null pointer.
514         * include/ext/pool_allocator.h (debug_allocator::deallocate):
515         Check pointer value.
516         * include/ext/debug_allocator.h (debug_allocator::deallocate):
517         Throw exceptions, don't abort.
518         * include/ext/array_allocator.h
519         (array_allocator_base::deallocate): Remove unused parameters.
520         * testsuite/testsuite_allocator.h (check_deallocate_null): New.
521         * testsuite/ext/mt_allocator/check_deallocate_null.cc: New.
522         * testsuite/ext/mt_allocator/check_deallocate_null_thread.cc: New.
523         * testsuite/ext/array_allocator/check_deallocate_null.cc: New.
524         * testsuite/ext/debug_allocator/check_deallocate_null.cc: New.
525         * testsuite/ext/malloc_allocator/check_deallocate_null.cc: New.
526         * testsuite/ext/new_allocator/check_deallocate_null.cc: New.
527         * testsuite/ext/pool_allocator/check_deallocate_null.cc: New.
529         * testsuite/testsuite_allocator.h (check_new): Add instance argument.
530         * testsuite/ext/array_allocator/check_new.cc: New.
531         
532 2004-10-14  Paolo Carlini  <pcarlini@suse.de>
534         * include/ext/bitmap_allocator.h (bitmap_allocator::_Alloc_block):
535         Rename __unused to __M_unused.
537 2004-10-14  Benjamin Kosnik  <bkoz@redhat.com>
539         * testsuite/ext/headers.cc: Add includes, compile only.
540         * testsuite/ext/hash_map.cc: Move to...
541         * testsuite/ext/hash_map/1.cc: ...here.
542         * testsuite/ext/14648.cc: Move to...
543         * testsuite/ext/hash_map/14648.cc: ...here.
544         * testsuite/ext/hash_map/instantiate.cc: Add.
545         * testsuite/ext/hash_set.cc: Move to...
546         * testsuite/ext/hash_set/1.cc: ...here.
547         * testsuite/ext/hash_set_explicit_instantiation.cc: Move to...
548         * testsuite/ext/hash_set/instantiate.cc: ...here.
549         * testsuite/ext/hash_check_construct_destroy.cc: Move to...
550         * testsuite/ext/hash_set/check_construct_destroy.cc: ...here.
551         * testsuite/ext/slist_check_construct_destroy.cc: Move to...
552         * testsuite/ext/slist/check_construct_destroy.cc: ...here.
553         * testsuite/ext/slist_explicit_instantiation.cc: Move to...
554         * testsuite/ext/slist/instantiate.cc: ...here.
555         
556 2004-10-14  Benjamin Kosnik  <bkoz@redhat.com>
558         * include/ext/mt_allocator.h: Tweaks.
559         * src/mt_allocator.cc: Same.
561 2004-10-14  Dhruv Matani  <dhruvbird@gmx.net>
563         * ext/bitmap_allocator.h: Clean-up add/remove functions.
564         * src/bitmap_allocator.cc: New file. Contains the out-of-line
565         function definitions, static initialization of variables, and
566         explicit instantiations needed for the allocator.
567         * src/Makefile.am: Add.
568         * src/Makefile.in: Regenerate.
569         * config/linker.map.gnu: Add the necessary symbols.
571 2004-10-13  Paolo Carlini  <pcarlini@suse.de>
573         * include/bits/basic_string.tcc (_S_create): Use consistently
574         the exponential policy, simplify.
575         * testsuite/performance/21_strings/string_append_2.cc: New.
577         * include/ext/array_allocator.h (allocate): Fix bad_alloc check.
578         * testsuite/ext/array_allocator/2.cc: Fix wrt 64-bit archs (in
579         that case sizeof(_Rep) == 24).
581 2004-10-12  Paolo Carlini  <pcarlini@suse.de>
583         PR libstdc++/17948
584         * include/bits/stl_tree.h (erase(iterator, iterator)): Revert
585         wrong commit of 2004-10-07.
586         
587 2004-10-12  Scott Snyder  <snyder@fnal.gov>
589         PR libstdc++/17948
590         * testsuite/23_containers/set/modifiers/17948.cc: New.
592 2004-10-11  Benjamin Kosnik  <bkoz@redhat.com>
594         * include/bits/stl_deque.h: Correct for over-long lines.
596 2004-10-11  Benjamin Kosnik  <bkoz@redhat.com>
598         PR libstdc++/17937
599         * include/ext/mt_allocator.h (__pool::_M_destroy): New.
600         * src/mt_allocator.cc (__pool::~__pool): Change definitions to
601         _M_destroy.
602         * acconfig.h: Remove _GLIBCXX_USE___CXA_ATEXIT.
603         * acinclude.m4 (GLIBCXX_ENABLE_CXA_ATEXIT): Remove.
604         * configure.ac: Remove call to GLIBCXX_ENABLE_CXA_EXIT.
605         * configure: Regenerate.
606         * config/linker-map.gnu: Tweak exports.
607         * docs/html/ext/mt_allocator.html: Update docs.
608         * testsuite/ext/mt_allocator/deallocate_global-2.cc: Fix.
609         * testsuite/ext/mt_allocator/deallocate_global-4.cc: Fix.       
610         * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: Fix.
611         * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: Fix.
612         * testsuite/ext/mt_allocator/deallocate_local-2.cc: Fix.
613         * testsuite/ext/mt_allocator/deallocate_local-4.cc: Fix.
614         * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: Fix.
615         * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: Fix.
617 2004-10-11  Benjamin Kosnik  <bkoz@redhat.com>
619         PR libstdc++/16614 continued.
620         * include/ext/mt_allocator.h
621         (__per_type_pool_policy::_S_get_pool): Use saner defaults based on
622         specific type characteristics.
623         (__pool_base): Add constructor that takes a _Tune argument.
624         (__pool): Same.
625         * testsuite/ext/mt_allocator/tune-2.cc: Adjust default.
626         * testsuite/ext/mt_allocator/tune-4.cc: Same.
627         * testsuite/ext/mt_allocator/tune-3.cc: Same.
629 2004-10-11  Joachim Kuebart  <kuebart@mathematik.uni-ulm.de>
630             Paolo Carlini  <pcarlini@suse.de>
632         * src/pool_allocator.cc (__pool_alloc_base::_M_allocate_chunk):
633         Deal properly with exceptions thrown by ::operator new(size_t).
634         * testsuite/ext/pool_allocator/allocate_chunk.cc: New.
636         * include/ext/pool_allocator.h: Include <cstdlib>.
638 2004-10-10  Benjamin Kosnik  <bkoz@redhat.com>
640         * include/bits/functexcept.h: Add guards.
642         * acinclude.m4 (GLIBCXX_ENABLE_THREADS): Tweak test.
643         * configure: Regenerate.
644         
645 2004-10-10  Paolo Carlini  <pcarlini@suse.de>
647         * config/locale/gnu/monetary_members.cc (_S_construct_pattern):
648         Give __ret a default value, thus avoiding spurious warnings.
650         * testsuite/performance/27_io/filebuf_sgetn_unbuf.cc: Open either
651         words or linux.words, otherwise exit.
652         * testsuite/performance/27_io/ifstream_getline.cc: Slighlty tweak.
654 2004-10-09  Paolo Carlini  <pcarlini@suse.de>
656         * include/std/std_memory.h (__get_temporary_buffer): Don't use
657         INT_MAX, prefer numeric_limits<ptrdiff_t>::max(), ok on 64-bit
658         platforms too.
659         * testsuite/20_util/memory/auto_ptr/assign_neg.cc: Adjust dg-error
660         line numbers.
662 2004-10-08  Benjamin Kosnik  <bkoz@redhat.com>
664         * acconfig.h: Add _GLIBCXX_USE___CXA_ATEXIT.
665         * acinclude.m4 (GLIBCXX_ENABLE_CXA_ATEXIT): New.
666         * configure.ac: Call GLIBCXX_ENABLE_CXA_EXIT.
667         * configure: Regenerate.
668         * src/mt_allocator.cc (__pool::~__pool): Make conditional on
669         _GLIBCXX_USE___CXA_ATEXIT macro.
670         * docs/html/ext/mt_allocator.html: Add note about deallocation.
671         * testsuite/ext/mt_allocator/deallocate_local-2.cc: Guard checks
672         with _GLIBCXX_USE___CXA_ATEXIT.
673         * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: Same.
674         * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: Same.
675         * testsuite/ext/mt_allocator/deallocate_global-4.cc: Same.
676         * testsuite/ext/mt_allocator/deallocate_global-2.cc: Same.
677         * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: Same.
678         * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: Same.
679         * testsuite/ext/mt_allocator/deallocate_local-4.cc: Same.
680         
681 2004-10-07  Phil Edwards  <phil@codesourcery.com>
683         * testsuite/lib/libstdc++.exp:  Update list of undefined functions.
685 2004-10-07  Paolo Carlini  <pcarlini@suse.de>
687         * include/bits/list.tcc (operator=): Avoid iterator postincrement.
688         * include/bits/stl_tree.h (erase(iterator, iterator)): Likewise.
690 2004-10-07  Benjamin Kosnik  <bkoz@redhat.com>
692         * include/tr1: New.
693         * include/tr1/array: New.
694         * include/Makefile.am (tr1_headers): New.
695         (stamp-tr1): New.
696         (install-headers): New.
697         (allstamped): Add stamp-tr1.
699         * include/ext/array_allocator.h: New.
700         * include/Makefile.am: Add.
701         * include/Makefile.in: Regenerate.
702         * testsuite/ext/array_allocator/1.cc: New.
703         * testsuite/ext/array_allocator/2.cc: New.
705 2004-10-07  Richard Earnshaw  <rearnsha@arm.com>
707         * testsuite/lib/libstdc++.exp (libstdc++_exit): New proc.
709 2004-10-07  Roger Sayle  <roger@eyesopen.com>
711         PR libstdc++/17850
712         * configure.ac: Newlib does not provide strtold.
713         * configure: Regenerate.
715 2004-10-06  Benjamin Kosnik  <bkoz@redhat.com>
717         * acinclude.m4 (GLIBCXX_ENABLE_THREADS): Set enable_thread.
718         (GLIBCXX_CONFIGURE_TESTSUITE): Use it.
719         * configure: Regenerated.
720         * testsuite/Makefile.am (CLEANFILES): Add TEST for
721         check-performance executables.
722         (stamp_thread): New.
723         (all-local): Use it.
724         * testsuite/Makefile.in: Regenerate.
725         * scripts/create_testsuite_files: Filter thread tests.
727         * testsuite/thread/pthread1.cc: Remove macro conditionals: this
728         file will only be run by thread enabled configurations.
729         * testsuite/thread/pthread7-rope.cc: Same, add rope_type typedef.
730         * testsuite/thread/pthread6.cc: Same.
731         * testsuite/thread/pthread5.cc: Same.
732         * testsuite/thread/pthread4.cc: Same.
733         * testsuite/thread/pthread3.cc: Same.
734         * testsuite/thread/pthread2.cc: Same.
736         * testsuite/ext/mt_allocator/instantiate.cc: Add in __GTHREADS guard.
737         * testsuite/ext/mt_allocator/deallocate_global-1.cc: Move to...
738         * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: ...here.
739         * testsuite/ext/mt_allocator/deallocate_global-3.cc: Move to...
740         * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: ...here. 
741         * testsuite/ext/mt_allocator/deallocate_local-1.cc: Move to...
742         * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: ...here.
743         * testsuite/ext/mt_allocator/deallocate_local-3.cc: Move to...
744         * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: ...here.
746 2004-10-06  Benjamin Kosnik  <bkoz@redhat.com>
747             Paolo Carlini  <pcarlini@suse.de>
749         PR libstdc++/17780
750         * src/mt_allocator.cc (__pool<true>::_M_reserve_block): Revert
751         to old locking order.
753 2004-10-06  Paolo Carlini  <pcarlini@suse.de>
755         * include/std/std_sstream.h (_M_sync): When the caller is
756         setbuf, don't trust _M_string.capacity() to be the size of
757         the buffer area, use _M_string.size() in this case.
758         * testsuite/27_io/basic_stringbuf/setbuf/char/4.cc: New.
759         * testsuite/27_io/basic_stringbuf/setbuf/wchar_t/4.cc: Likewise.
761         * include/bits/sstream.tcc (overflow): Avoid calling string::assign
762         unnecessarily when the current _M_string is empty.
764 2004-10-06  Paolo Carlini  <pcarlini@suse.de>
766         * include/bits/stl_algo.h (__reverse(bidirectional_iterator_tag)):
767         Avoid iterator postincrement.
768         (__rotate): Likewise.
770         * include/bits/stl_algo.h: Minor formatting tweaks.
772 2004-10-06  Christopher Jefferson <caj@cs.york.ac.uk>
774         * include/bits/stl_algo.h (__reverse(random_access_iterator_tag)):
775         Avoid iterator postincrement; fix swapping middle element with
776         itself on odd-length inputs.
778 2004-10-05  Benjamin Kosnik  <bkoz@redhat.com>
780         PR libstdc++/17780
781         * include/ext/mt_allocator.h (__pool_base::_Tune): Add default
782         options as compile-time constant enums.
783         (__pool_base::_Tune::is_default): New.
784         (__pool_base::_Block_address): New.
785         (__pool_base): Rearrange data members.
786         (__pool::_M_reserve_memory): To _M_reserve_block.
787         (__pool::_M_reclaim_memory): To _M_reclaim_block.       
788         (__pool::_Bin_record): Add _Block_address data member.
789         (__pool<false>): Add _M_thread_freelist_initial.
790         (__pool::~__pool): Declare.     
791         (__common_pool_policy): Move static data member to...
792         (__common_pool_policy::_S_get_pool): ...here, make static local.
793         (__per_type_pool_policy): Move static data member to...
794         (__per_type_pool_policy::_S_get_pool): ...here, make static local.
795         (__mt_alloc::__mt_alloc): Call __policy_type::_S_get_pool.
796         Remove static member definitions. Use define for __default_policy.
797         * src/mt_allocator.cc: Same.
798         * config/linker-map.gnu: Don't export _S_get_pool. Renames.
799         * testsuite/ext/new_allocator: New.
800         * testsuite/ext/new_allocator/instantiate.cc: New.
801         * testsuite/ext/new_allocator/check_new.cc: New.
802         * testsuite/ext/new_allocator/deallocate_global.cc: New.
803         * testsuite/ext/new_allocator/deallocate_local.cc: New.
804         * testsuite/ext/mt_allocator/instantiate.cc: Instantiate all
805         template arguments.
806         * testsuite/ext/mt_allocator/deallocate_global-1.cc: New.
807         * testsuite/ext/mt_allocator/deallocate_global-2.cc: New.
808         * testsuite/ext/mt_allocator/deallocate_global-3.cc: New.
809         * testsuite/ext/mt_allocator/deallocate_global-4.cc: New.
810         * testsuite/ext/mt_allocator/deallocate_local-1.cc: New.
811         * testsuite/ext/mt_allocator/deallocate_local-2.cc: New.
812         * testsuite/ext/mt_allocator/deallocate_local-3.cc: New.
813         * testsuite/ext/mt_allocator/deallocate_local-4.cc: New.
814         * testsuite/ext/mt_allocator/deallocate.cc: New.
815         * testsuite/ext/malloc_allocator/deallocate.cc: New.    
816         * testsuite/ext/malloc_allocator/deallocate_global.cc: New.
817         * testsuite/ext/malloc_allocator/deallocate_local.cc: New.
818         
819 2004-10-05  Ulrich Weigand  <uweigand@de.ibm.com>
821         * configure.host (abi_baseline_pair): Define for s390-*-linux* and
822         s390x-*-linux*.
823         * config/abi/s390-linux-gnu/baseline_symbols.txt: Add missing symbols.
824         * config/abi/s390x-linux-gnu/baseline_symbols.txt: New file.
826 2004-10-05  Christopher Jefferson  <caj@cs.york.ac.uk>
828         * include/bits/stl_algobase.h (iter_swap): delegate to swap via
829         __iter_swap when iterator's value_types are equal.
830         (struct __iter_swap): New.
832 2004-10-04  Benjamin Kosnik  <bkoz@redhat.com>
834         * configure.ac (libtool_VERSION): To 6:3:0.
835         * configure: Regnerate.
836         * testsuite/testsuite_abi.cc (check_version): Add 3.4.3.
838 2004-10-04  Roger Sayle  <roger@eyesopen.com>
839             Eric Botcazou  <ebotcazou@libertysurf.fr>
841         PR libstdc++/17505
842         * config/linker-map.gnu: Synchronize the current list of stub
843         functions from libmath.
845 2004-10-03  Roger Sayle  <roger@eyesopen.com>
847         * config/locale/generic/c_locale.cc (__convert_to_v): Use
848         _GLIBCXX_HAVE_STRTOF instead _GLIBCXX_USE_C99 to check for strtof.
849         Likewise, use _GLIBCXX_HAVE_STRTOLD instead of _GLIBCXX_USE_C99
850         to check for presence of strtold.
852 2004-10-03  Paolo Carlini  <pcarlini@suse.de>
854         * include/bits/stl_list.h: Trivial formatting fixes.
855         * include/bits/stl_tree.h: Likewise.
857 2004-10-03  Paolo Carlini  <pcarlini@suse.de>
859         * include/bits/sstream.tcc (seekpos): In case of success, just
860         return __sp.
862 2004-10-01  Paolo Carlini  <pcarlini@suse.de>
864         * include/bits/sstream.tcc (pbackfail): Implement correctly
865         27.7.1.3/2, bullet 2: if mode & ios_base::out is false do not
866         write in the buffer.
867         * testsuite/27_io/basic_stringbuf/pbackfail/char/1.cc: New.
868         * testsuite/27_io/basic_stringbuf/pbackfail/char/2.cc: Likewise.
869         * testsuite/27_io/basic_stringbuf/pbackfail/wchar_t/1.cc: Likewise.
870         * testsuite/27_io/basic_stringbuf/pbackfail/wchar_t/2.cc: Likewise.
871         * testsuite/27_io/basic_istream/putback/char/1.cc: Tweak consistently.
873 2004-10-01  Paolo Carlini  <pcarlini@suse.de>
875         * include/bits/sstream.tcc (seekpos): Minor rearrangement of two
876         conditionals consistently with seekoff.
877         * include/std/std_sstream.h (setbuf): Avoid a string temporary.
878         (_M_sync): Simplify a bit, clean-up comment.
880 2004-09-30  Paolo Carlini  <pcarlini@suse.de>
882         PR libstdc++/10975 (DR 453)
883         * include/bits/sstream.tcc (seekoff): Don't fail if __beg == 0
884         and __off == 0.
885         * docs/html/ext/howto.html: Add an entry for DR 453.
886         * testsuite/27_io/basic_stringbuf/seekoff/char/10975.cc: New.
887         * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/10975.cc: Likewise.
888         * testsuite/27_io/basic_istream/tellg/char/1.cc: Tweak consistently.
889         * testsuite/27_io/basic_ostream/tellp/char/1.cc: Likewise.
890         * testsuite/27_io/basic_ostream/tellp/char/2.cc: Likewise.
891         * testsuite/27_io/basic_istream/seekg/char/2346-fstream.cc: Fix and
892         move to...
893         * testsuite/27_io/basic_istream/seekp/char/2346-fstream.cc: ... here.
894         * testsuite/27_io/basic_istream/seekg/char/2346-sstream.cc: Fix and
895         move to...
896         * testsuite/27_io/basic_istream/seekp/char/2346-sstream.cc: ... here.
898 2004-09-29  Paolo Carlini  <pcarlini@suse.de>
900         * include/std/std_sstream.h (basic_stringbuf(ios_base::openmode)):
901         Don't use _M_stringbuf_init, keep the pointers null, per 27.7.1.1.
902         (str()): Slightly tweak, protect from pptr() == 0.
903         (_M_update_egptr()): Likewise.
904         * include/bits/sstream.tcc (ssekoff, seekpos): In order to check
905         for an empty buffer use __beg instead of _M_string.capacity().
906         * testsuite/27_io/basic_stringbuf/cons/char/1.cc: New.
907         * testsuite/27_io/basic_stringbuf/cons/wchar_t/1.cc: Likewise.
909         * testsuite/27_io/basic_filebuf/cons/char/1.cc: New.
910         * testsuite/27_io/basic_filebuf/cons/wchar_t/1.cc: Likewise.
911         * testsuite/27_io/basic_streambuf/cons/char/1.cc: Update.
912         * testsuite/27_io/basic_streambuf/cons/wchar_t/1.cc: Likewise.
914 2004-09-29  Paolo Carlini  <pcarlini@suse.de>
915             Benjamin Kosnik  <bkoz@redhat.com>
916         
917         * testsuite/testsuite_io.h (class constraint_buf): New, extended
918         and templatized version of constraint_filebuf; add typedefs for
919         streambuf/stringbuf/filebuf and wchar_t counterparts.
921 2004-09-28  Paolo Carlini  <pcarlini@suse.de>
923         PR libstdc++/16612
924         * include/bits/basic_string.h (_M_dispose, _M_refcopy,
925         basic_string()): When _GLIBCXX_FULLY_DYNAMIC_STRING is defined,
926         don't deal with _S_empty_rep.
927         * include/bits/basic_string.tcc (_S_construct, _M_destroy,
928         _M_leak_hard, _M_mutate): Likewise.
929         * acinclude.m4 (GLIBCXX_ENABLE_FULLY_DYNAMIC_STRING): New.
930         * acconfig.h: Add corresponding undef.  
931         * configure.ac: Use GLIBCXX_ENABLE_FULLY_DYNAMIC_STRING.
932         * docs/html/configopts.html: Document --enable-fully-dynamic-string.
933         * configure: Regenerate.
934         * config.h.in: Likewise.
936 2004-09-28  Benjamin Kosnik  <bkoz@redhat.com>
937             Paolo Carlini  <pcarlini@suse.de>
939         * testsuite/21_strings/basic_string/operations/char/1.cc: New.
940         * testsuite/21_strings/basic_string/operations/wchar_t/1.cc: New.
941         * testsuite/21_strings/basic_string/element_access/char/empty.cc: New.
942         * testsuite/21_strings/basic_string/element_access/wchar_t/empty.cc: 
943         New.
945 2004-09-28  Paolo Carlini  <pcarlini@suse.de>
947         * README: Remove obsolete entry about include/c_shadow.
949 2004-09-24  H.J. Lu  <hongjiu.lu@intel.com>
951         PR libstdc++/17469
952         * testsuite/lib/libstdc++.exp: Don't use global ld_library_path.
954 2004-09-24  Paolo Carlini  <pcarlini@suse.de>
956         * src/localename.cc (locale::locale(const char*)): Minor tweaks:
957         rename a variable, move an assignment.
958         (locale::_Impl::_Impl(const char*, size_t)): Likewise, minor tweak.
960 2004-09-24  Paul Brook  <paul@codesourcery.com>
962         * testsuite/27_io/basic_filebuf/sgetn/char/1-in.cc: XFAIL more arm
963         simulator targets.
964         * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: Ditto.
965         * testsuite/27_io/basic_filebuf/sgetn/char/2-in.cc: Ditto.
966         * testsuite/27_io/basic_filebuf/sgetn/char/2-io.cc: Ditto.
967         * testsuite/27_io/basic_istream/readsome/char/6746-2.cc: Ditto.
968         * testsuite/ext/stdio_filebuf/char/10063-2.cc: Ditto.
969         * testsuite/ext/stdio_filebuf/char/10063-3.cc: Ditto.
971 2004-09-23  Zack Weinberg  <zack@codesourcery.com>
973         * testsuite/20_util/memory/auto_ptr/assign_neg.cc
974         * testsuite/23_containers/map/operators/1_neg.cc
975         * testsuite/23_containers/set/operators/1_neg.cc:
976         Update locations and/or regexps of dg-error markers.
978 2004-09-23  P.J. Darcy  <darcypj@us.ibm.com>
980         * include/Makefile.am (thread_host_headers): Add gthr-tpf.h.
981         Add rule to build ${host_builddir}/gthr-tpf.h.
982         * include/Makefile.in: Regenerate.
984 2004-09-23  Paolo Carlini  <pcarlini@suse.de>
985             Magnus Fromreide  <magfr@lysator.liu.se>
987         * include/bits/boost_concept_check.h (struct _SequenceConcept):
988         Remove wrong requirement, i.e., not present in Table 67.
990 2004-09-21  Paolo Carlini  <pcarlini@suse.de>
992         PR libstdc++/12882 (cont)
993         * acinclude.m4 (GLIBCXX_CHECK_LFS): Check for fstat64 too.
994         * configure: Regenerate.
995         * config/io/basic_file_stdio.cc (__basic_file<>::showmanyc): When
996         _GLIBCXX_USE_LFS use fstat64 and lseek64, thus providing a non
997         trivial showmanyc for large files too.
999 2004-09-17  Jonathan Wakely  <redi@gcc.gnu.org>
1001         * include/bits/stl_algo.h (remove): Remove too restrictive
1002         concept-check.
1004 2004-09-17  Paolo Carlini  <pcarlini@suse.de>
1006         * include/bits/fstream.tcc (xsgetn): Slightly tweak conditional,
1007         as per Nathan's original suggestion.
1009 2004-09-17  Paolo Carlini  <pcarlini@suse.de>
1011         * testsuite/ext/mt_allocator/tune-1.cc: Use VERIFY, clean
1012         up a bit.
1013         * testsuite/ext/mt_allocator/tune-2.cc: Likewise.
1014         * testsuite/ext/mt_allocator/tune-3.cc: Likewise.
1015         * testsuite/ext/mt_allocator/tune-4.cc: Likewise.
1017 2004-09-17  Paolo Carlini  <pcarlini@suse.de>
1018             Andrea Arcangeli  <andrea@suse.de>
1020         * config/io/basic_file_stdio.cc (__basic_file<>::close)): Don't
1021         call unnecessarily sync, that is fflush: the library, since 3.4.0
1022         does not use buffered fread/fwrite.
1023         * include/bits/fstream.tcc (basic_filebuf<>::overflow): Likewise.
1025 2004-09-15  Mark Mitchell  <mark@codesourcery.com>
1027         * config/cpu/arm/cxxabi_tweaks.h (__cxa_cdtor_return_type):
1028         Define.
1029         * config/cpu/generic/cxxabi_tweaks.h (__cxa_cdtor_return_type):
1030         Define.
1031         * libsupc++/cxxabi.h (__cxa_cdtor_return_type): New type.
1032         (__cxa_vec_new): Use it.
1033         (__cxa_vec_new2): Likewise.
1034         (__cxa_vec_new3): Likewise.
1035         (__cxa_vec_cdtor): Likewise.
1036         (__cxa_vec_cctor): Likeiwse.
1037         (__cxa_vec_dtor): Likewise.
1038         (__cxa_vec_cleanup): Likewise.
1039         (__cxa_vec_delete2): Likewise.
1040         (__cxa_vec_delete3): Likewise.
1041         * libsupc++/vec.cc (__cxa_vec_new): Likewise.
1042         (__cxa_vec_new2): Likewise.
1043         (__cxa_vec_new3): Likewise.
1044         (__cxa_vec_cdtor): Likewise.
1045         (__cxa_vec_cctor): Likeiwse.
1046         (__cxa_vec_dtor): Likewise.
1047         (__cxa_vec_cleanup): Likewise.
1048         (__cxa_vec_delete2): Likewise.
1049         (__cxa_vec_delete3): Likewise.
1050         (__aeabi_vec_ctor_nocookie_nodtor): New function.
1051         (__aeabi_vec_ctor_cookie_nodtor): Likewise.
1052         (__aeabi_vec_cctor_nocookie_nodtor): Likewise.
1053         (__aeabi_vec_new_cookie_noctor): Likewise.
1054         (__aeabi_vec_new_nocookie): Likewise.
1055         (__aeabi_vec_new_cookie_nodtor): Likewise.
1056         (__aeabi_vec_new_cookie): Likewise.
1057         (__aeabi_vec_dtor): Likewise.
1058         (__aeabi_vec_dtor_cookie): Likewise.
1059         (__aeabi_vec_delete): Likewise.
1060         (__aeabi_vec_delete3): Likewise.
1061         (__aeabi_vec_delete3_nodtor): Likewise.
1062         (__aeabi_atexit): Likewise.
1064 2004-09-14  Nathan Myers  <ncm@cantrip.org>
1066         * include/bits/fstream.tcc (xsgetn): Slightly tweak the recent fix
1067         for 11722: copy can replace move; the common case is __avail == 0.
1069 2004-09-14  Paolo Carlini  <pcarlini@suse.de>
1071         * include/bits/cpp_type_traits.h: Rename __is_trivially_copyable
1072         to __is_scalar, more clear and consistent with "tr1" naming.
1073         * include/bits/stl_algobase.h: Update consistently throughout.
1075 2004-09-13  Paolo Carlini  <pcarlini@suse.de>
1077         PR libstdc++/11722
1078         * include/std/std_fstream.h (xsgetn): Declare only.
1079         * include/bits/fstream.tcc (xsgetn): Define, optimize for the
1080         always_noconv() case: when __n > __buflen, copy the available
1081         buffer and issue a direct read.
1082         * testsuite/performance/27_io/filebuf_sgetn_unbuf.cc: New.
1084         * include/bits/fstream.tcc (xsputn): Minor tweak, reorder a
1085         conditional.
1087 2004-09-13  Hans-Peter Nilsson  <hp@bitrange.com>
1089         * testsuite/lib/libstdc++.exp: Use gcc wrapper.exp and call
1090         libstdc++_maybe_build_wrapper instead of using local code.
1092 2004-09-08  Benjamin Kosnik  <bkoz@redhat.com>
1094         * config/linker-map.gnu (GLIBCXX_3.4.3): New, adjust symbol exports.
1096 2004-09-03  Jan Beulich  <jbeulich@novell.com>
1098         * crossconfig.m4: Add NetWare as a target.
1099         * configure: Regenerate.
1101 2004-09-02  Mark Mitchell  <mark@codesourcery.com>
1103         * libsupc++/typeinfo: Honor __GXX_MERGED_TYPEINFO_NAMES if already
1104         defined.
1106 2004-09-02  Benjamin Kosnik  <bkoz@redhat.com>
1107             Simon Richter  <Simon.Richter@hogyros.de>
1109         PR libstdc++/16715
1110         * include/bits/istream.tcc: Add extern template for iostream
1111         char and wchar_t instantiations.
1113 2004-09-02  Benjamin Kosnik  <bkoz@redhat.com>
1114             Leland Wang  <llwang@infor.org>
1116         PR libstdc++/17259
1117         * include/ext/ropeimpl.h (rope::_S_compare): Use
1118         _Rope_constants::_S_leaf.
1120 2004-09-02  Benjamin Kosnik  <bkoz@redhat.com>
1122         PR libstdc++/16848
1123         * include/Makefile.am (ext_headers): Remove demangle.h.
1124         * include/Makefile.in: Regenerate.
1125         * include/ext/demangle.h: Remove.
1127 2004-09-01  Benjamin Kosnik  <bkoz@redhat.com>
1129         PR libstdc++/16614
1130         * include/ext/mt_allocator.h (__mt_base): Not type dependent,
1131         split into..
1132         (__pool): New, specialize.
1133         (__common_pool): New, static bits here.
1134         (__per_type_pool): New, and here.
1135         (__mt_alloc_base): New.
1136         (__mt_alloc): Add template parameter, inherit from it.
1137         * src/allocator.cc: Split this...
1138         * src/allocator-inst.cc: And this...
1139         * src/pool_allocator.cc: ...into this.
1140         * src/mt_allocator.cc: ... and this. Add definitions for
1141         __mt_base.
1142         * src/Makefile.am (sources): Split allocator.cc to
1143         pool_allocator.cc and mt_allocator.cc.
1144         * src/Makefile.in: Regenerate.
1145         * config/linker-map.gnu: Add symbols.
1146         * docs/html/ext/mt_allocator.html: Document new design.
1147         * testsuite/ext/mt_allocator/tune-1.cc: New.
1148         * testsuite/ext/mt_allocator/tune-2.cc: New.
1149         * testsuite/ext/mt_allocator/tune-3.cc: New.
1150         * testsuite/ext/mt_allocator/tune-4.cc: New.
1152         * testsuite/testsuite_allocator.h (__gnu_test::check_new): New.
1153         * testsuite/ext/allocators.cc: Use check_new, split into...
1154         * testsuite/ext/mt_allocator/check_new.cc: this.
1155         * testsuite/ext/pool_allocator/check_new.cc: this.
1156         * testsuite/ext/malloc_allocator/check_new.cc: this.
1157         * testsuite/ext/debug_allocator/check_new.cc: this.
1158         * testsuite/ext/mt_allocator/instantiate.cc: this.
1159         * testsuite/ext/pool_allocator/instantiate.cc: this.
1160         * testsuite/ext/malloc_allocator/instantiate.cc: this.
1161         * testsuite/ext/debug_allocator/instantiate.cc: this.
1163 2004-08-30  Phil Edwards  <phil@codesourcery.com>
1165         * docs/html/install.html:  Update locales list (from Paolo).
1166         Remove other redundant information and point to the GCC install
1167         documentation.
1169 2004-08-30  Benjamin Kosnik  <bkoz@redhat.com>
1171         * include/ext/pool_allocator.h: Rename __pool_base to
1172         __pool_alloc_base.
1173         * src/allocator.cc: Same.
1174         * config/linker-map.gnu: Same.
1176 2004-08-30  Paolo Carlini  <pcarlini@suse.de>
1177             Kenneth C. Schalk  <ken@xorian.net>
1179         PR libstdc++/17215
1180         * config/io/basic_file_stdio.cc (__basic_file<char>::close()):
1181         Check the return value of fclose/sync, loop on EINTR.
1182         (__basic_file<char>::sys_open): Likewise, for sync.
1184 2004-08-29  Paolo Carlini  <pcarlini@suse.de>
1186         * include/bits/locale_facets.tcc (time_get<>::_M_extract_via_format,
1187         case 'S'): Allow for at least one leap-second (as per C99, 7.23.1
1188         and 7.23.3.5), two if !_GLIBCXX_USE_C99.
1189         * testsuite/22_locale/time_get/get_time/char/4.cc: New.
1190         * testsuite/22_locale/time_get/get_time/wchar_t/4.cc: Likewise.
1192 2004-08-27  Jason Merrill  <jason@redhat.com>
1194         PR c++/13684
1195         * libsupc++/guard.cc (static_mutex): Internal class implementing a
1196         recursive mutex which controls initialization of local statics.
1197         (__gnu_cxx::recursive_init): New exception class.
1198         (__cxa_guard_acquire): Deal with locking and recursion detection.
1199         (acquire_1, __cxa_guard_abort, __cxa_guard_release): Likewise.
1201 2004-08-27  Matthias Klose  <doko@debian.org>
1203         * configure.host: For mips*-*-linux* update cpu_include_dir
1204         after atomicity_dir is set.
1206 2004-08-27  Matthias Klose  <doko@debian.org>
1208         * config/abi/arm-linux-gnu/baseline_symbols.txt: New.
1209         * config/abi/mips-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1210         * configure.host: Set abi_baseline_pair for arm*-*-linux* and
1211         mips*-*-linux*.
1213 2004-08-27  Paolo Carlini  <pcarlini@suse.de>
1215         * testsuite/27_io/manipulators/adjustfield/wchar_t/1.cc: New.
1216         * testsuite/27_io/manipulators/adjustfield/wchar_t/2.cc: Likewise.
1217         * testsuite/27_io/manipulators/basefield/wchar_t/1.cc: Likewise.
1218         * testsuite/27_io/manipulators/standard/wchar_t/1.cc: Likewise.
1219         * testsuite/27_io/manipulators/standard/wchar_t/2.cc: Likewise.
1221         * testsuite/27_io/manipulators/adjustfield/char/1.cc: Minor
1222         formatting fixes.
1223         * testsuite/27_io/manipulators/adjustfield/char/2.cc: Likewise.
1224         * testsuite/27_io/manipulators/basefield/char/1.cc: Likewise.
1225         * testsuite/27_io/manipulators/standard/char/1.cc: Likewise.
1226         * testsuite/27_io/manipulators/standard/char/2.cc: Likewise.
1228 2004-08-25  Paolo Carlini  <pcarlini@suse.de>
1230         PR libstdc++/17038 (partial)
1231         * include/bits/locale_facets.tcc (time_put<>::do_put): Increase
1232         __maxlen to 128.
1233         * include/bits/locale_facets.h (class __timepunct): Add FIXME
1234         comment about _M_put.
1235         * config/locale/generic/time_members.cc (_M_put): Always null
1236         terminate __s.
1237         * config/locale/gnu/time_members.cc (_M_put): Likewise.
1238         * testsuite/22_locale/time_put/put/char/17038.cc: New.
1239         * testsuite/22_locale/time_put/put/wchar_t/17038.cc: New.
1241 2004-08-24  Paolo Carlini  <pcarlini@suse.de>
1243         * testsuite/27_io/basic_istringstream/rdbuf/wchar_t/2832.cc: New.
1244         * testsuite/27_io/basic_istringstream/str/wchar_t/1.cc: Likewise.
1245         * testsuite/27_io/basic_ostringstream/cons/wchar_t/3.cc: Likewise.
1246         * testsuite/27_io/basic_ostringstream/rdbuf/wchar_t/2832.cc: Likewise.
1247         * testsuite/27_io/basic_ostringstream/str/wchar_t/1.cc: Likewise.
1248         * testsuite/27_io/basic_ostringstream/str/wchar_t/2.cc: Likewise.
1250         * testsuite/27_io/basic_istringstream/rdbuf/char/2832.cc: Trim excess
1251         newlines.
1252         * testsuite/27_io/basic_istringstream/str/char/1.cc: Likewise.
1254 2004-08-22  Matthias Klose  <doko@debian.org>
1256         * config/abi/m68k-linux-gnu/baseline_symbols.txt: New.
1257         * config/abi/sparc-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1259 2004-08-23  Paolo Carlini  <pcarlini@suse.de>
1261         * configure.ac: Specify version 1.9.1 in AM_INIT_AUTOMAKE.
1262         * aclocal.m4: Regenerate with automake-1.9.1.
1263         * configure: Regenerate.
1264         * Makefile.in: Likewise.
1265         * include/Makefile.in: Likewise.
1266         * libmath/Makefile.in: Likewise.
1267         * libsupc++/Makefile.in: Likewise.
1268         * po/Makefile.in: Likewise.
1269         * src/Makefile.in: Likewise.
1270         * testsuite/Makefile.in: Likewise.
1272 2004-08-22  Paolo Carlini  <pcarlini@suse.de>
1274         * include/bits/locale_facets.tcc (num_put<>::do_put(bool)): Cast
1275         to a signed type, long according to the resolution of DR 359.
1276         * testsuite/22_locale/num_put/put/char/9.cc: New.
1277         * testsuite/22_locale/num_put/put/wchar_t/9.cc: New.
1279         * include/bits/locale_facets.tcc (num_put<>::do_put(const void*)):
1280         Simplify a bit: no need to clear showpos.
1282 2004-08-21  Paolo Carlini  <pcarlini@suse.de>
1284         * include/bits/char_traits.h (struct _Char_traits_match): Remove,
1285         unused.
1287 2004-08-21  Paolo Carlini  <pcarlini@suse.de>
1289         * testsuite/22_locale/money_put/put/wchar_t/1.cc: Use proper
1290         wchar_t type for the fill argument; minor formatting tweaks.
1291         * testsuite/22_locale/money_put/put/wchar_t/12971.cc: Likewise.
1292         * testsuite/22_locale/money_put/put/wchar_t/2.cc: Likewise.
1293         * testsuite/22_locale/money_put/put/wchar_t/3.cc: Likewise.
1294         * testsuite/22_locale/money_put/put/wchar_t/4.cc: Likewise.
1295         * testsuite/22_locale/money_put/put/wchar_t/5.cc: Likewise.
1296         * testsuite/22_locale/money_put/put/wchar_t/6.cc: Likewise.
1298 2004-08-21  Paolo Carlini  <pcarlini@suse.de>
1300         * include/bits/basic_ios.tcc (basic_ios<>::copyfmt): Don't deal
1301         with _M_word != _M_local_word two times, redundantly.
1303 2004-08-20  Jason Merrill  <jason@redhat.com>
1305         * include/Makefile.am (${host_builddir}/gthr.h): Don't add
1306         _GLIBCXX_ to #pragma lines.
1307         * include/Makefile.in: Update.
1309 2004-08-20  Paolo Carlini  <pcarlini@suse.de>
1311         PR libstdc++/7219 (continued)
1312         * include/bits/ios_base.h (class ios_base): Expose Annex D.6
1313         typedefs by default.
1314         * testsuite/27_io/types/1.cc: Remove #if _GLIBCXX_DEPRECATED.
1315         * testsuite/27_io/ios_base/cons/assign_neg.cc: Tweak dg-error
1316         line number.
1317         * testsuite/27_io/ios_base/cons/copy_neg.cc: Likewise.
1319 2004-08-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1321         * cpu/hppa/atomicity.h (__exchange_and_add, __atomic_add): Add memory
1322         barrier to locking asm.
1324 2004-08-20  Paolo Carlini  <pcarlini@suse.de>
1326         * include/c_std/cmath.tcc (__cmath_power): Revert previous commit:
1327         actually the warning is a front-end bug (c++/17120).
1329 2004-08-20  Matthias Klose  <doko@debian.org>
1331         * config/abi/s390-linux-gnu/baseline_symbols.txt: New.
1333 2004-08-20  Paolo Carlini  <pcarlini@suse.de>
1335         * include/c_std/cmath.tcc (__cmath_power): Suppress assignment
1336         used as truth value warning.
1338 2004-08-20  Paolo Carlini  <pcarlini@suse.de>
1340         * config/abi/x86_64-linux-gnu/32/baseline_symbols.txt: Add 32 bit
1341         baseline.
1343 2004-08-20  Paolo Carlini  <pcarlini@suse.de>
1345         * config/abi/x86_64-linux-gnu/baseline_symbols.txt: Fix it.
1347 2004-08-19  Benjamin Kosnik  <bkoz@redhat.com>
1349         * testsuite/22_locale/time_put/put/char/3.cc (test03): Don't check
1350         timezone.
1351         * testsuite/22_locale/time_put/put/wchar_t/3.cc (test03): Same.
1353 2004-08-19  Paolo Carlini  <pcarlini@suse.de>
1355         * testsuite/performance/20_util/allocator/insert.cc: For std::map
1356         instantiate the allocator for a correct pair type.
1357         * testsuite/performance/20_util/allocator/insert_insert.cc: Likewise.
1358         * testsuite/performance/20_util/allocator/map_thread.cc: Likewise.
1359         * testsuite/performance/20_util/allocator/producer_consumer.cc:
1360         Likewise.
1362         * testsuite/performance/20_util/allocator/list_sort_search.cc: Very
1363         minor formatting fixes.
1364         * testsuite/performance/20_util/allocator/map_mt_find.cc: Likewise.
1366 2004-08-19  Paolo Carlini  <pcarlini@suse.de>
1368         * testsuite/22_locale/time_put/put/char/1.cc: Add VERIFY on the
1369         results.
1370         * testsuite/22_locale/time_put/put/char/2.cc: Likewise.
1371         * testsuite/22_locale/time_put/put/char/3.cc: Likewise.
1372         * testsuite/22_locale/time_put/put/char/4.cc: Likewise.
1373         * testsuite/22_locale/time_put/put/wchar_t/1.cc: Likewise.
1374         * testsuite/22_locale/time_put/put/wchar_t/2.cc: Likewise.
1375         * testsuite/22_locale/time_put/put/wchar_t/3.cc: Likewise.
1376         * testsuite/22_locale/time_put/put/wchar_t/4.cc: Likewise.
1378 2004-08-19  Paolo Carlini  <pcarlini@suse.de>
1380         * config/abi/x86_64-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1382 2004-08-18  Matthias Klose  <doko@debian.org>
1384         * config/abi/hppa-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1385         * config/abi/i386-linux-gnu/baseline_symbols.txt: New.
1386         * config/abi/powerpc-linux-gnu/baseline_symbols.txt: New.
1388 2004-08-17  Paolo Carlini  <pcarlini@suse.de>
1390         * config/abi/alpha-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1392 2004-08-17  Paolo Carlini  <pcarlini@suse.de>
1394         * config/abi/ia64-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1396 2004-08-17  Benjamin Kosnik  <bkoz@redhat.com>
1398         * config/abi/i486-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1400 2004-08-16  Paolo Carlini  <pcarlini@suse.de>
1402         * include/bits/indirect_array.h: Trivial formatting fixes.
1403         * include/bits/valarray_after.h: Likewise.
1404         * include/bits/valarray_array.h: Likewise.
1405         * src/valarray-inst.cc: Likewise.
1407 2004-08-15  Paolo Carlini  <pcarlini@suse.de>
1409         * testsuite/27_io/basic_stringstream/rdbuf/char/2832.cc: Remove junk.
1410         * testsuite/27_io/basic_stringstream/str/char/1.cc: Likewise.
1411         * testsuite/27_io/basic_stringstream/str/char/3.cc: Likewise.
1413         * testsuite/27_io/basic_stringstream/rdbuf/wchar_t/2832.cc: New.
1414         * testsuite/27_io/basic_stringstream/str/wchar_t/1.cc: Likewise.
1415         * testsuite/27_io/basic_stringstream/str/wchar_t/2.cc: Likewise.
1416         * testsuite/27_io/basic_stringstream/str/wchar_t/3.cc: Likewise.
1417         * testsuite/27_io/basic_stringstream/str/wchar_t/4.cc: Likewise.
1419 2004-08-15  Paolo Carlini  <pcarlini@suse.de>
1421         * include/bits/deque.tcc: Trivial formatting fixes.
1423 2004-08-15  Paolo Carlini  <pcarlini@suse.de>
1425         * include/bits/deque.tcc: Trivial formatting fixes.
1427         * include/bits/locale_facets.tcc (num_get<>::do_get(&bool)):
1428         Remove unneded typedef.
1430         * include/bits/locale_facets.tcc: Very minor tweaks.
1432         * testsuite/22_locale/time_put/put/wchar_t/1.cc: Use proper
1433         type for the fill argument.
1434         * testsuite/22_locale/time_put/put/wchar_t/10.cc: Likewise.
1435         * testsuite/22_locale/time_put/put/wchar_t/2.cc: Likewise.
1436         * testsuite/22_locale/time_put/put/wchar_t/3.cc: Likewise.
1437         * testsuite/22_locale/time_put/put/wchar_t/4.cc: Likewise.
1438         * testsuite/22_locale/time_put/put/wchar_t/5.cc: Likewise.
1439         * testsuite/22_locale/time_put/put/wchar_t/6.cc: Likewise.
1440         * testsuite/22_locale/time_put/put/wchar_t/7.cc: Likewise.
1441         * testsuite/22_locale/time_put/put/wchar_t/8.cc: Likewise.
1443 2004-08-13  Paolo Carlini  <pcarlini@suse.de>
1445         * src/debug.cc (_Error_formatter::_M_print_string): Fix thinko,
1446         memmove is not needed, memcpy suffices.
1448 2004-08-13  Paolo Carlini  <pcarlini@suse.de>
1450         * include/std/std_fstream.h (class basic_ifstream,
1451         class basic_ofstream, class basic_fstream): Add const overloads
1452         of is_open, as per DR 365 [WP].
1453         * docs/html/ext/howto.html: Add an entry for DR 365.
1455 2004-08-12  Paolo Carlini  <pcarlini@suse.de>
1457         * configure.ac: Specify version 1.8.5 in AM_INIT_AUTOMAKE.
1459 2004-08-12  Paolo Carlini  <pcarlini@suse.de>
1461         PR libstdc++/16956
1462         * include/bits/sstream.tcc (basic_stringbuf<>::seekoff): Add __off
1463         to the returned value, reorganize a bit.
1464         * testsuite/27_io/basic_stringbuf/seekoff/char/16956.cc: New.
1465         * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/16956.cc: New.
1467         * testsuite/27_io/basic_stringbuf/seekoff/char/1.cc: Remove junk.
1468         * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc: Likewise.
1469         * testsuite/27_io/basic_stringbuf/seekpos/char/1.cc: Likewise.
1470         * testsuite/27_io/basic_stringbuf/seekpos/wchar_t/1.cc: Likewise.
1472 2004-08-12  Paul Brook  <paul@codesourcery.com>
1474         * config/cpu/arm/cxxabi_tweaks.h: Define __cxa_vec_ctor_return and
1475         _GLIBCXX_CXA_VEC_CTOR_RETURN.
1476         * config/cpu/generic/cxxabi_tweaks.h: Ditto.
1477         * libsupc++/cxxabi.h (__cxa_vec_ctor, __cxa_vec_cctor): Use
1478         __cxa_vec_ctor_return.
1479         * libsupc++/vec.cc (__cxa_vec_ctor, __cxa_vec_cctor): Ditto.
1480         Use _GLIBCXX_CXA_VEC_CTOR_RETURN.
1482 2004-08-12  Kelley Cook  <kcook@gcc.gnu.org>
1484         * Makefile.in, aclocal.m4, configure, include/Makefile.in,
1485         libmath/Makefile.in, libsupc++/Makefile.in, po/Makefile.in,
1486         src/Makefile.in, testsuite/Makefile.in: Regenerate
1488 2004-08-12  Jan Beulich  <jbeulich@novell.com>
1490         * config/locale/generic/ctype_members.cc
1491         (ctype<wchar_t>::_M_convert_to_wmask): Default case must not use 0 as
1492         initializer for return value, as that is invalid for enumerated types.
1493         * config/locale/gnu/ctype_members.cc
1494         (ctype<wchar_t>::_M_convert_to_wmask): Likewise.
1496 2004-08-11  Paolo Carlini  <pcarlini@suse.de>
1498         * testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc: Fix typo.
1500 2004-08-11  Paolo Carlini  <pcarlini@suse.de>
1502         * testsuite/27_io/basic_stringbuf/imbue/char/1.cc: Declare test
1503         variable.
1504         * testsuite/27_io/basic_stringbuf/imbue/wchar_t/1.cc: Ditto.
1505         * testsuite/27_io/basic_stringbuf/in_avail/char/1.cc: Remove junk.
1506         * testsuite/27_io/basic_stringbuf/in_avail/wchar_t/1.cc: Ditto.
1507         * testsuite/27_io/basic_stringbuf/sbumpc/char/1.cc: Ditto.
1508         * testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc: Ditto.
1509         * testsuite/27_io/basic_stringbuf/setbuf/char/1.cc: Ditto.
1510         * testsuite/27_io/basic_stringbuf/setbuf/wchar_t/1.cc: Ditto.
1511         * testsuite/27_io/basic_stringbuf/sgetc/char/1.cc: Ditto.
1512         * testsuite/27_io/basic_stringbuf/sgetc/wchar_t/1.cc: Ditto.
1513         * testsuite/27_io/basic_stringbuf/sgetn/char/1.cc: Ditto.
1514         * testsuite/27_io/basic_stringbuf/sgetn/wchar_t/1.cc: Ditto.
1515         * testsuite/27_io/basic_stringbuf/snextc/char/1.cc: Ditto.
1516         * testsuite/27_io/basic_stringbuf/snextc/wchar_t/1.cc: Ditto.
1517         * testsuite/27_io/basic_stringbuf/sputbackc/char/1.cc: Ditto.
1518         * testsuite/27_io/basic_stringbuf/sputbackc/wchar_t/1.cc: Ditto.
1519         * testsuite/27_io/basic_stringbuf/sputc/char/1.cc: Ditto.
1520         * testsuite/27_io/basic_stringbuf/sputc/wchar_t/1.cc: Ditto.
1521         * testsuite/27_io/basic_stringbuf/sputn/char/1.cc: Ditto.
1522         * testsuite/27_io/basic_stringbuf/sputn/wchar_t/1.cc: Ditto.
1523         * testsuite/27_io/basic_stringbuf/sungetc/char/1.cc: Ditto.
1524         * testsuite/27_io/basic_stringbuf/sungetc/wchar_t/1.cc: Ditto.
1526 2004-08-11  Paolo Carlini  <pcarlini@suse.de>
1527             Petur Runolfsson  <peturr02@ru.is>
1529         PR libstdc++/16959
1530         * src/ios_init.cc (ios_base::sync_with_stdio): Make sure the
1531         standard streams are constructed.
1532         * testsuite/27_io/ios_base/sync_with_stdio/16959.cc: New.
1534 2004-08-09  Paolo Carlini  <pcarlini@suse.de>
1536         * include/bits/stl_bvector.h: Trivial formatting fixes.
1538 2004-08-09  Paolo Carlini  <pcarlini@suse.de>
1540         * src/ios.cc (ios_base::_M_grow_words): Uglify the names.
1542 2004-08-07  Jonathan Wakely  <redi@gcc.gnu.org>
1543             Paolo Carlini  <pcarlini@suse.de>
1545         * src/debug.cc (_Error_formatter::_M_print_string): In order
1546         to print individual words from __string, _M_format_word can't
1547         be called since may be just sprintf, thus ignoring completely
1548         __n: instead, use memmove and append '\0' by hand.
1550 2004-08-07  Paolo Carlini  <pcarlini@suse.de>
1552         * config/locale/generic/c_locale.h (__convert_from_v): Don't
1553         use a default for __prec, assume __prec >= 0 and simplify.
1554         * config/locale/gnu/c_locale.h (__convert_from_v): Likewise.
1555         * include/bits/locale_facets.tcc (money_put<>::do_put(long double)):
1556         Pass format "%.*Lf" + precision == 0, equivalent to "%.0Lf".
1558 2004-08-04  Phil Edwards  <phil@codesourcery.com>
1560         * docs/html/configopts.html:  Emphasize that options change.
1561         * docs/html/17_intro/configury.html:  Update links.
1563 2004-08-03  Paolo Carlini  <pcarlini@suse.de>
1565         * include/bits/list.tcc: Trivial formatting fixes.
1567 2004-08-03  Mark Mitchell  <mark@codesourcery.com>
1569         * libsupc++/new_op.cc: Update comments.
1570         * libsupc++/del_op.cc: Likewise.
1572 2004-08-02  Mark Mitchell  <mark@codesourcery.com>
1574         * libsupc++/cxxabi.h: Make all declarations have default
1575         visibility.
1576         * libsupc++/exception: Likewise.
1577         * libsupc++/new: Likewise.
1578         * libsupc++/typeinfo: Likewise.
1579         * libsupc++/unwind-cxx.h: Likewise.
1580         * libsupc++/eh_alloc.cc (__cxa_allocate_exception): Put it into
1581         the __cxxabiv1 namespace.
1582         (__cxa_free_exception): Likewise.
1583         * libsupc++/eh_aux_runtime.cc (__cxa_bad_cast): Likewise.
1584         (__cxa_bad_typeid): Likewise.
1585         * libsupc++/eh_catch.cc (__cxa_begin_catch): Likewise.
1586         (__cxa_end_catch): Likewise.
1587         * libsupc++/eh_globals.cc (__cxa_get_globals_fast): Likewise.
1588         (__cxa_get_globals): Likewise.
1589         * libsupc++/eh_throw.cc (__cxa_throw): Likewise.
1590         (__cxa_rethrow): Likewise.
1591         * libsupc++/pure.cc (__cxa_pure_virtual): Likewise.
1592         * libsupc++/eh_type.cc: Include <cxxabi.h>.
1594         * Makefile.am (hosted_source): Add libmath and testsuite.
1595         (SUBDIRS): Remove them.
1596         * acinclude.m4: (GLIBCXX_ENABLED_HOSTED): Default to freestanding
1597         on arm*-*-symbianelf*.
1598         * crossconfig.m4: Add arm*-*-symbianelf* support.
1599         * include/c_std/std/std_cstdlib.h (stdlib.h): Do not include it
1600         when freestanding.  Do not bring names into std:: namespace with
1601         "using" when freestanding.  Declare required functions and macros
1602         when freestanding.
1603         * libsupc++/Makefile.am (c_sources): Do not include cp-demangle.c
1604         when freestanding.
1605         * libsupc++/del_op.cc: Declare "free" only when freestanding.
1606         * libsupc++/eh_alloc.cc (cstring): Include it only when hosted.
1607         (malloc): Declare when freestanding.
1608         (free): Likewise.
1609         (memset): Likewise.
1610         (__cxa_allocate_exception): Call malloc, not std::malloc.  Likewise
1611         for memset.
1612         (__cxa_free_exception): Likewise for free.
1613         * libsupc++/new_op.cc: Declare "malloc" when freestanding.
1614         * libsupc++/pure.cc (writestr): Define to nothing when
1615         freestanding.
1616         * libsupc++/vterminate.cc: Do not define anything when
1617         freestanding.
1618         * Makefile.in: Regenerated.
1619         * aclocal.m4: Likewise.
1620         * configure: Likewise.
1621         * include/Makefile.in: Likewise.
1622         * libmath/Makefile.in: Likewise.
1623         * libsupc++/Makefile.in: Likewise.
1624         * po/Makefile.in: Likewise.
1625         * src/Makefile.in: Likewise.
1626         * testsuite/Makefile.in: Likewise.
1628 2004-08-01  Matt Austern  <austern@apple.com>
1630         PR libstdc++/16844
1631         * include/bits/stl_list.h (_M_create_node): Remove unused
1632         zero-argument version.
1633         * include/ext/slist (_M_create_node): Pass two arguments to
1634         allocator's construct() member function.
1635         * testsuite/23_containers/deque/explicit_instantiation.cc: New.
1636         * testsuite/23_containers/list/explicit_instantiation.cc: New.
1637         * testsuite/23_containers/vector/explicit_instantiation.cc: New.
1638         * testsuite/23_containers/map/explicit_instantiation.cc: New.
1639         * testsuite/23_containers/set/explicit_instantiation.cc: New.
1640         * testsuite/23_containers/multimap/explicit_instantiation.cc: New.
1641         * testsuite/23_containers/multiset/explicit_instantiation.cc: New.
1642         * testsuite/ext/hash_set_explicit_instantiation.cc: New.
1643         * testsuite/ext/slist_explicit_instantiation.cc: New.
1645 2004-07-30  Paolo Carlini  <pcarlini@suse.de>
1647         * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
1648         num_get<>::_M_extract_int): In the main parsing loop delay the
1649         life of __q to the actual use point.
1651 2004-07-29  Paolo Carlini  <pcarlini@suse.de>
1653         PR libstdc++/14220
1654         * include/bits/locale_facets.tcc (num_put<>::_M_insert_float):
1655         Don't clip the precision passed down to __convert_from_v:
1656         22.2.2.2.2 nowhere says so.
1657         * testsuite/22_locale/num_put/put/char/14220.cc: New.
1658         * testsuite/22_locale/num_put/put/wchar_t/14220.c: Likewise.
1660 2004-07-29  Paolo Carlini  <pcarlini@suse.de>
1662         * docs/html/ext/lwg-active.html, lwg-defects.html: Import Revision 31.
1664 2004-07-29  Paolo Carlini  <pcarlini@suse.de>
1665             Petur Runolfsson  <peturr02@ru.is>
1667         PR libstdc++/12658 (continued)
1668         * src/locale_init.cc (locale::locale, locale::global): Use
1669         a single locale_mutex instead of two separate mutexes.
1671 2004-07-29  Paolo Carlini  <pcarlini@suse.de>
1673         PR libstdc++/16813
1674         * include/debug/map.h (insert(_InputIterator, _InputIterator)):
1675         Fix typo.
1676         * testsuite/23_containers/map/insert/16813.cc: New.
1678 2004-07-29  Phil Edwards  <phil@codesourcery.com>
1680         * docs/html/faq/index.html:  Update version references.  Make
1681         clear that code from SGI has diverged greatly.  Remove references
1682         to library snapshots and what's-new sections.
1683         * docs/html/faq/index.txt:  Regenerate.
1685 2004-07-28  Matt Austern  <austern@apple.com>
1687         * include/bits/stl_construct.h (_Destroy): New three-argument
1688         overload that takes an allocator argument.  Another inline
1689         three-argument overload that takes std::allocator and dispatches
1690         to the two-argument version.
1691         * include/bits/stl_uninitialized.h (__uninitialized_fill_n_aux):
1692         Change return type to void to match uninitialized_fill_n.
1693         (__uninitialized_copy_a_): New function.  Like uninitialized_copy
1694         except that it takes an allocator and uses it for construct and
1695         destroy.  If the allocator is std::allocator, dispatches to
1696         uninitialized_copy.
1697         (__uninitialized_fill_a): Likewise.
1698         (__uninitialized_fill_n_a): Likewise.
1699         (__uninitialized_copy_copy): Give it an allocator argument.
1700         (__uninitialized_fill_copy): Likewise.
1701         (__uninitialized_copy_fill): Likewise.
1702         * include/bits/deque.tcc: Use new forms defined in stl_construct.h
1703         and stl_uninitialized.h.  Replace use of single-argument _Construct
1704         and _Destroy with use of allocator's construct and destroy methods.
1705         * include/bits/list.tcc: Likewise.
1706         * include/bits/stl_deque.h: Likewise.
1707         * include/bits/stl_list.h: Likewise.
1708         * include/bits/stl_tree.h: Likewise.
1709         * include/bits/stl_vector.h: Likewise.
1710         * include/bits/vector.tcc: Likewise.
1711         * include/ext/hashtable.h: Use rebind so that allocator_type
1712         has correct type for a container's allocator.  Replace use of
1713         single-argument _Construct and _Destroy with use of allocator's
1714         construct and destroy methods.
1715         * include/ext/memory (__uninitialized_copy_n_a): New function.
1716         Like uninitialized_copy_n except that it takes an extra parameter,
1717         an allocator, and uses it for construct and destroy operations.
1718         * include/ext/rope: Use new forms defined in stl_construct.h,
1719         stl_uninitialized.h, and ext/memory.  Replace use of single-argument
1720         _Construct and _Destroy with allocator construct and destroy methods.
1721         * include/ext/ropeimpl.h: Likewise.
1722         * include/ext/slist.h: Likewise.
1723         * testsuite/testsuite_allocator.h (check_construct_destroy): New.
1724         * testsuite/testsuite_allocator.cc (check_construct_destroy): New.
1725         * testsuite/23_containers/deque/check_construct_destroy.cc: New.
1726         * testsuite/23_containers/list/check_construct_destroy.cc: New.
1727         * testsuite/23_containers/set/check_construct_destroy.cc: New.
1728         * testsuite/23_containers/vector/check_construct_destroy.cc: New.
1729         * testsuite/ext/hash_check_construct_destroy.cc: New.
1730         * testsuite/ext/slist_check_construct_destroy.cc: New.
1732 2004-07-28  Alexandre Oliva  <aoliva@redhat.com>
1734         2003-10-01  Eric Christopher  <echristo@redhat.com>
1735         * config/cpu/sh/atomicity.h (__exchange_and_add): Remove 'm'
1736         constraint.
1737         2003-07-09  Alexandre Oliva  <aoliva@redhat.com>
1738         * config/cpu/sh/atomicity.h: New.  Use movli and movco on SH4a.
1740 2004-07-23  Benjamin Kosnik  <bkoz@redhat.com>
1742         PR libstdc++/16678
1743         * include/bits/locale_facets.tcc: Fix for -Werror.
1745 2004-07-23  Jonathan Wakely  <redi@gcc.gnu.org>
1747         * docs/html/debug.html: Say debug mode only available since 3.4.0.
1749 2004-07-21  Benjamin Kosnik  <bkoz@redhat.com>
1751         * docs/doxygen/mainpage.html: Clarify links.
1752         * docs/doxygen/stdheader.cc: Add files.
1753         * docs/doxygen/style.css: Remove bolds, add h2, h3 styles.
1754         * docs/doxygen/user.cfg.in: New options, wrap.
1756 2004-07-20  Danny Smith  <dannysmith@users.sourceforge.net>
1758         * include/c_std/std_cwchar.h (wcsstr): Correct signature.
1760 2004-07-19  Benjamin Kosnik  <bkoz@redhat.com>
1762         PR libstdc++/15488
1763         * testsuite/lib/libstdc++.exp (v3-copy-files): Revert.
1765 2004-07-17  Richard Sandiford  <rsandifo@redhat.com>
1767         PR bootstrap/16469
1768         * scripts/create_testsuite_files: Pass -print to find.
1770 2004-07-15  Paolo Carlini  <pcarlini@suse.de>
1772         * docs/html/ext/lwg-active.html, lwg-defects.html: Import Revision 30.
1773         * docs/html/ext/howto.html: Tweak entries for DRs 167/253/389/402.
1775 2004-07-15  Jakub Jelinek  <jakub@redhat.com>
1777         PR libstdc++/14697
1778         * acinclude.m4 (glibcxx_shared_libgcc): Correct
1779         glibcxx_shared_libgcc test for multilibs.
1780         * configure: Rebuilt.
1782 2004-07-14  Paolo Carlini  <pcarlini@suse.de>
1784         PR libstdc++/16505
1785         * include/bits/stl_uninitialized.h (uninitialized_fill_n): Fix
1786         the signature to return void, as per 20.4.4.3.
1787         * include/bits/stl_vector.h (vector::vector(size_type,
1788         const value_type&, const allocator_type&), vector::vector(size_type),
1789         vector::_M_initialize_dispatch): Adjust callers.
1790         * include/bits/vector.tcc (vector<>::_M_fill_assign,
1791         vector<>::_M_fill_insert): Likewise.
1792         * testsuite/20_util/memory/16505.cc: New.
1794 2004-07-14  Paolo Carlini  <pcarlini@suse.de>
1796         * testsuite/22_locale/locale/cons/12658_thread-1.cc,
1797         12658_thread-2.cc: Use __gnu_test::try_named_locale.
1799 2004-07-13  Benjamin Kosnik  <bkoz@redhat.com>
1801         * docs/html/ext/mt_allocator.html: Add docs for _Tune.
1802         * include/ext/mt_allocator.h (__mt_alloc::_S_get_options): Make public.
1803         (__mt_alloc::_S_set_options): Same.
1804         Add to comments.
1806 2004-07-13  Benjamin Kosnik  <bkoz@redhat.com>
1808         * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Add allocator defaults
1809         for linux.
1810         * configure: Regenerated.
1812 2004-07-13  Paolo Carlini  <pcarlini@suse.de>
1814         * testsuite/22_locale/locale/cons/12658_thread.cc: Move/rename
1815         to 12658_thread-1.cc and xfail.
1816         * testsuite/22_locale/locale/cons/12658_thread-2.c: New, much
1817         simpler version of 12658_thread-1.cc, still failing on 3_3 and
1818         not failing on 3_4/mainline - both on single processor and
1819         multiprocessor machines.
1821 2004-07-12  Benjamin Kosnik  <bkoz@redhat.com>
1823         * docs/html/abi.html: Remove non-public qualification.
1825         * include/bits/concurrence.h: Tweak comments.
1827 2004-07-11  Paolo Carlini  <pcarlini@suse.de>
1829         Add wchar_t counterparts of the basic_streambbuf<char> tests.
1830         * testsuite/27_io/basic_streambuf/cons/wchar_t/1.cc: New.
1831         * testsuite/27_io/basic_streambuf/imbue/wchar_t/1.cc, 9322.cc:
1832         Likewise.
1833         * testsuite/27_io/basic_streambuf/in_avail/wchar_t/9701-3.cc: Likewise.
1834         * testsuite/27_io/basic_streambuf/overflow/wchar_t/1.cc, 2.cc,
1835         3599.cc: Likewise.
1836         * testsuite/27_io/basic_streambuf/sgetc/wchar_t/1.cc: Likewise.
1837         * testsuite/27_io/basic_streambuf/sgetn/wchar_t/1.cc: Likewise.
1838         * testsuite/27_io/basic_streambuf/sputbackc/wchar_t/9538.cc: Likewise.
1839         * testsuite/27_io/basic_streambuf/sputc/wchar_t/1057.cc: Likewise.
1840         * testsuite/27_io/basic_streambuf/sputn/wchar_t/1.cc, 1057.cc:
1841         Likewise.
1842         * testsuite/27_io/basic_streambuf/sync/wchar_t/1057.cc: Likewise.
1844         * testsuite/27_io/basic_streambuf/imbue/char/1.cc, 9322.cc: Minor
1845         tweaks.
1846         * testsuite/27_io/basic_streambuf/overflow/char/2.cc, 3599.cc:
1847         Likewise.
1848         * testsuite/27_io/basic_streambuf/sputn/char/1057.cc: Likewise.
1849         * testsuite/27_io/basic_streambuf/sync/char/1057.cc: Likewise.
1851 2004-07-11  Phil Edwards  <phil@codesourcery.com>
1853         * acinclude.m4:  Cosmetic shell syntax fixes.
1854         * configure.ac:  Bring comment inline with reality.
1855         * configure.host:  Both of the above.  Move 'arm' case to right
1856         place in host_cpu switch.
1857         * aclocal.m4, configure:  Regenerate.
1859 2004-07-09  Paolo Carlini  <pcarlini@suse.de>
1861         Add wchar_t counterparts of the basic_stringbuf<char> tests.
1862         * testsuite/27_io/basic_stringbuf/imbue/wchar_t/1.cc, 9322.cc: New.
1863         * testsuite/27_io/basic_stringbuf/in_avail/wchar_t/1.cc: Likewise.
1864         * testsuite/27_io/basic_stringbuf/overflow/wchar_t/1.cc, 2.cc,
1865         3599.cc, 9988.cc: Likewise.
1866         * testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc, 9825.cc:
1867         Likewise.
1868         * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc, 2.cc:
1869         Likewise.
1870         * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc, 2.cc, 3.cc:
1871         Likewise.
1872         * testsuite/27_io/basic_stringbuf/setbuf/wchar_t/1.cc, 2.cc, 3.cc:
1873         Likewise.
1874         * testsuite/27_io/basic_stringbuf/sgetc/wchar_t/1.cc: Likewise.
1875         * testsuite/27_io/basic_stringbuf/sgetn/wchar_t/1.cc: Likewise.
1876         * testsuite/27_io/basic_stringbuf/snextc/wchar_t/1.cc: Likewise.
1877         * testsuite/27_io/basic_stringbuf/sputbackc/wchar_t/1.cc, 9425.cc:
1878         Likewise.
1879         * testsuite/27_io/basic_stringbuf/sputc/wchar_t/1.cc, 1057.cc,
1880         9404-1.cc: Likewise.
1881         * testsuite/27_io/basic_stringbuf/sputn/wchar_t/1.cc, 1057.cc,
1882         9404-2.cc: Likewise.
1883         * testsuite/27_io/basic_stringbuf/str/wchar_t/1.cc, 2.cc, 3.cc,
1884         3955.cc: Likewise.
1885         * testsuite/27_io/basic_stringbuf/sungetc/wchar_t/1.cc: Likewise.
1886         * testsuite/27_io/basic_stringbuf/sync/wchar_t/1057.cc: Likewise.
1888 2004-07-08  Paolo Carlini  <pcarlini@suse.de>
1890         * include/bits/gslice.h: Trivial formatting fixes.
1891         * include/bits/gslice_array.h: Likewise.
1892         * include/bits/indirect_array.h: Likewise.
1893         * include/bits/mask_array.h: Likewise.
1894         * include/bits/slice_array.h: Likewise.
1895         * include/bits/valarray_after.h: Likewise.
1896         * include/bits/valarray_array.h: Likewise.
1897         * include/bits/valarray_before.h: Likewise.
1898         * include/std/std_valarray.h: Likewise.
1900 2004-07-08  Benjamin Kosnik  <bkoz@redhat.com>
1902         PR c++/16169
1903         * include/bits/basic_string.h (basic_string::operator=): Revert.
1905 2004-07-07  Benjamin Kosnik  <bkoz@redhat.com>
1907         * configure.ac (libtool_VERSION): To 6:2:0.
1908         * configure: Regenerated.
1910         * testsuite/testsuite_abi.cc (check_version): Add 3.4.2.
1912 2004-07-07  Aaron W. LaFramboise  <aaronraolete36@aaronwl.com>
1914         PR libstdc++/16411
1915         * config/linker-map.gnu: Add stdio_sync_filebuf::file exports.
1917 2004-07-07  Benjamin Kosnik  <bkoz@redhat.com>
1919         * docs/html/abi.html: Updates for 3.4.1 release. Add summary of
1920         -Weffc++ issues.
1922 2004-07-07  Paolo Carlini  <pcarlini@suse.de>
1924         PR libstdc++/16401
1925         * include/bits/sstream.tcc (overflow): When reallocating _M_string
1926         use an exponential grow policy.
1927         * testsuite/27_io/basic_stringbuf/overflow/char/1.cc: New.
1928         * testsuite/performance/27_io/stringbuf_overflow.cc: New.
1930 2004-07-06  Anssi Hannula  <anssi.hannula@mbnet.fi>
1932         PR libstdc++/15928
1933         * crossconfig.m4: Add in bits for djgpp.
1934         * configure: Regenerate.
1936 2004-07-05  Jonathan Wakely  <redi@gcc.gnu.org>
1938         * testsuite/23_containers/{set,multiset}/14340.cc: Fix typos in
1939         instantiation of set and multiset (functor param given as int).
1941 2004-07-04  Paolo Carlini  <pcarlini@suse.de>
1943         * include/bits/basic_string.h: Trivial formatting fixes and/or
1944         const-ification of some variables.
1945         * include/bits/deque.tcc: Likewise.
1946         * include/bits/stl_algobase.h: Likewise.
1947         * include/bits/stl_bvector.h: Likewise.
1948         * include/bits/stl_construct.h: Likewise.
1949         * include/bits/stl_deque.h: Likewise.
1950         * include/bits/stl_pair.h: Likewise.
1951         * include/bits/stl_vector.h: Likewise.
1952         * include/bits/vector.tcc: Likewise.
1954 2004-07-04  Paolo Carlini  <pcarlini@suse.de>
1956         * testsuite/25_algorithms/copy/1.cc: Add instantiations for
1957         systems with no COMDAT or weak support.
1958         * testsuite/25_algorithms/copy/2.cc: Likewise.
1959         * testsuite/25_algorithms/copy/3.cc: Likewise.
1960         * testsuite/25_algorithms/copy/4.cc: Likewise.
1962 2004-07-03  Paul Brook  <paul@codesourcery.com>
1964         * configure.ac: Set ABI_TWEAKS_SRCDIR.
1965         * configure.host: Set abi_tweaks_dir.  Check for atomicity.h when
1966         setting atomicity_dir.  Override type_cpu for arm based targets.
1967         * include/Makefile.am (host_headers): Add cxxabi_tweaks.h.
1968         * libsupc++/cxxabi.h: Include bits/cxxabi.h. Don't declare __guard.
1969         * libsupc++/guard.cc: Use definitions from cxxabi_tweaks.h.
1970         * libsupc++/vec.cc: Ditto.
1971         * config/cpu/arm/cxxabi_tweaks.h: New file.
1972         * config/cpu/generic/cxxabi_tweaks.h: New file.
1973         * */Makefile.in: Regenerate.
1974         * configure: Regenerate.
1976 2004-07-02  Paolo Carlini  <pcarlini@suse.de>
1978         * include/bits/type_traits.h (_Is_normal_iterator): Move...
1979         * include/bits/cpp_type_traits.h: ... here, renamed to
1980         __is_normal_iterator and consistent with the other traits.
1981         * include/bits/stl_algobase.h (__copy_ni1, __copy_ni2): Convert
1982         to the struct __copy_normal and three specializations.
1983         (__copy_backward_output_normal_iterator,
1984         __copy_backward_input_normal_iterator): Likewise, convert to
1985         the struct __copy_backward_normal and three specializations.
1986         (copy, copy_backward): Use the latter.
1987         (__copy_aux, __copy_backward_aux): Very minor tweaks.
1989 2004-07-01  Paolo Carlini  <pcarlini@suse.de>
1991         * include/bits/stl_algobase.h (__copy_trivial): Remove.
1992         (__copy_aux2): Rewrite as __copy_aux to use __is_pointer,
1993         __is_trivially_copyable, __are_same and __copy::copy.
1994         (__copy): Rewrite as a class template and two specializations.
1995         (__copy_ni2): Simplify, just call __copy_aux.
1997         * include/bits/stl_algobase.h (__copy_backward_aux): Add __are_same
1998         check.
1999         * testsuite/25_algorithms/copy/1.cc, 2.cc, 3.cc, 4.cc: Test also
2000         for destination value type != source value type.
2002 2004-07-01  Benjamin Kosnik  <bkoz@redhat.com>
2003             Per Bothner  <per@bothner.com>
2004             Mohan Embar  <gnustuff@thisiscool.com>
2006         PR libstdc++/16248
2007         * include/bits/concurrence.h (__glibcxx_mutex_type): New.
2008         (__glibcxx_mutex): Encapsulate mutex init function into type for
2009         threaded configurations without __GTHREAD_MUTEX_INIT.
2010         (lock::lock): Make device member a reference.
2011         (lock::~lock): Same.
2012         * include/ext/pool_allocator.h (__pool_base::_M_get_mutex): Change
2013         to mutex_type.
2014         * src/allocator.cc: Same.
2016 2004-06-30  Brad Spencer  <spencer@infointeractive.com>
2018         * include/ext/mt_allocator.h: Handle allocations at static
2019         initialization that happen before _S_options is (automatically)
2020         constructed; set _S_init even if _M_force_new is true.
2022 2004-06-30  Benjamin Kosnik  <bkoz@redhat.com>
2024         * config/linker-map.gnu: Revert new exports.
2026 2004-06-30  Benjamin Kosnik  <bkoz@redhat.com>
2027             Stuart Anderson  <anderson@netsweng.com>
2029         * config/linker-map.gnu: Add destructor exports for abstract base
2030         classes to conform to LSB.
2032 2004-06-30  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2033             Paolo Carlini  <pcarlini@suse.de>
2035         * include/bits/cpp_type_traits.h: Add __is_pointer and
2036         __is_trivially_copyable.
2037         * include/bits/stl_algobase.h (fill, fill_n): Slightly
2038         tweak to use the latter.
2039         (__copy_backward_dispatch): Remove.
2040         (__copy_backward_aux): Rewrite to use __is_pointer and
2041         __is_trivially_copyable and __copy_backward::copy_b.
2042         (__copy_backward): Rewrite as a class template and two
2043         specializations.
2045 2004-06-30  Paolo Carlini  <pcarlini@suse.de>
2047         * testsuite/25_algorithms/copy.cc: Move to...
2048         * testsuite/25_algorithms/copy/1.cc: ... here, extend.
2049         * testsuite/25_algorithms/copy/2.cc: New.
2050         * testsuite/25_algorithms/copy/3.cc: New.
2051         * testsuite/25_algorithms/copy/4.cc: New.
2053 2004-06-29  Paul Brook  <paul@codesourcery.com>
2055         * libsupc++/vec.cc (__cxa_vec_new2, __cxa_vec_new3): Store the
2056         element size in the cookie.
2058 2004-06-28  Paolo Carlini  <pcarlini@suse.de>
2060         * include/bits/cpp_type_traits.h: Move the additions to
2061         namespace __gnu_internal outside of namespace std; trivial
2062         formatting fixes.
2064 2004-06-28  Benjamin Kosnik  <bkoz@redhat.com>
2066         * include/debug/safe_base.h (__gnu_debug::_Safe_sequence_base):
2067         Revert -Weffc++ changes that defined copy ctory and or assignment
2068         operator.
2069         * libsupc++/tinfo.cc (__upcast_result): Same.
2071 2004-06-28  Paolo Carlini  <pcarlini@suse.de>
2073         * src/localename.cc (locale::_Impl::_Impl): Slightly improve
2074         the algorithm used to name the categories.
2076 2004-06-28  Paolo Bonzini  <bonzini@gnu.org>
2078         * include/Makefile.am: Give a .gch extension to
2079         the PCH files, not only to the directory.
2080         * include/Makefile.in: Regenerate.
2082 2004-06-28  Paolo Carlini  <pcarlini@suse.de>
2084         * config/locale/gnu/monetary_members.cc
2085         (moneypunct<wchar_t>::_M_initialize_moneypunct): Clean up
2086         assignments of _M_decimal_point and _M_thousands_sep.
2088 2004-06-27  Paolo Carlini  <pcarlini@suse.de>
2090         * docs/html/17_intro/contribute.html: Update some links.
2091         * docs/html/17_intro/porting-howto.html: Likewise.
2092         * docs/html/17_intro/porting-howto.xml: Likewise.
2093         * docs/html/18_support/howto.html: Likewise.
2094         * docs/html/21_strings/howto.html: Likewise.
2095         * docs/html/27_io/howto.html: Likewise.
2096         * docs/html/configopts.html: Likewise.
2097         * docs/html/ext/howto.html: Likewise.
2098         * docs/html/faq/index.html: Likewise.
2099         * docs/html/install.html: Don't mention 2.x compilers.
2101 2004-06-27  Paolo Carlini  <pcarlini@suse.de>
2103         * include/ext/rope: Trivial formatting fixes.
2104         * include/ext/ropeimpl.h: Likewise.
2106 2004-06-26  Paolo Carlini  <pcarlini@suse.de>
2108         PR libstdc++/16210
2109         * acinclude.m4 (GLIBCXX_ENABLE_LONG_LONG): Do not check for the
2110         availability of strto(u)ll, not used anymore in the iostreams.
2111         * configure: Regenerate.
2113 2004-06-25  Benjamin Kosnik  <bkoz@redhat.com>
2115         PR libstdc++/16182
2116         * linkage.m4 (GLIBCXX_CHECK_BUILTIN_MATH_DEC): Revert to
2117         AC_DEFINE_UNQUOTED.
2118         * configure: Regenerate.
2120 2004-06-25  Paul Brook  <paul@codesourcery.com>
2122         * libsupc++/cxxabi.h: Define __ARM_EABI__
2123         (__guard): Use it.
2124         * libsupc++/guard.h (__cxa_guard_acquire, __cxa_guard_release): Ditto.
2126 2004-06-25  Paul Brook  <paul@codesourcery.com>
2128         * include/bits/concurrence.h: Still create mutex object when
2129         single-threaded.
2131 2004-06-25  Paolo Carlini  <pcarlini@suse.de>
2133         * include/bits/stl_algobase.h (fill, fill_n): Revert last
2134         change: actually we need to copy construct an object of type
2135         _Tp, not of type iterator_traits<>::value_type, therefore the
2136         code is ok.
2138 2004-06-25  Paolo Carlini  <pcarlini@suse.de>
2140         * include/bits/stl_algobase.h (fill, fill_n): Tighten the
2141         dispatch: use iterator_traits<>::value_type, not _Tp.
2143 2004-06-25  Paolo Carlini  <pcarlini@suse.de>
2145         * testsuite/25_algorithms/fill/1.cc: Tweak instantiations.
2146         * testsuite/25_algorithms/fill/2.cc: Likewise.
2148 2004-06-25  Dan Nicolaescu  <dann@ics.uci.edu>
2149             Paolo Carlini  <pcarlini@suse.de>
2151         * include/bits/stl_algobase.h (__fill, __fill_n): New helpers
2152         for fill and fill_n, respectively: when copying is cheap, use a
2153         temporary to avoid a memory read in each iteration.
2155 2004-06-25  Paolo Carlini  <pcarlini@suse.de>
2157         * testsuite/25_algorithms/fill/1.cc: New.
2158         * testsuite/25_algorithms/fill/2.cc: Likewise.
2160 2004-06-25  Benjamin Kosnik  <bkoz@redhat.com>
2162         * include/debug/formatter.h (__gnu_debug::_Error_formatter):
2163         Remove copy constructor and assignment operator.
2165 2004-06-24  Benjamin Kosnik  <bkoz@redhat.com>
2167         * include/bits/concurrence.h (__gnu_cxx::lock): New.
2168         * include/ext/pool_allocator.h (__pool_base::_Lock::_S_lock): Remove.
2169         (__pool_base::_M_get_mutex): New.
2170         * include/bits/allocator.h: Tweak.
2171         * src/allocator.cc (__pool_base::_M_get_free_list): Correct offset.
2172         * config/linker-map.gnu: Remove __pool_base::_Lock::_S_lock.
2173         * include/bits/stl_threads.h: Remove.
2174         * include/Makefile.am: Also here.
2175         * include/Makefile.in: Regenerate.
2177         * src/locale_init.cc: Use __gnu_cxx::lock.
2179         * src/allocator.cc: Move all instantiations...
2180         * src/allocator-inst.cc: ...here.
2182 2004-06-23  Andrew Pinski  <apinski@apple.com>
2184         * linkage.m4: Remove check for libmx.
2185         * configure: Regenerate.
2187 2004-06-23  Paolo Carlini  <pcarlini@suse.de>
2189         PR libstdc++/16154
2190         * include/bits/boost_concept_check.h (struct _TrivialIteratorConcept):
2191         Don't require the _DefaultConstructibleConcept.
2192         (struct _ForwardIteratorConcept): Require it here.
2194 2004-06-22  Alexandre Oliva  <aoliva@redhat.com>
2196         * include/bits/istream.tcc (getline): Make sure arguments passed
2197         to min/max have the same type.
2198         * include/bits/locale_facets.tcc (__verify_grouping): Likewise.
2199         * include/bits/stl_deque.h (_Deque_base::_Deque_base): Likewise.
2201 2004-06-22  Benjamin Kosnik  <bkoz@redhat.com>
2203         * docs/html/abi.html: Update links.
2205 2004-06-22  Paolo Carlini  <pcarlini@suse.de>
2207         * testsuite/26_numerics/complex_inserters_extractors.cc,
2208         complex_value.cc, buggy_complex.cc: Move to...
2209         * testsuite/26_numerics/complex/: ... here.
2210         * testsuite/26_numerics/c99_classification_macros_c++.cc,
2211         c99_classification_macros_c.cc, c_math.cc, c_math_dynamic.cc,
2212         fabs_inline.cc: Move to...
2213         * testsuite/26_numerics/cmath/: ... here.
2214         * testsuite/26_numerics/binary_closure.cc, slice.cc,
2215         slice_array_assignment.cc, valarray.cc, valarray_const_bracket.cc,
2216         valarray_name_lookup.cc, valarray_operators.cc,
2217         valarray_subset_assignment.cc: Move to...
2218         * testsuite/26_numerics/valarray/: ... here (new dir).
2219         * testsuite/26_numerics/sum_diff.cc: Move to...
2220         * testsuite/26_numerics/numeric/: ... here (new dir).
2222 2004-06-22  Paolo Carlini  <pcarlini@suse.de>
2224         * include/std/std_istream.h (ignore(streamsize __n = 1,
2225         int_type __delim = traits_type::eof())): Split into...
2226         (ignore(), ignore(streamsize __n), ignore(streamsize __n,
2227         int_type __delim)): The first two can be much more simpler
2228         and efficient than the fully general case; also, the last
2229         two can take advantage of the same mechanism already used
2230         for getline.
2231         * include/bits/istream.tcc (ignore(streamsize __n = 1,
2232         int_type __delim = traits_type::eof()): Remove.
2233         (ignore(), ignore(streamsize __n), ignore(streamsize __n,
2234         int_type __delim)): New.
2236 2004-06-21  Loren J. Rittle  <ljrittle@acm.org>
2238         * config/linker-map.gnu: Use wildcards for
2239         __basic_file::sys_open(FILE*, _Ios_Openmode).
2241 2004-06-20  Paolo Carlini  <pcarlini@suse.de>
2243         * testsuite/27_io/basic_istream/ignore/char/3.cc: New.
2245 2004-06-18  Paolo Carlini  <pcarlini@suse.de>
2247         * include/ext/mt_allocator (__mt_alloc<>::_Tune): Add _M_align,
2248         the alignment requested.
2249         (__mt_alloc<>::_Tune::_Tune): Tweak consistently.
2250         (__mt_alloc<>::allocate): Use it instead of sizeof(_Block_record).
2251         (__mt_alloc<>::deallocate): Likewise.
2253 2004-06-18  Paolo Carlini  <pcarlini@suse.de>
2255         PR libstdc++/16020
2256         * include/debug/safe_base.h
2257         (_Safe_sequence_base::_Safe_sequence_base(const _Safe_sequence_base&),
2258         _Safe_sequence_base::operator=): Provide definitions.
2259         * testsuite/23_containers/bitset/cons/16020.cc: New.
2261 2004-06-18  Benjamin Kosnik  <bkoz@redhat.com>
2263         * include/ext/pool_allocator.h: Qualify __throw_bad_alloc.
2264         (__pool_base): Remove unused template parameter.  Add
2265         protected. Move lock data into __pool_base::_Lock. Remove static
2266         on member functions.
2267         (__pool_base::_M_get_free_list): New.
2268         (__pool_alloc): Move _S_force new here.
2269         * src/allocator.cc: Move out of line __pool_base definitions here.
2270         * config/linker-map.gnu: Export bits from __pool_base.
2272 2004-06-18  Paolo Carlini  <pcarlini@suse.de>
2274         * config/locale/gnu/numeric_members.cc
2275         (numpunct<wchar_t>::_M_initialize_numpunct): Clean up
2276         assignments of _M_decimal_point and _M_thousands_sep.
2277         * config/locale/gnu/time_members.cc
2278         (__timepunct<wchar_t>::_M_initialize_timepunct): Clean up
2279         and reformat assignments of date and time fields.
2281 2004-06-16  Paolo Carlini  <pcarlini@suse.de>
2283         * include/ext/rope (rope(_CharT, const allocator_type&)): Fix
2284         to use _Data_allocate.
2285         * include/ext/ropeimpl.h (rope<>::_S_leaf_concat_char_iter): Likewise.
2286         (rope<>::_S_substring): Likewise.
2287         (rope<>::rope(size_t, _CharT, const allocator_type&)): Likewise.
2288         (rope<>::c_str()): Likewise.
2289         (rope<>::replace_with_c_str()): Likewise.
2291         * include/ext/ropeimpl.h (_Rope_iterator_base<>::_S_setbuf):
2292         Correctly qualify _S_leaf, _S_function, etc., with _Rope_constants::,
2293         not _RopeRep.
2294         (_Rope_iterator_base<>::_S_setcache): Likewise.
2295         (_Rope_iterator_base<>::_S_setcache_for_incr): Likewise.
2296         (rope<>::_S_substring): Likewise.
2297         (rope<>::_S_dump): Likewise.
2298         (rope<>::_S_fetch_ptr): Likewise.
2299         (rope<>::_S_compare): Likewise.
2300         (rope<>::replace_with_c_str()): Likewise.
2302         * testsuite/ext/rope.cc: Rename to testsuite/ext/rope/1.cc.
2303         * testsuite/ext/rope/2.cc: New.
2305 2004-06-16  Paolo Carlini  <pcarlini@suse.de>
2306             Matt Austern  <austern@apple.com>
2308         * testsuite/ext/rope/3.cc: New.
2310 2004-06-15  Paolo Bonzini  <bonzini@gnu.org>
2312         * acinclude.m4: Remove useless multilib configury.
2313         * Makefile.am: Remove useless multilib rules.
2314         * aclocal.m4: Regenerate.
2315         * Makefile.in: Regenerate.
2316         * configure: Regenerate.
2318 2004-06-15  Paolo Carlini  <pcarlini@suse.de>
2320         * include/ext/hashtable.h: Trivial formatting fixes.
2321         * include/ext/rb_tree: Likewise.
2323 2004-06-14  Paolo Carlini  <pcarlini@suse.de>
2325         * include/ext/hash_map: Trivial formatting fixes.
2326         * include/ext/hash_set: Likewise.
2327         * include/ext/memory: Likewise.
2328         * include/ext/numeric: Likewise.
2330 2004-06-14  Benjamin Kosnik  <bkoz@redhat.com>
2332         * Makefile.in: Regenerate with automake 1.8.5.
2333         * aclocal.m4: Same.
2334         * include/Makefile.in: Same.
2335         * libmath/Makefile.in: Same.
2336         * libsupc++/Makefile.in: Same.
2337         * po/Makefile.in: Same.
2338         * src/Makefile.in: Same.
2339         * testsuite/Makefile.in: Same.
2341 2004-06-14  Paolo Carlini  <pcarlini@suse.de>
2343         * include/ext/slist: Trivial formatting fixes.
2345 2004-06-14  Paolo Carlini  <pcarlini@suse.de>
2347         * include/bits/locale_facets.tcc (time_get<>::_M_extract_name):
2348         Don't use the 'magic number' 10 in the computation of __minlen;
2349         never access __name past __minlen; in the loop over __i3, don't
2350         decrease __nmatches and increase __i3 at once, only either of
2351         the two; tidy.
2353 2004-06-13  Paolo Carlini  <pcarlini@suse.de>
2355         * include/bits/locale_facets.tcc (time_get<>::do_get_time,
2356         time_get<>::do_get_date): Use only once _M_extract_via_format,
2357         instead of going through "%X"/"%x" and calling it two times
2358         (+ using widen).
2360 2004-06-12  Paolo Carlini  <pcarlini@suse.de>
2362         * include/ext/algorithm: Trivial formatting fixes.
2363         * include/ext/functional: Likewise.
2364         * include/ext/hash_fun.h: Likewise.
2365         * include/ext/iterator: Likewise.
2367 2004-06-12  Paolo Carlini  <pcarlini@suse.de>
2369         * include/bits/basic_string.tcc (find(const _CharT*, size_type,
2370         size_type)): Reimplement using std::search.
2371         * src/string-inst.cc: Instantiate std::search for char/wchar_t.
2373 2004-06-12  Dhruv Matani  <dhruvbird@gmx.net>
2375         * testsuite/performance/21_strings/string_find.cc: New.
2377 2004-06-10  Aaron W. LaFramboise  <aaronraolete36@aaronwl.com>
2379         * include/bits/istream.tcc (istream::ignore): Fix for -Wuninitialized.
2381 2004-06-10  Jan van Dijk  <jan@etpmod.phys.tue.nl>
2383         * include/std/std_complex.h (sin(const complex<_Tp>& __z)): Make
2384         this function return a value.
2386 2004-06-09  Paolo Carlini  <pcarlini@suse.de>
2388         PR libstdc++/15775
2389         * include/bits/stl_deque.h: Consistently with stl_set.h, define
2390         pointer as allocator's pointer, likewise for reference,
2391         const_pointer, and const_reference.
2392         * include/bits/stl_list.h: Likewise.
2393         * include/bits/stl_map.h: Likewise.
2394         * include/bits/stl_multimap.h: Likewise.
2395         * include/bits/stl_vector.h: Likewise.
2397 2004-06-09  Benjamin Kosnik  <bkoz@redhat.com>
2399         * crossconfig.m4: Remove signbit, signbitf, signbitl.
2400         * linkage.m4: Comment LIBMATHOBJS, tweak others.  AC_DEFINES for
2401         builtin math functions instead of AC_DEFINE_UNQUOTED.
2402         * configure: Regenerate.
2404 2004-06-08  Benjamin Kosnik  <bkoz@redhat.com>
2406         * docs/doxygen/filter.sed: Rename _GLIBCXX_STD to std.
2407         * docs/doxygen/mainpage.html: Remove links.
2409 2004-06-08  Jason Merrill  <jason@redhat.com>
2411         * config/linker-map.gnu: Use wildcards for
2412         __basic_file::{xsgetn,xsputn,seekoff,xsputn_2}.
2414 2004-06-08  Paolo Carlini  <pcarlini@suse.de>
2416         * include/ext/pool_allocator.h: Convert to a global free-list,
2417         as per the original SGI/HP design: move the implementation
2418         details to struct __pool_base, from which __pool_alloc derives.
2419         * src/allocator.cc: Instantiate __pool_base.
2421 2004-06-07  Dhruv Matani  <dhruvbird@gmx.net>
2422             Paolo Carlini  <pcarlini@suse.de>
2424         * testsuite/testsuite_performance.h
2425         (resource_counter::allocated_memory): Make it return the right
2426         number of bytes requested by the allocators/application. This is
2427         the sbrk+mmaped memory.
2429 2004-06-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2431         * include/std/std_complex.h (log): Tidy.
2433 2004-05-31  Benjamin Kosnik  <bkoz@redhat.com>
2435         * config/linker-map.gnu (GLIBCXX_3.4.1): Add.
2436         * testsuite/testsuite_abi.cc: Same.
2437         * configure.ac (libtool_VERSION): Bump to 6:1:0.
2438         * configure: Regenerate.
2439         * aclocal.m4: Regenerate.
2441 2004-05-30  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2443         * include/std/std_complex.h (complex<_Tp>): Properly indent
2444         to follow C++STYLE.
2445         (complex<>::__rep): New.
2446         (__complex_abs): New.  Dispatch to built-ins.
2447         (abs): Use them.
2448         (__complex_arg): New. Dispatch to built-ins.
2449         (arg): Use it.
2450         (__complex_cos): New. Dispatch to built-ins.
2451         (cos): Use it.
2452         (__complex_cosh): New. Dispatch to built-ins.
2453         (cosh): Use it.
2454         (__complex_exp): New. Dispatch to built-ins.
2455         (exp): Use it.
2456         (__complex_log): New. Dispatch to built-ins.
2457         (log): Use it.
2458         (__complex_sin): New. Dispatch to built-ins.
2459         (sin): Use it.
2460         (__complex_sinh): New. Dispatch to built-ins.
2461         (sinh): Use it.
2462         (__complex_sqrt): New. Dispatch to built-ins.
2463         (sqrt): Use it.
2464         (__complex_tan): New. Dispatch to built-ins.
2465         (tan): Use it.
2466         (__complex_tanh): New. Dispatch to built-ins.
2467         (tanh): Use it.
2468         (__complex_pow): New. Dispatch to built-ins.
2469         (pow): Use it.
2471 2004-05-29  Richard B. Kreckel  <Richard.Kreckel@Framatome-ANP.com>
2472             Benjamin Kosnik  <bkoz@redhat.com>
2474         PR libstdc++/14600
2475         * include/ext/stdio_sync_filebuf.h (stdio_sync_filebuf::file): New.
2476         * include/ext/stdio_filebuf.h (stdio_filebuf::file): New.
2477         * config/io/basic_file_stdio.cc (__basic_file::file): New.
2478         * config/io/basic_file_stdio.h: Define.
2480 2004-05-27  Benjamin Kosnik  <bkoz@redhat.com>
2482         PR libstdc++/15675
2483         * docs/html/documentation.html: Update doxygen links for 3.4.0.
2485 2004-05-27  Jan Beulich  <jbeulich@novell.com>
2487         * scripts/create_testsuite_files: Tweak.
2489 2004-05-25  Benjamin Kosnik  <bkoz@redhat.com>
2491         PR libstdc++/15489
2492         * scripts/create_testsuite_files: Revert xtype change, add non-GNU
2493         bits to do the same thing.
2495 2004-05-24  Paolo Carlini  <pcarlini@suse.de>
2497         * include/bits/istream.tcc (ignore): Correctly deal with
2498         n == numeric_limits<streamsize>::max().
2499         * testsuite/27_io/basic_istream/ignore/char/2.cc: New.
2501         * include/bits/istream.tcc (basic_istream<>::getline): Prefer
2502         '_M_gcount + 1 < __n' to '--__n; _M_gcount < __n', just in case
2503         __n == numeric_limits<>::min().
2505         * include/bits/istream.tcc: Minor tweaks.
2507         * testsuite/21_strings/basic_string/inserters_extractors/char/10.cc:
2508         Tighten.
2509         * testsuite/21_strings/basic_string/inserters_extractors/char/11.cc:
2510         Likewise.
2511         * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/10.cc:
2512         Likewise.
2513         * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc:
2514         Likewise.
2515         * testsuite/27_io/basic_istream/getline/char/5.cc: Likewise.
2517 2004-05-22  Benjamin Kosnik  <bkoz@redhat.com>
2519         PR libstdc++/12854
2520         Fixups for -Weffc++.
2521         * include/bits/basic_string.h (basic_string::operator=): Return
2522         pointer to this instead of result of assign. Although redundant,
2523         this doesn't impact resultant codegen.
2525         * include/bits/locale_facets.h (__numpunct_cache): Declare
2526         assignment opxserator and copy constructor private.
2527         (__timepunct_cache): Same.
2528         (__moneypunct_cache): Same.
2529         (collate): Use member initialization list for _M_c_locale_collate.
2530         * config/locale/gnu/messages_members.h: Same.
2531         * config/locale/gnu/time_members.h (__timepunct): Same.
2532         * src/codecvt.cc: Use member initialization list to initialize
2533         _M_c_locale_codecvt.
2534         * src/ctype.cc: Same, with _M_c_locale_ctype and _M_narrow_ok.
2535         * config/os/gnu-linux/ctype_noninline.h: Same.
2536         * src/locale.cc (_Impl): Same.
2537         * src/locale_init.cc: Same.
2538         * src/localename.cc: Same.
2540         * include/bits/basic_ios.h (basic_ios): Complete member
2541         initialization list.
2542         * include/bits/istream.tcc (basic_istream::sentry): Same.
2543         * include/bits/ostream.tcc (basic_ostream::sentry): Same.
2544         * include/bits/fstream.tcc (basic_filebuf): Add _M_lock and
2545         _M_pback to member initialization list.
2546         * include/std/std_streambuf.h: Same.
2547         * include/std/std_sstream.h: Same, for _M_mode.
2548         * src/ios.cc (ios_base): Same.
2550         * include/ext/rope: Make derived classes match exception
2552          specifications. Add copy constructors and assignment operators.
2554         * include/debug/safe_base.h (_Safe_sequence_base): Declare copy
2555         constructor and assignment operator protected.
2556         (_Safe_iterator_base): Same.
2557         * include/debug/formatter.h (_Error_formatter): Define copy
2558         constructor and assignment operator.
2560         * include/backward/strstream: Declare assignment operator and copy
2561         constructor private.
2563 2004-05-22  Benjamin Kosnik  <bkoz@redhat.com>
2565         * testsuite/testsuite_hooks.h (func_callback): Declare copy
2566         constructor and assignment operator private.
2567         * testsuite/23_containers/deque/cons/clear_allocator.cc: Match
2568         exception specifications of base class.
2569         * testsuite/23_containers/list/cons/clear_allocator.cc: Same.
2570         * testsuite/23_containers/vector/cons/clear_allocator.cc: Same.
2571         * testsuite/23_containers/vector/bool/clear_allocator.cc: New.
2573 2004-05-22  Benjamin Kosnik  <bkoz@redhat.com>
2575         * libsupc++/cxxabi.h: Remove duplicated and useless public and
2576         private keywords in class declarations. Format. Use
2577         stddef.h. Expose declarations to "C" compilation.
2578         * libsupc++/tinfo.cc (__upcast_result): Add copy constructor and
2579         assignment operator.
2580         (__dyncast_result): Same.
2581         * libsupc++/vec.cc (uncatch_exception): Same, use member
2582         initialization list.
2584 2004-05-22  Benjamin Kosnik  <bkoz@redhat.com>
2586         * testsuite/abi_check.cc: Add unistd.h.
2588 2004-05-22  Paolo Carlini  <pcarlini@suse.de>
2590         PR libstdc++/15565
2591         * include/bits/locale_facets.tcc (__int_to_char(unsigned long),
2592         __int_to_char(unsigned long long)): Showpos is not relevant
2593         for unsigned types.
2594         * testsuite/22_locale/num_put/put/char/15565.cc: New.
2595         * testsuite/22_locale/num_put/put/wchar_t/15565.cc: New.
2597         * testsuite/22_locale/num_put/put/wchar_t/1.cc: Use L for the fill
2598         char.
2599         * testsuite/22_locale/num_put/put/wchar_t/2.cc: Likewise.
2600         * testsuite/22_locale/num_put/put/wchar_t/3.cc: Likewise.
2601         * testsuite/22_locale/num_put/put/wchar_t/4.cc: Likewise.
2602         * testsuite/22_locale/num_put/put/wchar_t/5.cc: Likewise.
2603         * testsuite/22_locale/num_put/put/wchar_t/6.cc: Likewise.
2604         * testsuite/22_locale/num_put/put/wchar_t/8.cc: Likewise.
2606 2004-05-21  Matthias Klose  <doko@debian.org>
2608         * docs/doxygen/run_doxygen:  Bump required version.
2610 2004-05-21  Benjamin Kosnik  <bkoz@redhat.com>
2612         * docs/html/abi.html (libgcc_s): Additions suggested by Matthias Klose.
2613         * docs/doxygen/Intro.3: Subtractions suggested by Phil Edwards.
2615 2004-05-21  Paolo Carlini  <pcarlini@suse.de>
2617         * include/bits/istream.tcc (ignore): Remove redundant line.
2618         (readsome): Tidy, closely following 27.6.1.3, p30.
2620 2004-05-20  Paolo Carlini  <pcarlini@suse.de>
2622         * include/bits/istream.tcc (operator>>(basic_istream<>&,
2623         basic_string<>&)): Use a temporary buffer, thus avoiding
2624         reallocation for common case.
2625         * testsuite/21_strings/basic_string/inserters_extractors/char/11.cc:
2626         New.
2627         * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc:
2628         Likewise.
2630         * include/bits/istream.tcc: Const-ification of a few variables.
2632         * include/bits/ostream.tcc: Trivial formatting fixes and
2633         const-ification of some variables.
2635 2004-05-20  Benjamin Kosnik  <bkoz@redhat.com>
2637         PR libstdc++/15123
2638         PR libstdc++/13928
2639         * docs/doxygen/Intro.3: Remove Allocators.3.
2640         Add new extension headers, extension namespace list.
2641         * docs/doxygen/run_doxygen (problematic): Remove Allocators.3
2642         Rename GLIBCXXSTD names to std::. Rename __gnu_debug to
2643         __gnu_debug::. Remove __policy_ renames.
2644         * docs/doxygen/guide.html: Add dot note.
2645         * docs/doxygen/stdheader.cc: Edit, add files.
2646         * docs/doxygen/user.cfg.in: Regenerate with Doxygen 1.3.7.
2648 2004-05-18  Jonathan Wakely  <redi@gcc.gnu.org>
2650         * include/ext/stdio_filebuf.h: Update comments to reflect PR 11691.
2652 2004-05-18  Jan Beulich  <jbeulich@novell.com>
2654         PR libstdc++/15489
2655         * scripts/create_testsuite_files: Also find source files through
2656         symbolic links.
2658 2004-05-18  Jan Beulich  <jbeulich@novell.com>
2660         PR libstdc++/15488
2661         * testsuite/lib/libstdc++.exp: Make test files writable.
2663 2004-05-18  Paolo Carlini  <pcarlini@suse.de>
2665         * include/ext/mt_allocator.h:(__mt_alloc::allocate): Minor
2666         tweaks.
2668 2004-05-18  Dhruv Matani  <dhruvbird@gmx.net>
2670         * include/ext/mt_allocator.h:(__mt_alloc::allocate): Re-write
2671         allocation loop which removes blocks from the global free list
2672         from O(N) to O(1) when the required blocks are <= the number
2673         available.
2675 2004-05-18  Jonathan Wakely  <redi@gcc.gnu.org>
2677         * include/ext/enc_filebuf.h: Move concept-check macro to class scope.
2679 2004-05-17  Benjamin Kosnik  <bkoz@redhat.com>
2681         * testsuite/testsuite_hooks.h (__gnu_test::conversion): New class.
2682         * testsuite/23_containers/deque/14340.cc: New.
2683         * testsuite/23_containers/list/14340.cc: New.
2684         * testsuite/23_containers/map/14340.cc: New.
2685         * testsuite/23_containers/multimap/14340.cc: New.
2686         * testsuite/23_containers/multiset/14340.cc: New.
2687         * testsuite/23_containers/set/14340.cc: New.
2688         * testsuite/23_containers/vector/14340.cc: New.
2690 2004-05-17  Douglas Gregor   <gregod@cs.rpi.edu>
2692         PR libstdc++/14340
2693         * include/debug/safe_iterator.h (_Safe_iterator converting
2694         constructor): Only allow declaration to instantiate when the
2695         incoming _Safe_iterator has exactly the right iterator type.
2697 2004-05-17  Jonathan Wakely  <redi@gcc.gnu.org>
2699         * include/bits/boost_concept_check.h: Fix old attribute syntax.
2700         * testsuite/23_containers/map/modifiers/swap.cc: Define operator<
2701         to pass concept-checks.
2702         * testsuite/23_containers/multimap/modifiers/swap.cc: Same.
2703         * testsuite/23_containers/set/modifiers/swap.cc: Same.
2704         * testsuite/23_containers/multiset/modifiers/swap.cc: Same.
2706 2004-05-16  Paolo Carlini  <pcarlini@suse.de>
2708         * include/std/std_bitset.h: Minor formatting fixes.
2710 2004-05-16  Paolo Carlini  <pcarlini@suse.de>
2712         * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
2713         Consistently update __bin._M_free[0].
2714         (__mt_alloc<>::allocate): When __bin._M_first[0] != NULL use
2715         __bin._M_free[0] to simplify the while loop (i.e., the number
2716         of iterations becomes known at the outset).
2718 2004-05-15  Paolo Carlini  <pcarlini@suse.de>
2720         * include/std/std_bitset.h: Trivial formatting fixes.
2722 2004-05-14  Paolo Carlini  <pcarlini@suse.de>
2723             Ivan Godard  <igodard@pacbell.net>
2725         PR libstdc++/15361
2726         * include/std/std_bitset.h (_Base_bitset<_Nw>::_M_do_find_next): Fix.
2727         * testsuite/23_containers/bitset/ext/15361.cc: New.
2729 2004-05-13  Benjamin Kosnik  <bkoz@redhat.com>
2731         PR libstdc++/15046
2732         * crossconfig.m4: Add C99 math bits for linux crosses.
2733         * configure: Regenerate.
2735 2004-05-13  Simon Marshall <simon.marshall@misys.com>
2736             Benjamin Kosnik  <bkoz@redhat.com>
2738         PR libstdc++/15090
2739         * include/bits/locale_facets.h: Fix for -fno-for-scope.
2740         * include/debug/safe_sequence.h: Same.
2741         * include/debug/safe_iterator.tcc: Same.
2742         * src/debug.cc: Same.
2743         * src/locale.cc: Same.
2744         * src/locale_init.cc: Same.
2745         * src/localename.cc: Same.
2746         * config/locale/gnu/ctype_members.cc: Same.
2747         * config/locale/gnu/numeric_members.cc: Same.
2748         * testsuite/testsuite_abi.cc: Same.
2749         * testsuite/testsuite_hooks.cc: Same.
2751 2004-05-13  Jonathan Wakely  <redi@gcc.gnu.org>
2753         * docs/html/abi.html: Document effect of -fabi-version on value
2754         of __GXX_ABI_VERSION, and that it's defined in c-cppbuiltin.c.
2755         Fix markup.
2757 2004-05-13  Benjamin Kosnik  <bkoz@redhat.com>
2759         PR libstdc++/15074
2760         * docs/html/faq/index.html: Update docs for libsupc++ usage.
2762 2004-05-13  Benjamin Kosnik  <bkoz@redhat.com>
2764         PR libstdc++/15412
2765         * include/bits/stl_threads.h (_GLIBCXX_mutex): Move to namespace
2766         __gnu_internal.
2767         (_GLIBCXX_mutex_address): Same.
2768         (_GLIBCXX_once): Same.
2769         (_GLIBCXX_mutex_init): Same.
2770         (_GLIBCXX_mutex_address_init): Same.
2772 2004-05-13  Benjamin Kosnik  <bkoz@redhat.com>
2774         * docs/html/abi.html: New.
2775         * docs/html/abi.txt: Remove.
2776         * docs/html/documentation.html: Add link.
2777         * testsuite/Makefile.am: Add files.
2778         * testsuite/Makefile.in: Regenerated.
2779         * testsuite/abi_check.cc: Move and modify code into...
2780         * testsuite/testsuite_abi.cc: Add.
2781         * testsuite/testsuite_abi.h: Add.
2783         * docs/html/17_intro/TODO: Update.
2784         * include/bits/stl_pair.h: Format.
2786 2004-05-06  Matthias Klose  <doko@debian.org>
2788         * include/backward/iterator.h:  Add GPL copyright info,
2789         with exception clause.
2790         * include/bits/boost_concept_check.h: Likewise.
2791         * include
2792         * libsupc++/tinfo.h: Likewise.
2793         * po/string_literals.cc: Likewise.
2795 2004-05-03  Andreas Tobler  <a.tobler@schweiz.ch>
2797         * acinclude.m4: Replace -W with more speaking -Wextra.
2798         * configure: Rebuilt.
2800 2004-05-03  Paolo Carlini  <pcarlini@suse.de>
2802         Optimize locale::_M_impl->_M_names for the most common cases:
2803         !_M_names[0] means unnamed; !_M_names[1] means all the categories
2804         the same name (_M_names[0] && _M_names[1] means that the full set
2805         of _M_names must be processed, the general case).
2806         * include/bits/locale_classes.h (locale::_Impl::_M_check_same_name):
2807         Tweak, saving work when !_M_names[1].
2808         (locale::locale(const locale&, _Facet*): Simplify: now just setting
2809         _M_names[0] = 0 means unnamed.
2810         * src/locale.cc (locale::operator==): Deal first with the common,
2811         easy cases, otherwise fall back to locale::name().
2812         (locale::name()): Tweak, if !_M_names[0] just return "*".
2813         (locale::_Impl::_Impl(const _Impl&, size_t): Tweak, early stop
2814         copying __imp._M_names if !__imp._M_names[0] or !__imp._M_names[1].
2815         * src/locale_init.cc (locale::_Impl::_Impl(size_t)): Tweak.
2816         * src/localename.cc (locale::_Impl::_Impl(const char*, size_t):
2817         Simplify when !std::strchr, just updating _M_names[0]; clean up.
2818         (locale::_Impl::_M_replace_categories): When !_M_names[1] prepare
2819         for the general case (full set of names), then do the usual work;
2820         clean up.
2822         * src/locale.cc (locale::name()): Reserve space in __ret.
2823         * src/locale_init.cc (locale::global(const locale&)): Save
2824         the name in a temporary.
2825         * src/localename.cc (locale::locale(const char*)): Reserve space
2826         in __str.
2828 2004-04-29  Paolo Carlini  <pcarlini@suse.de>
2830         * src/locale.cc (locale::operator==): Always avoid constructing
2831         locale::name(), directly compare pairs of _M_names.
2833 2004-04-26  Paolo Carlini  <pcarlini@suse.de>
2835         * include/bits/istream.tcc: Fix comment.
2837 2004-04-26  Paolo Carlini  <pcarlini@suse.de>
2839         * include/bits/stl_vector.h: Trivial formatting fixes.
2840         * include/bits/vector.tcc: Likewise.
2842 2004-04-25  Paolo Carlini  <pcarlini@suse.de>
2844         PR libstdc++/15002 (continued again)
2845         * include/bits/istream.tcc (getline(basic_istream<>&,
2846         basic_string<>&, _CharT)): Use a temporary buffer, thus
2847         avoiding reallocation for common case.
2849         * include/bits/basic_string.tcc (_S_construct(_InIterator,
2850         _InIterator, const _Alloc&, input_iterator_tag)): Tweak size
2851         of temporary buffer to a power of two.
2853         * testsuite/27_io/basic_istream/getline/char/4.cc: Add comment.
2855 2004-04-25  Paolo Carlini  <pcarlini@suse.de>
2857         * testsuite/21_strings/basic_string/inserters_extractors/char/10.cc:
2858         New.
2859         * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/10.cc:
2860         Likewise.
2861         * testsuite/27_io/basic_istream/getline/char/5.cc: Likewise.
2863 2004-04-24  Paolo Carlini  <pcarlini@suse.de>
2864             Petur Runolfsson  <peturr02@ru.is>
2866         PR libstdc++/15002 (continued)
2867         * include/bits/istream.tcc (basic_istream<>::getline(char_type*,
2868         streamsize, char_type)): Use traits::find/copy in a loop to speed
2869         up greatly the function in the common case (I/O buffer size >> 1).
2871 2004-04-24  Paolo Carlini  <pcarlini@suse.de>
2873         * testsuite/27_io/basic_istream/getline/char/4.cc: New.
2875         * include/bits/istream.tcc (getline(basic_istream<>&,
2876         basic_string<>&, _CharT)): Change to use sgetc()/snextc() instead
2877         of sbumpc(), consistently with the other functions, thus also
2878         dealing correctly with the case of exceeded string::max_size().
2880 2004-04-24  Matthias Klose  <doko@debian.org>
2882         Jonathan Wakely  <cow@compsoc.man.ac.uk>
2883         * docs/html/configopts.html: Fix reference to allocator config option.
2885 2004-04-23  Andrew Pinski  <pinskia@physics.uc.edu>
2887         * linkage.m4 (GLIBCXX_CHECK_MATH_SUPPORT): Check for libmx also.
2888         * configure: Regenerate.
2890 2004-04-23  Daniel Jacobowitz  <drow@mvista.com>
2892         PR libstdc++/15047, libstdc++/11610
2893         * testsuite/lib/libstdc++.exp (v3-copy-files): Use remote_download.
2894         (libstdc++_init): Don't pass outdir to v3-copy-files.
2896 2004-04-21  Paolo Carlini  <pcarlini@suse.de>
2898         * include/bits/deque.tcc: Trivial formatting fixes.
2899         * include/bits/stl_deque.h: Likewise.
2900         * include/bits/stl_list.h: Likewise.
2901         * include/bits/stl_tree.h: Likewise.
2903 2004-04-21  Paolo Carlini  <pcarlini@suse.de>
2904             Andrew Pinski  <pinskia@physics.uc.edu>
2906         * include/bits/basic_string.tcc (_M_mutate): Don't compute
2907         __src unnecessarily.
2909 2004-04-19  Benjamin Kosnik  <bkoz@redhat.com>
2911         * testsuite/27_io/basic_istream/extractors_character/char/9555-ic.cc:
2912         Clarify assertion, set test variable to false before assert.
2913         * testsuite/27_io/basic_istringstream/str/char/1.cc: Same.
2914         * testsuite/27_io/basic_stringstream/str/char/1.cc: Same.
2915         * testsuite/27_io/ios_base/storage/2.cc: Same.
2917         * testsuite/27_io/basic_filebuf/imbue/char/13171-4.cc: Fix
2918         function returns.
2919         * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-3.cc: Same.
2920         * testsuite/27_io/fpos/14320-3.cc: Same.
2922         * testsuite/27_io/basic_filebuf/2.cc: Instantiate in namespace std.
2923         * testsuite/27_io/fpos/1.cc: Same.
2924         * testsuite/27_io/basic_stringstream/2.cc: Same.
2925         * testsuite/27_io/basic_stringbuf/4.cc: Same.
2926         * testsuite/27_io/basic_stringbuf/1.cc: Same.
2927         * testsuite/27_io/basic_stringbuf/2.cc: Same.
2928         * testsuite/27_io/basic_streambuf/2.cc: Same.
2929         * testsuite/27_io/basic_ostringstream/2.cc: Same.
2930         * testsuite/27_io/basic_ostream/2.cc: Same.
2931         * testsuite/27_io/basic_ofstream/2.cc: Same.
2932         * testsuite/27_io/basic_istringstream/2.cc: Same.
2933         * testsuite/27_io/basic_istream/2.cc: Same.
2934         * testsuite/27_io/basic_iostream/2.cc: Same.
2935         * testsuite/27_io/basic_ios/2.cc: Same.
2936         * testsuite/27_io/basic_ifstream/2.cc: Same.
2937         * testsuite/27_io/basic_fstream/2.cc: Same.
2938         * testsuite/ext/stdio_filebuf/char/1.cc: Same, in namespace __gnu_cxx.
2940         * testsuite/21_strings/basic_string/capacity/1.cc: Don't compare
2941         unsigned against zero.
2942         * testsuite/21_strings/basic_string/capacity/wchar_t/1.cc: Same.
2943         * testsuite/21_strings/basic_string/capacity/char/1.cc: Same.
2945         * testsuite/18_support/new_delete_placement.cc: Initialize
2946         variables before first use.
2947         * testsuite/21_strings/char_traits/requirements/wchar_t/1.cc: Same.
2948         * testsuite/21_strings/char_traits/requirements/char/1.cc: Same.
2949         * testsuite/21_strings/char_traits/requirements/short/1.cc: Same.
2950         * testsuite/27_io/basic_istream/seekg/char/exceptions_badbit_throw.cc:
2951         Same.
2952         * testsuite/27_io/basic_ostream/inserters_arithmetic/char/exceptions_badbit_throw.cc: Same.
2953         * testsuite/27_io/basic_ostream/seekp/char/exceptions_badbit_throw.cc:
2954         Same.
2955         * testsuite/27_io/basic_ostream/inserters_arithmetic/char/exceptions_failbit_throw.cc: Same.
2956         * testsuite/27_io/types/2.cc: Same.
2958         * testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc: Fix temporary
2959         file name.
2960         * testsuite/27_io/fpos/14775.cc: Same.
2962 2004-04-19  Paolo Carlini  <pcarlini@suse.de>
2964         PR libstdc++/15002 (partial)
2965         * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
2966         Special case __n2 == 1, not calling traits_type::assign/copy.
2968 2004-04-17  Benjamin Kosnik  <bkoz@redhat.com>
2970         * include/bits/stl_bvector.h: Use _M_impl._M_start.
2972 2004-04-16  Benjamin Kosnik  <bkoz@redhat.com>
2974         * include/bits/c++config (_GLIBCXX_STD): New.
2975         * src/list.cc: Use it.
2976         * include/std/std_bitset.h: Same.
2977         * include/bits/vector.tcc: Same.
2978         * include/bits/stl_set.h: Same.
2979         * include/bits/stl_multiset.h: Same.
2980         * include/bits/stl_multimap.h: Same.
2981         * include/bits/stl_map.h: Same.
2982         * include/bits/stl_list.h: Same.
2983         * include/bits/stl_vector.h: Same.
2984         * include/bits/stl_bvector.h: Same.
2985         * include/bits/stl_deque.h: Same.
2986         * include/bits/deque.tcc: Same.
2987         * include/bits/list.tcc: Same.
2988         * include/debug/vector: Same.
2989         * include/debug/set.h: Same.
2990         * include/debug/multiset.h: Same.
2991         * include/debug/multimap.h: Same.
2992         * include/debug/map.h: Same.
2993         * include/debug/list: Same.
2994         * include/debug/deque: Same.
2995         * include/debug/bitset: Same.
2996         * include/debug/formatter.h (__gnu_debug): Remove using directive.
2997         Add using declaration for std::type_info.
2998         * include/debug/safe_iterator.h: Add using declaration for
2999         std::iterator_traits and std::pair.
3000         * src/debug_list.cc: New.
3001         * src/Makefile.am: Add debug_list.cc.
3002         * src/Makefile.in: Regenerate.
3003         * config/linker-map.gnu: Add _List_node_base exports for std and
3004         __gnu_norm.
3006         * include/bits/stl_bvector.h (_Bvector_base): Use _Bvector_impl
3007         idiom that other containers use.
3008         * testsuite/23_containers/vector/bool/clear_allocator.cc: New.
3010 2004-04-16  Paolo Carlini  <pcarlini@suse.de>
3012         PR libstdc++/14975
3013         * include/bits/fstream.tcc (basic_filebuf::imbue): Zero _M_codecvt
3014         in case of error.
3015         * testsuite/27_io/basic_filebuf/imbue/char/14975-1.cc: New.
3016         * testsuite/27_io/basic_filebuf/imbue/wchar_t/14975-2.cc: New.
3018 2004-04-16  Paolo Carlini  <pcarlini@suse.de>
3020         * acconfig.h: Remove _GLIBCXX_USE_LONG_DOUBLE entry, not
3021         used anymore.
3022         * config.h.in: Regenerate.
3024 2004-04-16  Paolo Carlini  <pcarlini@suse.de>
3026         * config/locale/generic/monetary_members.cc
3027         (moneypunct<wchar_t>::_M_initialize_moneypunct): Avoid calling
3028         btowc unnecessarily, just cast to wchar_t (the concerned chars
3029         all belong to the basic character set).
3030         * config/locale/generic/numeric_members.cc
3031         (numpunct<wchar_t>::_M_initialize_numpunct): Likewise.
3032         * config/locale/gnu/monetary_members.cc
3033         (moneypunct<wchar_t>::_M_initialize_moneypunct): Likewise.
3034         * config/locale/gnu/numeric_members.cc
3035         (numpunct<wchar_t>::_M_initialize_numpunct): Likewise.
3037 2004-04-15  Paolo Carlini  <pcarlini@suse.de>
3039         * src/locale.cc (locale::operator==): When _M_impl == __rhs._M_impl
3040         avoid constructing unnecessarily this->name().
3042 2004-04-14  Zack Weinberg  <zack@codesourcery.com>
3044         * testsuite/Makefile.am: Add definition of AM_CXXFLAGS.
3045         Change definition of CXX to use $(shell) instead of backticks.
3046         * testsuite/Makefile.in: Regenerate.
3048 2004-04-12  Dhruv Matani  <dhruvbird@gmx.net>
3050         * testsuite/performance/20_util/allocator/list_sort_search.cc:
3051         Minor formatting fixes.
3052         * testsuite/performance/20_util/allocator/map_mt_find.cc:
3053         Likewise.
3055 2004-04-12  Paolo Carlini <pcarlini@suse.de>
3057         * config/locale/gnu/numeric_members.cc
3058         (numpunct<wchar_t>::_M_initialize_numpunct): No need to wrap
3059         in __uselocale, since btowc is called for chars belonging to
3060         the basic character set.
3062 2004-04-09  Paolo Carlini  <pcarlini@suse.de>
3064         * testsuite/22_locale/messages/members/char/1.cc: Remove junk.
3065         * testsuite/22_locale/messages/members/char/2.cc: Ditto.
3066         * testsuite/22_locale/messages/members/char/3.cc: Ditto.
3067         * testsuite/22_locale/num_get/get/char/1.cc: Ditto.
3068         * testsuite/22_locale/num_get/get/char/2.cc: Ditto.
3069         * testsuite/22_locale/num_get/get/char/3.cc: Ditto.
3070         * testsuite/22_locale/num_get/get/wchar_t/1.cc: Ditto.
3071         * testsuite/22_locale/num_get/get/wchar_t/2.cc: Ditto.
3072         * testsuite/22_locale/num_get/get/wchar_t/3.cc: Ditto.
3073         * testsuite/22_locale/num_put/put/char/1.cc: Ditto.
3074         * testsuite/22_locale/num_put/put/char/2.cc: Ditto.
3075         * testsuite/22_locale/num_put/put/char/3.cc: Ditto.
3076         * testsuite/22_locale/num_put/put/wchar_t/1.cc: Ditto.
3077         * testsuite/22_locale/num_put/put/wchar_t/2.cc: Ditto.
3078         * testsuite/22_locale/num_put/put/wchar_t/3.cc: Ditto.
3079         * testsuite/22_locale/numpunct/members/char/1.cc: Ditto.
3080         * testsuite/22_locale/numpunct/members/wchar_t/1.cc: Ditto.
3082 2004-04-07  Paolo Carlini  <pcarlini@suse.de>
3084         * config/locale/generic/time_members.cc
3085         (__timepunct<char>::_M_initialize_timepunct,
3086         __timepunct<wchar_t>::_M_initialize_timepunct): the correct
3087         _M_amonth07 in the "C" locale is "Jul" and L"Jul", respectively.
3088         * config/locale/gnu/time_members.cc
3089         (__timepunct<char>::_M_initialize_timepunct,
3090         __timepunct<wchar_t>::_M_initialize_timepunct): Ditto.
3091         * testsuite/22_locale/time_get/get_monthname/char/4.cc: New.
3092         * testsuite/22_locale/time_get/get_monthname/wchar_t/4.cc: New.
3094         * testsuite/22_locale/time_get/date_order/char/1.cc: Remove junk.
3095         * testsuite/22_locale/time_get/date_order/wchar_t/1.cc: Ditto.
3096         * testsuite/22_locale/time_get/get_date/char/1.cc: Ditto.
3097         * testsuite/22_locale/time_get/get_date/char/2.cc: Ditto.
3098         * testsuite/22_locale/time_get/get_date/wchar_t/1.cc: Ditto.
3099         * testsuite/22_locale/time_get/get_date/wchar_t/2.cc: Ditto.
3100         * testsuite/22_locale/time_get/get_monthname/char/1.cc: Ditto.
3101         * testsuite/22_locale/time_get/get_monthname/char/2.cc: Ditto.
3102         * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Ditto.
3103         * testsuite/22_locale/time_get/get_monthname/wchar_t/2.cc: Ditto.
3104         * testsuite/22_locale/time_get/get_time/char/1.cc: Ditto.
3105         * testsuite/22_locale/time_get/get_time/char/2.cc: Ditto.
3106         * testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Ditto.
3107         * testsuite/22_locale/time_get/get_time/wchar_t/2.cc: Ditto.
3108         * testsuite/22_locale/time_get/get_weekday/char/1.cc: Ditto.
3109         * testsuite/22_locale/time_get/get_weekday/char/2.cc: Ditto.
3110         * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Ditto.
3111         * testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc: Ditto.
3112         * testsuite/22_locale/time_get/get_year/char/1.cc: Ditto.
3113         * testsuite/22_locale/time_get/get_year/wchar_t/1.cc: Ditto.
3114         * testsuite/22_locale/time_put/put/char/1.cc: Ditto.
3115         * testsuite/22_locale/time_put/put/char/2.cc: Ditto.
3116         * testsuite/22_locale/time_put/put/char/3.cc: Ditto.
3117         * testsuite/22_locale/time_put/put/char/4.cc: Ditto.
3118         * testsuite/22_locale/time_put/put/char/5.cc: Ditto.
3119         * testsuite/22_locale/time_put/put/char/6.cc: Ditto.
3120         * testsuite/22_locale/time_put/put/char/7.cc: Ditto.
3121         * testsuite/22_locale/time_put/put/char/8.cc: Ditto.
3122         * testsuite/22_locale/time_put/put/wchar_t/1.cc: Ditto.
3123         * testsuite/22_locale/time_put/put/wchar_t/2.cc: Ditto.
3124         * testsuite/22_locale/time_put/put/wchar_t/3.cc: Ditto.
3125         * testsuite/22_locale/time_put/put/wchar_t/4.cc: Ditto.
3126         * testsuite/22_locale/time_put/put/wchar_t/5.cc: Ditto.
3127         * testsuite/22_locale/time_put/put/wchar_t/6.cc: Ditto.
3128         * testsuite/22_locale/time_put/put/wchar_t/7.cc: Ditto.
3129         * testsuite/22_locale/time_put/put/wchar_t/8.cc: Ditto.
3131         * testsuite/22_locale/time_put/put/char/9780-1.cc: Fix typos.
3133 2004-04-07  Paolo Carlini  <pcarlini@suse.de>
3135         * config/locale/gnu/monetary_members.cc
3136         (moneypunct<wchar_t>::_M_initialize_moneypunct): Prefer
3137         _NL_MONETARY_DECIMAL_POINT_WC, _NL_MONETARY_THOUSANDS_SEP_WC,
3138         and __MON_GROUPING to _NL_NUMERIC_DECIMAL_POINT_WC,
3139         _NL_NUMERIC_THOUSANDS_SEP_WC, and GROUPING.
3140         * config/locale/gnu/numeric_members.cc
3141         (numpunct<char>::_M_initialize_numpunct): Prefer DECIMAL_POINT
3142         and THOUSANDS_SEP to the deprecated RADIXCHAR and THOUSEP.
3144 2004-04-06  Benjamin Kosnik  <bkoz@redhat.com>
3146         Fixups for EDG front end.
3147         * include/ext/rope: Instead of non-existent function
3148         _Data_allocate, use allocator's allocate. Use this.
3149         (namespace _Rope_constants): Move _S_max_rope_depth, and _Tag
3150         enumerations from _Rope_RopeRep here.
3151         * include/ext/ropeimpl.h: Same.
3152         * src/ext-inst.cc (_S_min_len): Fix up definition.
3154         * config/locale/gnu/ctype_members.cc: Qualify base class members
3155         with this.
3156         * config/locale/generic/ctype_members.cc: Same.
3157         * config/locale/gnu/messages_members.h: Same.
3158         * config/locale/generic/messages_members.h: Same.
3159         * src/ctype.cc: Same.
3160         * include/bits/codecvt.h: Same.
3162         * include/bits/boost_concept_check.h: Declare.
3163         (__error_type_must_be_an_unsigned_integer_type): Remove this.
3164         (__error_type_must_be_an_integer_type): Remove this.
3165         (__error_type_must_be_a_signed_integer_type): Remove this.
3167         * config/io/basic_file_stdio.cc (__basic_file::sys_open): Remove cast.
3169         * libsupc++/eh_alloc.cc (__cxa_free_exception): Add exception
3170         specification to definition.
3171         (__cxa_allocate_exception): Same.
3172         * libsupc++/eh_catch.cc (__cxa_begin_catch): Same.
3173         * libsupc++/eh_globals.cc (__cxa_get_globals_fast): Same.
3174         (__cxa_get_globals): Same.
3176         * libsupc++/del_op.cc: Add comment about freestanding.
3178 2004-04-05  Paolo Carlini  <pcarlini@suse.de>
3180         * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
3181         The critical section is actually very small, only two assignments.
3183 2004-04-04  Paolo Carlini  <pcarlini@suse.de>
3184             Petur Runolfsson  <peturr02@ru.is>
3186         * testsuite/performance/27_io/filebuf_sputn_unbuf.cc: New,
3187         adapted from libstdc++/11378.
3189 2004-04-03  Paolo Carlini  <pcarlini@suse.de>
3191         * include/ext/mt_allocator.h (__mt_alloc<>::allocate): Factor out
3192         some duplicated code.
3193         (__mt_alloc<>::_Bin_record): Spare the space of _M_free and _M_used
3194         in the single threaded case.
3195         * testsuite/performance/20_util/allocator/list_sort_search.cc:
3196         Reorder and renumber the tests consistently with the other testfiles.
3197         * testsuite/performance/20_util/allocator/map_mt_find.cc: Ditto.
3198         * testsuite/performance/20_util/allocator/map_thread.cc: Ditto.
3199         * testsuite/performance/20_util/allocator/producer_consumer.cc: Ditto.
3201 2004-04-02  Paolo Carlini  <pcarlini@suse.de>
3203         * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
3204         Rearrange arithmetic to avoid computing two divisions at
3205         each deallocation.
3207 2004-04-01  Paolo Carlini  <pcarlini@suse.de>
3209         * include/ext/mt_allocator.h (__mt_alloc<>::_S_initialize):
3210         Streamline the second half, wrapping it in a single
3211         '#ifdef __GTHREADS if (__gthread_active_p())' and avoiding
3212         conditionals inside loops.
3214 2004-04-01  Paolo Carlini  <pcarlini@suse.de>
3216         PR libstdc++/14775
3217         * acconfig.h: Rename _GLIBCXX_MEM_LIMITS to _GLIBCXX_RES_LIMITS.
3218         * acinclude.m4 (GLIBCXX_CHECK_SETRLIMIT): Call
3219         GLIBCXX_CHECK_SETRLIMIT_ancilliary for FSIZE too, adjust define
3220         to _GLIBCXX_RES_LIMITS.
3221         (GLIBCXX_CHECK_SETRLIMIT_ancilliary): Rename HAVE_MEMLIMIT_* to
3222         HAVE_LIMIT_*.
3223         * testsuite/testsuite_hooks.h: Declare set_file_limit.
3224         * testsuite/testsuite_hooks.cc: Define it, using getrlimit
3225         and setrlimit(RLIMIT_FSIZE).
3226         * testsuite/27_io/fpos/14775.cc: New.
3227         * config.h.in: Regenerate.
3228         * configure: Likewise.
3230 2004-03-31  Paolo Carlini  <pcarlini@suse.de>
3232         * config/locale/generic/c_locale.cc (__convert_to_v(long double&)):
3233         In v3 uses of sscanf, the special floating-point numbers INF,
3234         INFINITY, etc., cannot occur in input, therefore, if the latter
3235         is too large, ERANGE is always stored in errno, no need of finitel.
3237 2004-03-30  Benjamin Kosnik  <bkoz@redhat.com>
3239         PR libstdc++/14783
3240         * include/bits/stl_tree.h: Adjust initialization list order.
3242 2004-03-29  Loren J. Rittle  <ljrittle@acm.org>
3244         * testsuite/thread/pthread7-rope.cc: Update comment to reflect test.
3246 2004-03-29  Paolo Carlini  <pcarlini@suse.de>
3248         * testsuite/thread/pthread7-rope.cc: Fix, unpredictably, depending
3249         on allocator behavior, the memory pointed by data2 may well be not
3250         trashed.
3252 2004-03-28  Chavdar Botev  <cbotev@yahoo.com>
3254         PR libstdc++/14245
3255         * include/bits/basic_string.tcc
3256         (basic_string::basic_string(const basic_string&)): Pass to
3257         _Rep::_M_grab the actual allocator of the string being constructed
3258         not the default constructed one.
3260 2004-03-27  Benjamin Kosnik  <bkoz@redhat.com>
3262         libstdc++ PR/13598
3263         * config/locale/ieee_1003.1-2001/codecvt_specializations.h
3264         (__enc_traits::_M_destroy): New.
3265         (__enc_traits::~__enc_traits): Use it.
3266         (__enc_traits::operator=): Use _M_destroy, _M_init.
3267         (__enc_traits::__enc_traits): Same.
3269 2004-03-27  Petur Runolfsson  <peturr02@ru.is>
3271         * testsuite/ext/enc_filebuf/char/13598.cc: New.
3273 2004-03-27  Paolo Carlini  <pcarlini@suse.de>
3275         * include/ext/mt_allocator.h: Uglify consistently names of
3276         variables, members and classes; tidy.
3278 2004-03-27  Dhruv Matani  <dhruvbird@gmx.net>
3280         * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
3281         Deallocation loop rewrote.
3283 2004-03-26  Paolo Carlini  <pcarlini@suse.de>
3285         * include/ext/mt_allocator.h (__mt_alloc<>::allocate,
3286         __mt_alloc<>::deallocate): Protect two instances of
3287         block->thread_id with __GTHREADS.
3289 2004-03-25  Gawain Bolton  <gp.bolton@computer.org>
3291         * include/bits/stl_tree.h (_Rb_tree_impl): Add _Node_allocator
3292         default argument in constructors.
3293         (_Rb_tree::_M_empty_initialize): Remove.
3295 2004-03-25  Benjamin Kosnik  <bkoz@redhat.com>
3297         * testsuite/23_containers/map/operators/1_neg.cc: Adjust line numbers.
3298         * testsuite/23_containers/set/operators/1_neg.cc: Same.
3300 2004-03-25  Dhruv Matani  <dhruvbird@gmx.net>
3302         * include/bits/cpp_type_traits.h: Changed __is_pod
3303         completely. Now, it does not use any of the previous type_traits
3304         to detect the pod types, and it also detects function pointers as
3305         POD types.
3307         * include/bits/stl_tree.h: Introduced a new class _Rb_tree_impl,
3308         which encapsulates the internal implementation of an rb_tree. Made
3309         the allocator a base class of this class instead of the rb_tree,
3310         which was not conforming. This _Rb_tree_impl class is also
3311         specialized on whether the _Compare parameter is a POD type or
3312         not. If so, then it maintains the comparison function as a data
3313         member, otherwise it makes the _Compare parameter a base class of
3314         itself. Also, _M_key_compare is now a function instead of a data
3315         member, so that the above trick can work properly. Delegated the
3316         initialization of the other data members to this newly created
3317         class. Also, now other member functions of rb_tree must refer to
3318         _M_key_compare as _M_impl._M_key_compare(). The other data members
3319         (*) can be referenced to as _M_impl.(*), where
3320         (*) includes _M_header, and _M_node_count.
3322 2004-03-25  Paolo Carlini  <pcarlini@suse.de>
3324         * include/ext/mt_allocator.h (__mt_alloc<>::tune):
3325         Add _M_min_bin, the size in bytes of the smallest bin.
3326         (__mt_alloc<>::tune()): Tweak accordingly.
3327         (__mt_alloc<>::tune(size_t, ...)): Likewise.
3328         (__mt_alloc<>::block_record): Change to a union: members next
3329         and thread_id are never used at the same time.
3330         (__mt_alloc<>::allocate): Update consistently.
3331         (__mt_alloc<>::deallocate): Likewise.
3332         (__mt_alloc<>::_S_initialize): Update setups of _S_binmap and
3333         _S_bin_size for the configurable _M_min_size.
3335 2004-03-25  Dhruv Matani  <dhruvbird@gmx.net>
3337         * include/bits/stl_list.h: Created a _List_impl class and made it
3338         derive from the allocator, instead of the list deriving from the
3339         allocator class, which was not conformant. Changed all references
3340         from this->_M_node to this->_M_impl._M_node * bits/list.tcc: Same
3341         as above (changed all references to the concerned variables).
3343 2004-03-25  Dhruv Matani  <dhruvbird@gmx.net>
3345         * include/bits/stl_deque.h: Created a _Deque_impl class and made
3346         it derive from the allocator, instead of the deque deriving from
3347         the allocator class, which was not conformant. Changed all
3348         references to the _M_start, _M_finish, _M_map, and _M_map_size to
3349         _M_impl.*.
3350         (_Deque_base<_Tp,_Alloc>::~_Deque_base()): Added this->
3351         qualification in 2 places where it was missing.
3352         (_Deque_base<_Tp,_Alloc>::_M_initialize_map(size_t)): Same as
3353         above.
3354         * include/bits/deque.tcc: Same as above (changed all references to
3355         the concerned variables).
3357 2004-03-25  Dhruv Matani  <dhruvbird@gmx.net>
3359         * include/bits/stl_vector.h: Created a _Vector_impl class and made
3360         it derive from the allocator, instead of the _Vector_base class,
3361         deriving from the allocator which was not conformant. Changed all
3362         references to the _M_start, _M_finish, and _M_end_of_storage to
3363         _M_impl.*.
3364         * include/bits/vector.tcc: Same as above (changed all references
3365         to the concerned variables).
3367 2004-03-25  Dhruv Matani  <dhruvbird@gmx.net>
3369         * testsuite/23_containers/deque/cons/clear_allocator.cc: New.
3370         * testsuite/23_containers/list/cons/clear_allocator.cc: New.
3371         * testsuite/23_containers/vector/cons/clear_allocator.cc: New.
3373 2004-03-24  Dhruv Matani  <dhruvbird@gmx.net>
3375         * include/ext/malloc_allocator.h: Fixed the construct function to
3376         call global placement new instead of assignment. Added a check
3377         after the return from malloc to check whether returned pointer is
3378         NULL, and if so, throw std::bad_alloc().
3379         * include/ext/debug_allocator.h: Added a check in the deallocate
3380         function to check whether the user has passed a NULL pointer or
3381         not.
3383 2004-03-24  Benjamin Kosnik  <bkoz@redhat.com>
3385         * docs/html/20_util/allocator.html: Add bitmap_allocator links.
3387 2004-03-24  Andreas Schwab  <schwab@suse.de>
3389         * testsuite/lib/prune.exp (prune_g++_output): Ignore errata
3390         warning from IA64 assembler.
3392 2004-03-24  Dhruv Matani  <dhruvbird@gmx.net>
3394         * include/ext/bitmap_allocator.h: (_Bit_scan_forward) -> Made this
3395         function call __builtin_ctz instead of the while loop.
3396         (allocate) -> If condition has __builtin_expect.
3397         (deallocate) -> Ditto.
3398         Renamed a few left-over variables and typedefs according to the
3399         C++STYLE mentioned in the documentation.
3400         Protected calls to __gthread* by __gthread_active_p(), whose value
3401         is cached in the local variable __threads_active.
3403 2004-03-24  Felix Yen  <fwy@alumni.brown.edu>
3405         * testsuite/performance/20_util/allocator/producer_consumer.cc:
3406         Use linear algorithm for producer.
3408 2004-03-24  Paolo Carlini  <pcarlini@suse.de>
3410         * include/ext/mt_allocator.h (__mt_alloc<>::allocate,
3411         __mt_alloc<>::deallocate): Avoid redundant conditionals.
3413 2004-03-23  Benjamin Kosnik  <bkoz@redhat.com>
3415         * include/bits/locale_facets.h: Tweaks for 80 column.
3416         (__numpunct_cache::_M_cache): Move to locale_facets.tcc.
3417         (__moneypunct_cache::_M_cache): Same.
3418         (num_get): Don't inherit from __num_base.
3419         (num_put): Same.
3420         (money_get): Don't inherit from money_base.
3421         (money_put): Same.
3422         (__timepunct::_M_am_pm_format): New.
3423         (time_get::_M_extract_num): Return iterator, use ios_base as argument.
3424         (time_get::_M_extract_name): Same.
3425         (time_get::_M_extract_via_format): Same.
3426         * include/bits/locale_facets.tcc: Tweaks for 80 column.
3427         Use _M_getloc instead of getloc.
3428         * testsuite/22_locale/money_put/put/char/9780-3.cc: New.
3429         * testsuite/22_locale/num_put/put/char/9780-2.cc: New.
3430         * testsuite/22_locale/time_put/put/char/9780-1.cc: New.
3432 2004-03-22  Paolo Carlini  <pcarlini@suse.de>
3434         * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Add pool_allocator.
3435         * configure: Regenerate.
3436         * config/allocator/pool_allocator_base.h: New.
3437         * include/ext/pool_allocator.h: Convert to a standard-conforming
3438         allocator.
3439         * src/allocator.cc: Tweak instantiations.
3440         * testsuite/performance/20_util/allocator/insert.cc: Add __pool_alloc.
3441         * testsuite/performance/20_util/allocator/insert_insert.cc: Ditto.
3442         * testsuite/performance/20_util/allocator/list_sort_search.cc: Ditto.
3443         * testsuite/performance/20_util/allocator/map_mt_find.cc: Ditto.
3444         * testsuite/performance/20_util/allocator/map_thread.cc: Ditto.
3445         * testsuite/performance/20_util/allocator/producer_consumer.cc: Ditto.
3447 2004-03-22  Hans-Peter Nilsson  <hp@axis.com>
3449         * config/cpu/cris/atomicity.h (__atomic_add): Remove "static
3450         inline" and attribute-unused.  Qualify parameter __mem with
3451         "volatile".
3452         (__exchange_and_add): Ditto.  Add back memory clobber to asm.
3454 2004-03-20  Paolo Carlini  <pcarlini@suse.de>
3456         * testsuite/27_io/basic_istream/extractors_arithmetic/char/2.cc:
3457         Remove junk.
3458         * testsuite/27_io/basic_istream/extractors_arithmetic/char/3.cc:
3459         Likewise.
3460         * testsuite/27_io/basic_istream/extractors_arithmetic/char/6.cc:
3461         Likewise.
3462         * testsuite/27_io/basic_istream/extractors_arithmetic/char/7.cc:
3463         Likewise.
3464         * testsuite/27_io/basic_istream/extractors_arithmetic/char/8.cc:
3465         Likewise.
3466         * testsuite/27_io/basic_istream/extractors_arithmetic/char/9.cc:
3467         Likewise.
3468         * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
3469         Likewise.
3470         * testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc:
3471         Likewise.
3472         * testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc:
3473         Likewise.
3474         * testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc:
3475         Likewise.
3477 2004-03-20  Paolo Carlini  <pcarlini@suse.de>
3479         * include/std/std_valarray.h: Document DR389 [Ready].
3480         * docs/html/ext/howto.html: Add an entry for DR389.
3482 2004-03-19  Michael Eager  <eager@mvista.com>
3484         * config/cpu/mips/atomicity.h:  Prevent reg loads between LL and
3485         SC instructions.
3487 2004-03-19  Paolo Carlini  <pcarlini@suse.de>
3489         * testsuite/22_locale/num_get/get/char/11.cc: Remove redundant
3490         static_cast-s.
3491         * testsuite/22_locale/num_get/get/char/12.cc: Likewise.
3492         * testsuite/22_locale/num_get/get/char/13.cc: Likewise.
3493         * testsuite/22_locale/num_get/get/char/14.cc: Likewise.
3494         * testsuite/22_locale/num_get/get/char/15.cc: Likewise.
3495         * testsuite/22_locale/num_get/get/wchar_t/11.cc: Likewise.
3496         * testsuite/22_locale/num_get/get/wchar_t/12.cc: Likewise.
3497         * testsuite/22_locale/num_get/get/wchar_t/13.cc: Likewise.
3498         * testsuite/22_locale/num_get/get/wchar_t/14.cc: Likewise.
3499         * testsuite/22_locale/num_get/get/wchar_t/15.cc: Likewise.
3501 2004-03-19  Paolo Carlini  <pcarlini@suse.de>
3502             Petur Runolfsson  <peturr02@ru.is>
3504         PR libstdc++/12077
3505         * include/ext/stdio_sync_filebuf.h (showmanyc): Remove, there's
3506         no way to find out the conversion used by the underlying FILE*.
3507         * testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc: New.
3508         * testsuite/27_io/objects/char/9.cc: Tweak.
3510 2004-03-19  Paolo Carlini  <pcarlini@suse.de>
3512         PR libstdc++/14648
3513         * include/ext/ropeimpl.h (rope<>::_S_apply_to_pieces): Fix
3514         memory allocation/deallocation calls.
3515         * testsuite/ext/14648.cc: New.
3517 2004-03-19  Peter Schmid  <schmid@snake.iap.physik.tu-darmstadt.de>
3519         PR libstdc++/14647
3520         * include/backward/bvector.h (bit_vector): Allocator is in std
3521         namespace.
3523 2004-03-19  Phil Edwards  <phil@codesourcery.com>
3525         * acinclude.m4 (GLIBCXX_CHECK_WCHAR_T_SUPPORT):  Set LIBICONV,
3526         not libiconv.  SUBST this variable as well.
3527         * testsuite/Makefile.am (site.exp):  New target, based on that
3528         created by automake.  Also set libiconv.
3530         * configure, Makefile.in, include/Makefile.in, libmath/Makefile.in,
3531         libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in,
3532         testsuite/Makefile.in:  Regenerate.
3534 2004-03-16  Benjamin Kosnik  <bkoz@redhat.com>
3536         * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Default setting is
3537         new_allocator for all hosts.
3538         * configure: Regenerate.
3540 2004-03-16  Paolo Carlini  <pcarlini@suse.de>
3542         * testsuite/22_locale/num_put/put/char/4.cc: Fix for 64-bit pointers.
3543         * testsuite/22_locale/num_put/put/wchar_t/4.cc: Likewise.
3545 2004-03-15  Paolo Carlini  <pcarlini@suse.de>
3547         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3548         Adjust the logic underlying the parsing of symbol to deal
3549         correctly with an optional sign component (i.e., when either
3550         negative_sign or positive_sign is empty)
3551         * testsuite/22_locale/money_get/get/char/19.cc: New.
3552         * testsuite/22_locale/money_get/get/wchar_t/19.cc: New.
3554 2004-03-15  Paolo Carlini  <pcarlini@suse.de>
3556         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3557         Do not accept an incomplete currency symbol.
3558         * testsuite/22_locale/money_get/get/char/18.cc: New.
3559         * testsuite/22_locale/money_get/get/wchar_t/18.cc: New.
3561 2004-03-13  Benjamin Kosnik  <bkoz@redhat.com>
3563         * config/allocator: New.
3564         * config/allocator/bitmap_allocator_base.h: New.
3565         * config/allocator/malloc_allocator_base.h: New.
3566         * config/allocator/mt_allocator_base.h: New.
3567         * config/allocator/new_allocator_base.h: New.
3568         * include/bits/allocator.h: Include c++allocator.h.
3569         * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): New.
3570         * aclocal.m4: Regenerate.
3571         * configure.ac: Use GLIBCXX_ENABLE_ALLOCATOR.
3572         * configure: Regenerate.
3573         * include/Makefile.am (host_headers_extra): Add c++allocator.h.
3574         * include/Makefile.in: Regenerate.
3575         * docs/html/configopts.html: Add enable-libstdcxx-allocator.
3577 2004-03-12  Benjamin Kosnik  <bkoz@redhat.com>
3579         * include/bits/allocator.h: Revert.
3581 2004-03-12  Paolo Carlini  <pcarlini@suse.de>
3583         * docs/html/ext/howto.html: Add entry for DR 253 [Ready].
3584         * include/bits/gslice_array.h: Add comment about DR 253.
3585         * include/bits/indirect_array.h: Likewise.
3586         * include/bits/mask_array.h: Likewise.
3587         * include/bits/slice_array.h: Likewise.
3589 2004-03-12  Benjamin Kosnik  <bkoz@redhat.com>
3591         * testsuite/20_util/allocator/14176.cc: New.
3592         * include/ext/mt_allocator.h: Formatting fixes.
3594 2004-03-11  Dhruv Matani  <dhruvbird@HotPOP.com>
3596         * include/Makefile.am (ext_headers): Add
3597         ${ext_srcdir}/bitmap_allocator.h .
3598         * include/Makefile.in: Regenerate.
3599         * docs/html/ext/ballocator_doc.txt: New file.
3600         * include/ext/bitmap_allocator.h: New file.
3601         * testsuite/performance/20_util/allocator/list_sort_search.cc: Add
3602         test.
3603         * testsuite/performance/20_util/allocator/map_mt_find.cc: Likewise.
3604         * testsuite/performance/20_util/allocator/producer_consumer.cc: Add
3605         test for the bitmap_allocator<>.
3606         * testsuite/performance/20_util/allocator/insert.cc: Likewise.
3607         * testsuite/performance/20_util/allocator/insert_insert.cc: Likewise.
3608         * testsuite/performance/20_util/allocator/map_thread.cc: Likewise.
3610 2004-03-11  Paolo Carlini  <pcarlini@suse.de>
3612         * include/std/std_complex.h (pow(const complex&, const _Tp&),
3613         pow(const _Tp&, const complex&), pow(const complex&,
3614         const complex&)): Fully qualify with std:: a few calls.
3615         * testsuite/26_numerics/complex/13450.cc: Minor tweak.
3617 2004-03-11  Steven Bosscher  <stevenb@suse.de>
3619         PR libstdc++/11706
3620         * include/c_std/cmath.tcc (__cmath_power): Define inline.
3622 2004-03-10  Kelley Cook  <kcook@gcc.gnu.org>
3624         * configure.ac: Bump AC_PREREQ to 2.59.
3626 2004-03-10  Paolo Carlini  <pcarlini@suse.de>
3628         * testsuite/26_numerics/valarray_subset_assignment.cc: Fix typos.
3630 2004-03-10  Paul Kienzle  <pkienzle@nist.gov>
3631             Paolo Carlini  <pcarlini@suse.de>
3633         PR libstdc++/13450
3634         * include/std/std_complex.h (pow(const complex&, const _Tp&),
3635         pow(const _Tp&, const complex&)): Use cmath pow only when safe.
3636         * testsuite/26_numerics/complex/13450.cc: New.
3638         * testsuite/26_numerics/cmath/overloads.C: Rename to overloads.cc.
3639         * testsuite/26_numerics/complex/pow.C: Rename to pow.cc and fix.
3641 2004-03-10  Jerry Quinn  <jlquinn@optonline.net>
3643         PR libstdc++/3247
3644         * include/bits/gslice_array.h (gslice_array()): Make public.
3645         (operator=(gslice_array)): Make public.  Implement.
3646         * include/bits/indirect_array.h (indirect_array()): Make public.
3647         * include/bits/mask_array.h (mask_array()): Make public.
3648         (operator=(mask_array)): Make public.  Implement.
3649         * include/bits/valarray_array.tcc (__valarray_copy):
3650         Comment.  Add versions for gslice_array and mask_array.
3651         * testsuite/26_numerics/valarray_subset_assignment.cc:  New test.
3653 2004-03-09  Benjamin Kosnik  <bkoz@redhat.com>
3655         * testsuite/23_containers/deque/modifiers/swap.cc: Add in bits for
3656         non-weak systems.
3657         * testsuite/23_containers/vector/modifiers/swap.cc: Same.
3658         * testsuite/23_containers/set/modifiers/swap.cc: Same.
3659         * testsuite/23_containers/multiset/modifiers/swap.cc: Same.
3660         * testsuite/23_containers/multimap/modifiers/swap.cc: Same.
3661         * testsuite/23_containers/map/modifiers/swap.cc: Same.
3662         * testsuite/23_containers/list/modifiers/swap.cc: Same.
3664         * testsuite/22_locale/locale/cons/12658_thread.cc: Catch exceptions.
3666 2004-03-08  Benjamin Kosnik  <bkoz@redhat.com>
3668         PR c++/13658
3669         * testsuite/23_containers/deque/modifiers/swap.cc: New.
3670         * testsuite/23_containers/list/modifiers/swap.cc: New.
3671         * testsuite/23_containers/map/modifiers/swap.cc: New.
3672         * testsuite/23_containers/multimap/modifiers/swap.cc: New.
3673         * testsuite/23_containers/multiset/modifiers/swap.cc: New.
3674         * testsuite/23_containers/set/modifiers/swap.cc: New.
3675         * testsuite/23_containers/vector/modifiers/swap.cc: New.
3677 2004-03-08  Petur Runolfsson  <peturr02@ru.is>
3679         PR libstdc++/12658
3680         * testsuite/22_locale/locale/cons/12658_thread.cc: New.
3682 2004-03-08  Paolo Carlini  <pcarlini@suse.de>
3684         * docs/html/ext/howto.html: Add entry for DR 103 [WP].
3685         * include/bits/stl_multiset.h: Add comment about DR 103.
3686         * include/bits/stl_set.h: Likewise.
3688 2004-03-08  Paolo Carlini  <pcarlini@suse.de>
3690         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3691         The value _space_ indicates that at least one space is required
3692         at that position.
3693         * testsuite/22_locale/money_get/get/char/17.cc: New.
3694         * testsuite/22_locale/money_get/get/wchar_t/17.cc: New.
3696         * testsuite/22_locale/money_get/get/char/7.cc: Minor tweaks.
3697         * testsuite/22_locale/money_get/get/wchar_t/7.cc: Likewise.
3699         * include/bits/locale_facets.tcc (money_get<>::do_get(long_double&)):
3700         Remove redundant conditional on __str.size().
3702 2004-03-08  Benjamin Kosnik  <bkoz@redhat.com>
3704         * include/bits/allocator.h: Switch defaults to mt_alloc.
3706 2004-03-06  Benjamin Kosnik  <bkoz@redhat.com>
3708         * include/ext/mt_allocator.h (_S_initialize): If
3709         !__GTHREAD_MUTEX_INIT, then initialize _S_thread_freelist_mutex.
3711 2004-03-06  Benjamin Kosnik  <bkoz@redhat.com>
3713         PR libstdc++/12658
3714         * src/locale_init.cc (locale::locale): Lock critical regions with
3715         external mutexes.
3716         (locale::global): Same.
3717         * include/bits/concurrence.h (__glibcxx_mutex_define_initialized):
3718         Add in once bits for cases without __GTHREAD_MUTEX_INIT.
3719         (__glibcxx_mutex_lock): Same.
3721         * config/cpu/generic/atomicity.h: Remove
3722         _GLIBCXX_NEED_GENERIC_MUTEX, use concurrence.h.
3723         * src/misc-inst.cc: Move all locking bits out of this file.
3725         * config/os/hpux/os_defines.h: Remove _GLIBCXX_INST_ATOMICITY_LOCK.
3726         * src/misc-inst.cc: Same.
3727         * config/cpu/hppa/atomicity.h: Same.
3729         * config/linker-map.gnu: Remove types in the signature of atomic
3730         exports, as they may vary.
3732 2004-03-06  Paolo Carlini  <pcarlini@suse.de>
3734         * include/bits/locale_facets.tcc: Tweak the comment preceding
3735         has_facet: doesn't throw.
3737 2004-03-06  Paolo Carlini  <pcarlini@suse.de>
3739         * testsuite/22_locale/money_get/get/char/1.cc: Clean up.
3740         * testsuite/22_locale/money_get/get/char/2.cc: Likewise.
3741         * testsuite/22_locale/money_get/get/char/3.cc: Likewise.
3742         * testsuite/22_locale/money_get/get/char/4.cc: Likewise.
3743         * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
3744         * testsuite/22_locale/money_get/get/wchar_t/2.cc: Likewise.
3745         * testsuite/22_locale/money_get/get/wchar_t/3.cc: Likewise.
3746         * testsuite/22_locale/money_get/get/wchar_t/4.cc: Likewise.
3748 2004-03-06  Paolo Carlini  <pcarlini@suse.de>
3750         * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
3751         num_get<>::_M_extract_int, num_get<>::do_get(bool&),
3752         __pad<>::_S_pad): Prefer plain operator== to traits::eq().
3753         * testsuite/testsuite_character.h (struct __gnu_test::character):
3754         Provide operator==.
3755         * testsuite/testsuite_hooks.h (struct __gnu_test::pod_char):
3756         Likewise.
3758 2004-03-05  Paolo Carlini  <pcarlini@suse.de>
3760         * testsuite/27_io/fpos/14320-2.cc: Remove xfail.
3762 2004-03-04  Benjamin Kosnik  <bkoz@redhat.com>
3764         * testsuite/23_containers/multiset/insert/1.cc: Test result string.
3766         * testsuite/23_containers/bitset/invalidation/1.cc: Main always
3767         returns 0.
3768         * testsuite/23_containers/deque/invalidation/4.cc: Same.
3769         * testsuite/23_containers/list/invalidation/1.cc: Same.
3770         * testsuite/23_containers/list/invalidation/2.cc: Same.
3771         * testsuite/23_containers/list/invalidation/3.cc: Same.
3772         * testsuite/23_containers/list/invalidation/4.cc: Same.
3773         * testsuite/23_containers/map/invalidation/2.cc: Same.
3774         * testsuite/23_containers/multimap/invalidation/1.cc: Same.
3775         * testsuite/23_containers/multimap/invalidation/2.cc: Same.
3776         * testsuite/23_containers/multiset/invalidation/1.cc: Same.
3777         * testsuite/23_containers/multiset/invalidation/2.cc: Same.
3778         * testsuite/23_containers/set/invalidation/1.cc: Same.
3779         * testsuite/23_containers/set/invalidation/2.cc: Same.
3780         * testsuite/23_containers/vector/invalidation/1.cc: Same.
3781         * testsuite/23_containers/vector/invalidation/2.cc: Same.
3782         * testsuite/23_containers/vector/invalidation/3.cc: Same.
3783         * testsuite/23_containers/vector/invalidation/4.cc: Same.
3785 2004-03-04  Paolo Carlini  <pcarlini@suse.de>
3787         * scripts/testsuite_flags.in: Add "-D_GLIBCXX_ASSERT" to
3788         CXXFLAGS_save.
3789         * testsuite/lib/libstdc++.exp: Don't add it conditionally to
3790         DEFAULT_CXXFLAGS.
3791         * testsuite/18_support/numeric_limits.cc: Remove "-D_GLIBCXX_ASSERT"
3792         from the dg-options.
3793         * testsuite/23_containers/vector/invalidation/1.cc: Likewise.
3794         * testsuite/23_containers/vector/invalidation/2.cc: Likewise.
3795         * testsuite/23_containers/vector/invalidation/3.cc: Likewise.
3796         * testsuite/23_containers/vector/invalidation/4.cc: Likewise.
3797         * testsuite/23_containers/vector/resize/1.cc: Likewise.
3798         * testsuite/26_numerics/complex_value.cc: Likewise.
3799         * testsuite/27_io/ios_base/storage/1.cc: Likewise.
3800         * testsuite/27_io/ios_base/storage/2.cc: Likewise.
3801         * testsuite/27_io/ios_base/storage/3.cc: Likewise.
3802         * testsuite/27_io/manipulators/standard/char/2.cc: Likewise.
3803         * testsuite/27_io/objects/char/5.cc: Likewise.
3804         * testsuite/27_io/objects/wchar_t/5.cc: Likewise.
3805         * testsuite/backward/11460.cc: Likewise.
3806         * testsuite/thread/pthread7-rope.cc: Likewise.
3808         * testsuite/21_strings/basic_string/compare/char/1.cc: Add
3809         missing test variable.
3810         * testsuite/21_strings/basic_string/compare/wchar_t/1.cc: Add
3811         missing test variable.
3813 2004-03-04  Benjamin Kosnik  <bkoz@redhat.com>
3815         * testsuite/20_util/allocator/1.cc: Provide explicit
3816         instantiations for non-weak systems.
3817         * testsuite/20_util/binders.cc: Same.
3818         * testsuite/20_util/allocator/8230.cc: Same.
3819         * testsuite/20_util/allocator/10378.cc: Same.
3820         * testsuite/22_locale/ctype/is/wchar_t/2.cc: Same.
3821         * testsuite/22_locale/ctype/is/char/2.cc: Same.
3822         * testsuite/thread/pthread7-rope.cc: Same.
3823         * testsuite/thread/pthread6.cc: Same.
3824         * testsuite/thread/pthread5.cc: Same.
3825         * testsuite/thread/pthread4.cc: Same.
3826         * testsuite/thread/pthread1.cc: Same.
3827         * testsuite/ext/rope.cc: Same.
3828         * testsuite/ext/hash_set.cc: Same.
3829         * testsuite/ext/hash_map.cc: Same.
3830         * testsuite/ext/concept_checks.cc: Same.
3831         * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9874.cc: Same.
3832         * testsuite/25_algorithms/unique/2.cc: Same.
3833         * testsuite/25_algorithms/unique/1.cc: Same.
3834         * testsuite/25_algorithms/rotate.cc: Same.
3835         * testsuite/25_algorithms/min_max.cc: Same.
3836         * testsuite/25_algorithms/equal.cc: Same.
3837         * testsuite/24_iterators/rel_ops.cc: Same.
3838         * testsuite/24_iterators/iterator.cc: Same.
3839         * testsuite/24_iterators/insert_iterator.cc: Same.
3840         * testsuite/24_iterators/front_insert_iterator.cc: Same.
3841         * testsuite/24_iterators/back_insert_iterator.cc: Same.
3842         * testsuite/23_containers/vector/resize/1.cc: Same.
3843         * testsuite/23_containers/vector/modifiers/2.cc: Same.
3844         * testsuite/23_containers/vector/modifiers/1.cc: Same.
3845         * testsuite/23_containers/vector/invalidation/4.cc: Same.
3846         * testsuite/23_containers/vector/invalidation/3.cc: Same.
3847         * testsuite/23_containers/vector/invalidation/2.cc: Same.
3848         * testsuite/23_containers/vector/invalidation/1.cc: Same.
3849         * testsuite/23_containers/vector/element_access/1.cc: Same.
3850         * testsuite/23_containers/vector/cons/6513.cc: Same.
3851         * testsuite/23_containers/vector/cons/3.cc: Same.
3852         * testsuite/23_containers/vector/cons/2.cc: Same.
3853         * testsuite/23_containers/vector/cons/1.cc: Same.
3854         * testsuite/23_containers/vector/capacity/8230.cc: Same.
3855         * testsuite/23_containers/vector/capacity/1.cc: Same.
3856         * testsuite/23_containers/vector/bool/6886.cc: Same.
3857         * testsuite/23_containers/stack/members/7158.cc: Same.
3858         * testsuite/23_containers/set/invalidation/2.cc: Same.
3859         * testsuite/23_containers/set/invalidation/1.cc: Same.
3860         * testsuite/23_containers/queue/members/7157.cc: Same.
3861         * testsuite/23_containers/priority_queue/members/7161.cc: Same.
3862         * testsuite/23_containers/multiset/invalidation/2.cc: Same.
3863         * testsuite/23_containers/multiset/invalidation/2.cc: Same.
3864         * testsuite/23_containers/multiset/insert/1.cc: Same.
3865         * testsuite/23_containers/multimap/invalidation/2.cc: Same.
3866         * testsuite/23_containers/multimap/invalidation/2.cc: Same.
3867         * testsuite/23_containers/map/operators/1.cc: Same.
3868         * testsuite/23_containers/map/invalidation/2.cc: Same.
3869         * testsuite/23_containers/map/invalidation/1.cc: Same.
3870         * testsuite/23_containers/map/insert/1.cc: Same.
3871         * testsuite/23_containers/list/operators/4.cc: Same.
3872         * testsuite/23_containers/list/operators/3.cc: Same.
3873         * testsuite/23_containers/list/operators/2.cc: Same.
3874         * testsuite/23_containers/list/operators/1.cc: Same.
3875         * testsuite/23_containers/list/modifiers/3.cc: Same.
3876         * testsuite/23_containers/list/modifiers/2.cc: Same.
3877         * testsuite/23_containers/list/modifiers/1.cc: Same.
3878         * testsuite/23_containers/list/invalidation/4.cc: Same.
3879         * testsuite/23_containers/list/invalidation/3.cc: Same.
3880         * testsuite/23_containers/list/invalidation/2.cc: Same.
3881         * testsuite/23_containers/list/invalidation/1.cc: Same.
3882         * testsuite/23_containers/list/cons/9.cc: Same.
3883         * testsuite/23_containers/list/cons/8.cc: Same.
3884         * testsuite/23_containers/list/cons/7.cc: Same.
3885         * testsuite/23_containers/list/cons/6.cc: Same.
3886         * testsuite/23_containers/list/cons/5.cc: Same.
3887         * testsuite/23_containers/list/cons/4.cc: Same.
3888         * testsuite/23_containers/list/cons/3.cc: Same.
3889         * testsuite/23_containers/list/cons/2.cc: Same.
3890         * testsuite/23_containers/list/cons/1.cc: Same.
3891         * testsuite/23_containers/list/capacity/1.cc: Same.
3892         * testsuite/23_containers/deque/operators/1.cc: Same.
3893         * testsuite/23_containers/deque/invalidation/4.cc: Same.
3894         * testsuite/23_containers/deque/invalidation/3.cc: Same.
3895         * testsuite/23_containers/deque/invalidation/2.cc: Same.
3896         * testsuite/23_containers/deque/invalidation/1.cc: Same.
3897         * testsuite/23_containers/deque/cons/2.cc: Same.
3898         * testsuite/23_containers/deque/cons/1.cc: Same.
3900         * src/allocator.cc: Add char, wchar_t instantiations
3901         to match extern template declarations in memory.h.
3903 2004-03-03  Paolo Carlini  <pcarlini@suse.de>
3905         * include/bits/locale_facets.tcc (money_put<>::_M_insert):
3906         Fix warning regression.
3908 2004-03-03  Paolo Carlini  <pcarlini@suse.de>
3910         * include/bits/locale_facets.tcc (money_put<>::_M_insert):
3911         Deal properly with empty __digits and negative frac_digits,
3912         clean-up a bit.
3914 2004-03-03  Jonathan Wakely  <redi@gcc.gnu.org>
3916         * docs/html/documentation.html: Regenerate.
3918 2004-03-02  Paolo Carlini  <pcarlini@suse.de>
3920         PR libstdc++/14320
3921         * include/bits/postypes.h (class streamoff): Remove, now
3922         streamoff is just typedef a 64 bit signed integer type.
3923         (class fpos): Tweak consistently.
3924         * testsuite/27_io/fpos/14320-1.cc: New.
3925         * testsuite/27_io/fpos/14320-2.cc: New.
3926         * testsuite/27_io/fpos/14320-3.cc: New.
3927         * testsuite/27_io/fpos/14320-4.cc: New.
3928         * testsuite/27_io/fpos/14320-5.cc: New.
3929         * testsuite/27_io/fpos/mbstate_t/4_neg.cc: xfail for now.
3931 2004-03-02  Paolo Carlini  <pcarlini@suse.de>
3933         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3934         Reorganize a bit the main parsing loop, thus early detecting
3935         an empty value component.
3936         * testsuite/22_locale/money_get/get/char/16.cc: New.
3937         * testsuite/22_locale/money_get/get/wchar_t/16.cc: New.
3939 2004-03-02  Benjamin Kosnik  <bkoz@redhat.com>
3941         Support automake 1.8.2
3942         * configure.ac (AM_INIT_AUTOMAKE): Add -Wno-override.
3943         * po/Makefile.am (EXTRA_DIST): New.
3944         * po/Makefile.in: Regenerate.
3945         * Makefile.in: Same.
3946         * include/Makefile.in: Same.
3947         * libmath/Makefile.in: Same.
3948         * libsupc++/Makefile.in: Same.
3949         * src/Makefile.in: Same.
3950         * testsuite/Makefile.in: Same.
3952         * include/Makefile.am (${host_builddir}/gthr-posix.h): Use
3953         __GXX_WEAK__ instead of SUPPORTS_WEAK.
3954         (${host_builddir}/gthr-default.h): Same.
3955         (${host_builddir}/gthr.h): Same.
3956         * acinclude.m4 (GLIBCXX_ENABLE_THREAD): Remove
3957         _GLIBCXX_SUPPORTS_WEAK, as this behavior can be modified via
3958         -fno-weak.
3959         * aclocal.m4: Regenerate.
3960         * acconfig.h: Remove _GLIBCXX_SUPPORTS_WEAK.
3961         * config.h.in: Regenerate.
3962         * configure: Same.
3964 2004-03-01  Benjamin Kosnik  <bkoz@redhat.com>
3966         Support autoconf 2.59
3967         * acinclude.m4: Quote correctly.
3968         * aclocal.m4: Regenerate.
3969         * linkage.m4: Same.
3971 2004-03-01  Benjamin Kosnik  <bkoz@redhat.com>
3973         * docs/html/test.html: Add multilib RUNTESTFLAGS example.
3975         * docs/html/18_support/howto.html: Add bit about writing to
3976         stderr, mostly by Zack.
3978 2004-03-01  Paolo Carlini  <pcarlini@suse.de>
3980         * include/bits/locale_facets.tcc (money_get<>::_M_extract,
3981         money_get<>::do_get(string_type&)): ... and two more.
3983 2004-03-01  Paolo Carlini  <pcarlini@suse.de>
3985         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3986         Fix thinkos in the switch from string_type& to string& as last
3987         argument.
3989 2004-03-01  Paolo Carlini  <pcarlini@suse.de>
3991         * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
3992         Also when parsing exponent sign, first look for thousands_sep
3993         and decimal_point; tweak a bit.
3994         * testsuite/22_locale/num_get/get/char/15.cc: New.
3995         * testsuite/22_locale/num_get/get/wchar_t/15.cc: New.
3997         * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
3998         num_get<>::_M_extract_int): Reorder some conditionals.
4000 2004-03-01  Paolo Carlini  <pcarlini@suse.de>
4002         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
4003         Consistently with numpunct, enforce the requirements in
4004         22.2.6.3, p3 for the thousands separators; tweak a bit.
4005         * testsuite/22_locale/money_get/get/char/15.cc: New.
4006         * testsuite/22_locale/money_get/get/wchar_t/15.cc: New.
4008 2004-03-01  David Billinghurst <David.Billinghurst@riotinto.com>
4010         * testsuite/lib/libstdc++.exp (v3-list-tests): Use
4011         testsuite_files from correct multilib blddir when running
4012         testsuite.
4014 2004-02-29  Phil Edwards  <phil@codesourcery.com>
4016         * testsuite/Makefile.am (check-abi, check-abi-verbose):  Copy
4017         the summary file to the logfile.
4018         * testsuite/Makefile.in:  Regenerate.
4020 2004-02-28  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4022         * config/cpu/hppa/atomicity.h (__atomic_add): Make first argument
4023         volatile.
4024         * config/os/hpux/os_defines.h (_GLIBCXX_INST_ATOMICITY_LOCK): Use
4025         __GXX_WEAK__ instead of _GLIBCXX_SUPPORTS_WEAK.
4027 2004-02-28  Paolo Carlini  <pcarlini@suse.de>
4029         * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
4030         According to 22.2.3.1, p2, 'units' may be followed by 'e' with
4031         no 'decimal-point' in the middle: in this case too we must fix
4032         up __found_grouping; slightly tweak.
4033         * testsuite/22_locale/num_get/get/char/14.cc: New.
4034         * testsuite/22_locale/num_get/get/wchar_t/14.cc: New.
4036 2004-02-27  Eric Christopher  <echristo@redhat.com>
4037             Phil Edwards  <phil@codesourcery.com>
4039         * testsuite/22_locale/collate/compare/wchar_t/2.cc,
4040         testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc,
4041         testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc,
4042         testsuite/22_locale/collate/hash/wchar_t/2.cc,
4043         testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc,
4044         testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc,
4045         testsuite/22_locale/collate/transform/wchar_t/2.cc,
4046         testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc,
4047         testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
4048         Use dg-require-iconv.
4049         * testsuite/lib/libstdc++.exp:  Load target-supports.exp.
4051 2004-02-27  Phil Edwards  <phil@codesourcery.com>
4052             Eric Christopher  <echristo@redhat.com>
4054         * testsuite/config/default.exp:  Update with comments.
4055         (${tool}_target_compile):  New wrapper routine.
4056         * testsuite/lib/dg-options.exp:  New file, with dg-require-iconv.
4057         * testsuite/lib/libstdc++.exp:  Update with comments and cosmetic
4058         fixes.
4059         (load_gcc_lib, v3track):  New routines.
4060         (v3-init):  Rename to libstdc++_init.
4061         * testsuite/libstdc++-dg/normal.exp:  No longer call v3-init.
4062         Move DEFAULT_CXXFLAGS handling into libstdc++_init.
4064 2004-02-27  Benjamin Kosnik  <bkoz@redhat.com>
4066         * config/cpu/hppa/atomicity.h: Include c++config.h to get defines.
4068         * src/misc-inst.cc (_S_atomicity_lock): Move to __gnu_cxx.
4070         * config/os/irix/irix5.2/atomicity.h: Merge..
4071         * config/os/irix/irix6.5/atomicity.h: Merge..
4072         * config/os/irix/atomicity.h: ...into this.
4073         * config/os/irix/atomic_word.h: New.
4074         * configure.host: Set atomic_word_dir for irix.
4076         * hppa/atomicity.h: Change __Atomicity_lock to _Atomicity_lock.
4077         * i386/atomicity.h: Same.
4078         * m68k/atomicity.h: Same.
4079         * sparc/atomicity.h: Same.
4081 2004-02-27  David Edelsohn  <edelsohn@gnu.org>
4083         * config/os/aix/atomicity.h: Use __gnu_cxx namespace. Remove
4084         static, and inline keywords.
4086 2004-02-27  Paolo Carlini  <pcarlini@suse.de>
4088         * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
4089         num_get<>::_M_extract_int, money_get<>::_M_extract): If appropriate,
4090         call reserve on the __tmp_gruping string.
4091         (num_get<>::_M_extract_float): Don't append unnecessarily a
4092         char() to the returned string.
4093         * include/bits/locale_facets.tcc: Trivial reformattings.
4095 2004-02-27  Paolo Carlini  <pcarlini@suse.de>
4097         * include/bits/locale_facets.h (money_get<>::_M_extract):
4098         Change signature: now takes a plain string&.
4099         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
4100         Update consistently the definition; use the moneypunct cache
4101         to parse the value; use swap to change __units.
4102         (money_get<>::do_get(long double&)): Update call of _M_extract,
4103         avoid ctype::narrow, not correct wrt the standard.
4104         (money_get<>::do_get(string_type&)): Likewise, update call
4105         of _M_extract, use ctype::widen.
4106         * src/locale-inst.cc: Tweak instantiations of _M_extract.
4108 2004-02-26  Ian Lance Taylor  <ian@wasabisystems.com>
4110         * testsuite/demangle/abi_examples/01.cc: Expect error -2.
4111         * testsuite/demangle/abi_examples/02.cc: Likewise.
4112         * testsuite/demangle/regression/cw-11.cc: Likewise.
4113         * testsuite/demangle/regression/cw-16.cc: Change two expected
4114         results to match libiberty demangler output.
4116 2004-02-26  Benjamin Kosnik  <bkoz@redhat.com>
4118         PR libstdc++/10246
4119         * libsupc++/Makefile.am: Use libiberty demangler.
4120         (c_sources): Add cp-demangle.c.
4121         * libsupc++/Makefile.in: Regenerate.
4122         * src/Makefile.am (sources): Remove demangle.cc.
4123         * src/Makefile.in: Regenerate.
4124         * include/Makefile.am (bits_headers): Move demangle.h.
4125         (ext_headers): ...here.
4126         * include/Makefile.in: Regenerate.
4127         * include/bits/demangle.h: Move...
4128         * include/ext/demangle.h: ...here.
4129         * src/demangle.cc: Remove.
4131 2004-02-26  Benjamin Kosnik  <bkoz@redhat.com>
4133         * include/bits/demangle.h: Add type template parameter to all
4134         templates with just an Allocator template parameter.
4136 2004-02-25  Benjamin Kosnik  <bkoz@redhat.com>
4138         * include/bits/atomicity.h: New, forward declarations for __atomic_add
4139         and __exchange_and_add.
4140         * config/cpu/generic/atomic_word.h: New, typdef for atomic word.
4141         * config/cpu/cris/atomic_word.h: Same.
4142         * config/cpu/sparc/atomic_word.h: Same.
4143         * include/bits/ios_base.h (_Callback_list::_M_remove_reference):
4144         Qualifiy with __gnu_cxx.
4145         (_Callback_list::_M_add_reference): Same.
4146         * include/bits/locale_classes.h (locale::facet::_M_add_reference): Add.
4147         (locale::facet::_M_remove_reference): Same.
4148         (locale::_Impl::_M_add_reference): Add.
4149         (locale::_Impl::_M_remove_reference): Same.
4150         * include/bits/basic_string.h (basic_string::_Rep::_M_refcopy): Same.
4151         (basic_string::_Rep::_M_dispose): Same.
4152         * src/ios.cc (ios_base::xalloc): Same.
4153         * src/ios_init.cc (ios_base::Init::Init): Same.
4154         (ios_base::Init::~Init): Same.
4155         * src/locale.cc (locale::id::_M_id): Same.
4156         * config/cpu/i486/atomicity.h: Use __gnu_cxx namespace. Remove
4157         static, and inline keywords.
4158         * config/cpu/alpha/atomicity.h: Same.
4159         * config/cpu/cris/atomicity.h: Same.
4160         * config/cpu/generic/atomicity.h: Same.
4161         * config/cpu/hppa/atomicity.h: Same.
4162         * config/cpu/i386/atomicity.h: Same.
4163         * config/cpu/ia64/atomicity.h: Same.
4164         * config/cpu/m68k/atomicity.h: Same.
4165         * config/cpu/mips/atomicity.h: Same.
4166         * config/cpu/powerpc/atomicity.h: Same.
4167         * config/cpu/s390/atomicity.h: Same.
4168         * config/cpu/sparc/atomicity.h: Same.
4170         * src/Makefile.am (host_sources): Add atomicity.cc.
4171         (atomicity.cc): New rule.
4172         * src/Makefile.in: Regenerate.
4173         * include/Makefile.am (host_headers): Remove host atomicity.h.
4174         (host_headers): Add atomic_word.h.
4175         (bits_headers): Add bits atomicity.h.
4176         Change ATOMICITY_INC_SRCDIR to ATOMICITY_SRCDIR.
4177         * include/Makefile.in: Regenerate.
4178         * configure.host (atomic_word_dir): Add.
4179         * configure.ac: Substitute ATOMIC_WORD_SRCDIR. Change
4180         ATOMICITY_INC_SRCDIR to ATOMICITY_SRCDIR.
4181         * configure: Regenerate.
4182         * config/linker-map.gnu: Export __exchange_and_add, and __atomic_add.
4184         * testsuite/27_io/ios_base/cons/assign_neg.cc: Adjust line numbers.
4185         * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
4187 2004-02-25  Jonathan Wakely  <redi@gcc.gnu.org>
4189         * docs/html/20_util/howto.html, docs/html/20_util/allocator.html,
4190         docs/html/ext/howto.html, docs/html/ext/mt_allocator.html:
4191         Fix markup, more <link> tags.
4193 2004-02-25  Carlo Wood  <carlo@alinoe.com>
4195         * bits/demangle.h
4196         namespace __gnu_cxx::demangler
4197         (session<Allocator>::qualifier_list_Allocator): Add
4198         (session<Allocator>::M_qualifier_list_alloc): Add
4199         (session<Allocator>::decode_type_with_postfix):
4200         Use M_qualifier_list_alloc instead of calling operator new/delete.
4202 2004-02-24  Paolo Carlini  <pcarlini@suse.de>
4204         PR libstdc++/14252
4205         * include/bits/postypes.h (class streamoff): Add operator++(),
4206         operator++(int), operator--() and operator--(int).
4207         * testsuite/27_io/fpos/14252.cc: New.
4209 2004-02-24  Richard Sandiford  <rsandifo@redhat.com>
4211         * include/bits/locale_facets.tcc (num_get::_M_extract_int): Fix bounds
4212         error in handling of hex constants.
4214 2004-02-24  Paolo Carlini  <pcarlini@suse.de>
4216         * include/bits/locale_facets.tcc (money_put<>::_M_insert):
4217         Prefer basic_string::append to operator+= and a temporary.
4219 2004-02-23  Benjamin Kosnik  <bkoz@redhat.com>
4221         * libsupc++/vterminate.cc (__gnu_cxx::__verbose_terminate_handler):
4222         Only use fputs, not write.
4224 2004-02-23  Benjamin Kosnik  <bkoz@redhat.com>
4226         * include/ext/malloc_allocator.h: Add operators ==, !=.
4227         * include/ext/new_allocator.h: Add operators ==, !=.
4228         * include/ext/mt_allocator.h (__mt_alloc::tune): New.
4229         (__mt_alloc::_S_get_options): New.
4230         (__mt_alloc::_S_set_options): New.
4231         (__mt_alloc::_S_thread_key_destr): To _S_destroy_thread_key.
4232         (__mt_alloc::_S_no_of_bins): To _S_bin_size.
4233         Move functions out of line, simplify, format.
4234         * src/allocator.cc: Simplify explicit instantiations.
4235         * include/bits/allocator.h: Tweak.
4237 2004-02-22  Paolo Carlini  <pcarlini@suse.de>
4239         * include/bits/locale_facets.tcc (money_put<>::_M_insert):
4240         Restructure formatting of value component, first dealing with
4241         the non-decimal digits; use reserve.
4243 2004-02-22  Paolo Carlini  <pcarlini@suse.de>
4245         * include/bits/locale_facets.h (class money_get): Inherit
4246         from money_base too; tweak declaration of _M_extract, now
4247         parameterized on _Intl too.
4248         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
4249         Update definition to use the cache; call reserve on __res to
4250         avoid multiple reallocations; fix parsing of sign component
4251         according to 22.2.6.1.2, p3.
4252         (money_get<>::do_get(long double&),
4253         money_get<>::do_get(string_type&)): Update calls of _M_extract.
4254         * src/locale-inst.cc:  Add instantiations of
4255         money_get::_M_extract<false> and money_get::_M_extract<true>.
4256         * testsuite/22_locale/money_get/get/char/14.cc: New.
4257         * testsuite/22_locale/money_get/get/wchar_t/14.cc: Ditto.
4259 2004-02-21  Mark Mitchell  <mark@codesourcery.com>
4261         * libsupc++/vterminate.cc
4262         (__gnu_cxx::__verbose_terminate_handler): Guard against recursive
4263         calls to terminate.
4264         * src/demangle.cc (__cxa_demangle): Wrap in try-catch block.
4266         * testsuite/testsuite_hooks.cc (__gnu_test::set_memory_limits): Do
4267         not set RLIMIT_AS on HP-UX.
4269 2004-02-21  Mark Mitchell  <mark@codesourcery.com>
4271         * testsuite/testsuite_hooks.cc (__gnu_test::set_memory_limits): Do
4272         not set RLIMIT_AS on HP-UX.
4274 2004-02-21  Paolo Carlini  <pcarlini@suse.de>
4276         * include/bits/locale_facets.h (class money_base): Add { _S_minus,
4277         _S_zero, _S_end } enum, _S_atoms.
4278         (struct __moneypunct_cache<>): Parameterize on _Intl too; add
4279         _M_grouping_size, _M_curr_symbol_size, _M_positive_sign_size,
4280         _M_negative_sign_size, _M_atoms; tweak constructor consistently.
4281         (__moneypunct_cache<>::~__moneypunct_cache): Update.
4282         (__moneypunct_cache<>::_M_cache): Fill the cache.
4283         (class moneypunct): Tweak __cache_type typedef.
4284         (class money_put): Inherit from money_base too; tweak declaration
4285         of _M_insert, now parameterized on _Intl.
4286         * include/bits/locale_facets.tcc
4287         (struct __use_cache<__moneypunct_cache<_CharT, _Intl> >): New.
4288         (money_put<>::_M_insert): Update definition to use the cache;
4289         call reserve on __res to avoid multiple reallocations.
4290         (money_put<>::do_put(long double),
4291         money_put<>::do_put(const string_type&): Update calls of _M_insert.
4292         * config/locale/generic/monetary_members.cc
4293         (moneypunct<char, true>::_M_initialize_moneypunct,
4294         moneypunct<char, false>::_M_initialize_moneypunct,
4295         moneypunct<wchar_t, true>::_M_initialize_moneypunct,
4296         moneypunct<wchar_t, false>::_M_initialize_moneypunct): Update.
4297         * config/locale/gnu/monetary_members.cc: Likewise.
4298         * config/locale/gnu/monetary_members.cc
4299         (moneypunct<wchar_t, true>::~moneypunct(),
4300         moneypunct<wchar_t, false>::~moneypunct()): Likewise.
4301         * src/globals_locale.cc: Tweak fake_money_cache_c.
4302         * src/locale-inst.cc: Add instantiations for
4303         money_put::_M_insert<false> and money_put::_M_insert<true> and
4304         __moneypunct_cache<C, false>, __moneypunct_cache<C, true>.
4305         * src/locale_facets.cc: Define money_base::_S_atoms.
4306         * src/locale_init.cc: Update placement new of
4307         __moneypunct_cache<char, false>, __moneypunct_cache<char, true>,
4308         __moneypunct_cache<wchar_t, false>, __moneypunct_cache<wchar_T, true>.
4310         * config/locale/generic/numeric_members.cc: Clean up.
4311         * config/locale/gnu/numeric_members.cc: Likewise.
4312         * testsuite/22_locale/money_put/put/char/1.cc: Likewise.
4313         * testsuite/22_locale/money_put/put/char/2.cc: Likewise.
4314         * testsuite/22_locale/money_put/put/char/3.cc: Likewise.
4315         * testsuite/22_locale/money_put/put/wchar_t/1.cc: Likewise.
4316         * testsuite/22_locale/money_put/put/wchar_t/2.cc: Likewise.
4317         * testsuite/22_locale/money_put/put/wchar_t/3.cc: Likewise.
4319 2004-02-20  Mark Mitchell  <mark@codesourcery.com>
4321         * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: Open
4322         FIFO for writing with ios_base::in|ios_base::out.
4323         * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
4324         * testsuite/27_io/objects/char/7.cc: Likewise.
4325         * testsuite/27_io/objects/char/9661-1.cc: Open FIFO for writing
4326         with "r+".
4328 2004-02-19  David Edelsohn  <edelsohn@gnu.org>
4330         * 22_locale/collate/compare/wchar_t/2.cc: Change input-charset
4331         from iso-8859-1 to ISO8859-1.
4332         * 22_locale/collate/compare/wchar_t/wrapped_env.cc: Same.
4333         * 22_locale/collate/compare/wchar_t/wrapped_locale.cc: Same.
4334         * 22_locale/collate/hash/wchar_t/2.cc: Same.
4335         * 22_locale/collate/hash/wchar_t/wrapped_env.cc: Same.
4336         * 22_locale/collate/hash/wchar_t/wrapped_locale.cc: Same.
4337         * 22_locale/collate/transform/wchar_t/2.cc: Same.
4338         * 22_locale/collate/transform/wchar_t/wrapped_env.cc: Same.
4339         * 22_locale/collate/transform/wchar_t/wrapped_locale.cc: Same.
4341 2004-02-18  Paolo Carlini  <pcarlini@suse.de>
4343         * include/bits/locale_facets.h (money_get<>::_M_extract):
4344         New, helper for do_get.
4345         (money_put<>::_M_insert): Likewise, for do_put.
4346         * include/bits/locale_facets.tcc (money_get<>::_M_extract,
4347         money_put<>::_M_insert): Define.
4348         (money_get<>::do_get(long double&), money_get<>::do_get(
4349         string_type&), money_put::do_put(long double),
4350         money_put::do_put(const string_type&)): Use the helpers.
4352 2004-02-18  Paolo Carlini  <pcarlini@suse.de>
4354         * config/io/basic_file_stdio.cc (__gnu_internal::xwritev):
4355         Rewrite, avoiding recursion.
4356         (__gnu_internal::xwrite): Minor tweaks.
4358 2004-02-17  Stefan Olsson  <stefan@xapa.se>
4360         * include/ext/mt_allocator.h: Removed the last
4361         pointer. Deallocated blocks are now added to the front of
4362         freelists as proposed by Felix Yen.  This gives roughly 10%
4363         performance boost and saves some memory.
4364         * docs/html/ext/mt_allocator.html: Change due to that deallocated
4365         blocks now are added to the front of freelists. The reason to this
4366         approach is also explained.
4368 2004-02-17  Paolo Carlini  <pcarlini@suse.de>
4370         * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
4371         num_get<>::_M_extract_int, money_get<>::do_get): Simplify
4372         grouping fidelity conditional.
4374 2004-02-16  Paolo Carlini  <pcarlini@suse.de>
4376         * testsuite/27_io/basic_filebuf/overflow/char/13858.cc:
4377         Qualify exception with std::.
4378         * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Ditto.
4379         * testsuite/27_io/basic_filebuf/overflow/wchar_t/13858.cc: Ditto.
4380         * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
4381         * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
4382         * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
4384 2004-02-16  Paolo Carlini  <pcarlini@suse.de>
4386         * testsuite/ext/enc_filebuf/char/13189.cc: Don't check
4387         for now that the catch block is not reached.
4388         * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Likewise.
4390 2004-02-16  Paolo Carlini  <pcarlini@suse.de>
4392         * include/bits/locale_facets.tcc (money_get::do_get(string_type&)):
4393         Fix parsing of the remaining sign characters.
4394         * 22_locale/money_get/get/char/2.cc: Tweak: now, correctly,
4395         the input is scanned 'til eof.
4396         * 22_locale/money_get/get/char/4.cc: Likewise.
4397         * 22_locale/money_get/get/wchar_t/2.cc: Likewise.
4398         * 22_locale/money_get/get/wchar_t/4.cc: Likewise.
4399         * 22_locale/money_get/get/char/8.cc: Tweak: override do_neg_format,
4400         not do_pos_format: the former is the only one that matters during
4401         input.
4402         * 22_locale/money_get/get/wchar_t/8.cc: Likewise.
4404         * 22_locale/money_get/get/char/6.cc: Minor tweak.
4405         * 22_locale/money_get/get/wchar_t/6.cc: Likewise.
4407 2004-02-15  David Asher  <david.asher@cavium.com>
4409         PR libstdc++/11352
4410         * include/bits/locale_facets.tcc (__pad<>::_S_pad): Don't
4411         access __olds beyond __oldlen.
4413 2004-02-14  Paolo Carlini  <pcarlini@suse.de>
4415         * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Make
4416         sure the exception is actually thrown.
4417         * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
4418         * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
4419         * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
4421 2004-02-14  Paolo Carlini  <pcarlini@suse.de>
4423         PR libstdc++/13858
4424         * include/bits/fstream.tcc (basic_filebuf<>::_M_convert_to_external):
4425         In case of conversion errors, throw ios_failure; simplify.
4426         * testsuite/27_io/basic_filebuf/overflow/char/13858.cc: New.
4427         * testsuite/27_io/basic_filebuf/overflow/wchar_t/13858.cc: Ditto.
4428         * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Tweak,
4429         previously we didn't throw in case of conversion errors, instead
4430         just returned eof().
4431         * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
4432         * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
4433         * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
4435         * include/bits/fstream.tcc (basic_filebuf<>::overflow):
4436         Trivial simplification of a conditional.
4438 2004-02-12  Paolo Carlini  <pcarlini@suse.de>
4440         PR libstdc++/13731 (final part: writev)
4441         * config/io/basic_file_stdio.cc (__gnu_internal::xwritev):
4442         New, a wrapper around writev() handling partial writes.
4443         (__basic_file<char>::xwrite): Move to __gnu_internal and make
4444         static.
4445         (__basic_file<char>::xsputn): Update call.
4446         (__basic_file<char>::xsputn_2): Likewise.
4447         * config/io/basic_file_stdio.h (__basic_file<char>::xwrite):
4448         Don't declare, now static.
4450 2004-02-11  Stefan Olsson  <stefan@xapa.se>
4452         * docs/html/ext/mt_allocator.html: New.
4454 2004-02-11  Benjamin Kosnik  <bkoz@redhat.com>
4456         * docs/html/20_util/allocator.html: New file, consolidate
4457         allocator information here. Revamp.
4458         * docs/html/documentation.html: Change links.
4459         * docs/html/20_util/howto.html: Same.
4460         * docs/html/ext/howto.html: Same.
4462 2004-02-11  Paolo Carlini  <pcarlini@suse.de>
4464         PR libstdc++/13731 (first part: write)
4465         * config/io/basic_file_stdio.h (__basic_file<char>::xwrite):
4466         New, declare.
4467         * config/io/basic_file_stdio.cc (__basic_file<char>::xwrite):
4468         Define it: a wrapper around write() handling partial write.
4469         (__basic_file<char>::xsputn): Use it.
4470         (__basic_file<char>::xsputn_2): Likewise.
4472 2004-02-11  Paolo Carlini  <pcarlini@suse.de>
4473             Petur Runolfsson  <peturr02@ru.is>
4475         PR libstdc++/14078
4476         * include/std/std_istream.h (operator>>(__istream_type& (*)
4477         (__istream_type&)), operator>>(__ios_type& (*)(__ios_type&)),
4478         operator>>(ios_base& (*)(ios_base&))): Declare inline.
4479         * include/std/std_ostream.h (operator<<(__ostream_type& (*)
4480         (__ostream_type&)), operator<<(__ios_type& (*)(__ios_type&)),
4481         operator<<(ios_base& (*) (ios_base&))): Likewise.
4482         * testsuite/performance/27_io/fmtflags_manipulators.cc: New.
4484 2004-02-10  Loren J. Rittle  <ljrittle@acm.org>
4486         PR libstdc++/14098
4487         * config/linker-map.gnu: Add typeinfo and typeinfo name for
4488         __gnu_cxx::stdio_sync_filebuf<char, std::char_traits<char> >.
4490         PR libstdc++/14097
4491         * config/linker-map.gnu: Add typeinfo and typeinfo name for
4492         __gnu_cxx::stdio_filebuf<char, std::char_traits<char> >.
4494 2004-02-09  Loren J. Rittle  <ljrittle@acm.org>
4496         * include/ext/pool_allocator.h: Include c++config.h.
4498 2004-02-09  Stefan Olsson  <stefan@xapa.se>
4500         * include/ext/mt_allocator.h: thread_id is unused in non threaded
4501         applications and now has a ifdef to remove it completely on
4502         compilers without thread support. Include stdlib.h due to a
4503         compiler warning on getenv().
4505 2004-02-09  Paul Brook  <paul@codesourcery.com>
4507         * libstdc++-v3/configure.host: Explicitly check for atomicity.h file.
4509 2004-02-09  Paolo Carlini  <pcarlini@suse.de>
4511         PR libstdc++/14071
4512         * src/locale_init.cc (locale::global(const locale&)): Use
4513         locale::name() in order to decide whether calling setlocale.
4514         * testsuite/22_locale/locale/global_locale_objects/14071.cc: New.
4516         * include/bits/locale_classes.h (locale::_Impl::_M_check_same_name()):
4517         Avoid computing &= unnecessarily.
4519 2004-02-09  James E Wilson  <wilson@specifixinc.com>
4521         PR libstdc++/5625
4522         * libsuspc++/eh_personality.cc (PERSONALITY_FUNCTION): Use
4523         __builtin_extend_pointer.
4525 2004-02-09  Paolo Carlini  <pcarlini@suse.de>
4527         PR libstdc++/14072
4528         * include/bits/basic_ios.tcc (basic_ios<>::_M_cache_locale):
4529         Don't leave dangling pointers.
4530         * testsuite/27_io/basic_ios/imbue/14072.cc: New.
4531         * testsuite/22_locale/numpunct/members/pod/2.cc: Tweak, the num_put
4532         facet is needed in the final test.
4534 2004-02-09  Bernardo Innocenti  <bernie@develer.com>
4536         * crossconfig.m4: Don't enable _GLIBCXX_USE_LFS on *-uclinux*.
4537         * configure: Regenerate.
4539 2004-02-08  Richard Henderson  <rth@redhat.com>
4541         PR libstdc++/14026
4542         * libsupc++/eh_catch.cc (__cxa_begin_catch): Don't adjust
4543         uncaughtExceptions during nested catch rethrow.
4544         * testsuite/18_support/14026.cc: New.
4546 2004-02-08  Paolo Carlini  <pcarlini@suse.de>
4548         * include/bits/basic_string.tcc (assign(const _CharT*, size_type)):
4549         When working in place remember to set the state to sharable
4550         (otherwise, _M_mutate does it).
4552 2004-02-08  Bernardo Innocenti  <bernie@develer.com>
4554         * include/bits/allocator.h, include/bits/basic_ios.h,
4555         include/bits/basic_ios.tcc, include/bits/basic_string.h,
4556         include/bits/basic_string.tcc, include/bits/boost_concept_check.h,
4557         include/bits/char_traits.h, include/bits/codecvt.h,
4558         include/bits/concurrence.h, include/bits/cpp_type_traits.h,
4559         include/bits/demangle.h, include/bits/deque.tcc,
4560         include/bits/fstream.tcc, include/bits/functexcept.h,
4561         include/bits/gslice.h, include/bits/gslice_array.h,
4562         include/bits/indirect_array.h, include/bits/ios_base.h,
4563         include/bits/istream.tcc, include/bits/list.tcc,
4564         include/bits/locale_classes.h, include/bits/locale_facets.h,
4565         include/bits/locale_facets.tcc, include/bits/localefwd.h,
4566         include/bits/mask_array.h, include/bits/ostream.tcc,
4567         include/bits/postypes.h, include/bits/slice_array.h,
4568         include/bits/sstream.tcc, include/bits/stl_algo.h,
4569         include/bits/stl_algobase.h, include/bits/stl_bvector.h,
4570         include/bits/stl_construct.h, include/bits/stl_deque.h,
4571         include/bits/stl_function.h, include/bits/stl_heap.h,
4572         include/bits/stl_iterator.h, include/bits/stl_iterator_base_funcs.h,
4573         include/bits/stl_list.h, include/bits/stl_map.h,
4574         include/bits/stl_multimap.h, include/bits/stl_multiset.h,
4575         include/bits/stl_numeric.h, include/bits/stl_pair.h,
4576         include/bits/stl_queue.h, include/bits/stl_raw_storage_iter.h,
4577         include/bits/stl_relops.h, include/bits/stl_set.h,
4578         include/bits/stl_stack.h, include/bits/stl_tempbuf.h,
4579         include/bits/stl_threads.h, include/bits/stl_tree.h,
4580         include/bits/stl_uninitialized.h, include/bits/stl_vector.h,
4581         include/bits/stream_iterator.h, include/bits/streambuf.tcc,
4582         include/bits/streambuf_iterator.h,include/bits/stringfwd.h,
4583         include/bits/type_traits.h, include/bits/valarray_after.h,
4584         include/bits/valarray_array.h, include/bits/valarray_array.tcc,
4585         include/bits/valarray_before.h, include/bits/vector.tcc: Remove
4586         trailing whitespace.
4588 2004-02-06  Paolo Carlini  <pcarlini@suse.de>
4590         * include/bits/basic_string.h: Fix comment.
4592 2004-02-06  Paolo Carlini  <pcarlini@suse.de>
4594         * include/bits/stl_construct.h: Wrap overlong lines, reformat
4595         according to the coding standards.
4596         * include/bits/stl_pair.h: Likewise.
4597         * include/bits/stl_raw_storage_iter.h: Likewise.
4598         * include/bits/stl_stack.h: Likewise.
4599         * include/bits/stl_uninitialized.h: Likewise.
4600         * include/bits/stream_iterator.h: Likewise.
4601         * include/bits/streambuf_iterator.h: Likewise.
4602         * include/bits/type_traits.h: Likewise.
4604 2004-02-06  Paolo Carlini  <pcarlini@suse.de>
4606         * testsuite/27_io/basic_filebuf/open/char/9507.cc:
4607         Adjust timings.
4609 2004-02-05  Loren J. Rittle  <ljrittle@acm.org>
4611         * scripts/check_performance: Support PCH.
4613         * scripts/check_performance (CXX): Add -DNOTHREAD.
4614         * testsuite/performance/20_util/allocator/insert.cc: Integrate
4615         threaded tests from insert_insert.cc.  Tweak iterations,
4616         remove special cases.
4617         * testsuite/performance/20_util/allocator/insert_insert.cc:
4618         Make all tests single-threaded. Tweak iterations.
4619         * testsuite/performance/20_util/allocator/map_thread.cc:
4620         Tweak iterations.
4621         * testsuite/performance/20_util/allocator/producer_consumer.cc:
4622         Likewise.
4624 2004-02-05  Geoffrey Keating  <geoffk@apple.com>
4626         PR 12179
4627         * .cvsignore: New.
4628         * acinclude.m4 (GLIBCXX_EXPORT_INSTALL_INFO): Use 'gcc', not
4629         'gcc-lib'.  Add comment about poorly-named variables.
4630         * aclocal.m4: Regenerate.
4631         * configure: Regenerate.
4633 2004-02-05  Paolo Carlini  <pcarlini@suse.de>
4635         * include/bits/locale_facets.tcc (money_get::do_get(string_type&)):
4636         Thousands-sep are always optional; thousands-sep are not allowed
4637         after the decimal_point.
4638         * testsuite/22_locale/money_get/get/char/12.cc: New.
4639         * testsuite/22_locale/money_get/get/char/13.cc: New.
4640         * testsuite/22_locale/money_get/get/wchar_t/12.cc: New.
4641         * testsuite/22_locale/money_get/get/wchar_t/13.cc: New.
4643         * testsuite/22_locale/money_get/get/char/1.cc: Clean-up.
4644         * testsuite/22_locale/money_get/get/char/2.cc: Likewise.
4645         * testsuite/22_locale/money_get/get/char/3.cc: Likewise.
4646         * testsuite/22_locale/money_get/get/char/4.cc: Likewise.
4647         * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
4648         * testsuite/22_locale/money_get/get/wchar_t/2.cc: Likewise.
4649         * testsuite/22_locale/money_get/get/wchar_t/3.cc: Likewise.
4650         * testsuite/22_locale/money_get/get/wchar_t/4.cc: Likewise.
4652         * testsuite/22_locale/money_get/get/char/9.cc: Fix citation from
4653         the standard.
4654         * testsuite/22_locale/money_get/get/wchar_t/9.cc: Likewise.
4656 2004-02-05  Richard Sandiford  <rsandifo@redhat.com>
4658         * config/os/irix/irix6.5/os_defines.h (_GLIBCXX_FIONREAD_TAKES_OFF_T):
4659         Define.
4660         * config/io/basic_file_stdio.cc (__basic_file<char>::showmanyc): Use
4661         it to decide whether FIONREAD should take an off_t or int argument.
4663 2004-02-05  Paolo Carlini  <pcarlini@suse.de>
4665         * include/bits/stl_function.h: Minor formatting changes.
4667 2004-02-04  Zack Weinberg  <zack@codesourcery.com>
4669         Revert previous change to config/abi/*/baseline_symbols.txt.
4671 2004-02-04  Benjamin Kosnik  <bkoz@redhat.com>
4672             Zack Weinberg  <zack@codesourcery.com>
4674         * config/io/basic_file_stdio.cc (__gnu_internal::fopen_mode):
4675         New function.
4676         (__basic_file<char>::sys_open, __basic_file<char>::open): Use it.
4677         (__basic_file<char>::_M_open_mode): Delete.
4678         * config/io/basic_file_stdio.cc: Delete declaration of _M_open_mode.
4680         * testsuite/27_io/basic_filebuf/close/char/9964.cc
4681         * testsuite/27_io/basic_filebuf/open/char/9507.cc:
4682         Correct flags to filebuf::open calls.
4684         * config/abi/alpha-freebsd5/baseline_symbols.txt
4685         * config/abi/alpha-linux-gnu/baseline_symbols.txt
4686         * config/abi/hppa-linux-gnu/baseline_symbols.txt
4687         * config/abi/i386-freebsd4/baseline_symbols.txt
4688         * config/abi/i386-freebsd5/baseline_symbols.txt
4689         * config/abi/i486-linux-gnu/baseline_symbols.txt
4690         * config/abi/ia64-linux-gnu/baseline_symbols.txt
4691         * config/abi/mips-linux-gnu/baseline_symbols.txt
4692         * config/abi/sparc-freebsd5/baseline_symbols.txt
4693         * config/abi/sparc-linux-gnu/baseline_symbols.txt
4694         * config/abi/x86_64-linux-gnu/baseline_symbols.txt:
4695         Remove entry for __basic_file<char>::_M_open_mode.
4697 2004-02-04  Loren J. Rittle  <ljrittle@acm.org>
4699         * testsuite/performance/20_util/allocator/insert.cc (main): Tweak.
4701 2004-02-04  Felix Yen  <fwy@alumni.brown.edu>
4703         * testsuite/performance/20_util/producer_consumer.cc: New.
4704         * testsuite/performance/20_util/allocator/insert_insert.cc: Two loops.
4706 2004-02-04  Benjamin Kosnik  <bkoz@redhat.com>
4708         * testsuite/performance/20_util/allocator.cc: Move to..
4709         * testsuite/performance/20_util/allocator/insert.cc: ...here.
4710         * testsuite/performance/20_util/allocator_thread.cc: Move to...
4711         * testsuite/performance/20_util/allocator/insert_insert.cc: ...here.
4712         * testsuite/performance/20_util/allocator_map_thread.cc: Move to...
4713         * testsuite/performance/20_util/allocator/map_thread.cc: ...here.
4715 2004-02-04  Jonathan Wakely  <redi@gcc.gnu.org>
4717         * docs/html/faq/index.html: Recommend using LD_LIBRARY_PATH.
4718         * docs/html/faq/index.txt: Regenerate.
4720 2004-02-04  Dhruv Matani  <dhruvbird@gmx.net>
4722         * include/ext/debug_allocator.h: _M_extra now stands for the
4723         number of extra objects instead of the number of extra bytes.
4724         (debug_allocator::allocate): Adjust.
4725         (debug_allocator::deallocate): Adjust.
4727         * include/ext/pool_allocator.h: Fix typo.
4729 2004-02-03  Felix Yen  <fwy@alumni.brown.edu>
4730             Benjamin Kosnik  <bkoz@redhat.com>
4732         * testsuite/performance/20_util/allocator.cc: Add map,
4733         deque, set tests.
4734         * testsuite/performance/20_util/allocator_thread.cc: Same.
4736 2004-02-03  Paolo Carlini  <pcarlini@suse.de>
4738         * include/bits/basic_string.h (insert(iterator)): Remove,
4739         non-standard and already scheduled for removal.
4741 2004-02-03  Paolo Carlini  <pcarlini@suse.de>
4743         * include/bits/stl_iterator_base_funcs.h: Minor formatting
4744         and indentation tweaks.
4745         * include/bits/stl_iterator_base_types.h: Likewise.
4746         * include/bits/stl_list.h: Likewise.
4747         * include/bits/stl_map.h: Likewise.
4748         * include/bits/stl_tempbuf.h: Likewise.
4750 2004-02-02  Jerry Quinn  <jlquinn@optonline.net>
4752         * include/bits/gslice.h, include/bits/gslice_array.h,
4753         include/bits/indirect_array.h, include/bits/mask_array.h,
4754         include/bits/slice_array.h, include/bits/stl_numeric.h,
4755         include/std/std_valarray.h:  Update copyright years.
4757 2004-02-02  Jerry Quinn  <jlquinn@optonline.net>
4759         * include/bits/gslice.h (gslice):  Document.
4760         * include/bits/gslice_array.h (gslice_array):  Document.
4761         * include/bits/indirect_array (indirect_array):  Document.
4762         * include/bits/mask_array (mask_array):  Document.
4763         * include/bits/slice_array.h (slice,slice_array):  Document.
4764         * include/bits/stl_numeric.h (accumulate, inner_product, partial_sum,
4765         adjacent_difference):  Document
4766         * include/std/std_valarray.h (valarray):  Document.
4768 2004-02-02  Benjamin Kosnik  <bkoz@redhat.com>
4770         * docs/html/19_diagnostics/howto.html: Move verbose terminate
4771         documentation...
4772         * docs/html/18_support/howto.html: Here.
4773         * docs/html/documentation.html: Add reference here.
4775 2004-02-02  Paolo Carlini  <pcarlini@suse.de>
4777         * config/locale/gnu/c++locale_internal.h: Remove prototypes
4778         of no longer used GLIBC thread locale functions.
4780 2004-02-02  Eric Christopher  <echristo@redhat.com>
4781             Zack Weinberg  <zack@codesourcery.com>
4783         * testsuite/22_locale/collate/compare/wchar_t/2.cc: Remove xfail. Use
4784         -finput-charset.
4785         * testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc: Ditto.
4786         * testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc: Ditto
4787         * testsuite/22_locale/collate/hash/wchar_t/2.cc: Ditto.
4788         * testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc: Ditto.
4789         * testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc: Ditto.
4790         * testsuite/22_locale/collate/transform/wchar_t/2.cc: Ditto.
4791         * testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc: Ditto.
4792         * testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
4793         Ditto.
4795 2004-02-02  Paolo Carlini  <pcarlini@suse.de>
4797         * include/bits/stl_function.h: Additional minor tweaks.
4798         * include/bits/stl_multiset.h: Likewise.
4800         * include/bits/stl_queue.h: Minor tweaks.
4802 2004-02-02  Paolo Carlini  <pcarlini@suse.de>
4804         PR libstdc++/13976 (continued)
4805         * include/ext/malloc_allocator.h (malloc_allocator::deallocate):
4806         Make the second parameter unnamed, to void unused parameter
4807         warnings.
4808         * include/ext/new_allocator.h (new_allocator::deallocate): Ditto.
4810 2004-02-02  Paolo Carlini  <pcarlini@suse.de>
4812         PR libstdc++/13976
4813         * include/ext/malloc_allocator.h (malloc_allocator::allocate):
4814         Make the second parameter unnamed, to void unused parameter
4815         warnings.
4816         * include/ext/mt_allocator.h (__mt_alloc::allocate): Ditto.
4817         * include/ext/new_allocator.h (new_allocator::allocate): Ditto.
4819 2004-02-01  Paolo Carlini  <pcarlini@suse.de>
4821         * include/bits/stl_algo.h: Additional minor tweaks.
4822         * include/bits/stl_map.h: Likewise.
4823         * include/bits/stl_multimap.h: Likewise.
4824         * include/bits/stl_multiset.h: Likewise.
4825         * include/bits/stl_set.h: Likewise.
4826         * include/bits/stl_tree.h: Likewise.
4828 2004-02-01  Paolo Carlini  <pcarlini@suse.de>
4830         * include/bits/vector.tcc (vector::_M_insert_aux(iterator)):
4831         Remove, unused.
4833 2004-02-01  Paolo Carlini  <pcarlini@suse.de>
4835         * include/bits/stl_function.h: Additional minor tweaks.
4837 2004-02-01  Paolo Carlini  <pcarlini@suse.de>
4839         * include/bits/deque.tcc: Wrap overlong lines, constify
4840         a few variables, reformat according to the coding standards.
4841         * include/bits/list.tcc: Likewise.
4842         * include/bits/stl_deque.h: Likewise.
4843         * include/bits/stl_function.h: Likewise.
4844         * include/bits/stl_iterator.h: Likewise.
4845         * include/bits/stl_iterator_base_funcs.h: Likewise.
4846         * include/bits/stl_iterator_base_types.h: Likewise.
4847         * include/bits/stl_list.h: Likewise.
4848         * include/bits/stl_map.h: Likewise.
4849         * include/bits/stl_multimap.h: Likewise.
4850         * include/bits/stl_multiset.h: Likewise.
4851         * include/bits/stl_relops.h: Likewise.
4852         * include/bits/stl_set.h: Likewise.
4854 2004-02-01  Paolo Carlini  <pcarlini@suse.de>
4856         * include/bits/stl_bvector.h: Wrap overlong lines, constify
4857         a few variables, reformat according to the coding standards.
4858         * include/bits/stl_tree.h: Likewise.
4860 2004-01-31  Paolo Carlini  <pcarlini@suse.de>
4862         * include/bits/stl_algo.h: Minor additional reformat, add
4863         copyright year.
4864         * include/bits/stl_algobase.h: Add copyright year.
4866 2004-01-31  Paolo Carlini  <pcarlini@suse.de>
4868         * include/bits/stl_algo.h: Wrap overlong lines, constify
4869         a few variables, reformat according to the coding standards.
4870         * include/bits/stl_algobase.h: Likewise.
4871         * include/bits/stl_heap.h: Likewise.
4873 2004-01-31  Paolo Carlini  <pcarlini@suse.de>
4875         * include/bits/basic_string.h (_Rep::operator[]): Remove, unused.
4877         * include/bits/basic_string.h: Fix two comments.
4879 2004-01-31  Per Bothner  <per@bothner.com>
4881         * include/ext/mt_allocator.h
4882         (__mt_alloc::_S_thread_freelist_mutex): Guard with
4883         __GTHREAD_MUTEX_INIT.
4885 2004-01-31  Paolo Carlini  <pcarlini@suse.de>
4887         * include/bits/basic_string.tcc (_Rep::_S_create): Minor tweak.
4889 2004-01-30  Paolo Carlini  <pcarlini@suse.de>
4891         * testsuite/21_strings/basic_string/cons/char/6.cc: New.
4892         * testsuite/21_strings/basic_string/cons/wchar_t/6.cc: New.
4893         * testsuite/performance/21_strings/string_cons_input_iterator.cc: New.
4895 2004-01-30  Felix Yen  <fwy@alumni.brown.edu>
4897         * testsuite/performance/20_util/allocator_thread.cc (do_loop):
4898         Don't use clear, but instead assign. Use insert.
4900 2004-01-30  Benjamin Kosnik  <bkoz@redhat.com>
4902         * src/demangle.cc: Add instantiations.
4903         * src/Makefile.am: Remove special rules for demangle.lo, demangle.o.
4904         * src/Makefile.in: Regenerate.
4906 2004-01-30  David Edelsohn  <edelsohn@gnu.org>
4908         * src/allocator.cc: Protect _S_get_thread_id() and
4909         _S_thread_key_destr() with #ifdef __GTHREADS.
4911 2004-01-30  Paolo Carlini  <pcarlini@suse.de>
4913         Reshuffle performance testsuite.
4914         * testsuite/performance/allocator.cc, allocator_map_thread.cc,
4915         allocator_thread.cc, complex_norm.cc, container_benchmark.cc,
4916         cout_insert_int.cc, filebuf_copy.cc, filebuf_sputc.cc,
4917         fstream_seek_write.cc, ifstream_extract_float.cc,
4918         ifstream_extract_int.cc, ifstream_getline.cc, is_wchar_t.cc,
4919         list_create_fill_sort.cc, map_create_fill.cc,
4920         narrow_widen_char.cc, narrow_widen_wchar_t.cc,
4921         ofstream_insert_float.cc, ofstream_insert_int.cc,
4922         string_append.cc, wchar_t_in.cc, wchar_t_length.cc,
4923         wchar_t_out.cc: Split into...
4924         * testsuite/performance/20_util/allocator.cc: New.
4925         * testsuite/performance/20_util/allocator_map_thread.cc: New.
4926         * testsuite/performance/20_util/allocator_thread.cc: New.
4927         * testsuite/performance/21_strings/string_append: New.
4928         * testsuite/performance/22_locale/is_wchar_t.cc: New.
4929         * testsuite/performance/22_locale/narrow_widen_char.cc: New.
4930         * testsuite/performance/22_locale/narrow_widen_wchar_t.cc: New.
4931         * testsuite/performance/22_locale/wchar_t_in.cc: New.
4932         * testsuite/performance/22_locale/wchar_t_length.cc: New.
4933         * testsuite/performance/22_locale/wchar_t_out.cc: New.
4934         * testsuite/performance/23_containers/container_benchmark.cc: New.
4935         * testsuite/performance/23_containers/list_create_fill_sort.cc: New.
4936         * testsuite/performance/23_containers/map_create_fill.cc: New.
4937         * testsuite/performance/26_numerics/complex_norm.cc: New.
4938         * testsuite/performance/27_io/cout_insert_int.cc: New.
4939         * testsuite/performance/27_io/filebuf_copy.cc: New.
4940         * testsuite/performance/27_io/filebuf_sputc.cc: New.
4941         * testsuite/performance/27_io/fstream_seek_write.cc: New.
4942         * testsuite/performance/27_io/ifstream_extract_float.cc: New.
4943         * testsuite/performance/27_io/ifstream_extract_int.cc: New.
4944         * testsuite/performance/27_io/ifstream_getline.cc: New.
4945         * testsuite/performance/27_io/ofstream_insert_float.cc: New.
4946         * testsuite/performance/27_io/ofstream_insert_int.cc: New.
4948 2004-01-30  Paolo Carlini  <pcarlini@suse.de>
4950         * include/bits/basic_string.tcc (_Rep::_S_create):
4951         Never allocate a string bigger than max_size(); always keep
4952         __capacity and __size in sync to avoid memory leaks at
4953         deallocation time.
4955 2004-01-30  Paolo Carlini  <pcarlini@suse.de>
4957         * include/bits/basic_string.tcc (_S_construct(_InIterator,
4958         _InIterator, const _Alloc&, input_iterator_tag)): Simplify
4959         the double loop, streamline.
4961         * include/bits/basic_string.tcc: Very minor tweaks.
4963 2004-01-30  Loren J. Rittle  <ljrittle@acm.org>
4965         * scripts/check_performance: Only compile with $THREAD_FLAG
4966         when test is marked to require it.  Allow multiple
4967         compilations/executions of marked tests.
4968         * testsuite/testsuite_performance.h (report_performance):
4969         Report dynamic thread support status.
4970         (report_header): Likewise.
4971         * testsuite/performance/allocator.cc: Stabilize iteration
4972         count.  Support more allocators.  Mark each allocator test to
4973         run and report independently.
4974         * testsuite/performance/allocator_map_thread.cc: Likewise.
4975         * testsuite/performance/allocator_thread.cc: Likewise.
4977 2004-01-29  Stephen M. Webb  <stephen.webb@bregmasoft.com>
4979         * config/local/generic/c_locale.h: Change ::malloc() to new char[].
4980         * config/local/gnu/c_locale.h: Change ::malloc() to new char[].
4981         * include/bits/stl_tempbuf.h: Convert _Temporary_buffer to use
4982         std::get_temporary_buffer() instead of duplicating its code.
4983         Update to C++STYLE conventions.
4984         * include/std/std_memory.h (get_temporary_buffer): Use ::operator
4985         new() instead of std::malloc().
4986         (return_temporary_buffer): Use ::operator delete() instead of
4987         std::free().
4989 2004-01-29  Benjamin Kosnik  <bkoz@redhat.com>
4991         * include/bits/allocator.h: Temporary switch to new_allocator as
4992         the default to unjam bootstraps.
4994 2004-01-28  Benjamin Kosnik  <bkoz@redhat.com>
4996         * include/Makefile.am (bits_headers): Remove allocator_traits.h.
4997         * include/Makefile.in: Regenerate.
4998         * include/bits/allocator_traits.h: Remove.
4999         * include/bits/allocator.h: Remove allocator_traits.h include, and
5000         relevant comments.
5001         (allocator): Empty base class, inherit from the underlying allocator.
5002         * src/allocator-inst.cc: Move __pool_alloc instantiation to...
5003         * src/allocator.cc: ...here. New. For the underlying allocators.
5004         Add __mt_alloc, __pool_alloc, new_allocator, malloc_allocator bits.
5005         * config/linker-map.gnu: Remove __pool_alloc bits.
5006         * src/Makefile.am (sources): Add allocator.cc.
5007         * src/Makefile.in: Regenerate.
5008         * testsuite/20_util/allocator/1.cc: Split second test into...
5009         * testsuite/20_util/allocator/8230.cc: ...this.
5010         * include/bits/stl_bvector.h (__gnu_norm): Change bit_vector
5011         typedef to use std::allocatore. Format.
5012         * include/ext/pool_allocator.h: Remove allocator_traits.h include,
5013         _Alloc_traits.
5014         * include/ext/mt_allocator.h (__gnu_cxx): Qualify
5015         __throw_bad_alloc calls. Don't include <memory>.
5016         * include/ext/malloc_allocator.h: Remove <memory> include.
5017         * include/ext/new_allocator.h (new_allocator): Same.
5018         * include/ext/ropeimpl.h (__gnu_cxx): Remove __alloc using
5019         declaration. Switch __alloc to _Alloc.
5020         * include/ext/hashtable.h: Remove __alloc.
5021         * include/backward/alloc.h: Only inject allocator, not
5022         implementation details.
5024         * include/ext/mt_allocator.h: Replace free with delete.
5026 2004-01-28  Benjamin Kosnik  <bkoz@redhat.com>
5028         * src/globals_io.cc: Change to __gnu_internal namespace.
5029         * src/globals_locale.cc: Same.
5030         * src/locale_init.cc: Same.
5031         * src/ios_init.cc: Same.
5033 2004-01-28  Stefan Olsson  <stefan@snon.net>
5035         * include/ext/mt_allocator.h: Replaced all malloc() calls with
5036         operator new(). Added support for the env variable
5037         GLIBCXX_FORCE_NEW (this required the _S_init call to be the first
5038         one in allocate() as well). Fix typos.
5040 2004-01-28  Paolo Carlini  <pcarlini@suse.de>
5042         * include/bits/basic_string.h (_S_create(size_t,
5043         const _Alloc&): Change signature to take two size_type
5044         arguments.
5045         * include/bits/basic_string.tcc (_S_construct(_InIterator,
5046         _InIterator, const _Alloc&, input_iterator_tag)): Update
5047         call, tweak a bit.
5048         (_S_construct(_InIterator, _InIterator, const _Alloc&,
5049         forward_iterator_tag)): Likewise.
5050         (_S_construct(size_type, _CharT, const _Alloc&)): Likewise.
5051         (_M_mutate(size_type, size_type, size_type)): Don't
5052         implement the exponential growth policy, demand it to
5053         _S_create, update call and simplify.
5054         (_M_clone(const _Alloc&, size_type)): Likewise.
5055         (_S_create(size_type, size_type, const _Alloc&)): Implement
5056         the growth policy, simplify otherwise.
5058         * include/bits/basic_string.h (_Rep::operator[]): Tweak
5059         signature to take a size_type, consistently with the other
5060         members.
5062 2004-01-27  Benjamin Kosnik  <bkoz@redhat.com>
5064         * testsuite/27_io/ios_base/storage/11584.cc: Correct new and
5065         delete declarations, add include and test variable.
5067 2003-01-27  Jerry Quinn  <jlquinn@optonline.net>
5069         * include/bits/codecvt.h, include/bits/locale_facets.h,
5070         include/bits/postypes.h, include/bits/stl_bvector.h,
5071         include/bits/stl_multiset.h, include/bits/stl_set.h,
5072         include/bits/stream_iterator.h, include/bits/streambuf_iterator.h,
5073         include/std/std_complex.h:  Document.
5075 2004-01-27  Jerry Quinn  <jlquinn@optonline.net>
5077         PR libstdc++/11584
5078         * include/bits/ios_base.h (ios_base::_M_grow_words):  Add
5079         iword/pword selector.
5080         (ios_base::iword, ios_base::pword):  Use it.
5081         * src/ios.cc (ios_base::_M_grow_words):  Clear _M_word_zero
5082         iword or pword member on alloc failure.
5083         * testsuite/27_io/ios_base/storage/11584.cc:  New test.
5085 2004-01-27  Ulrich Weigand  <uweigand@de.ibm.com>
5086             PJ Darcy  <darcypj@us.ibm.com>
5088         * configure.host: Add support for *-tpf.
5089         * crossconfig.m4: Likewise.
5090         * configure: Regenerate.
5091         * config/os/tpf: New directory.
5092         * config/os/tpf/os_defines.h: New file.
5093         * config/os/tpf/ctype_base.h: Likewise.
5094         * config/os/tpf/ctype_inline.h: Likewise.
5095         * config/os/tpf/ctype_noninline.h: Likewise.
5097 2004-01-27  Paolo Carlini  <pcarlini@suse.de>
5099         PR libstdc++/13884
5100         * include/bits/sstream.tcc: Guard use of extern template.
5102 2004-01-27  Paolo Carlini  <pcarlini@suse.de>
5104         * include/bits/basic_string.tcc
5105         (basic_string(const basic_string&, size_type, size_type),
5106         basic_string(const basic_string&, size_type, size_type,
5107         const _Alloc&)): Avoid unnecessarily constructing iterators.
5109 2004-01-26  Paolo Carlini  <pcarlini@suse.de>
5111         * config/locale/generic/c_locale.cc: Fix throw messages
5112         to use the __N marker.
5113         * config/locale/gnu/c_locale.cc: Likewise.
5114         * config/locale/ieee_1003.1-2001/codecvt_specializations.h:
5115         Likewise.
5116         * docs/html/17_intro/C++STYLE: Likewise.
5117         * include/bits/basic_ios.tcc: Likewise.
5118         * include/bits/fstream.tcc: Likewise.
5119         * include/bits/vector.tcc: Likewise.
5120         * include/ext/ropeimpl.h: Likewise.
5121         * include/std/std_bitset.h: Likewise.
5122         * src/ios.cc: Likewise.
5123         * src/locale.cc: Likewise.
5124         * src/localename.cc: Likewise.
5126 2004-01-26  Paolo Carlini  <pcarlini@suse.de>
5128         * include/bits/basic_string.h (_M_replace_aux): Use the
5129         __N marker in throw message.
5130         * include/bits/basic_string.tcc (assign(const _CharT*,
5131         size_type), insert(size_type, const _CharT*, size_type),
5132         replace(size_type, size_type, const _CharT*, size_type),
5133         reserve, _Rep::_S_create, resize, _M_replace_dispatch):
5134         Likewise.
5136         * include/bits/basic_string.h, include/bits/basic_string.tcc:
5137         Fold overlong lines, minor formatting changes.
5139 2004-01-26  Paolo Carlini  <pcarlini@suse.de>
5141         * include/bits/basic_string.h (replace(iterator, iterator,
5142         const basic_string&)): Remove _GLIBCXX_DEBUG_PEDASSERT.
5143         (replace(iterator, iterator, const _CharT*)): Ditto.
5144         (replace(iterator, iterator, const _CharT*, size_type)):
5145         Add missing _GLIBCXX_DEBUG_PEDASSERT.
5147 2004-01-26  Paolo Carlini  <pcarlini@suse.de>
5149         * include/bits/basic_string.tcc (replace(size_type,
5150         size_type, const _CharT*, size_type)): Implement optimized
5151         in-place algorithm for non-overlapping ranges.
5152         * testsuite/21_strings/basic_string/replace/char/6.cc: New.
5153         * testsuite/21_strings/basic_string/replace/wchar_t/6.cc: New.
5155         * include/bits/basic_string.tcc (insert(size_type,
5156         const _CharT*, size_type)): Tweak slightly.
5158 2004-01-26  Andreas Schwab  <schwab@suse.de>
5160         * config/locale/gnu/monetary_members.cc: Restore locale before
5161         rethrowing exception.
5163 2004-01-25  Paolo Carlini  <pcarlini@suse.de>
5165         * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
5166         Define inline here.
5167         * include/bits/basic_string.tcc (_M_replace_aux, _M_replace_safe):
5168         Move inline.
5170         * include/bits/basic_string.tcc: Very minor tweaks.
5172 2004-01-25  Paolo Carlini  <pcarlini@suse.de>
5174         * testsuite/performance/string_append.cc: Increase number
5175         of iterations.
5177 2004-01-25  Paolo Carlini  <pcarlini@suse.de>
5179         * include/bits/basic_string.h (erase(size_type, size_type),
5180         erase(iterator), erase(iterator, iterator)): Call _M_replace_safe
5181         instead, thus avoiding redundant check for length_error.
5183         * include/bits/basic_string.h: Tweak some comments.
5185 2004-01-24  Paolo Carlini  <pcarlini@suse.de>
5187         * include/bits/basic_string.tcc (operator+(const _CharT*,
5188         const basic_string&)): No need to go through the append
5189         taking two iterators.
5191 2004-01-24  Paolo Carlini  <pcarlini@suse.de>
5193         * include/bits/basic_string.tcc (rfind(_CharT, size_type)):
5194         Revert last change to use std::min: machine language is worse.
5195         (find_last_of(const _CharT*, size_type, size_type)): Ditto.
5196         (find_last_not_of(const _CharT*, size_type, size_type)): Ditto.
5197         (find_last_not_of(_CharT, size_type)): Ditto.
5199         * include/bits/basic_string.tcc (insert(size_type, const _CharT*,
5200         size_type)): Discard the value returned by _M_check.
5201         (replace(size_type, size_type, const _CharT*, size_type)): Ditto.
5202         (append(const basic_string&, size_type, size_type)): Ditto.
5203         (copy(_CharT*, size_type, size_type)): Ditto.
5204         (compare(size_type, size_type, const basic_string&)): Ditto.
5205         (compare(size_type, size_type, const basic_string&,
5206         size_type, size_type)): Ditto.
5207         (compare(size_type, size_type, const _CharT*)): Ditto.
5208         (compare(size_type, size_type, const _CharT*, size_type)): Ditto.
5210 2004-01-24  Paolo Carlini  <pcarlini@suse.de>
5212         * include/bits/basic_string.h (insert(size_type,
5213         const basic_string&, size_type, size_type)): Define inline here.
5214         * include/bits/basic_string.tcc (insert(size_type,
5215         const basic_string&, size_type, size_type)): Move inline.
5217 2004-01-24  Paolo Carlini  <pcarlini@suse.de>
5219         * include/bits/basic_string.h (assign(const basic_string&,
5220         size_type, size_type)): Define inline here.
5221         (replace(size_type, size_type, const basic_string&,
5222         size_type, size_type)): Ditto.
5223         (_M_replace_dispatch(iterator, iterator, _InputIterator,
5224         _InputIterator, __false_type)): Only declare.
5225         (_M_replace(iterator, iterator, _InputIterator,
5226         _InputIterator)): Remove.
5227         * include/bits/basic_string.tcc (assign(const basic_string&,
5228         size_type, size_type)): Move inline.
5229         (replace(size_type, size_type, const basic_string&,
5230         size_type, size_type)): Ditto.
5231         (_M_replace_dispatch(iterator, iterator, _InputIterator,
5232         _InputIterator, __false_type)): Define, now does also what
5233         _M_replace did before.
5234         * src/string-inst.cc (_M_replace): Don't instantiate.
5236         * include/bits/basic_string.tcc (find(const _CharT*,
5237         size_type, size_type)): Tidy.
5238         (rfind(_CharT, size_type)): Ditto.
5239         (find_first_not_of(const _CharT*, size_type, size_type)): Ditto.
5240         (find_first_not_of(_CharT, size_type)): Ditto.
5241         (find_last_not_of(const _CharT*, size_type, size_type)): Ditto.
5242         (find_last_not_of(_CharT, size_type)): Ditto.
5244 2004-01-23  Paolo Carlini  <pcarlini@suse.de>
5246         PR libstdc++/13838
5247         * include/debug/bitset (operator|=): Fix typo.
5248         * testsuite/23_containers/bitset/operations/13838.cc: New.
5250 2004-01-23  Paolo Carlini  <pcarlini@suse.de>
5252         * include/bits/basic_string.tcc (insert(size_type,
5253         const _CharT*, size_type __n)): Fix length_error check.
5254         (replace(size_type, size_type, const _CharT*, size_type):
5255         Ditto; call _M_replace_safe.
5256         (_M_replace_aux(size_type, size_type, size_type, _CharT):
5257         Fix length_error check.
5258         (_M_replace(iterator, iterator, _InputIterator,
5259         _InputIterator)): Ditto, tweak.
5260         (_M_replace_safe(size_type, size_type, const _CharT*,
5261         size_type)): Remove length_error check.
5263         * include/bits/basic_string.tcc (append(const basic_string&),
5264         append(const basic_string&, size_type, size_type)): Tweak
5265         comment.
5267         * include/bits/basic_string.tcc (copy(_CharT*, size_type,
5268         size_type)): If __n == 0 don't call traits::copy.
5270 2004-01-23  Stefan Olsson  <stefan@snon.net>
5272         * include/ext/mt_allocator.h: Reduce lock contention.
5274 2004-01-23  Paolo Carlini  <pcarlini@suse.de>
5276         PR libstdc++/13831
5277         * include/bits/fstream.tcc (underflow): Remove unused
5278         variable.
5279         * include/bits/streambuf_iterator.h (equal): Ditto.
5280         * include/bits/locale_facets.h (_M_convert_from_char):
5281         Ditto.
5283 2004-01-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5285         PR c/13814
5286         * config/linker-map.gnu (nan): Delete.
5287         * libmath/mathconf.h (NAN, nan): Delete.
5288         * linkage.m4 (nan): Don't check for it.
5289         * libmath/nan.c: Delete file.
5291         * config.h.in, configure: Regenerate.
5293 2004-01-23  Paolo Carlini  <pcarlini@suse.de>
5295         * include/bits/basic_string.h (push_back(_CharT)):
5296         Call _M_replace_aux.
5297         (insert(size_type, const basic_string&)): Trivial tweak.
5298         (insert(size_type, size_type, _CharT)): Call _M_replace_aux.
5299         (insert(iterator, _CharT)): Ditto.
5300         (erase(size_type, size_type)): Ditto.
5301         (erase(iterator)): Ditto.
5302         (erase(iterator, iterator)): Ditto.
5303         (replace(size_type, size_type, size_type, _CharT)): Ditto.
5305 2004-01-23  Loren J. Rittle  <ljrittle@acm.org>
5307         libstdc++/13823
5308         * testsuite/performance/allocator_map_thread.cc: New test.
5310 2004-01-22  Paolo Carlini  <pcarlini@suse.de>
5312         * include/bits/locale_facets.tcc
5313         (money_put::do_put(..., long double)): Use the basic_string
5314         constructor for char arrays, not that for C-strings, to pass
5315         __digits to do_put(..., const string_type&): __ws isn't
5316         null-terminated.
5318 2004-01-22  Paolo Carlini  <pcarlini@suse.de>
5320         * include/bits/basic_string.h (_M_replace_safe): Change
5321         signatures to take size_types and const _CharT*.
5322         (_M_replace_aux): Likewise, takes size_types instead of
5323         iterators.
5324         (append(size_type, _CharT)): Update call.
5325         (assign(size_type, _CharT)): Ditto.
5326         (replace(iterator, iterator, size_type, _CharT)): Ditto.
5327         (_M_replace_dispatch(iterator, iterator, _Integer,
5328         _Integer, __true_type)): Ditto.
5329         * include/bits/basic_string.tcc (assign(const _CharT*,
5330         size_type)): Ditto.
5331         (insert(size_type, const _CharT*, size_type)): Ditto.
5332         (replace(size_type, size_type, const _CharT*,
5333         size_type)): Ditto.
5334         (_M_replace(iterator, iterator, _InputIterator,
5335         _InputIterator)): Ditto.
5336         (append(const basic_string&)): Ditto.
5337         (append(const basic_string&, size_type, size_type): Ditto.
5338         (append(const _CharT*, size_type): Ditto.
5339         (_M_replace_safe, _M_replace_safe): Change definitions
5340         accordingly, simplify.
5341         * string-inst.cc (_M_replace_safe): Don't instantiate.
5343 2004-01-21  Paolo Carlini  <pcarlini@suse.de>
5345         * include/bits/basic_string.tcc (append(const basic_string&)):
5346         Revert previous change.
5347         (append(const basic_string&, size_type, size_type)): Revert
5348         previous change, use _M_check and _M_limit.
5350 2004-01-21  Paolo Carlini  <pcarlini@suse.de>
5352         * include/bits/basic_string.h (_M_check): Change to return
5353         a checked __pos and take an additional const char* argument.
5354         (_M_fold): Rename to _M_limit, change to return a size_type,
5355         corresponding to the __off limited to the actual length.
5356         (insert(size_type, size_type, _CharT)): Update call, call
5357         replace.
5358         (insert(iterator, _CharT)): Call replace(iterator, iterator,
5359         size_type, _CharT) instead.
5360         (erase(size_type, size_type)): Update calls.
5361         (replace(size_type, size_type, size_type, _CharT)): Ditto.
5362         (substr(size_type, size_type)): Use _M_check.
5363         * include/bits/basic_string.tcc (basic_string(const basic_string&,
5364         size_type, size_type)): Update calls.
5365         (basic_string(const basic_string&, size_type, size_type,
5366         const _Alloc&)): Ditto.
5367         (assign(const basic_string&, size_type, size_type)): Use the
5368         new _M_check and _M_limit.
5369         (insert(size_type, const basic_string&, size_type, size_type):
5370         Ditto.
5371         (insert(size_type, const _CharT*, size_type)): Ditto.
5372         (replace(size_type, size_type, const _CharT*, size_type): Ditto.
5373         (replace(size_type, size_type, const basic_string&,
5374         size_type, size_type)): Ditto.
5375         (append(const basic_string&)): Ditto.
5376         (append(const basic_string&, size_type, size_type)): Ditto.
5377         (copy(_CharT*, size_type, size_type)): Ditto.
5378         (compare(size_type, size_type, const basic_string&)): Ditto.
5379         (compare(size_type, size_type, const basic_string&,size_type,
5380         size_type)): Ditto.
5381         (compare(size_type, size_type, const _CharT*)): Ditto.
5382         (compare(size_type, size_type, const _CharT*, size_type)): Ditto.
5384 2004-01-19  Stefan Olsson  <stefan@snon.net>
5386         * include/ext/mt_allocator.h: If a thread, when it dies, still has
5387         memory on it's freelist this memory is not returned to global
5388         list. Simplification of deallocate so that memory is always
5389         returned to the calling thread id's freelist instead of to
5390         global. Fix typos. Add volatile where appropriate.
5392 2004-01-19  Loren J. Rittle  <ljrittle@acm.org>
5394         * testsuite/ext/stdio_filebuf/char/10063-2.cc: Treat unbuffered.
5395         * testsuite/ext/stdio_filebuf/char/10063-3.cc: New test.  Like -2 but
5396         use __gnu_cxx::stdio_sync_filebuf<char> instead; allow buffered stream.
5398 2004-01-19  Paolo Carlini  <pcarlini@suse.de>
5400         * src/debug.cc: Make sure all the names are prefixed with
5401         double (or single) underscore.
5403 2004-01-19  Paolo Carlini  <pcarlini@suse.de>
5405         * src/debug.cc: Trivial formatting change.
5407 2004-01-19  Paolo Carlini  <pcarlini@suse.de>
5409         * include/bits/basic_string.tcc (_S_construct(size_type,
5410         _CharT, const _Alloc&)): Remove redundant try/catch.
5411         (_M_mutate(size_type, size_type, size_type)): Ditto.
5412         (_M_clone(const _Alloc&, size_type)): Ditto.
5414 2004-01-18  Paolo Carlini  <pcarlini@suse.de>
5416         * include/bits/basic_string.h (c_str()): Simplify, due to
5417         21.3.4 the internal representation is always kept null-terminated.
5418         * include/bits/basic_string.tcc (_M_clone): Null-terminate.
5419         * testsuite/21_strings/basic_string/element_access/char/4.cc: New.
5420         * testsuite/21_strings/basic_string/element_access/wchar_t/4.cc:
5421         Ditto.
5423 2004-01-18  Paolo Carlini  <pcarlini@suse.de>
5425         * include/bits/basic_string.h (append(size_type, _CharT)):
5426         Moved inline, just call _M_replace_aux, no source iterators at
5427         risk of being clobbered.
5428         (assign(size_type, _CharT)): Call directly _M_replace_aux.
5429         (_M_replace(iterator, iterator, _InputIterator, _InputIterator,
5430         input_iterator_tag)): Remove fifth unused argument.
5431         (_M_replace_dispatch(iterator, iterator, _InputIterator,
5432         _InputIterator, __false_type)): Update call.
5433         * include/bits/basic_string.tcc (replace(size_type, size_type,
5434         const _CharT*, size_type)): Update call.
5435         (_M_replace_aux(iterator, iterator, size_type, _CharT)): Tweak
5436         throw string literal.
5437         (_M_replace_safe(iterator, iterator, _ForwardIterator,
5438         _ForwardIterator)): Likewise.
5439         (_M_replace(iterator, iterator, _InputIterator, _InputIterator,
5440         input_iterator_tag)): Remove fifth unused argument.
5441         (append(size_type __n, _CharT __c)): Move inline.
5442         * src/string-inst.cc (S::_M_replace(S::iterator, S::iterator,
5443         const C*, const C*, input_iterator_tag)): Remove fifth unused
5444         argument.
5446 2004-01-16  Benjamin Kosnik  <bkoz@redhat.com>
5448         * testsuite/ext/enc_filebuf/char/13189.cc: Fix guards.
5449         * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Same.
5451 2004-01-16  Danny Smith  <dannysmith@users.sourceforge.net>
5453         * testsuite/testsuite_hooks.cc (try_mkfifo): Avoid calling
5454         mkfifo for mingw32.
5456 2004-01-15  Stefan Olsson  <stefan@snon.net>
5458         * include/ext/mt_allocator.h: Reuse thread id's as soon as
5459         possible by changing the behaviour of thread_freelist to do
5460         push_front when threads die instead of push_back.
5462 2004-01-14  Paolo Carlini  <pcarlini@suse.de>
5464         * include/bits/locale_facets.h (struct __numpunct_cache):
5465         Add member _M_grouping_size, caching the length of _M_grouping.
5466         (__numpunct_cache<>::_M_cache): Assign the latter.
5467         (__verify_grouping): Move declaration...
5468         * include/bits/locale_facets.tcc (__verify_grouping):
5469         ... here, change signature to take a const char* and a size_t
5470         for the grouping; not a template anymore.
5471         (__add_grouping, num_put::_M_group_int, num_put::_M_group_float):
5472         Likewise change signature and tweak consistently.
5473         (num_get::_M_extract_float, num_get::_M_extract_int,
5474         num_put::_M_insert_int, num_put::_M_insert_float,
5475         money_get::do_get(string_type&), money_get::do_put(string_type)):
5476         Update callers.
5477         * config/locale/generic/numeric_members.cc
5478         (numpunct<>::_M_initialize_numpunct): Assign the new member.
5479         * config/locale/gnu/numeric_members.cc
5480         (numpunct<>::_M_initialize_numpunct): Likewise.
5481         * src/locale-inst.cc (__add_grouping): Tweak signature.
5482         (__verify_grouping): Don't instantiate, not a template anymore.
5484         * include/bits/locale_facets.h: Rename _M_truename_len ->
5485         _M_truename_size, _M_falsename_len -> _M_falsename_size.
5486         * include/bits/locale_facets.tcc: Likewise.
5487         * config/locale/generic/numeric_members.cc: Likewise.
5488         * config/locale/gnu/numeric_members.cc: Likewise.
5490 2004-01-14  Stefan Olsson  <stefan@snon.net>
5492         * include/ext/mt_allocator.h: Fixups.
5493         * testsuite/performance/allocator.cc: Enable __mt_alloc tests.
5494         * testsuite/performance/allocator_thread.cc: Same.
5496 2004-01-13  Benjamin Kosnik  <bkoz@redhat.com>
5498         * testsuite/performance/ifstream_extract_float.cc: Add higher
5499         precision tests.
5500         * testsuite/performance/ofstream_insert_float.cc: Same.
5502 2004-01-13  Paolo Carlini  <pcarlini@suse.de>
5504         * src/locale-misc-inst.cc (__convert_from_v(long),
5505         __convert_from_v(unsigned long), __convert_from_v(long long),
5506         __convert_from_v(unsigned long long)): Remove, unused.
5508 2004-01-13  Benjamin Kosnik  <bkoz@redhat.com>
5510         * testsuite/performance/ifstream_extract_float.cc: New.
5511         * testsuite/performance/ofstream_insert_float.cc: Float generation
5512         matches above.
5514         * 20_util/auto_ptr.cc, auto_ptr_neg.cc: Break into...
5515         * 20_util/auto_ptr/1.cc: ...this.
5516         * 20_util/auto_ptr/2.cc: Same.
5517         * 20_util/auto_ptr/3.cc: Same.
5518         * 20_util/auto_ptr/3946.cc: Same.
5519         * 20_util/auto_ptr/4.cc: Same.
5520         * 20_util/auto_ptr/5.cc: Same.
5521         * 20_util/auto_ptr/6.cc: Same.
5522         * 20_util/auto_ptr/7.cc: Same.
5523         * 20_util/auto_ptr/assign_neg.cc
5524         * 20_util/pairs.cc: Break into...
5525         * 20_util/pair/1.cc: ...this.
5526         * 20_util/pair/2.cc: Same.
5527         * 20_util/pair/3.cc: Same.
5528         * 20_util/pair/4.cc: Same.
5530 2004-01-13  Paolo Carlini  <pcarlini@suse.de>
5532         * include/bits/locale_facets.tcc (num_get::do_get(void*&)):
5533         Set correctly just basefield, the only group that matters.
5535 2004-01-13  Paolo Carlini  <pcarlini@suse.de>
5537         * include/ext/rope (_Rope_rep_alloc_base): Eliminate.
5538         (_Rope_rep_base): Inherit directly from the rope allocator;
5539         use rebinding instead of _Alloc_traits; pick up data member
5540         from _Rope_rep_alloc_base.
5541         (_Rope_alloc_base): Eliminate.
5542         (_Rope_base): Inherit directly from the rope allocator; use
5543         rebinding instead of _Alloc_traits; pick up data member from
5544         _Rope_alloc_base.
5545         (rope::_S_new_RopeLeaf, rope::_S_new_RopeConcatenation,
5546         rope::_S_new_RopeFunction, rope::_S_new_RopeSubstring): Tweak.
5548 2004-01-13  Paolo Carlini  <pcarlini@suse.de>
5550         PR libstdc++/13650
5551         * include/bits/basic_string.tcc (compare(size_type, size_type,
5552         const _CharT*, size_type)): Implement correctly the resolution
5553         of DR 5: basically, s is a char array, -not- a C string.
5554         * include/bits/basic_string.h: Tweak some comments.
5555         * testsuite/21_strings/basic_string/compare/char/13650.cc: New.
5556         * testsuite/21_strings/basic_string/compare/wchar_t/13650.cc: New.
5558 2004-01-12  Andreas Tobler  <a.tobler@schweiz.ch>
5560         * testsuite/lib/libstdc++.exp: Set LD_LIBRARY_PATH_32 for
5561         Solaris.
5563 2004-01-12  Paolo Carlini  <pcarlini@suse.de>
5565         * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc:
5566         Use try_mkfifo.
5567         * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc:
5568         Likewise.
5570 2004-01-12  Paolo Carlini  <pcarlini@suse.de>
5572         * include/bits/locale_facets.h (struct __numpunct_cache):
5573         Add members _M_truename_len and _M_falsename_len, caching
5574         the lengths of _M_truename and _M_falsename.
5575         (__numpunct_cache<>::_M_cache): Assign the latter.
5576         * include/bits/locale_facets.tcc (num_get::do_get(bool&),
5577         num_put::do_put(bool)): Use the new members, thus avoiding
5578         computing string lengths again and again.
5579         * config/locale/generic/numeric_members.cc
5580         (numpunct<>::_M_initialize_numpunct): Assign the new members.
5581         * config/locale/gnu/numeric_members.cc
5582         (numpunct<>::_M_initialize_numpunct): Likewise.
5584 2004-01-12  Mark Mitchell  <mark@codesourcery.com>
5586         * testsuite/testsuite_hooks.h (__gnu_test::try_mkfifo): Declare it.
5587         * testsuite/testsuite_hooks.cc (__gnu_test::try_mkfifo): Define
5588         it.
5589         * testsuite/27_io/basic_filebuf/close/char/4879.cc: Use try_mkfifo
5590         and remove Cygwin XFAIL.
5591         * testsuite/27_io/basic_filebuf/close/char/9964.cc: Likewise.
5592         * testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc: Likewise.
5593         * testsuite/27_io/basic_filebuf/open/char/9507.cc: Likewise.
5594         * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc:
5595         Likewise.
5596         * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
5597         * testsuite/27_io/objects/char/7.cc: Likewise.
5598         * testsuite/27_io/objects/char/9661-1.cc: Likewise.
5599         * testsuite/27_io/objects/wchar_t/7.cc: Likewise.
5600         * testsuite/27_io/objects/wchar_t/9661-1.cc: Likewise.
5602 2004-01-11  Gabriel Dos Reis  <gdr@integrable-solutions.net>
5604         * include/std/std_complex.h (std::complex<>::real): Return a
5605         reference. Add non-const overload.
5606         (std::complex<>::real): Likewise.
5607         (std::real): Likewise.
5608         (std::imag): Likewise.
5609         (std::operator+): Tidy.
5610         (std::operator-): Likewise.
5611         (std::operator*): Likewise.
5612         (std::operator/): Likewise.
5613         (std::operator>>): Likewise.
5615 2004-01-11  Paolo Carlini  <pcarlini@suse.de>
5617         PR libstdc++/13582
5618         * include/bits/fstream.tcc (imbue): Exploit the external
5619         buffer to imbue 'on the fly' a new locale and convert its
5620         remainder with the new codecvt facet.
5621         (underflow): Tweak slightly to deal with this special case.
5622         * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc: New.
5623         * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc: Ditto.
5624         * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-3.cc: Ditto.
5625         * testsuite/27_io/objects/wchar_t/13582-1_xin.cc: Ditto.
5626         * testsuite/27_io/objects/wchar_t/13582-1_xin.in: Ditto.
5628 2004-01-10  Paolo Carlini  <pcarlini@suse.de>
5630         * docs/html/ext/lwg-active.html, docs/html/ext/lwg-defects.html:
5631         Import Revision 28.
5633 2004-01-10  Paolo Carlini  <pcarlini@suse.de>
5635         PR libstdc++/13630
5636         * include/bits/locale_classes.h (class locale): Fix category
5637         typedef.
5638         * testsuite/22_locale/locale/13630.cc: Add.
5640 2004-01-10  Giovanni Bajo  <giovannibajo@gcc.gnu.org>
5642         * include/bits/locale_facets.h: Make a name really dependent. This
5643         will be needed when Core Issue 224 is implemented.
5645 2004-01-09  Paolo Carlini  <pcarlini@suse.de>
5647         * testsuite/performance/allocator.cc: Demangle typeid(obj).name().
5648         * testsuite/performance/allocator_thread.cc: Likewise.
5650 2004-01-07  Benjamin Kosnik  <bkoz@redhat.com>
5652         * crossconfig.m4: Add LFS, io bits to linux cross config.
5653         * acconfig.h: Remove obsolete bits, reorder.
5654         * config.h.in: Regenerate.
5655         * aclocal.m4: Same.
5656         * configure: Same.
5658 2004-01-07  Gawain Bolton  <gp.bolton@computer.org>
5660         * include/bits/stl_list.h:
5661         * include/bits/list.tc:
5662         * src/list.cc:
5663         Performance enhancements for destructor, push_front(),
5664         push_back(), pop_front(), pop_back(), sort()
5665         Eliminated static_casts where possible.
5666         Moved code out of header files into new src/list.cc
5667         implementation file for library where possible.
5668         Remove inheritance from iterator class and create separate
5669         classes for non-constant and constant iterators.
5670         * include/bits/stl_tree.h (_Rb_tree class):
5671         * src/tree.cc:
5672         Only erase contents in destructor.
5673         Eliminate unnecessary initialization in assignment operator.
5674         Optimize for the nominal case by not checking whether
5675         container is empty in clear().
5676         Re-order test in _M_insert() to improve performance.
5677         Move initialization of new node's left & right pointers to
5678         src/tree.cc to where new node's colour is initialized
5679         and to reduce the amount of inline code.
5680         Use  _M_leftmost() and _M_end() to improve readability where
5681         appropriate.
5682         Create separate classes for non-constant and constant
5683         iterators to clarify code, avoid extra template parameters and
5684         casting away constness.
5686 2004-01-07  Benjamin Kosnik  <bkoz@redhat.com>
5688         * src/Makefile.am (sources): Add list.cc, tree.cc.
5689         * src/stl_tree.cc: Move to...
5690         * src/tree.cc: ...here.
5691         * src/list.cc: Add.
5692         * config/linker-map.gnu: Tweaks.
5693         * testsuite/23_containers/map/operators/1_neg.cc: Add excess errors.
5694         * testsuite/23_containers/set/operators/1_neg.cc: Add excess errors.
5696         * bits/stl_vector.h: Column wrap comments.
5698 2004-01-07  Loren J. Rittle  <ljrittle@acm.org>
5700         (re-open) PR libstdc++/12658
5701         * src/locale_init.cc (locale::locale): Remove ill-scoped mutex.
5702         (locale::global): Likewise.
5704 2004-01-07  Paolo Carlini  <pcarlini@suse.de>
5706         * testsuite/27_io/basic_istream/extractors_other/char/9318-in.cc:
5707         Remove redundant #include.
5708         * testsuite/27_io/basic_ostream/endl/char/1.cc: Likewise.
5709         * testsuite/27_io/basic_ostream/ends/char/1.cc: Likewise,
5710         re-enable normal testing.
5711         * testsuite/27_io/basic_ostream/ends/char/2.cc: Remove redundant
5712         #include.
5713         * testsuite/27_io/basic_ostream/flush/char/1.cc: Likewise.
5714         * testsuite/27_io/basic_ostream/inserters_character/char/1.cc:
5715         Likewise.
5716         * testsuite/27_io/basic_ostream/inserters_character/char/2.cc:
5717         Likewise.
5718         * testsuite/27_io/basic_ostream/inserters_character/char/3.cc:
5719         Likewise.
5720         * testsuite/27_io/basic_ostream/inserters_character/char/4.cc:
5721         Likewise.
5722         * testsuite/27_io/basic_ostream/inserters_character/char/5.cc:
5723         Likewise.
5724         * testsuite/27_io/basic_ostream/inserters_character/char/6.cc:
5725         Likewise.
5726         * testsuite/27_io/basic_ostream/inserters_character/char/8.cc:
5727         Likewise.
5728         * testsuite/27_io/basic_ostream/inserters_character/wchar_t/7.cc:
5729         More properly, #include <locale>.
5730         * testsuite/27_io/basic_ostream/inserters_character/wchar_t/8.cc:
5731         Remove redundant #include.
5732         * testsuite/27_io/basic_ostream/inserters_other/char/2.cc: Likewise.
5733         * testsuite/27_io/basic_ostream/inserters_other/char/3.cc: Remove
5734         redundant DejaGnu directive.
5735         * testsuite/27_io/basic_ostream/inserters_other/char/4.cc: Remove
5736         redundant #include.
5738 2004-01-06  Benjamin Kosnik  <bkoz@redhat.com>
5739             Stefan Olsson  <stefan@snon.net>
5741         * scripts/check_performance: Use -pthread.
5742         * testsuite/performance/allocator.cc: Tweaks, add list.
5743         * testsuite/performance/allocator_thread.cc: New.
5745 2004-01-06  Jerry Quinn  <jlquinn@optonline.net>
5747         * include/bits/locale_facets.h: Document public classes and
5748         functions.
5749         * include/bits/locale_facets.tcc (time_get::_M_extract_via_format):
5750         Add comment.
5752 2004-01-06  Paolo Carlini  <pcarlini@suse.de>
5754         * testsuite/27_io/basic_istream/extractors_other/char/1.cc:
5755         Remove redundant #includes.
5756         * testsuite/27_io/basic_istream/extractors_other/char/2.cc:
5757         Likewise.
5758         * testsuite/27_io/basic_istream/extractors_other/char/3.cc:
5759         Likewise.
5760         * testsuite/27_io/basic_istream/get/char/1.cc: Likewise.
5761         * testsuite/27_io/basic_istream/get/char/2.cc: Likewise.
5762         * testsuite/27_io/basic_istream/getline/char/1.cc: Likewise.
5763         * testsuite/27_io/basic_istream/getline/char/2.cc: Likewise.
5764         * testsuite/27_io/basic_istream/getline/char/3.cc: Likewise.
5765         * testsuite/27_io/basic_istream/ignore/char/1.cc: Likewise.
5766         * testsuite/27_io/basic_istream/ignore/char/6360.cc: Likewise.
5767         * testsuite/27_io/basic_istream/ignore/char/7220.cc: Likewise.
5768         * testsuite/27_io/basic_istream/peek/char/1.cc: Likewise.
5769         * testsuite/27_io/basic_istream/peek/char/6414.cc: Likewise.
5770         * testsuite/27_io/basic_istream/putback/char/1.cc: Likewise.
5771         * testsuite/27_io/basic_istream/read/char/1.cc: Likewise.
5772         * testsuite/27_io/basic_istream/read/char/2.cc: Likewise.
5773         * testsuite/27_io/basic_istream/read/char/3.cc: Likewise.
5774         * testsuite/27_io/basic_istream/readsome/char/6746-1.cc:
5775         Likewise.
5776         * testsuite/27_io/basic_istream/readsome/char/6746-2.cc:
5777         Likewise.
5778         * testsuite/27_io/basic_istream/readsome/char/8258.cc:
5779         Likewise.
5780         * testsuite/27_io/basic_istream/seekg/char/2346-fstream.cc:
5781         Likewise.
5782         * testsuite/27_io/basic_istream/seekg/char/2346-sstream.cc:
5783         Likewise.
5784         * testsuite/27_io/basic_istream/seekg/char/8348-1.cc: Likewise.
5785         * testsuite/27_io/basic_istream/seekg/char/8348-2.cc: Likewise.
5786         * testsuite/27_io/basic_istream/tellg/char/8348.cc: Likewise.
5788 2004-01-04  Paolo Carlini  <pcarlini@suse.de>
5790         * testsuite/27_io/basic_istream/extractors_arithmetic/char/01.cc:
5791         Remove redundant #includes.
5792         * testsuite/27_io/basic_istream/extractors_arithmetic/char/02.cc:
5793         Likewise.
5794         * testsuite/27_io/basic_istream/extractors_arithmetic/char/03.cc:
5795         Likewise.
5796         * testsuite/27_io/basic_istream/extractors_arithmetic/char/06.cc:
5797         Likewise.
5798         * testsuite/27_io/basic_istream/extractors_arithmetic/char/07.cc:
5799         Likewise.
5800         * testsuite/27_io/basic_istream/extractors_arithmetic/char/08.cc:
5801         Likewise.
5802         * testsuite/27_io/basic_istream/extractors_arithmetic/char/09.cc:
5803         Likewise.
5804         * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
5805         Likewise.
5806         * testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc:
5807         Likewise.
5808         * testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc:
5809         Likewise.
5810         * testsuite/27_io/basic_ostream/inserters_arithmetic/char/1.cc:
5811         Likewise.
5812         * testsuite/27_io/basic_ostream/inserters_arithmetic/char/2.cc:
5813         Likewise.
5814         * testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc:
5815         Likewise.
5817 2004-01-04  Mark Mitchell  <mark@codesourcery.com>
5819         PR c++/12226
5820         * testsuite/27_io/basic_filebuf/4.cc: Remove use of invalid copy
5821         constructor.
5822         * testsuite/27_io/basic_fstream/4.cc: Likewise.
5823         * testsuite/27_io/basic_ifstream/4.cc: Likewise.
5824         * testsuite/27_io/basic_ios/4.cc: Likewise.
5825         * testsuite/27_io/basic_iostream/4.cc: Likewise.
5826         * testsuite/27_io/basic_istream/4.cc: Likewise.
5827         * testsuite/27_io/basic_istingstream/4.cc: Likewise.
5828         * testsuite/27_io/basic_ofstream/4.cc: Likewise.
5829         * testsuite/27_io/basic_ostream/4.cc: Likewise.
5830         * testsuite/27_io/basic_ostringstream/4.cc: Likewise.
5831         * testsuite/27_io/basic_stringbuf/5.cc: Likewise.
5832         * testsuite/27_io/basic_stringstream/4.cc: Likewise.
5834 2004-01-04  Paolo Carlini  <pcarlini@suse.de>
5836         * config/locale/generic/numeric_members.cc (_M_initialize_numpunct):
5837         Avoid unnecessarily zero terminating _M_atoms_out and _M_atoms_in;
5838         always use double underscored names.
5839         * config/locale/gnu/numeric_members.cc (_M_initialize_numpunct):
5840         Likewise.
5841         * include/bits/locale_facets.h (struct __numpunct_cache):
5842         Dimension _M_atoms_out and _M_atoms_in one position smaller.
5843         (__numpunct_cache<>::_M_cache): Don't zero terminate _M_atoms_out
5844         and _M_atoms_in.