2004-11-13 Matthias Klose <doko@debian.org>
[official-gcc.git] / libstdc++-v3 / ChangeLog
blob5beafdbcf645495d82a0257e018174a8a4cbc80c
1 2004-11-15  Matthias Klose  <doko@debian.org>
3         * docs/doxygen/run_doxygen: Add --build_alias option,
4         substitute it in docs/doxygen/user.cfg.in.
5         * docs/doxygen/user.cfg.in: Use build_alias.
6         * Makefile.am: Pass --build_alias to run_doxygen
7         * Makefile.in: Regenerate.
9 2004-11-15  Benjamin Kosnik  <bkoz@redhat.com>
11         * testsuite/testsuite_abi.cc (check_version): Add GLIBCXX_3.4.4.
13 2004-11-15  Paolo Carlini  <pcarlini@suse.de>
15         * docs/html/ext/lwg-active.html, lwg-defects.html: Import Revision 33.
17 2004-11-14  Paolo Carlini  <pcarlini@suse.de>
19         * include/bits/streambuf_iterator.h (istreambuf_iterator::_M_get):
20         Slightly tweak for clarity (also leads to measurably better code).
22 2004-11-12  Andrew Pinski  <pinskia@physics.uc.edu>
24         PR other/14264
25         * testsuite/lib/libstdc++.exp: Set LC_ALL and LANG to C.
27 2004-11-09  Paolo Carlini  <pcarlini@suse.de>
29         * include/bits/locale_facets.tcc (time_get<>::do_get_weekday,
30         time_get<>::do_get_monthname): Absolutely avoid dereferencing
31         end iterators.
33         * include/bits/locale_facets.tcc (time_get<>::_M_extract_name):
34         Minor tweak.    
36 2004-11-08  Benjamin Kosnik  <bkoz@redhat.com>
37             Doug Gregor  <dgregor@cs.indiana.edu>
39         PR libstdc++/17664
40         * src/debug.cc : Just use one mutex.
42 2004-11-08  Benjamin Kosnik  <bkoz@redhat.com>
44         * configure.ac (libtool_VERSION): To 6:4:0.
45         * configure: Regenerate.
47         * config/linker-map.gnu: Slide new symbols into GLIBCXX_3.4.4.
49         * docs/doxygen/user.cfg.in: Add more extension files.
51 2004-11-08  Paolo Carlini  <pcarlini@suse.de>
53         * include/bits/streambuf_iterator.h (class istreambuf_iterator):
54         Consistently use _M_c to cache the current char, i.e., not only
55         when operator++(int) is involved; change _M_c to mutable.
56         (_M_get()): Always save the return value of _M_sbuf->sgetc() into
57         _M_c.
58         * testsuite/22_locale/time_get/get_monthname/char/1.cc: Fix
59         (long standing) typo.
60         * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Likewise.
61         * testsuite/22_locale/time_get/get_weekday/char/1.cc: Likewise.
62         * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Likewise.
64 2004-11-08  Paolo Carlini  <pcarlini@suse.de>
66         * include/bits/istream.tcc (getline(char_type*, streamsize,
67         char_type), ignore(streamsize), ignore(streamsize, int_type)):
68         Restore a generic version of the functions, not using the
69         protected members of basic_streambuf.
70         * include/std/std_istream.h (getline(char_type*, streamsize,
71         char_type), ignore(streamsize), ignore(streamsize, int_type)):
72         Declare optimized specializations for char and wchar_t.
73         * src/istream.cc: New file, define the latter.
74         * src/Makefile.am: Add.
75         * src/Makefile.in: Regenerate.
77 2004-11-07  Paolo Carlini  <pcarlini@suse.de>
79         * testsuite/performance/27_io/ifstream_getline-2.cc: New.
81 2004-11-05  Benjamin Kosnik  <bkoz@redhat.com>
83         PR libstdc++/17218
84         PR libstdc++/17223
85         * docs/doxygen/filter: Remove.
86         * docs/doxygen/filter.sed: Remove.
87         * docs/doxygen/mainpage.html: Add link to functions.
88         * docs/doxygen/run_doxygen: Changes due to new source filtering.
89         * docs/doxygen/user.cfg.in: Update to doxygen 1.3.9.1, tweak.
90         * include/bits/allocator.h: Tweaks for doxygen.
91         * include/bits/char_traits.h: Same.
92         * include/bits/codecvt.h: Same.
93         * include/bits/concurrence.h: Same.
94         * include/bits/locale_facets.h: Same.
95         * include/ext/array_allocator.h: Same.
96         * include/ext/debug_allocator.h: Same.
97         * include/ext/malloc_allocator.h: Same.
98         * include/ext/mt_allocator.h: Same.
99         * include/ext/new_allocator.h: Same.
100         * include/ext/pool_allocator.h: Same.
101         * include/ext/stdio_sync_filebuf.h: Same.
102         * include/std/std_memory.h: Same.
103         * include/tr1/array: Same.
104         * include/tr1/tuple: Same.
105         * config/locale/ieee_1003.1-2001/codecvt_specializations.h: Same.
106         * config/os/gnu-linux/ctype_base.h: Same.
108 2004-11-04  Paolo Carlini  <pcarlini@suse.de>
110         * include/bits/locale_facets.tcc (num_get<>::do_get(bool&)):
111         Evaluate __beg == __end the exact strict minimum number of times.
113 2004-11-03  Jonathan Wakely  <redi@gcc.gnu.org>
115         * include/bits/stl_numeric.h (partial_sum, adjacent_difference):
116         Avoid dereferencing two times __first in the prologue.
118 2004-11-03  Paolo Carlini  <pcarlini@suse.de>
120         * include/bits/stl_numeric.h: Trivial formatting fixes.
122 2004-11-03  Benjamin Kosnik  <bkoz@redhat.com>
124         * include/bits/c++config: Spacing.
125         * libsupc++/del_op.cc: Include c++config.h.
126         * libsupc++/del_opnt.cc: Same.
127         * libsupc++/del_opv.cc: Same.
128         * libsupc++/del_opvnt.cc: Same.
129         * libsupc++/new_op.cc: Same.
130         * libsupc++/new_opnt.cc: Same.
131         * libsupc++/new_opv.cc: Same.
132         * libsupc++/new_opvnt.cc: Same.
134 2004-11-03  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
136         * config/os/bsd/darwin/os_defines.h
137         (_GLIBCXX_WEAK_DEFINITION): Define.
138         * include/bits/c++config (_GLIBCXX_WEAK_DEFINITION): Define.
139         * libsupc++/del_op.cc (operator delete(void *)): Use
140         _GLIBCXX_WEAK_DEFINITION.
141         * libsupc++/del_opnt.cc
142         (operator delete(void *, const std::nothrow_t&)): Same.
143         * libsupc++/del_opv.cc (operator delete[](void *)): Same.
144         * libsupc++/del_opvnt.cc
145         (operator delete[](void *, const std::nothrow_t&)): Same.
146         * libsupc++/new_op.cc (operator new(std::size_t)): Same.
147         * libsupc++/new_opnt.cc
148         (operator new(std::size_t, const std::nothrow_t&)): Same
149         * libsupc++/new_opv.cc (operator new[](std::size_t)): Same.
150         * libsupc++/new_opvnt.cc
151         (operator new[](std::size_t, const std::nothrow_t&)): Same.
153 2004-11-02  Paolo Carlini  <pcarlini@suse.de>
155         * include/bits/locale_facets.tcc (num_get<>::_M_extract_int):
156         Evaluate *__beg the exact strict minimum number of times; likewise
157         for __beg != __end; slightly simplify main parsing loop.
159 2004-11-02  Benjamin Kosnik  <bkoz@redhat.com>
160             Lothar Werzinger  <lothar@xcerla.com>
161         
162         PR libstdc++/17664
163         * src/debug.cc: Include concurrence, use mutexes.
164         (_Safe_iterator_base::_M_attach): Here. 
165         (_Safe_iterator_base::_M_detach): Here. 
166         
167 2004-11-02  Benjamin Kosnik  <bkoz@redhat.com>
169         PR libstdc++/17922
170         * include/bits/ios_base.h : Add enum values.
171         * testsuite/testsuite_hooks.h (bitmask_operators): Add function.
172         * testsuite/27_io/ios_base/types/fmtflags/bitmask_operators.cc: New.
173         * testsuite/27_io/ios_base/types/fmtflags/case_label.cc: New.
174         * testsuite/27_io/ios_base/types/iostate/bitmask_operators.cc: New.
175         * testsuite/27_io/ios_base/types/iostate/case_label.cc: New.
176         * testsuite/27_io/ios_base/types/openmode/bitmask_operators.cc: New.
177         * testsuite/27_io/ios_base/types/openmode/case_label.cc: New.
178         * testsuite/27_io/ios_base/types/seekdir/case_label.cc: New.
180         * config/io/c_io_stdio.h (__ios_flags): Mark deprecated.
181         * src/ios.cc: Same.
183         * testsuite/27_io/ios_base/cons/assign_neg.cc: Adjust line numbers.
184         * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
186 2004-11-01  Momchil Velikov  <velco@fadata.bg>
188         PR libstdc++/18185
189         * libsupc++/eh_globals.cc (get_globals_dtor): Delete unhandled
190         exceptions.
191         * testsuite/thread/18185.cc: New.
192         
193 2004-11-01  Chris Jefferson  <chris@bubblescope.net>
195         PR libstdc++/18159
196         * include/tr1/tuple (get(pair)): Change occurrences of _I to _Int.
197         (get(const pair)): Likewise.
199 2004-11-01  Paolo Carlini  <pcarlini@suse.de>
201         * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
202         Evaluate *__beg the exact strict minimum number of times; likewise
203         for __beg != __end; in the main parsing loop, call ++__beg in two
204         places only. The former is also a correctness issue, because,
205         according to the standard (22.2.2.1.2, Stage 2), 'in' shall be
206         dereferenced only one time for each increment.
208 2004-10-31  Benjamin Kosnik  <bkoz@redhat.com>
210         PR c++/16728
211         * testsuite/23_containers/set/modifiers/16728.cc: New.
213 2004-10-30  Paolo Carlini  <pcarlini@suse.de>
215         * include/ext/bitmap_allocator.h (allocate(size_type)): Minor tweak.
217         * testsuite/ext/bitmap_allocator/check_delete.cc: New.
218         * testsuite/ext/bitmap_allocator/check_new.cc: Likewise.
220 2004-10-29  Geoffrey Keating  <geoffk@apple.com>
222         * configure.host (darwin*): Set os_include_dir to a separate directory
223         for Darwin.
224         * acinclude.m4 (GLIBCXX_ENABLE_CLOCALE): Add a new C locale kind,
225         'darwin'.
226         * config/locale/darwin/ctype_members.cc: New.
227         * config/os/bsd/darwin/ctype_base.h: New.
228         * config/os/bsd/darwin/ctype_inline.h: New.
229         * config/os/bsd/darwin/ctype_noninline.h: New.
230         * config/os/bsd/darwin/os_defines.h: New.
232         * testsuite/22_locale/locale/cons/12658_thread-1.cc: Only xfail
233         on Linux.
235 2004-10-29  Chris Jefferson  <chris@bubblescope.net>
237         * include/bit/stl_algo.h (find_first_of(,,,,pred)):
238         Remove invalid EqualOpConcept.
239         * testsuite/25_algorithms/find_first_of/concept_check_1.cc: New.
241 2004-10-29  Benjamin Kosnik  <bkoz@redhat.com>
243         * testsuite/testsuite_allocator.h (check_delete): New.
244         (check_new): Simplify.
245         * testsuite/ext/array_allocator/check_delete.cc: New.
246         * testsuite/ext/array_allocator/check_new.cc: Simplify.
247         * testsuite/ext/debug_allocator/check_delete.cc: New.
248         * testsuite/ext/debug_allocator/check_new.cc: Simplify.
249         * testsuite/ext/malloc_allocator/check_delete.cc: New.
250         * testsuite/ext/malloc_allocator/check_new.cc: Simplify.
251         * testsuite/ext/mt_allocator/check_delete.cc: New.
252         * testsuite/ext/mt_allocator/check_new.cc: Simplify.
253         * testsuite/ext/new_allocator/check_delete.cc: New.
254         * testsuite/ext/new_allocator/check_new.cc: Simplify.
255         * testsuite/ext/pool_allocator/check_delete.cc: New.
256         * testsuite/ext/pool_allocator/check_new.cc: Simplify.
258 2004-10-28  Chris Jefferson  <chris@bubblescope.net>
260         PR libstdc++/18159
261         * include/tr1/tuple: Fix, change formatting.
263 2004-10-28  Benjamin Kosnik  <bkoz@redhat.com>
265         * include/ext/mt_allocator.h (__common_pool_policy): Add template
266         template parameter for pool class type.
267         (__per_type_pool_policy): Same.
268         (__mt_allocator): Don't inherit policy. Qualify policy_type calls.
269         * testsuite/ext/mt_allocator/check_deallocate_null.cc: Fix.
270         * testsuite/ext/mt_allocator/check_deallocate_null_thread.cc: Same.
271         * testsuite/ext/mt_allocator/deallocate_global-2.cc: Same.
272         * testsuite/ext/mt_allocator/deallocate_global-4.cc: Same.
273         * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: Same.
274         * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: Same.
275         * testsuite/ext/mt_allocator/deallocate_local-2.cc: Same.
276         * testsuite/ext/mt_allocator/deallocate_local-4.cc: Same.
277         * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: Same.
278         * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: Same.
279         * testsuite/ext/mt_allocator/instantiate.cc: Same.
280         * testsuite/ext/mt_allocator/tune-1.cc: Same.
281         * testsuite/ext/mt_allocator/tune-2.cc: Same.
282         * testsuite/ext/mt_allocator/tune-3.cc: Same.
283         * testsuite/ext/mt_allocator/tune-4.cc: Same.
285 2004-10-28  Paolo Carlini  <pcarlini@suse.de>
287         * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
288         Cache *__beg in __c when parsing exponent sign too.
289         (num_get<>::do_get(..., bool&)): Cache *__beg.
290         (money_get<>::_M_extract)): Likewise, in money_base::value.
292 2004-10-27  Paolo Carlini  <pcarlini@suse.de>
294         * include/bits/basic_string.h (assign(const basic_string&)):
295         Move out of line...
296         * include/bits/basic_string.tcc: ... here.
298 2004-10-27  Paolo Carlini  <pcarlini@suse.de>
300         * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
301         Move out of line...
302         * include/bits/basic_string.tcc: ... here.
304 2004-10-26  Paolo Carlini  <pcarlini@suse.de>
306         * include/bits/basic_string.h (append(const basic_string&),
307         append(size_type, _CharT)): Move out of line...
308         * include/bits/basic_string.tcc: ... here.
310 2004-10-26  Paolo Carlini  <pcarlini@suse.de>
312         * include/bits/basic_string.h (erase(size_type, size_type),
313         erase(iterator), erase(iterator, iterator)): Call _M_mutate
314         instead of _M_replace_safe, equivalent when the fourth argument
315         is zero and simpler.
317 2004-10-26  Benjamin Kosnik  <bkoz@redhat.com>
319         * include/ext/array_allocator.h (array::allocate): Check for valid
320         array object, use its size member function directly.
321         * testsuite/ext/array_allocator/3.cc: New.
322         * docs/html/20_util/allocator.html: Add docs.
323         
324 2004-10-25  Geoffrey Keating  <geoffk@apple.com>
326         * configure.host (darwin*): Build libstdc++ single module
327         and flat namespace.
328         * libsupc++/new_op.cc (new): Make weak.
329         * libsupc++/new_opnt.cc (new): Make weak.
330         * libsupc++/new_opv.cc (new): Make weak.
331         * libsupc++/new_opvnt.cc (new): Make weak.
332         * libsupc++/delete_op.cc (delete): Make weak.
333         * libsupc++/delete_opnt.cc (delete): Make weak.
334         * libsupc++/delete_opv.cc (delete): Make weak.
335         * libsupc++/delete_opvnt.cc (delete): Make weak.
337 2004-10-25  Benjamin Kosnik  <bkoz@redhat.com>
339         * testsuite/Makefile.am (GLIBCXX_INCLUDES): Add.
340         (AUTOMAKE_OPTIONS): Add nostdinc.
341         * testsuite/Makefile.in: Regenerate.
342         * scripts/testsuite_flags.in (build-includes): Remove redundant
343         search for libsupc++.
344         * fragment.am: Clean.
345         
346 2004-10-25  Benjamin Kosnik  <bkoz@redhat.com>
348         * include/Makefile.am (tr1_headers): Add tuple.
349         * include/Makefile.in: Regenerate.
351 2004-10-25  Chris Jefferson  <chris@bubblescope.net>
353         * include/tr1/tuple: Implementation of tuple from library TR.
354         * testsuite/tr1/6_containers/tuple/tuple_element.cc: New.
355         * testsuite/tr1/6_containers/tuple/tuple_size.cc: New.
356         * testsuite/tr1/6_containers/tuple/comparison_operators/comparisons.cc:
357         New.
358         * testsuite/tr1/6_containers/tuple/cons/assignment.cc: New.
359         * testsuite/tr1/6_containers/tuple/cons/big_tuples.cc: New.
360         * testsuite/tr1/6_containers/tuple/cons/constructor.cc: New.
361         * testsuite/tr1/6_containers/tuple/creation_functions/make_tuple.cc: 
362         New.
363         * testsuite/tr1/6_containers/tuple/creation_functions/tie.cc: New.
364         * testsuite/tr1/6_containers/tuple/element_access/get.cc: New.
366 2004-10-25  Paolo Carlini  <pcarlini@suse.de>
367         
368         * include/bits/basic_string.h (_Rep::_M_is_safe): Move to
369         basic_string as _M_disjunct, adjust to take only __s.
370         * include/bits/basic_string.tcc: Adjust consistently callers. 
372 2004-10-25  Paolo Carlini  <pcarlini@suse.de>
374         * include/bits/basic_string.tcc (assign(const _CharT*, size_type)):
375         Adjust bit missing from the previous commit.
377 2004-10-25  Eric Botcazou  <ebotcazou@libertysurf.fr>
379         PR other/18138
380         * testsuite/lib/libstdc++.exp: Accept more than one multilib libgcc.
382 2004-10-25  Paolo Carlini  <pcarlini@suse.de>
384         * include/bits/basic_string.h (_Rep::_M_is_safe, _M_check_length,
385         _M_move, _M_copy, _M_assign): New, use througout.
386         (operator+=(_CharT)): Define in terms of push_back.
387         (append(const basic_string&)): Define here, inline, and simplify,
388         don't use the full _M_replace_safe.
389         (append(size_type, _CharT)): Likewise, don't use _M_replace_aux.
390         (push_back): Likewise.
391         (assign(const basic_string&)): Define here, inline.
392         * include/bits/basic_string.tcc (append(const _CharT* s, size_type):
393         Fix: when s points inside the _Rep, upon reallocation (reserve) we
394         were copying from deallocated memory.
395         (append(const basic_string&, size_type, size_type)): Simplify,
396         don't use _M_replace_safe.
397         (replace(size_type, size_type, const _CharT*, size_type)): Slightly
398         tweak.
399         (reserve): Likewise.
400         * testsuite/21_strings/basic_string/append/char/2.cc: New.
401         * testsuite/21_strings/basic_string/append/char/3.cc: Likewise.
402         * testsuite/21_strings/basic_string/append/wchar_t/2.cc: Likewise.
403         * testsuite/21_strings/basic_string/append/wchar_t/3.cc: Likewise.
405         * testsuite/21_strings/basic_string/assign/char/3.cc: Remove junk.
406         * testsuite/21_strings/basic_string/assign/wchar_t/3.cc: Likewise.
408 2004-10-23  Andrew Pinski  <pinskia@physics.uc.edu>
410         * testsuite/ext/mt_allocator/deallocate_global-2.c:
411         s/value_t/value_type/. s/traits_t/traits_type/.
412         s/policy_t/policy_type/. s/allocator_t/allocator_type/.
413         s/string_t/string_type/. s/list_t/list_type/.
414         * testsuite/ext/mt_allocator/deallocate_global-4.cc: Likewise.
415         * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: Likewise.
416         * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: Likewise.
417         * testsuite/ext/mt_allocator/deallocate_local-2.cc: Likewise.
418         * testsuite/ext/mt_allocator/deallocate_local-4.cc: Likewise.
419         * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: Likewise.
420         * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: Likewise.
422 2004-10-21  Benjamin Kosnik  <bkoz@redhat.com>
424         * include/tr1/array (array): Make safe for zero-sized arrays.
425         (array::end): Return one past the end.
426         (array::at): Use __throw_out_of_range, include functexcept.h.
427         (operator==): Implement.
428         (operator!=): Same.
429         (operator<): Same.
430         (operator>): Same.
431         (operator>=): Same.
432         (operator<=): Same.
433         * testsuite/tr1/6_containers/array/capacity/(empty.cc,
434         max_size.cc, size.cc): New.
435         * testsuite/tr1/6_containers/array/comparison_operators/(equal.cc,
436         greater.cc, greater_or_equal.cc, less.cc, less_or_equal.cc,
437         not_equal): New.
438         * testsuite/tr1/6_containers/array/cons/aggregate_initialization.cc: 
439         New.
440         * testsuite/tr1/6_containers/array/element_access/at_out_of_range.cc: 
441         New.
442         * testsuite/tr1/6_containers/array/iterators/end_is_one_past.cc: New.
443         * testsuite/tr1/6_containers/array/requirements/(contiguous.cc,
444         instantiate, typedefs, zero_size_arrays): New.
446 2004-10-21  Paolo Carlini  <pcarlini@suse.de>
447             Benjamin Kosnik  <bkoz@redhat.com>
449         * include/bits/basic_string.h (_M_set_length_and_sharable): New.
450         * include/bits/basic_string.tcc (_S_construct, assign(const _CharT*,
451         size_type), _M_mutate, _M_clone): Use it.
452         (_Rep::_S_create): Don't set/call _M_length/_M_set_sharable here.
454 2004-10-21  Paolo Carlini  <pcarlini@suse.de>
455             Dhruv Matani  <dhruvbird@gmx.net>
456             Nathan Myers  <ncm@cantrip.org>
458         * include/bits/vector.tcc (_M_insert_aux, _M_fill_insert,
459         _M_range_insert): Check at the outset that we are not trying
460         to exceed max_size, then deal properly with __len overflows.
461         * testsuite/23_containers/vector/modifiers/insert/1.cc: New.
462         
463         * testsuite/testsuite_allocator.h: Remove redundant include.
465 2004-10-20  Paolo Carlini  <pcarlini@suse.de>
467         * include/ext/bitmap_allocator.h (allocate): Throw std::bad_alloc
468         when n > max_size().
469         * include/ext/malloc_allocator.h (allocate): Likewise.
470         * include/ext/mt_allocator.h (allocate): Likewise.
471         * include/ext/new_allocator.h (allocate): Likewise.
472         * include/ext/array_allocator.h: Use __throw_bad_alloc().
473         * include/ext/pool_allocator.h: Use __builtin_expect.
474         * testsuite/ext/array_allocator/check_allocate_max_size.cc: New.
475         * testsuite/ext/bitmap_allocator/check_allocate_max_size.cc: Likewise.
476         * testsuite/ext/malloc_allocator/check_allocate_max_size.cc: Likewise.
477         * testsuite/ext/mt_allocator/check_allocate_max_size.cc: Likewise.
478         * testsuite/ext/new_allocator/check_allocate_max_size.cc: Likewise.
479         * testsuite/ext/pool_allocator/check_allocate_max_size.cc: Likewise.
480         * testsuite/testsuite_allocator.h (check_allocate_max_size): New test.
482 2004-10-19  Paolo Carlini  <pcarlini@suse.de>
484         * testsuite/performance/20_util/allocator/list_sort_search.cc:
485         Include <ext/new_allocator.h>.
486         * testsuite/performance/20_util/allocator/map_mt_find.cc: Likewise.
488 2004-10-18  Paolo Carlini  <pcarlini@suse.de>
490         * include/bits/basic_string.tcc (_M_mutate): Do not reallocate
491         unnecessarily when _M_rep() == &_S_empty_rep() and __new_size
492         == capacity() (== 0): is ok to just leave everything unchanged.
494         * include/bits/basic_string.h: Minor formatting fixes.
495         * include/bits/basic_string.tcc: Likewise.
497 2004-10-17  Benjamin Kosnik  <bkoz@redhat.com>
499         * include/ext/mt_allocator.h (__pool::_M_get_align): New.
500         (__mt_alloc::allocate): Use it.
501         * src/mt_allocator.cc (__pool::_M_reclaim_block): Use it.
502         (__pool::_M_reserve_block): Simplify block allocation.
503         
504 2004-10-17  Dhruv Matani  <dhruvbird@gmx.net>
505             Paolo Carlini  <pcarlini@suse.de>
506                 
507         * include/ext/bitmap_allocator.h: Change unsigned int -> size_t: this
508         makes the code 64-bit correct and also fixes (together with using at
509         the beginning a bitmap 2 * size_t bytes wide) alignment issues: now
510         8 is guaranteed, easily tunable to 16 via _BALLOC_ALIGN_BYTES.
511         Fix pthread-rope7.cc fail by nulling out __mini_vector<> destructor.
512         * src/bitmap_allocator.cc: Change to size_t.
513         * config/linker-map.gnu: Adjust.
515 2004-10-16  Benjamin Kosnik  <bkoz@redhat.com>
517         * include/tr1/array: Don't use layout_type.
519 2004-10-16  Sashan Govender  <sashang@gmail.com>
521         * include/tr1/array (array::end const): Fix casting from iterator
522         to const_iterator.
523         
524 2004-10-15  Paolo Carlini  <pcarlini@suse.de>
526         * include/ext/bitmap_allocator.h: Qualify ::operator delete.
527         * src/bitmap_allocator.cc: Likewise.
528         * src/mt_allocator.cc: Use ::operator delete, not delete,
529         consistently with ::operator new.
531         * include/ext/bitmap_allocator.h (deallocate): Check for null
532         pointer.
533         * testsuite/ext/bitmap_allocator/check_deallocate_null.cc: New.
534         * testsuite/testsuite_allocator.h (check_deallocate_null): Add test.
536 2004-10-14  Benjamin Kosnik  <bkoz@redhat.com>
538         * include/ext/mt_allocator.h (__mt_alloc::deallocate): Check for
539         null pointer.
540         * include/ext/pool_allocator.h (debug_allocator::deallocate):
541         Check pointer value.
542         * include/ext/debug_allocator.h (debug_allocator::deallocate):
543         Throw exceptions, don't abort.
544         * include/ext/array_allocator.h
545         (array_allocator_base::deallocate): Remove unused parameters.
546         * testsuite/testsuite_allocator.h (check_deallocate_null): New.
547         * testsuite/ext/mt_allocator/check_deallocate_null.cc: New.
548         * testsuite/ext/mt_allocator/check_deallocate_null_thread.cc: New.
549         * testsuite/ext/array_allocator/check_deallocate_null.cc: New.
550         * testsuite/ext/debug_allocator/check_deallocate_null.cc: New.
551         * testsuite/ext/malloc_allocator/check_deallocate_null.cc: New.
552         * testsuite/ext/new_allocator/check_deallocate_null.cc: New.
553         * testsuite/ext/pool_allocator/check_deallocate_null.cc: New.
555         * testsuite/testsuite_allocator.h (check_new): Add instance argument.
556         * testsuite/ext/array_allocator/check_new.cc: New.
557         
558 2004-10-14  Paolo Carlini  <pcarlini@suse.de>
560         * include/ext/bitmap_allocator.h (bitmap_allocator::_Alloc_block):
561         Rename __unused to __M_unused.
563 2004-10-14  Benjamin Kosnik  <bkoz@redhat.com>
565         * testsuite/ext/headers.cc: Add includes, compile only.
566         * testsuite/ext/hash_map.cc: Move to...
567         * testsuite/ext/hash_map/1.cc: ...here.
568         * testsuite/ext/14648.cc: Move to...
569         * testsuite/ext/hash_map/14648.cc: ...here.
570         * testsuite/ext/hash_map/instantiate.cc: Add.
571         * testsuite/ext/hash_set.cc: Move to...
572         * testsuite/ext/hash_set/1.cc: ...here.
573         * testsuite/ext/hash_set_explicit_instantiation.cc: Move to...
574         * testsuite/ext/hash_set/instantiate.cc: ...here.
575         * testsuite/ext/hash_check_construct_destroy.cc: Move to...
576         * testsuite/ext/hash_set/check_construct_destroy.cc: ...here.
577         * testsuite/ext/slist_check_construct_destroy.cc: Move to...
578         * testsuite/ext/slist/check_construct_destroy.cc: ...here.
579         * testsuite/ext/slist_explicit_instantiation.cc: Move to...
580         * testsuite/ext/slist/instantiate.cc: ...here.
581         
582 2004-10-14  Benjamin Kosnik  <bkoz@redhat.com>
584         * include/ext/mt_allocator.h: Tweaks.
585         * src/mt_allocator.cc: Same.
587 2004-10-14  Dhruv Matani  <dhruvbird@gmx.net>
589         * ext/bitmap_allocator.h: Clean-up add/remove functions.
590         * src/bitmap_allocator.cc: New file. Contains the out-of-line
591         function definitions, static initialization of variables, and
592         explicit instantiations needed for the allocator.
593         * src/Makefile.am: Add.
594         * src/Makefile.in: Regenerate.
595         * config/linker.map.gnu: Add the necessary symbols.
597 2004-10-13  Paolo Carlini  <pcarlini@suse.de>
599         * include/bits/basic_string.tcc (_S_create): Use consistently
600         the exponential policy, simplify.
601         * testsuite/performance/21_strings/string_append_2.cc: New.
603         * include/ext/array_allocator.h (allocate): Fix bad_alloc check.
604         * testsuite/ext/array_allocator/2.cc: Fix wrt 64-bit archs (in
605         that case sizeof(_Rep) == 24).
607 2004-10-12  Paolo Carlini  <pcarlini@suse.de>
609         PR libstdc++/17948
610         * include/bits/stl_tree.h (erase(iterator, iterator)): Revert
611         wrong commit of 2004-10-07.
612         
613 2004-10-12  Scott Snyder  <snyder@fnal.gov>
615         PR libstdc++/17948
616         * testsuite/23_containers/set/modifiers/17948.cc: New.
618 2004-10-11  Benjamin Kosnik  <bkoz@redhat.com>
620         * include/bits/stl_deque.h: Correct for over-long lines.
622 2004-10-11  Benjamin Kosnik  <bkoz@redhat.com>
624         PR libstdc++/17937
625         * include/ext/mt_allocator.h (__pool::_M_destroy): New.
626         * src/mt_allocator.cc (__pool::~__pool): Change definitions to
627         _M_destroy.
628         * acconfig.h: Remove _GLIBCXX_USE___CXA_ATEXIT.
629         * acinclude.m4 (GLIBCXX_ENABLE_CXA_ATEXIT): Remove.
630         * configure.ac: Remove call to GLIBCXX_ENABLE_CXA_EXIT.
631         * configure: Regenerate.
632         * config/linker-map.gnu: Tweak exports.
633         * docs/html/ext/mt_allocator.html: Update docs.
634         * testsuite/ext/mt_allocator/deallocate_global-2.cc: Fix.
635         * testsuite/ext/mt_allocator/deallocate_global-4.cc: Fix.       
636         * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: Fix.
637         * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: Fix.
638         * testsuite/ext/mt_allocator/deallocate_local-2.cc: Fix.
639         * testsuite/ext/mt_allocator/deallocate_local-4.cc: Fix.
640         * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: Fix.
641         * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: Fix.
643 2004-10-11  Benjamin Kosnik  <bkoz@redhat.com>
645         PR libstdc++/16614 continued.
646         * include/ext/mt_allocator.h
647         (__per_type_pool_policy::_S_get_pool): Use saner defaults based on
648         specific type characteristics.
649         (__pool_base): Add constructor that takes a _Tune argument.
650         (__pool): Same.
651         * testsuite/ext/mt_allocator/tune-2.cc: Adjust default.
652         * testsuite/ext/mt_allocator/tune-4.cc: Same.
653         * testsuite/ext/mt_allocator/tune-3.cc: Same.
655 2004-10-11  Joachim Kuebart  <kuebart@mathematik.uni-ulm.de>
656             Paolo Carlini  <pcarlini@suse.de>
658         * src/pool_allocator.cc (__pool_alloc_base::_M_allocate_chunk):
659         Deal properly with exceptions thrown by ::operator new(size_t).
660         * testsuite/ext/pool_allocator/allocate_chunk.cc: New.
662         * include/ext/pool_allocator.h: Include <cstdlib>.
664 2004-10-10  Benjamin Kosnik  <bkoz@redhat.com>
666         * include/bits/functexcept.h: Add guards.
668         * acinclude.m4 (GLIBCXX_ENABLE_THREADS): Tweak test.
669         * configure: Regenerate.
670         
671 2004-10-10  Paolo Carlini  <pcarlini@suse.de>
673         * config/locale/gnu/monetary_members.cc (_S_construct_pattern):
674         Give __ret a default value, thus avoiding spurious warnings.
676         * testsuite/performance/27_io/filebuf_sgetn_unbuf.cc: Open either
677         words or linux.words, otherwise exit.
678         * testsuite/performance/27_io/ifstream_getline.cc: Slighlty tweak.
680 2004-10-09  Paolo Carlini  <pcarlini@suse.de>
682         * include/std/std_memory.h (__get_temporary_buffer): Don't use
683         INT_MAX, prefer numeric_limits<ptrdiff_t>::max(), ok on 64-bit
684         platforms too.
685         * testsuite/20_util/memory/auto_ptr/assign_neg.cc: Adjust dg-error
686         line numbers.
688 2004-10-08  Benjamin Kosnik  <bkoz@redhat.com>
690         * acconfig.h: Add _GLIBCXX_USE___CXA_ATEXIT.
691         * acinclude.m4 (GLIBCXX_ENABLE_CXA_ATEXIT): New.
692         * configure.ac: Call GLIBCXX_ENABLE_CXA_EXIT.
693         * configure: Regenerate.
694         * src/mt_allocator.cc (__pool::~__pool): Make conditional on
695         _GLIBCXX_USE___CXA_ATEXIT macro.
696         * docs/html/ext/mt_allocator.html: Add note about deallocation.
697         * testsuite/ext/mt_allocator/deallocate_local-2.cc: Guard checks
698         with _GLIBCXX_USE___CXA_ATEXIT.
699         * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: Same.
700         * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: Same.
701         * testsuite/ext/mt_allocator/deallocate_global-4.cc: Same.
702         * testsuite/ext/mt_allocator/deallocate_global-2.cc: Same.
703         * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: Same.
704         * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: Same.
705         * testsuite/ext/mt_allocator/deallocate_local-4.cc: Same.
706         
707 2004-10-07  Phil Edwards  <phil@codesourcery.com>
709         * testsuite/lib/libstdc++.exp:  Update list of undefined functions.
711 2004-10-07  Paolo Carlini  <pcarlini@suse.de>
713         * include/bits/list.tcc (operator=): Avoid iterator postincrement.
714         * include/bits/stl_tree.h (erase(iterator, iterator)): Likewise.
716 2004-10-07  Benjamin Kosnik  <bkoz@redhat.com>
718         * include/tr1: New.
719         * include/tr1/array: New.
720         * include/Makefile.am (tr1_headers): New.
721         (stamp-tr1): New.
722         (install-headers): New.
723         (allstamped): Add stamp-tr1.
725         * include/ext/array_allocator.h: New.
726         * include/Makefile.am: Add.
727         * include/Makefile.in: Regenerate.
728         * testsuite/ext/array_allocator/1.cc: New.
729         * testsuite/ext/array_allocator/2.cc: New.
731 2004-10-07  Richard Earnshaw  <rearnsha@arm.com>
733         * testsuite/lib/libstdc++.exp (libstdc++_exit): New proc.
735 2004-10-07  Roger Sayle  <roger@eyesopen.com>
737         PR libstdc++/17850
738         * configure.ac: Newlib does not provide strtold.
739         * configure: Regenerate.
741 2004-10-06  Benjamin Kosnik  <bkoz@redhat.com>
743         * acinclude.m4 (GLIBCXX_ENABLE_THREADS): Set enable_thread.
744         (GLIBCXX_CONFIGURE_TESTSUITE): Use it.
745         * configure: Regenerated.
746         * testsuite/Makefile.am (CLEANFILES): Add TEST for
747         check-performance executables.
748         (stamp_thread): New.
749         (all-local): Use it.
750         * testsuite/Makefile.in: Regenerate.
751         * scripts/create_testsuite_files: Filter thread tests.
753         * testsuite/thread/pthread1.cc: Remove macro conditionals: this
754         file will only be run by thread enabled configurations.
755         * testsuite/thread/pthread7-rope.cc: Same, add rope_type typedef.
756         * testsuite/thread/pthread6.cc: Same.
757         * testsuite/thread/pthread5.cc: Same.
758         * testsuite/thread/pthread4.cc: Same.
759         * testsuite/thread/pthread3.cc: Same.
760         * testsuite/thread/pthread2.cc: Same.
762         * testsuite/ext/mt_allocator/instantiate.cc: Add in __GTHREADS guard.
763         * testsuite/ext/mt_allocator/deallocate_global-1.cc: Move to...
764         * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: ...here.
765         * testsuite/ext/mt_allocator/deallocate_global-3.cc: Move to...
766         * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: ...here. 
767         * testsuite/ext/mt_allocator/deallocate_local-1.cc: Move to...
768         * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: ...here.
769         * testsuite/ext/mt_allocator/deallocate_local-3.cc: Move to...
770         * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: ...here.
772 2004-10-06  Benjamin Kosnik  <bkoz@redhat.com>
773             Paolo Carlini  <pcarlini@suse.de>
775         PR libstdc++/17780
776         * src/mt_allocator.cc (__pool<true>::_M_reserve_block): Revert
777         to old locking order.
779 2004-10-06  Paolo Carlini  <pcarlini@suse.de>
781         * include/std/std_sstream.h (_M_sync): When the caller is
782         setbuf, don't trust _M_string.capacity() to be the size of
783         the buffer area, use _M_string.size() in this case.
784         * testsuite/27_io/basic_stringbuf/setbuf/char/4.cc: New.
785         * testsuite/27_io/basic_stringbuf/setbuf/wchar_t/4.cc: Likewise.
787         * include/bits/sstream.tcc (overflow): Avoid calling string::assign
788         unnecessarily when the current _M_string is empty.
790 2004-10-06  Paolo Carlini  <pcarlini@suse.de>
792         * include/bits/stl_algo.h (__reverse(bidirectional_iterator_tag)):
793         Avoid iterator postincrement.
794         (__rotate): Likewise.
796         * include/bits/stl_algo.h: Minor formatting tweaks.
798 2004-10-06  Christopher Jefferson <caj@cs.york.ac.uk>
800         * include/bits/stl_algo.h (__reverse(random_access_iterator_tag)):
801         Avoid iterator postincrement; fix swapping middle element with
802         itself on odd-length inputs.
804 2004-10-05  Benjamin Kosnik  <bkoz@redhat.com>
806         PR libstdc++/17780
807         * include/ext/mt_allocator.h (__pool_base::_Tune): Add default
808         options as compile-time constant enums.
809         (__pool_base::_Tune::is_default): New.
810         (__pool_base::_Block_address): New.
811         (__pool_base): Rearrange data members.
812         (__pool::_M_reserve_memory): To _M_reserve_block.
813         (__pool::_M_reclaim_memory): To _M_reclaim_block.       
814         (__pool::_Bin_record): Add _Block_address data member.
815         (__pool<false>): Add _M_thread_freelist_initial.
816         (__pool::~__pool): Declare.     
817         (__common_pool_policy): Move static data member to...
818         (__common_pool_policy::_S_get_pool): ...here, make static local.
819         (__per_type_pool_policy): Move static data member to...
820         (__per_type_pool_policy::_S_get_pool): ...here, make static local.
821         (__mt_alloc::__mt_alloc): Call __policy_type::_S_get_pool.
822         Remove static member definitions. Use define for __default_policy.
823         * src/mt_allocator.cc: Same.
824         * config/linker-map.gnu: Don't export _S_get_pool. Renames.
825         * testsuite/ext/new_allocator: New.
826         * testsuite/ext/new_allocator/instantiate.cc: New.
827         * testsuite/ext/new_allocator/check_new.cc: New.
828         * testsuite/ext/new_allocator/deallocate_global.cc: New.
829         * testsuite/ext/new_allocator/deallocate_local.cc: New.
830         * testsuite/ext/mt_allocator/instantiate.cc: Instantiate all
831         template arguments.
832         * testsuite/ext/mt_allocator/deallocate_global-1.cc: New.
833         * testsuite/ext/mt_allocator/deallocate_global-2.cc: New.
834         * testsuite/ext/mt_allocator/deallocate_global-3.cc: New.
835         * testsuite/ext/mt_allocator/deallocate_global-4.cc: New.
836         * testsuite/ext/mt_allocator/deallocate_local-1.cc: New.
837         * testsuite/ext/mt_allocator/deallocate_local-2.cc: New.
838         * testsuite/ext/mt_allocator/deallocate_local-3.cc: New.
839         * testsuite/ext/mt_allocator/deallocate_local-4.cc: New.
840         * testsuite/ext/mt_allocator/deallocate.cc: New.
841         * testsuite/ext/malloc_allocator/deallocate.cc: New.    
842         * testsuite/ext/malloc_allocator/deallocate_global.cc: New.
843         * testsuite/ext/malloc_allocator/deallocate_local.cc: New.
844         
845 2004-10-05  Ulrich Weigand  <uweigand@de.ibm.com>
847         * configure.host (abi_baseline_pair): Define for s390-*-linux* and
848         s390x-*-linux*.
849         * config/abi/s390-linux-gnu/baseline_symbols.txt: Add missing symbols.
850         * config/abi/s390x-linux-gnu/baseline_symbols.txt: New file.
852 2004-10-05  Christopher Jefferson  <caj@cs.york.ac.uk>
854         * include/bits/stl_algobase.h (iter_swap): delegate to swap via
855         __iter_swap when iterator's value_types are equal.
856         (struct __iter_swap): New.
858 2004-10-04  Benjamin Kosnik  <bkoz@redhat.com>
860         * configure.ac (libtool_VERSION): To 6:3:0.
861         * configure: Regnerate.
862         * testsuite/testsuite_abi.cc (check_version): Add 3.4.3.
864 2004-10-04  Roger Sayle  <roger@eyesopen.com>
865             Eric Botcazou  <ebotcazou@libertysurf.fr>
867         PR libstdc++/17505
868         * config/linker-map.gnu: Synchronize the current list of stub
869         functions from libmath.
871 2004-10-03  Roger Sayle  <roger@eyesopen.com>
873         * config/locale/generic/c_locale.cc (__convert_to_v): Use
874         _GLIBCXX_HAVE_STRTOF instead _GLIBCXX_USE_C99 to check for strtof.
875         Likewise, use _GLIBCXX_HAVE_STRTOLD instead of _GLIBCXX_USE_C99
876         to check for presence of strtold.
878 2004-10-03  Paolo Carlini  <pcarlini@suse.de>
880         * include/bits/stl_list.h: Trivial formatting fixes.
881         * include/bits/stl_tree.h: Likewise.
883 2004-10-03  Paolo Carlini  <pcarlini@suse.de>
885         * include/bits/sstream.tcc (seekpos): In case of success, just
886         return __sp.
888 2004-10-01  Paolo Carlini  <pcarlini@suse.de>
890         * include/bits/sstream.tcc (pbackfail): Implement correctly
891         27.7.1.3/2, bullet 2: if mode & ios_base::out is false do not
892         write in the buffer.
893         * testsuite/27_io/basic_stringbuf/pbackfail/char/1.cc: New.
894         * testsuite/27_io/basic_stringbuf/pbackfail/char/2.cc: Likewise.
895         * testsuite/27_io/basic_stringbuf/pbackfail/wchar_t/1.cc: Likewise.
896         * testsuite/27_io/basic_stringbuf/pbackfail/wchar_t/2.cc: Likewise.
897         * testsuite/27_io/basic_istream/putback/char/1.cc: Tweak consistently.
899 2004-10-01  Paolo Carlini  <pcarlini@suse.de>
901         * include/bits/sstream.tcc (seekpos): Minor rearrangement of two
902         conditionals consistently with seekoff.
903         * include/std/std_sstream.h (setbuf): Avoid a string temporary.
904         (_M_sync): Simplify a bit, clean-up comment.
906 2004-09-30  Paolo Carlini  <pcarlini@suse.de>
908         PR libstdc++/10975 (DR 453)
909         * include/bits/sstream.tcc (seekoff): Don't fail if __beg == 0
910         and __off == 0.
911         * docs/html/ext/howto.html: Add an entry for DR 453.
912         * testsuite/27_io/basic_stringbuf/seekoff/char/10975.cc: New.
913         * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/10975.cc: Likewise.
914         * testsuite/27_io/basic_istream/tellg/char/1.cc: Tweak consistently.
915         * testsuite/27_io/basic_ostream/tellp/char/1.cc: Likewise.
916         * testsuite/27_io/basic_ostream/tellp/char/2.cc: Likewise.
917         * testsuite/27_io/basic_istream/seekg/char/2346-fstream.cc: Fix and
918         move to...
919         * testsuite/27_io/basic_istream/seekp/char/2346-fstream.cc: ... here.
920         * testsuite/27_io/basic_istream/seekg/char/2346-sstream.cc: Fix and
921         move to...
922         * testsuite/27_io/basic_istream/seekp/char/2346-sstream.cc: ... here.
924 2004-09-29  Paolo Carlini  <pcarlini@suse.de>
926         * include/std/std_sstream.h (basic_stringbuf(ios_base::openmode)):
927         Don't use _M_stringbuf_init, keep the pointers null, per 27.7.1.1.
928         (str()): Slightly tweak, protect from pptr() == 0.
929         (_M_update_egptr()): Likewise.
930         * include/bits/sstream.tcc (ssekoff, seekpos): In order to check
931         for an empty buffer use __beg instead of _M_string.capacity().
932         * testsuite/27_io/basic_stringbuf/cons/char/1.cc: New.
933         * testsuite/27_io/basic_stringbuf/cons/wchar_t/1.cc: Likewise.
935         * testsuite/27_io/basic_filebuf/cons/char/1.cc: New.
936         * testsuite/27_io/basic_filebuf/cons/wchar_t/1.cc: Likewise.
937         * testsuite/27_io/basic_streambuf/cons/char/1.cc: Update.
938         * testsuite/27_io/basic_streambuf/cons/wchar_t/1.cc: Likewise.
940 2004-09-29  Paolo Carlini  <pcarlini@suse.de>
941             Benjamin Kosnik  <bkoz@redhat.com>
942         
943         * testsuite/testsuite_io.h (class constraint_buf): New, extended
944         and templatized version of constraint_filebuf; add typedefs for
945         streambuf/stringbuf/filebuf and wchar_t counterparts.
947 2004-09-28  Paolo Carlini  <pcarlini@suse.de>
949         PR libstdc++/16612
950         * include/bits/basic_string.h (_M_dispose, _M_refcopy,
951         basic_string()): When _GLIBCXX_FULLY_DYNAMIC_STRING is defined,
952         don't deal with _S_empty_rep.
953         * include/bits/basic_string.tcc (_S_construct, _M_destroy,
954         _M_leak_hard, _M_mutate): Likewise.
955         * acinclude.m4 (GLIBCXX_ENABLE_FULLY_DYNAMIC_STRING): New.
956         * acconfig.h: Add corresponding undef.  
957         * configure.ac: Use GLIBCXX_ENABLE_FULLY_DYNAMIC_STRING.
958         * docs/html/configopts.html: Document --enable-fully-dynamic-string.
959         * configure: Regenerate.
960         * config.h.in: Likewise.
962 2004-09-28  Benjamin Kosnik  <bkoz@redhat.com>
963             Paolo Carlini  <pcarlini@suse.de>
965         * testsuite/21_strings/basic_string/operations/char/1.cc: New.
966         * testsuite/21_strings/basic_string/operations/wchar_t/1.cc: New.
967         * testsuite/21_strings/basic_string/element_access/char/empty.cc: New.
968         * testsuite/21_strings/basic_string/element_access/wchar_t/empty.cc: 
969         New.
971 2004-09-28  Paolo Carlini  <pcarlini@suse.de>
973         * README: Remove obsolete entry about include/c_shadow.
975 2004-09-24  H.J. Lu  <hongjiu.lu@intel.com>
977         PR libstdc++/17469
978         * testsuite/lib/libstdc++.exp: Don't use global ld_library_path.
980 2004-09-24  Paolo Carlini  <pcarlini@suse.de>
982         * src/localename.cc (locale::locale(const char*)): Minor tweaks:
983         rename a variable, move an assignment.
984         (locale::_Impl::_Impl(const char*, size_t)): Likewise, minor tweak.
986 2004-09-24  Paul Brook  <paul@codesourcery.com>
988         * testsuite/27_io/basic_filebuf/sgetn/char/1-in.cc: XFAIL more arm
989         simulator targets.
990         * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: Ditto.
991         * testsuite/27_io/basic_filebuf/sgetn/char/2-in.cc: Ditto.
992         * testsuite/27_io/basic_filebuf/sgetn/char/2-io.cc: Ditto.
993         * testsuite/27_io/basic_istream/readsome/char/6746-2.cc: Ditto.
994         * testsuite/ext/stdio_filebuf/char/10063-2.cc: Ditto.
995         * testsuite/ext/stdio_filebuf/char/10063-3.cc: Ditto.
997 2004-09-23  Zack Weinberg  <zack@codesourcery.com>
999         * testsuite/20_util/memory/auto_ptr/assign_neg.cc
1000         * testsuite/23_containers/map/operators/1_neg.cc
1001         * testsuite/23_containers/set/operators/1_neg.cc:
1002         Update locations and/or regexps of dg-error markers.
1004 2004-09-23  P.J. Darcy  <darcypj@us.ibm.com>
1006         * include/Makefile.am (thread_host_headers): Add gthr-tpf.h.
1007         Add rule to build ${host_builddir}/gthr-tpf.h.
1008         * include/Makefile.in: Regenerate.
1010 2004-09-23  Paolo Carlini  <pcarlini@suse.de>
1011             Magnus Fromreide  <magfr@lysator.liu.se>
1013         * include/bits/boost_concept_check.h (struct _SequenceConcept):
1014         Remove wrong requirement, i.e., not present in Table 67.
1016 2004-09-21  Paolo Carlini  <pcarlini@suse.de>
1018         PR libstdc++/12882 (cont)
1019         * acinclude.m4 (GLIBCXX_CHECK_LFS): Check for fstat64 too.
1020         * configure: Regenerate.
1021         * config/io/basic_file_stdio.cc (__basic_file<>::showmanyc): When
1022         _GLIBCXX_USE_LFS use fstat64 and lseek64, thus providing a non
1023         trivial showmanyc for large files too.
1025 2004-09-17  Jonathan Wakely  <redi@gcc.gnu.org>
1027         * include/bits/stl_algo.h (remove): Remove too restrictive
1028         concept-check.
1030 2004-09-17  Paolo Carlini  <pcarlini@suse.de>
1032         * include/bits/fstream.tcc (xsgetn): Slightly tweak conditional,
1033         as per Nathan's original suggestion.
1035 2004-09-17  Paolo Carlini  <pcarlini@suse.de>
1037         * testsuite/ext/mt_allocator/tune-1.cc: Use VERIFY, clean
1038         up a bit.
1039         * testsuite/ext/mt_allocator/tune-2.cc: Likewise.
1040         * testsuite/ext/mt_allocator/tune-3.cc: Likewise.
1041         * testsuite/ext/mt_allocator/tune-4.cc: Likewise.
1043 2004-09-17  Paolo Carlini  <pcarlini@suse.de>
1044             Andrea Arcangeli  <andrea@suse.de>
1046         * config/io/basic_file_stdio.cc (__basic_file<>::close)): Don't
1047         call unnecessarily sync, that is fflush: the library, since 3.4.0
1048         does not use buffered fread/fwrite.
1049         * include/bits/fstream.tcc (basic_filebuf<>::overflow): Likewise.
1051 2004-09-15  Mark Mitchell  <mark@codesourcery.com>
1053         * config/cpu/arm/cxxabi_tweaks.h (__cxa_cdtor_return_type):
1054         Define.
1055         * config/cpu/generic/cxxabi_tweaks.h (__cxa_cdtor_return_type):
1056         Define.
1057         * libsupc++/cxxabi.h (__cxa_cdtor_return_type): New type.
1058         (__cxa_vec_new): Use it.
1059         (__cxa_vec_new2): Likewise.
1060         (__cxa_vec_new3): Likewise.
1061         (__cxa_vec_cdtor): Likewise.
1062         (__cxa_vec_cctor): Likeiwse.
1063         (__cxa_vec_dtor): Likewise.
1064         (__cxa_vec_cleanup): Likewise.
1065         (__cxa_vec_delete2): Likewise.
1066         (__cxa_vec_delete3): Likewise.
1067         * libsupc++/vec.cc (__cxa_vec_new): Likewise.
1068         (__cxa_vec_new2): Likewise.
1069         (__cxa_vec_new3): Likewise.
1070         (__cxa_vec_cdtor): Likewise.
1071         (__cxa_vec_cctor): Likeiwse.
1072         (__cxa_vec_dtor): Likewise.
1073         (__cxa_vec_cleanup): Likewise.
1074         (__cxa_vec_delete2): Likewise.
1075         (__cxa_vec_delete3): Likewise.
1076         (__aeabi_vec_ctor_nocookie_nodtor): New function.
1077         (__aeabi_vec_ctor_cookie_nodtor): Likewise.
1078         (__aeabi_vec_cctor_nocookie_nodtor): Likewise.
1079         (__aeabi_vec_new_cookie_noctor): Likewise.
1080         (__aeabi_vec_new_nocookie): Likewise.
1081         (__aeabi_vec_new_cookie_nodtor): Likewise.
1082         (__aeabi_vec_new_cookie): Likewise.
1083         (__aeabi_vec_dtor): Likewise.
1084         (__aeabi_vec_dtor_cookie): Likewise.
1085         (__aeabi_vec_delete): Likewise.
1086         (__aeabi_vec_delete3): Likewise.
1087         (__aeabi_vec_delete3_nodtor): Likewise.
1088         (__aeabi_atexit): Likewise.
1090 2004-09-14  Nathan Myers  <ncm@cantrip.org>
1092         * include/bits/fstream.tcc (xsgetn): Slightly tweak the recent fix
1093         for 11722: copy can replace move; the common case is __avail == 0.
1095 2004-09-14  Paolo Carlini  <pcarlini@suse.de>
1097         * include/bits/cpp_type_traits.h: Rename __is_trivially_copyable
1098         to __is_scalar, more clear and consistent with "tr1" naming.
1099         * include/bits/stl_algobase.h: Update consistently throughout.
1101 2004-09-13  Paolo Carlini  <pcarlini@suse.de>
1103         PR libstdc++/11722
1104         * include/std/std_fstream.h (xsgetn): Declare only.
1105         * include/bits/fstream.tcc (xsgetn): Define, optimize for the
1106         always_noconv() case: when __n > __buflen, copy the available
1107         buffer and issue a direct read.
1108         * testsuite/performance/27_io/filebuf_sgetn_unbuf.cc: New.
1110         * include/bits/fstream.tcc (xsputn): Minor tweak, reorder a
1111         conditional.
1113 2004-09-13  Hans-Peter Nilsson  <hp@bitrange.com>
1115         * testsuite/lib/libstdc++.exp: Use gcc wrapper.exp and call
1116         libstdc++_maybe_build_wrapper instead of using local code.
1118 2004-09-08  Benjamin Kosnik  <bkoz@redhat.com>
1120         * config/linker-map.gnu (GLIBCXX_3.4.3): New, adjust symbol exports.
1122 2004-09-03  Jan Beulich  <jbeulich@novell.com>
1124         * crossconfig.m4: Add NetWare as a target.
1125         * configure: Regenerate.
1127 2004-09-02  Mark Mitchell  <mark@codesourcery.com>
1129         * libsupc++/typeinfo: Honor __GXX_MERGED_TYPEINFO_NAMES if already
1130         defined.
1132 2004-09-02  Benjamin Kosnik  <bkoz@redhat.com>
1133             Simon Richter  <Simon.Richter@hogyros.de>
1135         PR libstdc++/16715
1136         * include/bits/istream.tcc: Add extern template for iostream
1137         char and wchar_t instantiations.
1139 2004-09-02  Benjamin Kosnik  <bkoz@redhat.com>
1140             Leland Wang  <llwang@infor.org>
1142         PR libstdc++/17259
1143         * include/ext/ropeimpl.h (rope::_S_compare): Use
1144         _Rope_constants::_S_leaf.
1146 2004-09-02  Benjamin Kosnik  <bkoz@redhat.com>
1148         PR libstdc++/16848
1149         * include/Makefile.am (ext_headers): Remove demangle.h.
1150         * include/Makefile.in: Regenerate.
1151         * include/ext/demangle.h: Remove.
1153 2004-09-01  Benjamin Kosnik  <bkoz@redhat.com>
1155         PR libstdc++/16614
1156         * include/ext/mt_allocator.h (__mt_base): Not type dependent,
1157         split into..
1158         (__pool): New, specialize.
1159         (__common_pool): New, static bits here.
1160         (__per_type_pool): New, and here.
1161         (__mt_alloc_base): New.
1162         (__mt_alloc): Add template parameter, inherit from it.
1163         * src/allocator.cc: Split this...
1164         * src/allocator-inst.cc: And this...
1165         * src/pool_allocator.cc: ...into this.
1166         * src/mt_allocator.cc: ... and this. Add definitions for
1167         __mt_base.
1168         * src/Makefile.am (sources): Split allocator.cc to
1169         pool_allocator.cc and mt_allocator.cc.
1170         * src/Makefile.in: Regenerate.
1171         * config/linker-map.gnu: Add symbols.
1172         * docs/html/ext/mt_allocator.html: Document new design.
1173         * testsuite/ext/mt_allocator/tune-1.cc: New.
1174         * testsuite/ext/mt_allocator/tune-2.cc: New.
1175         * testsuite/ext/mt_allocator/tune-3.cc: New.
1176         * testsuite/ext/mt_allocator/tune-4.cc: New.
1178         * testsuite/testsuite_allocator.h (__gnu_test::check_new): New.
1179         * testsuite/ext/allocators.cc: Use check_new, split into...
1180         * testsuite/ext/mt_allocator/check_new.cc: this.
1181         * testsuite/ext/pool_allocator/check_new.cc: this.
1182         * testsuite/ext/malloc_allocator/check_new.cc: this.
1183         * testsuite/ext/debug_allocator/check_new.cc: this.
1184         * testsuite/ext/mt_allocator/instantiate.cc: this.
1185         * testsuite/ext/pool_allocator/instantiate.cc: this.
1186         * testsuite/ext/malloc_allocator/instantiate.cc: this.
1187         * testsuite/ext/debug_allocator/instantiate.cc: this.
1189 2004-08-30  Phil Edwards  <phil@codesourcery.com>
1191         * docs/html/install.html:  Update locales list (from Paolo).
1192         Remove other redundant information and point to the GCC install
1193         documentation.
1195 2004-08-30  Benjamin Kosnik  <bkoz@redhat.com>
1197         * include/ext/pool_allocator.h: Rename __pool_base to
1198         __pool_alloc_base.
1199         * src/allocator.cc: Same.
1200         * config/linker-map.gnu: Same.
1202 2004-08-30  Paolo Carlini  <pcarlini@suse.de>
1203             Kenneth C. Schalk  <ken@xorian.net>
1205         PR libstdc++/17215
1206         * config/io/basic_file_stdio.cc (__basic_file<char>::close()):
1207         Check the return value of fclose/sync, loop on EINTR.
1208         (__basic_file<char>::sys_open): Likewise, for sync.
1210 2004-08-29  Paolo Carlini  <pcarlini@suse.de>
1212         * include/bits/locale_facets.tcc (time_get<>::_M_extract_via_format,
1213         case 'S'): Allow for at least one leap-second (as per C99, 7.23.1
1214         and 7.23.3.5), two if !_GLIBCXX_USE_C99.
1215         * testsuite/22_locale/time_get/get_time/char/4.cc: New.
1216         * testsuite/22_locale/time_get/get_time/wchar_t/4.cc: Likewise.
1218 2004-08-27  Jason Merrill  <jason@redhat.com>
1220         PR c++/13684
1221         * libsupc++/guard.cc (static_mutex): Internal class implementing a
1222         recursive mutex which controls initialization of local statics.
1223         (__gnu_cxx::recursive_init): New exception class.
1224         (__cxa_guard_acquire): Deal with locking and recursion detection.
1225         (acquire_1, __cxa_guard_abort, __cxa_guard_release): Likewise.
1227 2004-08-27  Matthias Klose  <doko@debian.org>
1229         * configure.host: For mips*-*-linux* update cpu_include_dir
1230         after atomicity_dir is set.
1232 2004-08-27  Matthias Klose  <doko@debian.org>
1234         * config/abi/arm-linux-gnu/baseline_symbols.txt: New.
1235         * config/abi/mips-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1236         * configure.host: Set abi_baseline_pair for arm*-*-linux* and
1237         mips*-*-linux*.
1239 2004-08-27  Paolo Carlini  <pcarlini@suse.de>
1241         * testsuite/27_io/manipulators/adjustfield/wchar_t/1.cc: New.
1242         * testsuite/27_io/manipulators/adjustfield/wchar_t/2.cc: Likewise.
1243         * testsuite/27_io/manipulators/basefield/wchar_t/1.cc: Likewise.
1244         * testsuite/27_io/manipulators/standard/wchar_t/1.cc: Likewise.
1245         * testsuite/27_io/manipulators/standard/wchar_t/2.cc: Likewise.
1247         * testsuite/27_io/manipulators/adjustfield/char/1.cc: Minor
1248         formatting fixes.
1249         * testsuite/27_io/manipulators/adjustfield/char/2.cc: Likewise.
1250         * testsuite/27_io/manipulators/basefield/char/1.cc: Likewise.
1251         * testsuite/27_io/manipulators/standard/char/1.cc: Likewise.
1252         * testsuite/27_io/manipulators/standard/char/2.cc: Likewise.
1254 2004-08-25  Paolo Carlini  <pcarlini@suse.de>
1256         PR libstdc++/17038 (partial)
1257         * include/bits/locale_facets.tcc (time_put<>::do_put): Increase
1258         __maxlen to 128.
1259         * include/bits/locale_facets.h (class __timepunct): Add FIXME
1260         comment about _M_put.
1261         * config/locale/generic/time_members.cc (_M_put): Always null
1262         terminate __s.
1263         * config/locale/gnu/time_members.cc (_M_put): Likewise.
1264         * testsuite/22_locale/time_put/put/char/17038.cc: New.
1265         * testsuite/22_locale/time_put/put/wchar_t/17038.cc: New.
1267 2004-08-24  Paolo Carlini  <pcarlini@suse.de>
1269         * testsuite/27_io/basic_istringstream/rdbuf/wchar_t/2832.cc: New.
1270         * testsuite/27_io/basic_istringstream/str/wchar_t/1.cc: Likewise.
1271         * testsuite/27_io/basic_ostringstream/cons/wchar_t/3.cc: Likewise.
1272         * testsuite/27_io/basic_ostringstream/rdbuf/wchar_t/2832.cc: Likewise.
1273         * testsuite/27_io/basic_ostringstream/str/wchar_t/1.cc: Likewise.
1274         * testsuite/27_io/basic_ostringstream/str/wchar_t/2.cc: Likewise.
1276         * testsuite/27_io/basic_istringstream/rdbuf/char/2832.cc: Trim excess
1277         newlines.
1278         * testsuite/27_io/basic_istringstream/str/char/1.cc: Likewise.
1280 2004-08-22  Matthias Klose  <doko@debian.org>
1282         * config/abi/m68k-linux-gnu/baseline_symbols.txt: New.
1283         * config/abi/sparc-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1285 2004-08-23  Paolo Carlini  <pcarlini@suse.de>
1287         * configure.ac: Specify version 1.9.1 in AM_INIT_AUTOMAKE.
1288         * aclocal.m4: Regenerate with automake-1.9.1.
1289         * configure: Regenerate.
1290         * Makefile.in: Likewise.
1291         * include/Makefile.in: Likewise.
1292         * libmath/Makefile.in: Likewise.
1293         * libsupc++/Makefile.in: Likewise.
1294         * po/Makefile.in: Likewise.
1295         * src/Makefile.in: Likewise.
1296         * testsuite/Makefile.in: Likewise.
1298 2004-08-22  Paolo Carlini  <pcarlini@suse.de>
1300         * include/bits/locale_facets.tcc (num_put<>::do_put(bool)): Cast
1301         to a signed type, long according to the resolution of DR 359.
1302         * testsuite/22_locale/num_put/put/char/9.cc: New.
1303         * testsuite/22_locale/num_put/put/wchar_t/9.cc: New.
1305         * include/bits/locale_facets.tcc (num_put<>::do_put(const void*)):
1306         Simplify a bit: no need to clear showpos.
1308 2004-08-21  Paolo Carlini  <pcarlini@suse.de>
1310         * include/bits/char_traits.h (struct _Char_traits_match): Remove,
1311         unused.
1313 2004-08-21  Paolo Carlini  <pcarlini@suse.de>
1315         * testsuite/22_locale/money_put/put/wchar_t/1.cc: Use proper
1316         wchar_t type for the fill argument; minor formatting tweaks.
1317         * testsuite/22_locale/money_put/put/wchar_t/12971.cc: Likewise.
1318         * testsuite/22_locale/money_put/put/wchar_t/2.cc: Likewise.
1319         * testsuite/22_locale/money_put/put/wchar_t/3.cc: Likewise.
1320         * testsuite/22_locale/money_put/put/wchar_t/4.cc: Likewise.
1321         * testsuite/22_locale/money_put/put/wchar_t/5.cc: Likewise.
1322         * testsuite/22_locale/money_put/put/wchar_t/6.cc: Likewise.
1324 2004-08-21  Paolo Carlini  <pcarlini@suse.de>
1326         * include/bits/basic_ios.tcc (basic_ios<>::copyfmt): Don't deal
1327         with _M_word != _M_local_word two times, redundantly.
1329 2004-08-20  Jason Merrill  <jason@redhat.com>
1331         * include/Makefile.am (${host_builddir}/gthr.h): Don't add
1332         _GLIBCXX_ to #pragma lines.
1333         * include/Makefile.in: Update.
1335 2004-08-20  Paolo Carlini  <pcarlini@suse.de>
1337         PR libstdc++/7219 (continued)
1338         * include/bits/ios_base.h (class ios_base): Expose Annex D.6
1339         typedefs by default.
1340         * testsuite/27_io/types/1.cc: Remove #if _GLIBCXX_DEPRECATED.
1341         * testsuite/27_io/ios_base/cons/assign_neg.cc: Tweak dg-error
1342         line number.
1343         * testsuite/27_io/ios_base/cons/copy_neg.cc: Likewise.
1345 2004-08-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1347         * cpu/hppa/atomicity.h (__exchange_and_add, __atomic_add): Add memory
1348         barrier to locking asm.
1350 2004-08-20  Paolo Carlini  <pcarlini@suse.de>
1352         * include/c_std/cmath.tcc (__cmath_power): Revert previous commit:
1353         actually the warning is a front-end bug (c++/17120).
1355 2004-08-20  Matthias Klose  <doko@debian.org>
1357         * config/abi/s390-linux-gnu/baseline_symbols.txt: New.
1359 2004-08-20  Paolo Carlini  <pcarlini@suse.de>
1361         * include/c_std/cmath.tcc (__cmath_power): Suppress assignment
1362         used as truth value warning.
1364 2004-08-20  Paolo Carlini  <pcarlini@suse.de>
1366         * config/abi/x86_64-linux-gnu/32/baseline_symbols.txt: Add 32 bit
1367         baseline.
1369 2004-08-20  Paolo Carlini  <pcarlini@suse.de>
1371         * config/abi/x86_64-linux-gnu/baseline_symbols.txt: Fix it.
1373 2004-08-19  Benjamin Kosnik  <bkoz@redhat.com>
1375         * testsuite/22_locale/time_put/put/char/3.cc (test03): Don't check
1376         timezone.
1377         * testsuite/22_locale/time_put/put/wchar_t/3.cc (test03): Same.
1379 2004-08-19  Paolo Carlini  <pcarlini@suse.de>
1381         * testsuite/performance/20_util/allocator/insert.cc: For std::map
1382         instantiate the allocator for a correct pair type.
1383         * testsuite/performance/20_util/allocator/insert_insert.cc: Likewise.
1384         * testsuite/performance/20_util/allocator/map_thread.cc: Likewise.
1385         * testsuite/performance/20_util/allocator/producer_consumer.cc:
1386         Likewise.
1388         * testsuite/performance/20_util/allocator/list_sort_search.cc: Very
1389         minor formatting fixes.
1390         * testsuite/performance/20_util/allocator/map_mt_find.cc: Likewise.
1392 2004-08-19  Paolo Carlini  <pcarlini@suse.de>
1394         * testsuite/22_locale/time_put/put/char/1.cc: Add VERIFY on the
1395         results.
1396         * testsuite/22_locale/time_put/put/char/2.cc: Likewise.
1397         * testsuite/22_locale/time_put/put/char/3.cc: Likewise.
1398         * testsuite/22_locale/time_put/put/char/4.cc: Likewise.
1399         * testsuite/22_locale/time_put/put/wchar_t/1.cc: Likewise.
1400         * testsuite/22_locale/time_put/put/wchar_t/2.cc: Likewise.
1401         * testsuite/22_locale/time_put/put/wchar_t/3.cc: Likewise.
1402         * testsuite/22_locale/time_put/put/wchar_t/4.cc: Likewise.
1404 2004-08-19  Paolo Carlini  <pcarlini@suse.de>
1406         * config/abi/x86_64-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1408 2004-08-18  Matthias Klose  <doko@debian.org>
1410         * config/abi/hppa-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1411         * config/abi/i386-linux-gnu/baseline_symbols.txt: New.
1412         * config/abi/powerpc-linux-gnu/baseline_symbols.txt: New.
1414 2004-08-17  Paolo Carlini  <pcarlini@suse.de>
1416         * config/abi/alpha-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1418 2004-08-17  Paolo Carlini  <pcarlini@suse.de>
1420         * config/abi/ia64-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1422 2004-08-17  Benjamin Kosnik  <bkoz@redhat.com>
1424         * config/abi/i486-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1426 2004-08-16  Paolo Carlini  <pcarlini@suse.de>
1428         * include/bits/indirect_array.h: Trivial formatting fixes.
1429         * include/bits/valarray_after.h: Likewise.
1430         * include/bits/valarray_array.h: Likewise.
1431         * src/valarray-inst.cc: Likewise.
1433 2004-08-15  Paolo Carlini  <pcarlini@suse.de>
1435         * testsuite/27_io/basic_stringstream/rdbuf/char/2832.cc: Remove junk.
1436         * testsuite/27_io/basic_stringstream/str/char/1.cc: Likewise.
1437         * testsuite/27_io/basic_stringstream/str/char/3.cc: Likewise.
1439         * testsuite/27_io/basic_stringstream/rdbuf/wchar_t/2832.cc: New.
1440         * testsuite/27_io/basic_stringstream/str/wchar_t/1.cc: Likewise.
1441         * testsuite/27_io/basic_stringstream/str/wchar_t/2.cc: Likewise.
1442         * testsuite/27_io/basic_stringstream/str/wchar_t/3.cc: Likewise.
1443         * testsuite/27_io/basic_stringstream/str/wchar_t/4.cc: Likewise.
1445 2004-08-15  Paolo Carlini  <pcarlini@suse.de>
1447         * include/bits/deque.tcc: Trivial formatting fixes.
1449 2004-08-15  Paolo Carlini  <pcarlini@suse.de>
1451         * include/bits/deque.tcc: Trivial formatting fixes.
1453         * include/bits/locale_facets.tcc (num_get<>::do_get(&bool)):
1454         Remove unneded typedef.
1456         * include/bits/locale_facets.tcc: Very minor tweaks.
1458         * testsuite/22_locale/time_put/put/wchar_t/1.cc: Use proper
1459         type for the fill argument.
1460         * testsuite/22_locale/time_put/put/wchar_t/10.cc: Likewise.
1461         * testsuite/22_locale/time_put/put/wchar_t/2.cc: Likewise.
1462         * testsuite/22_locale/time_put/put/wchar_t/3.cc: Likewise.
1463         * testsuite/22_locale/time_put/put/wchar_t/4.cc: Likewise.
1464         * testsuite/22_locale/time_put/put/wchar_t/5.cc: Likewise.
1465         * testsuite/22_locale/time_put/put/wchar_t/6.cc: Likewise.
1466         * testsuite/22_locale/time_put/put/wchar_t/7.cc: Likewise.
1467         * testsuite/22_locale/time_put/put/wchar_t/8.cc: Likewise.
1469 2004-08-13  Paolo Carlini  <pcarlini@suse.de>
1471         * src/debug.cc (_Error_formatter::_M_print_string): Fix thinko,
1472         memmove is not needed, memcpy suffices.
1474 2004-08-13  Paolo Carlini  <pcarlini@suse.de>
1476         * include/std/std_fstream.h (class basic_ifstream,
1477         class basic_ofstream, class basic_fstream): Add const overloads
1478         of is_open, as per DR 365 [WP].
1479         * docs/html/ext/howto.html: Add an entry for DR 365.
1481 2004-08-12  Paolo Carlini  <pcarlini@suse.de>
1483         * configure.ac: Specify version 1.8.5 in AM_INIT_AUTOMAKE.
1485 2004-08-12  Paolo Carlini  <pcarlini@suse.de>
1487         PR libstdc++/16956
1488         * include/bits/sstream.tcc (basic_stringbuf<>::seekoff): Add __off
1489         to the returned value, reorganize a bit.
1490         * testsuite/27_io/basic_stringbuf/seekoff/char/16956.cc: New.
1491         * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/16956.cc: New.
1493         * testsuite/27_io/basic_stringbuf/seekoff/char/1.cc: Remove junk.
1494         * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc: Likewise.
1495         * testsuite/27_io/basic_stringbuf/seekpos/char/1.cc: Likewise.
1496         * testsuite/27_io/basic_stringbuf/seekpos/wchar_t/1.cc: Likewise.
1498 2004-08-12  Paul Brook  <paul@codesourcery.com>
1500         * config/cpu/arm/cxxabi_tweaks.h: Define __cxa_vec_ctor_return and
1501         _GLIBCXX_CXA_VEC_CTOR_RETURN.
1502         * config/cpu/generic/cxxabi_tweaks.h: Ditto.
1503         * libsupc++/cxxabi.h (__cxa_vec_ctor, __cxa_vec_cctor): Use
1504         __cxa_vec_ctor_return.
1505         * libsupc++/vec.cc (__cxa_vec_ctor, __cxa_vec_cctor): Ditto.
1506         Use _GLIBCXX_CXA_VEC_CTOR_RETURN.
1508 2004-08-12  Kelley Cook  <kcook@gcc.gnu.org>
1510         * Makefile.in, aclocal.m4, configure, include/Makefile.in,
1511         libmath/Makefile.in, libsupc++/Makefile.in, po/Makefile.in,
1512         src/Makefile.in, testsuite/Makefile.in: Regenerate
1514 2004-08-12  Jan Beulich  <jbeulich@novell.com>
1516         * config/locale/generic/ctype_members.cc
1517         (ctype<wchar_t>::_M_convert_to_wmask): Default case must not use 0 as
1518         initializer for return value, as that is invalid for enumerated types.
1519         * config/locale/gnu/ctype_members.cc
1520         (ctype<wchar_t>::_M_convert_to_wmask): Likewise.
1522 2004-08-11  Paolo Carlini  <pcarlini@suse.de>
1524         * testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc: Fix typo.
1526 2004-08-11  Paolo Carlini  <pcarlini@suse.de>
1528         * testsuite/27_io/basic_stringbuf/imbue/char/1.cc: Declare test
1529         variable.
1530         * testsuite/27_io/basic_stringbuf/imbue/wchar_t/1.cc: Ditto.
1531         * testsuite/27_io/basic_stringbuf/in_avail/char/1.cc: Remove junk.
1532         * testsuite/27_io/basic_stringbuf/in_avail/wchar_t/1.cc: Ditto.
1533         * testsuite/27_io/basic_stringbuf/sbumpc/char/1.cc: Ditto.
1534         * testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc: Ditto.
1535         * testsuite/27_io/basic_stringbuf/setbuf/char/1.cc: Ditto.
1536         * testsuite/27_io/basic_stringbuf/setbuf/wchar_t/1.cc: Ditto.
1537         * testsuite/27_io/basic_stringbuf/sgetc/char/1.cc: Ditto.
1538         * testsuite/27_io/basic_stringbuf/sgetc/wchar_t/1.cc: Ditto.
1539         * testsuite/27_io/basic_stringbuf/sgetn/char/1.cc: Ditto.
1540         * testsuite/27_io/basic_stringbuf/sgetn/wchar_t/1.cc: Ditto.
1541         * testsuite/27_io/basic_stringbuf/snextc/char/1.cc: Ditto.
1542         * testsuite/27_io/basic_stringbuf/snextc/wchar_t/1.cc: Ditto.
1543         * testsuite/27_io/basic_stringbuf/sputbackc/char/1.cc: Ditto.
1544         * testsuite/27_io/basic_stringbuf/sputbackc/wchar_t/1.cc: Ditto.
1545         * testsuite/27_io/basic_stringbuf/sputc/char/1.cc: Ditto.
1546         * testsuite/27_io/basic_stringbuf/sputc/wchar_t/1.cc: Ditto.
1547         * testsuite/27_io/basic_stringbuf/sputn/char/1.cc: Ditto.
1548         * testsuite/27_io/basic_stringbuf/sputn/wchar_t/1.cc: Ditto.
1549         * testsuite/27_io/basic_stringbuf/sungetc/char/1.cc: Ditto.
1550         * testsuite/27_io/basic_stringbuf/sungetc/wchar_t/1.cc: Ditto.
1552 2004-08-11  Paolo Carlini  <pcarlini@suse.de>
1553             Petur Runolfsson  <peturr02@ru.is>
1555         PR libstdc++/16959
1556         * src/ios_init.cc (ios_base::sync_with_stdio): Make sure the
1557         standard streams are constructed.
1558         * testsuite/27_io/ios_base/sync_with_stdio/16959.cc: New.
1560 2004-08-09  Paolo Carlini  <pcarlini@suse.de>
1562         * include/bits/stl_bvector.h: Trivial formatting fixes.
1564 2004-08-09  Paolo Carlini  <pcarlini@suse.de>
1566         * src/ios.cc (ios_base::_M_grow_words): Uglify the names.
1568 2004-08-07  Jonathan Wakely  <redi@gcc.gnu.org>
1569             Paolo Carlini  <pcarlini@suse.de>
1571         * src/debug.cc (_Error_formatter::_M_print_string): In order
1572         to print individual words from __string, _M_format_word can't
1573         be called since may be just sprintf, thus ignoring completely
1574         __n: instead, use memmove and append '\0' by hand.
1576 2004-08-07  Paolo Carlini  <pcarlini@suse.de>
1578         * config/locale/generic/c_locale.h (__convert_from_v): Don't
1579         use a default for __prec, assume __prec >= 0 and simplify.
1580         * config/locale/gnu/c_locale.h (__convert_from_v): Likewise.
1581         * include/bits/locale_facets.tcc (money_put<>::do_put(long double)):
1582         Pass format "%.*Lf" + precision == 0, equivalent to "%.0Lf".
1584 2004-08-04  Phil Edwards  <phil@codesourcery.com>
1586         * docs/html/configopts.html:  Emphasize that options change.
1587         * docs/html/17_intro/configury.html:  Update links.
1589 2004-08-03  Paolo Carlini  <pcarlini@suse.de>
1591         * include/bits/list.tcc: Trivial formatting fixes.
1593 2004-08-03  Mark Mitchell  <mark@codesourcery.com>
1595         * libsupc++/new_op.cc: Update comments.
1596         * libsupc++/del_op.cc: Likewise.
1598 2004-08-02  Mark Mitchell  <mark@codesourcery.com>
1600         * libsupc++/cxxabi.h: Make all declarations have default
1601         visibility.
1602         * libsupc++/exception: Likewise.
1603         * libsupc++/new: Likewise.
1604         * libsupc++/typeinfo: Likewise.
1605         * libsupc++/unwind-cxx.h: Likewise.
1606         * libsupc++/eh_alloc.cc (__cxa_allocate_exception): Put it into
1607         the __cxxabiv1 namespace.
1608         (__cxa_free_exception): Likewise.
1609         * libsupc++/eh_aux_runtime.cc (__cxa_bad_cast): Likewise.
1610         (__cxa_bad_typeid): Likewise.
1611         * libsupc++/eh_catch.cc (__cxa_begin_catch): Likewise.
1612         (__cxa_end_catch): Likewise.
1613         * libsupc++/eh_globals.cc (__cxa_get_globals_fast): Likewise.
1614         (__cxa_get_globals): Likewise.
1615         * libsupc++/eh_throw.cc (__cxa_throw): Likewise.
1616         (__cxa_rethrow): Likewise.
1617         * libsupc++/pure.cc (__cxa_pure_virtual): Likewise.
1618         * libsupc++/eh_type.cc: Include <cxxabi.h>.
1620         * Makefile.am (hosted_source): Add libmath and testsuite.
1621         (SUBDIRS): Remove them.
1622         * acinclude.m4: (GLIBCXX_ENABLED_HOSTED): Default to freestanding
1623         on arm*-*-symbianelf*.
1624         * crossconfig.m4: Add arm*-*-symbianelf* support.
1625         * include/c_std/std/std_cstdlib.h (stdlib.h): Do not include it
1626         when freestanding.  Do not bring names into std:: namespace with
1627         "using" when freestanding.  Declare required functions and macros
1628         when freestanding.
1629         * libsupc++/Makefile.am (c_sources): Do not include cp-demangle.c
1630         when freestanding.
1631         * libsupc++/del_op.cc: Declare "free" only when freestanding.
1632         * libsupc++/eh_alloc.cc (cstring): Include it only when hosted.
1633         (malloc): Declare when freestanding.
1634         (free): Likewise.
1635         (memset): Likewise.
1636         (__cxa_allocate_exception): Call malloc, not std::malloc.  Likewise
1637         for memset.
1638         (__cxa_free_exception): Likewise for free.
1639         * libsupc++/new_op.cc: Declare "malloc" when freestanding.
1640         * libsupc++/pure.cc (writestr): Define to nothing when
1641         freestanding.
1642         * libsupc++/vterminate.cc: Do not define anything when
1643         freestanding.
1644         * Makefile.in: Regenerated.
1645         * aclocal.m4: Likewise.
1646         * configure: Likewise.
1647         * include/Makefile.in: Likewise.
1648         * libmath/Makefile.in: Likewise.
1649         * libsupc++/Makefile.in: Likewise.
1650         * po/Makefile.in: Likewise.
1651         * src/Makefile.in: Likewise.
1652         * testsuite/Makefile.in: Likewise.
1654 2004-08-01  Matt Austern  <austern@apple.com>
1656         PR libstdc++/16844
1657         * include/bits/stl_list.h (_M_create_node): Remove unused
1658         zero-argument version.
1659         * include/ext/slist (_M_create_node): Pass two arguments to
1660         allocator's construct() member function.
1661         * testsuite/23_containers/deque/explicit_instantiation.cc: New.
1662         * testsuite/23_containers/list/explicit_instantiation.cc: New.
1663         * testsuite/23_containers/vector/explicit_instantiation.cc: New.
1664         * testsuite/23_containers/map/explicit_instantiation.cc: New.
1665         * testsuite/23_containers/set/explicit_instantiation.cc: New.
1666         * testsuite/23_containers/multimap/explicit_instantiation.cc: New.
1667         * testsuite/23_containers/multiset/explicit_instantiation.cc: New.
1668         * testsuite/ext/hash_set_explicit_instantiation.cc: New.
1669         * testsuite/ext/slist_explicit_instantiation.cc: New.
1671 2004-07-30  Paolo Carlini  <pcarlini@suse.de>
1673         * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
1674         num_get<>::_M_extract_int): In the main parsing loop delay the
1675         life of __q to the actual use point.
1677 2004-07-29  Paolo Carlini  <pcarlini@suse.de>
1679         PR libstdc++/14220
1680         * include/bits/locale_facets.tcc (num_put<>::_M_insert_float):
1681         Don't clip the precision passed down to __convert_from_v:
1682         22.2.2.2.2 nowhere says so.
1683         * testsuite/22_locale/num_put/put/char/14220.cc: New.
1684         * testsuite/22_locale/num_put/put/wchar_t/14220.c: Likewise.
1686 2004-07-29  Paolo Carlini  <pcarlini@suse.de>
1688         * docs/html/ext/lwg-active.html, lwg-defects.html: Import Revision 31.
1690 2004-07-29  Paolo Carlini  <pcarlini@suse.de>
1691             Petur Runolfsson  <peturr02@ru.is>
1693         PR libstdc++/12658 (continued)
1694         * src/locale_init.cc (locale::locale, locale::global): Use
1695         a single locale_mutex instead of two separate mutexes.
1697 2004-07-29  Paolo Carlini  <pcarlini@suse.de>
1699         PR libstdc++/16813
1700         * include/debug/map.h (insert(_InputIterator, _InputIterator)):
1701         Fix typo.
1702         * testsuite/23_containers/map/insert/16813.cc: New.
1704 2004-07-29  Phil Edwards  <phil@codesourcery.com>
1706         * docs/html/faq/index.html:  Update version references.  Make
1707         clear that code from SGI has diverged greatly.  Remove references
1708         to library snapshots and what's-new sections.
1709         * docs/html/faq/index.txt:  Regenerate.
1711 2004-07-28  Matt Austern  <austern@apple.com>
1713         * include/bits/stl_construct.h (_Destroy): New three-argument
1714         overload that takes an allocator argument.  Another inline
1715         three-argument overload that takes std::allocator and dispatches
1716         to the two-argument version.
1717         * include/bits/stl_uninitialized.h (__uninitialized_fill_n_aux):
1718         Change return type to void to match uninitialized_fill_n.
1719         (__uninitialized_copy_a_): New function.  Like uninitialized_copy
1720         except that it takes an allocator and uses it for construct and
1721         destroy.  If the allocator is std::allocator, dispatches to
1722         uninitialized_copy.
1723         (__uninitialized_fill_a): Likewise.
1724         (__uninitialized_fill_n_a): Likewise.
1725         (__uninitialized_copy_copy): Give it an allocator argument.
1726         (__uninitialized_fill_copy): Likewise.
1727         (__uninitialized_copy_fill): Likewise.
1728         * include/bits/deque.tcc: Use new forms defined in stl_construct.h
1729         and stl_uninitialized.h.  Replace use of single-argument _Construct
1730         and _Destroy with use of allocator's construct and destroy methods.
1731         * include/bits/list.tcc: Likewise.
1732         * include/bits/stl_deque.h: Likewise.
1733         * include/bits/stl_list.h: Likewise.
1734         * include/bits/stl_tree.h: Likewise.
1735         * include/bits/stl_vector.h: Likewise.
1736         * include/bits/vector.tcc: Likewise.
1737         * include/ext/hashtable.h: Use rebind so that allocator_type
1738         has correct type for a container's allocator.  Replace use of
1739         single-argument _Construct and _Destroy with use of allocator's
1740         construct and destroy methods.
1741         * include/ext/memory (__uninitialized_copy_n_a): New function.
1742         Like uninitialized_copy_n except that it takes an extra parameter,
1743         an allocator, and uses it for construct and destroy operations.
1744         * include/ext/rope: Use new forms defined in stl_construct.h,
1745         stl_uninitialized.h, and ext/memory.  Replace use of single-argument
1746         _Construct and _Destroy with allocator construct and destroy methods.
1747         * include/ext/ropeimpl.h: Likewise.
1748         * include/ext/slist.h: Likewise.
1749         * testsuite/testsuite_allocator.h (check_construct_destroy): New.
1750         * testsuite/testsuite_allocator.cc (check_construct_destroy): New.
1751         * testsuite/23_containers/deque/check_construct_destroy.cc: New.
1752         * testsuite/23_containers/list/check_construct_destroy.cc: New.
1753         * testsuite/23_containers/set/check_construct_destroy.cc: New.
1754         * testsuite/23_containers/vector/check_construct_destroy.cc: New.
1755         * testsuite/ext/hash_check_construct_destroy.cc: New.
1756         * testsuite/ext/slist_check_construct_destroy.cc: New.
1758 2004-07-28  Alexandre Oliva  <aoliva@redhat.com>
1760         2003-10-01  Eric Christopher  <echristo@redhat.com>
1761         * config/cpu/sh/atomicity.h (__exchange_and_add): Remove 'm'
1762         constraint.
1763         2003-07-09  Alexandre Oliva  <aoliva@redhat.com>
1764         * config/cpu/sh/atomicity.h: New.  Use movli and movco on SH4a.
1766 2004-07-23  Benjamin Kosnik  <bkoz@redhat.com>
1768         PR libstdc++/16678
1769         * include/bits/locale_facets.tcc: Fix for -Werror.
1771 2004-07-23  Jonathan Wakely  <redi@gcc.gnu.org>
1773         * docs/html/debug.html: Say debug mode only available since 3.4.0.
1775 2004-07-21  Benjamin Kosnik  <bkoz@redhat.com>
1777         * docs/doxygen/mainpage.html: Clarify links.
1778         * docs/doxygen/stdheader.cc: Add files.
1779         * docs/doxygen/style.css: Remove bolds, add h2, h3 styles.
1780         * docs/doxygen/user.cfg.in: New options, wrap.
1782 2004-07-20  Danny Smith  <dannysmith@users.sourceforge.net>
1784         * include/c_std/std_cwchar.h (wcsstr): Correct signature.
1786 2004-07-19  Benjamin Kosnik  <bkoz@redhat.com>
1788         PR libstdc++/15488
1789         * testsuite/lib/libstdc++.exp (v3-copy-files): Revert.
1791 2004-07-17  Richard Sandiford  <rsandifo@redhat.com>
1793         PR bootstrap/16469
1794         * scripts/create_testsuite_files: Pass -print to find.
1796 2004-07-15  Paolo Carlini  <pcarlini@suse.de>
1798         * docs/html/ext/lwg-active.html, lwg-defects.html: Import Revision 30.
1799         * docs/html/ext/howto.html: Tweak entries for DRs 167/253/389/402.
1801 2004-07-15  Jakub Jelinek  <jakub@redhat.com>
1803         PR libstdc++/14697
1804         * acinclude.m4 (glibcxx_shared_libgcc): Correct
1805         glibcxx_shared_libgcc test for multilibs.
1806         * configure: Rebuilt.
1808 2004-07-14  Paolo Carlini  <pcarlini@suse.de>
1810         PR libstdc++/16505
1811         * include/bits/stl_uninitialized.h (uninitialized_fill_n): Fix
1812         the signature to return void, as per 20.4.4.3.
1813         * include/bits/stl_vector.h (vector::vector(size_type,
1814         const value_type&, const allocator_type&), vector::vector(size_type),
1815         vector::_M_initialize_dispatch): Adjust callers.
1816         * include/bits/vector.tcc (vector<>::_M_fill_assign,
1817         vector<>::_M_fill_insert): Likewise.
1818         * testsuite/20_util/memory/16505.cc: New.
1820 2004-07-14  Paolo Carlini  <pcarlini@suse.de>
1822         * testsuite/22_locale/locale/cons/12658_thread-1.cc,
1823         12658_thread-2.cc: Use __gnu_test::try_named_locale.
1825 2004-07-13  Benjamin Kosnik  <bkoz@redhat.com>
1827         * docs/html/ext/mt_allocator.html: Add docs for _Tune.
1828         * include/ext/mt_allocator.h (__mt_alloc::_S_get_options): Make public.
1829         (__mt_alloc::_S_set_options): Same.
1830         Add to comments.
1832 2004-07-13  Benjamin Kosnik  <bkoz@redhat.com>
1834         * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Add allocator defaults
1835         for linux.
1836         * configure: Regenerated.
1838 2004-07-13  Paolo Carlini  <pcarlini@suse.de>
1840         * testsuite/22_locale/locale/cons/12658_thread.cc: Move/rename
1841         to 12658_thread-1.cc and xfail.
1842         * testsuite/22_locale/locale/cons/12658_thread-2.c: New, much
1843         simpler version of 12658_thread-1.cc, still failing on 3_3 and
1844         not failing on 3_4/mainline - both on single processor and
1845         multiprocessor machines.
1847 2004-07-12  Benjamin Kosnik  <bkoz@redhat.com>
1849         * docs/html/abi.html: Remove non-public qualification.
1851         * include/bits/concurrence.h: Tweak comments.
1853 2004-07-11  Paolo Carlini  <pcarlini@suse.de>
1855         Add wchar_t counterparts of the basic_streambbuf<char> tests.
1856         * testsuite/27_io/basic_streambuf/cons/wchar_t/1.cc: New.
1857         * testsuite/27_io/basic_streambuf/imbue/wchar_t/1.cc, 9322.cc:
1858         Likewise.
1859         * testsuite/27_io/basic_streambuf/in_avail/wchar_t/9701-3.cc: Likewise.
1860         * testsuite/27_io/basic_streambuf/overflow/wchar_t/1.cc, 2.cc,
1861         3599.cc: Likewise.
1862         * testsuite/27_io/basic_streambuf/sgetc/wchar_t/1.cc: Likewise.
1863         * testsuite/27_io/basic_streambuf/sgetn/wchar_t/1.cc: Likewise.
1864         * testsuite/27_io/basic_streambuf/sputbackc/wchar_t/9538.cc: Likewise.
1865         * testsuite/27_io/basic_streambuf/sputc/wchar_t/1057.cc: Likewise.
1866         * testsuite/27_io/basic_streambuf/sputn/wchar_t/1.cc, 1057.cc:
1867         Likewise.
1868         * testsuite/27_io/basic_streambuf/sync/wchar_t/1057.cc: Likewise.
1870         * testsuite/27_io/basic_streambuf/imbue/char/1.cc, 9322.cc: Minor
1871         tweaks.
1872         * testsuite/27_io/basic_streambuf/overflow/char/2.cc, 3599.cc:
1873         Likewise.
1874         * testsuite/27_io/basic_streambuf/sputn/char/1057.cc: Likewise.
1875         * testsuite/27_io/basic_streambuf/sync/char/1057.cc: Likewise.
1877 2004-07-11  Phil Edwards  <phil@codesourcery.com>
1879         * acinclude.m4:  Cosmetic shell syntax fixes.
1880         * configure.ac:  Bring comment inline with reality.
1881         * configure.host:  Both of the above.  Move 'arm' case to right
1882         place in host_cpu switch.
1883         * aclocal.m4, configure:  Regenerate.
1885 2004-07-09  Paolo Carlini  <pcarlini@suse.de>
1887         Add wchar_t counterparts of the basic_stringbuf<char> tests.
1888         * testsuite/27_io/basic_stringbuf/imbue/wchar_t/1.cc, 9322.cc: New.
1889         * testsuite/27_io/basic_stringbuf/in_avail/wchar_t/1.cc: Likewise.
1890         * testsuite/27_io/basic_stringbuf/overflow/wchar_t/1.cc, 2.cc,
1891         3599.cc, 9988.cc: Likewise.
1892         * testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc, 9825.cc:
1893         Likewise.
1894         * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc, 2.cc:
1895         Likewise.
1896         * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc, 2.cc, 3.cc:
1897         Likewise.
1898         * testsuite/27_io/basic_stringbuf/setbuf/wchar_t/1.cc, 2.cc, 3.cc:
1899         Likewise.
1900         * testsuite/27_io/basic_stringbuf/sgetc/wchar_t/1.cc: Likewise.
1901         * testsuite/27_io/basic_stringbuf/sgetn/wchar_t/1.cc: Likewise.
1902         * testsuite/27_io/basic_stringbuf/snextc/wchar_t/1.cc: Likewise.
1903         * testsuite/27_io/basic_stringbuf/sputbackc/wchar_t/1.cc, 9425.cc:
1904         Likewise.
1905         * testsuite/27_io/basic_stringbuf/sputc/wchar_t/1.cc, 1057.cc,
1906         9404-1.cc: Likewise.
1907         * testsuite/27_io/basic_stringbuf/sputn/wchar_t/1.cc, 1057.cc,
1908         9404-2.cc: Likewise.
1909         * testsuite/27_io/basic_stringbuf/str/wchar_t/1.cc, 2.cc, 3.cc,
1910         3955.cc: Likewise.
1911         * testsuite/27_io/basic_stringbuf/sungetc/wchar_t/1.cc: Likewise.
1912         * testsuite/27_io/basic_stringbuf/sync/wchar_t/1057.cc: Likewise.
1914 2004-07-08  Paolo Carlini  <pcarlini@suse.de>
1916         * include/bits/gslice.h: Trivial formatting fixes.
1917         * include/bits/gslice_array.h: Likewise.
1918         * include/bits/indirect_array.h: Likewise.
1919         * include/bits/mask_array.h: Likewise.
1920         * include/bits/slice_array.h: Likewise.
1921         * include/bits/valarray_after.h: Likewise.
1922         * include/bits/valarray_array.h: Likewise.
1923         * include/bits/valarray_before.h: Likewise.
1924         * include/std/std_valarray.h: Likewise.
1926 2004-07-08  Benjamin Kosnik  <bkoz@redhat.com>
1928         PR c++/16169
1929         * include/bits/basic_string.h (basic_string::operator=): Revert.
1931 2004-07-07  Benjamin Kosnik  <bkoz@redhat.com>
1933         * configure.ac (libtool_VERSION): To 6:2:0.
1934         * configure: Regenerated.
1936         * testsuite/testsuite_abi.cc (check_version): Add 3.4.2.
1938 2004-07-07  Aaron W. LaFramboise  <aaronraolete36@aaronwl.com>
1940         PR libstdc++/16411
1941         * config/linker-map.gnu: Add stdio_sync_filebuf::file exports.
1943 2004-07-07  Benjamin Kosnik  <bkoz@redhat.com>
1945         * docs/html/abi.html: Updates for 3.4.1 release. Add summary of
1946         -Weffc++ issues.
1948 2004-07-07  Paolo Carlini  <pcarlini@suse.de>
1950         PR libstdc++/16401
1951         * include/bits/sstream.tcc (overflow): When reallocating _M_string
1952         use an exponential grow policy.
1953         * testsuite/27_io/basic_stringbuf/overflow/char/1.cc: New.
1954         * testsuite/performance/27_io/stringbuf_overflow.cc: New.
1956 2004-07-06  Anssi Hannula  <anssi.hannula@mbnet.fi>
1958         PR libstdc++/15928
1959         * crossconfig.m4: Add in bits for djgpp.
1960         * configure: Regenerate.
1962 2004-07-05  Jonathan Wakely  <redi@gcc.gnu.org>
1964         * testsuite/23_containers/{set,multiset}/14340.cc: Fix typos in
1965         instantiation of set and multiset (functor param given as int).
1967 2004-07-04  Paolo Carlini  <pcarlini@suse.de>
1969         * include/bits/basic_string.h: Trivial formatting fixes and/or
1970         const-ification of some variables.
1971         * include/bits/deque.tcc: Likewise.
1972         * include/bits/stl_algobase.h: Likewise.
1973         * include/bits/stl_bvector.h: Likewise.
1974         * include/bits/stl_construct.h: Likewise.
1975         * include/bits/stl_deque.h: Likewise.
1976         * include/bits/stl_pair.h: Likewise.
1977         * include/bits/stl_vector.h: Likewise.
1978         * include/bits/vector.tcc: Likewise.
1980 2004-07-04  Paolo Carlini  <pcarlini@suse.de>
1982         * testsuite/25_algorithms/copy/1.cc: Add instantiations for
1983         systems with no COMDAT or weak support.
1984         * testsuite/25_algorithms/copy/2.cc: Likewise.
1985         * testsuite/25_algorithms/copy/3.cc: Likewise.
1986         * testsuite/25_algorithms/copy/4.cc: Likewise.
1988 2004-07-03  Paul Brook  <paul@codesourcery.com>
1990         * configure.ac: Set ABI_TWEAKS_SRCDIR.
1991         * configure.host: Set abi_tweaks_dir.  Check for atomicity.h when
1992         setting atomicity_dir.  Override type_cpu for arm based targets.
1993         * include/Makefile.am (host_headers): Add cxxabi_tweaks.h.
1994         * libsupc++/cxxabi.h: Include bits/cxxabi.h. Don't declare __guard.
1995         * libsupc++/guard.cc: Use definitions from cxxabi_tweaks.h.
1996         * libsupc++/vec.cc: Ditto.
1997         * config/cpu/arm/cxxabi_tweaks.h: New file.
1998         * config/cpu/generic/cxxabi_tweaks.h: New file.
1999         * */Makefile.in: Regenerate.
2000         * configure: Regenerate.
2002 2004-07-02  Paolo Carlini  <pcarlini@suse.de>
2004         * include/bits/type_traits.h (_Is_normal_iterator): Move...
2005         * include/bits/cpp_type_traits.h: ... here, renamed to
2006         __is_normal_iterator and consistent with the other traits.
2007         * include/bits/stl_algobase.h (__copy_ni1, __copy_ni2): Convert
2008         to the struct __copy_normal and three specializations.
2009         (__copy_backward_output_normal_iterator,
2010         __copy_backward_input_normal_iterator): Likewise, convert to
2011         the struct __copy_backward_normal and three specializations.
2012         (copy, copy_backward): Use the latter.
2013         (__copy_aux, __copy_backward_aux): Very minor tweaks.
2015 2004-07-01  Paolo Carlini  <pcarlini@suse.de>
2017         * include/bits/stl_algobase.h (__copy_trivial): Remove.
2018         (__copy_aux2): Rewrite as __copy_aux to use __is_pointer,
2019         __is_trivially_copyable, __are_same and __copy::copy.
2020         (__copy): Rewrite as a class template and two specializations.
2021         (__copy_ni2): Simplify, just call __copy_aux.
2023         * include/bits/stl_algobase.h (__copy_backward_aux): Add __are_same
2024         check.
2025         * testsuite/25_algorithms/copy/1.cc, 2.cc, 3.cc, 4.cc: Test also
2026         for destination value type != source value type.
2028 2004-07-01  Benjamin Kosnik  <bkoz@redhat.com>
2029             Per Bothner  <per@bothner.com>
2030             Mohan Embar  <gnustuff@thisiscool.com>
2032         PR libstdc++/16248
2033         * include/bits/concurrence.h (__glibcxx_mutex_type): New.
2034         (__glibcxx_mutex): Encapsulate mutex init function into type for
2035         threaded configurations without __GTHREAD_MUTEX_INIT.
2036         (lock::lock): Make device member a reference.
2037         (lock::~lock): Same.
2038         * include/ext/pool_allocator.h (__pool_base::_M_get_mutex): Change
2039         to mutex_type.
2040         * src/allocator.cc: Same.
2042 2004-06-30  Brad Spencer  <spencer@infointeractive.com>
2044         * include/ext/mt_allocator.h: Handle allocations at static
2045         initialization that happen before _S_options is (automatically)
2046         constructed; set _S_init even if _M_force_new is true.
2048 2004-06-30  Benjamin Kosnik  <bkoz@redhat.com>
2050         * config/linker-map.gnu: Revert new exports.
2052 2004-06-30  Benjamin Kosnik  <bkoz@redhat.com>
2053             Stuart Anderson  <anderson@netsweng.com>
2055         * config/linker-map.gnu: Add destructor exports for abstract base
2056         classes to conform to LSB.
2058 2004-06-30  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2059             Paolo Carlini  <pcarlini@suse.de>
2061         * include/bits/cpp_type_traits.h: Add __is_pointer and
2062         __is_trivially_copyable.
2063         * include/bits/stl_algobase.h (fill, fill_n): Slightly
2064         tweak to use the latter.
2065         (__copy_backward_dispatch): Remove.
2066         (__copy_backward_aux): Rewrite to use __is_pointer and
2067         __is_trivially_copyable and __copy_backward::copy_b.
2068         (__copy_backward): Rewrite as a class template and two
2069         specializations.
2071 2004-06-30  Paolo Carlini  <pcarlini@suse.de>
2073         * testsuite/25_algorithms/copy.cc: Move to...
2074         * testsuite/25_algorithms/copy/1.cc: ... here, extend.
2075         * testsuite/25_algorithms/copy/2.cc: New.
2076         * testsuite/25_algorithms/copy/3.cc: New.
2077         * testsuite/25_algorithms/copy/4.cc: New.
2079 2004-06-29  Paul Brook  <paul@codesourcery.com>
2081         * libsupc++/vec.cc (__cxa_vec_new2, __cxa_vec_new3): Store the
2082         element size in the cookie.
2084 2004-06-28  Paolo Carlini  <pcarlini@suse.de>
2086         * include/bits/cpp_type_traits.h: Move the additions to
2087         namespace __gnu_internal outside of namespace std; trivial
2088         formatting fixes.
2090 2004-06-28  Benjamin Kosnik  <bkoz@redhat.com>
2092         * include/debug/safe_base.h (__gnu_debug::_Safe_sequence_base):
2093         Revert -Weffc++ changes that defined copy ctory and or assignment
2094         operator.
2095         * libsupc++/tinfo.cc (__upcast_result): Same.
2097 2004-06-28  Paolo Carlini  <pcarlini@suse.de>
2099         * src/localename.cc (locale::_Impl::_Impl): Slightly improve
2100         the algorithm used to name the categories.
2102 2004-06-28  Paolo Bonzini  <bonzini@gnu.org>
2104         * include/Makefile.am: Give a .gch extension to
2105         the PCH files, not only to the directory.
2106         * include/Makefile.in: Regenerate.
2108 2004-06-28  Paolo Carlini  <pcarlini@suse.de>
2110         * config/locale/gnu/monetary_members.cc
2111         (moneypunct<wchar_t>::_M_initialize_moneypunct): Clean up
2112         assignments of _M_decimal_point and _M_thousands_sep.
2114 2004-06-27  Paolo Carlini  <pcarlini@suse.de>
2116         * docs/html/17_intro/contribute.html: Update some links.
2117         * docs/html/17_intro/porting-howto.html: Likewise.
2118         * docs/html/17_intro/porting-howto.xml: Likewise.
2119         * docs/html/18_support/howto.html: Likewise.
2120         * docs/html/21_strings/howto.html: Likewise.
2121         * docs/html/27_io/howto.html: Likewise.
2122         * docs/html/configopts.html: Likewise.
2123         * docs/html/ext/howto.html: Likewise.
2124         * docs/html/faq/index.html: Likewise.
2125         * docs/html/install.html: Don't mention 2.x compilers.
2127 2004-06-27  Paolo Carlini  <pcarlini@suse.de>
2129         * include/ext/rope: Trivial formatting fixes.
2130         * include/ext/ropeimpl.h: Likewise.
2132 2004-06-26  Paolo Carlini  <pcarlini@suse.de>
2134         PR libstdc++/16210
2135         * acinclude.m4 (GLIBCXX_ENABLE_LONG_LONG): Do not check for the
2136         availability of strto(u)ll, not used anymore in the iostreams.
2137         * configure: Regenerate.
2139 2004-06-25  Benjamin Kosnik  <bkoz@redhat.com>
2141         PR libstdc++/16182
2142         * linkage.m4 (GLIBCXX_CHECK_BUILTIN_MATH_DEC): Revert to
2143         AC_DEFINE_UNQUOTED.
2144         * configure: Regenerate.
2146 2004-06-25  Paul Brook  <paul@codesourcery.com>
2148         * libsupc++/cxxabi.h: Define __ARM_EABI__
2149         (__guard): Use it.
2150         * libsupc++/guard.h (__cxa_guard_acquire, __cxa_guard_release): Ditto.
2152 2004-06-25  Paul Brook  <paul@codesourcery.com>
2154         * include/bits/concurrence.h: Still create mutex object when
2155         single-threaded.
2157 2004-06-25  Paolo Carlini  <pcarlini@suse.de>
2159         * include/bits/stl_algobase.h (fill, fill_n): Revert last
2160         change: actually we need to copy construct an object of type
2161         _Tp, not of type iterator_traits<>::value_type, therefore the
2162         code is ok.
2164 2004-06-25  Paolo Carlini  <pcarlini@suse.de>
2166         * include/bits/stl_algobase.h (fill, fill_n): Tighten the
2167         dispatch: use iterator_traits<>::value_type, not _Tp.
2169 2004-06-25  Paolo Carlini  <pcarlini@suse.de>
2171         * testsuite/25_algorithms/fill/1.cc: Tweak instantiations.
2172         * testsuite/25_algorithms/fill/2.cc: Likewise.
2174 2004-06-25  Dan Nicolaescu  <dann@ics.uci.edu>
2175             Paolo Carlini  <pcarlini@suse.de>
2177         * include/bits/stl_algobase.h (__fill, __fill_n): New helpers
2178         for fill and fill_n, respectively: when copying is cheap, use a
2179         temporary to avoid a memory read in each iteration.
2181 2004-06-25  Paolo Carlini  <pcarlini@suse.de>
2183         * testsuite/25_algorithms/fill/1.cc: New.
2184         * testsuite/25_algorithms/fill/2.cc: Likewise.
2186 2004-06-25  Benjamin Kosnik  <bkoz@redhat.com>
2188         * include/debug/formatter.h (__gnu_debug::_Error_formatter):
2189         Remove copy constructor and assignment operator.
2191 2004-06-24  Benjamin Kosnik  <bkoz@redhat.com>
2193         * include/bits/concurrence.h (__gnu_cxx::lock): New.
2194         * include/ext/pool_allocator.h (__pool_base::_Lock::_S_lock): Remove.
2195         (__pool_base::_M_get_mutex): New.
2196         * include/bits/allocator.h: Tweak.
2197         * src/allocator.cc (__pool_base::_M_get_free_list): Correct offset.
2198         * config/linker-map.gnu: Remove __pool_base::_Lock::_S_lock.
2199         * include/bits/stl_threads.h: Remove.
2200         * include/Makefile.am: Also here.
2201         * include/Makefile.in: Regenerate.
2203         * src/locale_init.cc: Use __gnu_cxx::lock.
2205         * src/allocator.cc: Move all instantiations...
2206         * src/allocator-inst.cc: ...here.
2208 2004-06-23  Andrew Pinski  <apinski@apple.com>
2210         * linkage.m4: Remove check for libmx.
2211         * configure: Regenerate.
2213 2004-06-23  Paolo Carlini  <pcarlini@suse.de>
2215         PR libstdc++/16154
2216         * include/bits/boost_concept_check.h (struct _TrivialIteratorConcept):
2217         Don't require the _DefaultConstructibleConcept.
2218         (struct _ForwardIteratorConcept): Require it here.
2220 2004-06-22  Alexandre Oliva  <aoliva@redhat.com>
2222         * include/bits/istream.tcc (getline): Make sure arguments passed
2223         to min/max have the same type.
2224         * include/bits/locale_facets.tcc (__verify_grouping): Likewise.
2225         * include/bits/stl_deque.h (_Deque_base::_Deque_base): Likewise.
2227 2004-06-22  Benjamin Kosnik  <bkoz@redhat.com>
2229         * docs/html/abi.html: Update links.
2231 2004-06-22  Paolo Carlini  <pcarlini@suse.de>
2233         * testsuite/26_numerics/complex_inserters_extractors.cc,
2234         complex_value.cc, buggy_complex.cc: Move to...
2235         * testsuite/26_numerics/complex/: ... here.
2236         * testsuite/26_numerics/c99_classification_macros_c++.cc,
2237         c99_classification_macros_c.cc, c_math.cc, c_math_dynamic.cc,
2238         fabs_inline.cc: Move to...
2239         * testsuite/26_numerics/cmath/: ... here.
2240         * testsuite/26_numerics/binary_closure.cc, slice.cc,
2241         slice_array_assignment.cc, valarray.cc, valarray_const_bracket.cc,
2242         valarray_name_lookup.cc, valarray_operators.cc,
2243         valarray_subset_assignment.cc: Move to...
2244         * testsuite/26_numerics/valarray/: ... here (new dir).
2245         * testsuite/26_numerics/sum_diff.cc: Move to...
2246         * testsuite/26_numerics/numeric/: ... here (new dir).
2248 2004-06-22  Paolo Carlini  <pcarlini@suse.de>
2250         * include/std/std_istream.h (ignore(streamsize __n = 1,
2251         int_type __delim = traits_type::eof())): Split into...
2252         (ignore(), ignore(streamsize __n), ignore(streamsize __n,
2253         int_type __delim)): The first two can be much more simpler
2254         and efficient than the fully general case; also, the last
2255         two can take advantage of the same mechanism already used
2256         for getline.
2257         * include/bits/istream.tcc (ignore(streamsize __n = 1,
2258         int_type __delim = traits_type::eof()): Remove.
2259         (ignore(), ignore(streamsize __n), ignore(streamsize __n,
2260         int_type __delim)): New.
2262 2004-06-21  Loren J. Rittle  <ljrittle@acm.org>
2264         * config/linker-map.gnu: Use wildcards for
2265         __basic_file::sys_open(FILE*, _Ios_Openmode).
2267 2004-06-20  Paolo Carlini  <pcarlini@suse.de>
2269         * testsuite/27_io/basic_istream/ignore/char/3.cc: New.
2271 2004-06-18  Paolo Carlini  <pcarlini@suse.de>
2273         * include/ext/mt_allocator (__mt_alloc<>::_Tune): Add _M_align,
2274         the alignment requested.
2275         (__mt_alloc<>::_Tune::_Tune): Tweak consistently.
2276         (__mt_alloc<>::allocate): Use it instead of sizeof(_Block_record).
2277         (__mt_alloc<>::deallocate): Likewise.
2279 2004-06-18  Paolo Carlini  <pcarlini@suse.de>
2281         PR libstdc++/16020
2282         * include/debug/safe_base.h
2283         (_Safe_sequence_base::_Safe_sequence_base(const _Safe_sequence_base&),
2284         _Safe_sequence_base::operator=): Provide definitions.
2285         * testsuite/23_containers/bitset/cons/16020.cc: New.
2287 2004-06-18  Benjamin Kosnik  <bkoz@redhat.com>
2289         * include/ext/pool_allocator.h: Qualify __throw_bad_alloc.
2290         (__pool_base): Remove unused template parameter.  Add
2291         protected. Move lock data into __pool_base::_Lock. Remove static
2292         on member functions.
2293         (__pool_base::_M_get_free_list): New.
2294         (__pool_alloc): Move _S_force new here.
2295         * src/allocator.cc: Move out of line __pool_base definitions here.
2296         * config/linker-map.gnu: Export bits from __pool_base.
2298 2004-06-18  Paolo Carlini  <pcarlini@suse.de>
2300         * config/locale/gnu/numeric_members.cc
2301         (numpunct<wchar_t>::_M_initialize_numpunct): Clean up
2302         assignments of _M_decimal_point and _M_thousands_sep.
2303         * config/locale/gnu/time_members.cc
2304         (__timepunct<wchar_t>::_M_initialize_timepunct): Clean up
2305         and reformat assignments of date and time fields.
2307 2004-06-16  Paolo Carlini  <pcarlini@suse.de>
2309         * include/ext/rope (rope(_CharT, const allocator_type&)): Fix
2310         to use _Data_allocate.
2311         * include/ext/ropeimpl.h (rope<>::_S_leaf_concat_char_iter): Likewise.
2312         (rope<>::_S_substring): Likewise.
2313         (rope<>::rope(size_t, _CharT, const allocator_type&)): Likewise.
2314         (rope<>::c_str()): Likewise.
2315         (rope<>::replace_with_c_str()): Likewise.
2317         * include/ext/ropeimpl.h (_Rope_iterator_base<>::_S_setbuf):
2318         Correctly qualify _S_leaf, _S_function, etc., with _Rope_constants::,
2319         not _RopeRep.
2320         (_Rope_iterator_base<>::_S_setcache): Likewise.
2321         (_Rope_iterator_base<>::_S_setcache_for_incr): Likewise.
2322         (rope<>::_S_substring): Likewise.
2323         (rope<>::_S_dump): Likewise.
2324         (rope<>::_S_fetch_ptr): Likewise.
2325         (rope<>::_S_compare): Likewise.
2326         (rope<>::replace_with_c_str()): Likewise.
2328         * testsuite/ext/rope.cc: Rename to testsuite/ext/rope/1.cc.
2329         * testsuite/ext/rope/2.cc: New.
2331 2004-06-16  Paolo Carlini  <pcarlini@suse.de>
2332             Matt Austern  <austern@apple.com>
2334         * testsuite/ext/rope/3.cc: New.
2336 2004-06-15  Paolo Bonzini  <bonzini@gnu.org>
2338         * acinclude.m4: Remove useless multilib configury.
2339         * Makefile.am: Remove useless multilib rules.
2340         * aclocal.m4: Regenerate.
2341         * Makefile.in: Regenerate.
2342         * configure: Regenerate.
2344 2004-06-15  Paolo Carlini  <pcarlini@suse.de>
2346         * include/ext/hashtable.h: Trivial formatting fixes.
2347         * include/ext/rb_tree: Likewise.
2349 2004-06-14  Paolo Carlini  <pcarlini@suse.de>
2351         * include/ext/hash_map: Trivial formatting fixes.
2352         * include/ext/hash_set: Likewise.
2353         * include/ext/memory: Likewise.
2354         * include/ext/numeric: Likewise.
2356 2004-06-14  Benjamin Kosnik  <bkoz@redhat.com>
2358         * Makefile.in: Regenerate with automake 1.8.5.
2359         * aclocal.m4: Same.
2360         * include/Makefile.in: Same.
2361         * libmath/Makefile.in: Same.
2362         * libsupc++/Makefile.in: Same.
2363         * po/Makefile.in: Same.
2364         * src/Makefile.in: Same.
2365         * testsuite/Makefile.in: Same.
2367 2004-06-14  Paolo Carlini  <pcarlini@suse.de>
2369         * include/ext/slist: Trivial formatting fixes.
2371 2004-06-14  Paolo Carlini  <pcarlini@suse.de>
2373         * include/bits/locale_facets.tcc (time_get<>::_M_extract_name):
2374         Don't use the 'magic number' 10 in the computation of __minlen;
2375         never access __name past __minlen; in the loop over __i3, don't
2376         decrease __nmatches and increase __i3 at once, only either of
2377         the two; tidy.
2379 2004-06-13  Paolo Carlini  <pcarlini@suse.de>
2381         * include/bits/locale_facets.tcc (time_get<>::do_get_time,
2382         time_get<>::do_get_date): Use only once _M_extract_via_format,
2383         instead of going through "%X"/"%x" and calling it two times
2384         (+ using widen).
2386 2004-06-12  Paolo Carlini  <pcarlini@suse.de>
2388         * include/ext/algorithm: Trivial formatting fixes.
2389         * include/ext/functional: Likewise.
2390         * include/ext/hash_fun.h: Likewise.
2391         * include/ext/iterator: Likewise.
2393 2004-06-12  Paolo Carlini  <pcarlini@suse.de>
2395         * include/bits/basic_string.tcc (find(const _CharT*, size_type,
2396         size_type)): Reimplement using std::search.
2397         * src/string-inst.cc: Instantiate std::search for char/wchar_t.
2399 2004-06-12  Dhruv Matani  <dhruvbird@gmx.net>
2401         * testsuite/performance/21_strings/string_find.cc: New.
2403 2004-06-10  Aaron W. LaFramboise  <aaronraolete36@aaronwl.com>
2405         * include/bits/istream.tcc (istream::ignore): Fix for -Wuninitialized.
2407 2004-06-10  Jan van Dijk  <jan@etpmod.phys.tue.nl>
2409         * include/std/std_complex.h (sin(const complex<_Tp>& __z)): Make
2410         this function return a value.
2412 2004-06-09  Paolo Carlini  <pcarlini@suse.de>
2414         PR libstdc++/15775
2415         * include/bits/stl_deque.h: Consistently with stl_set.h, define
2416         pointer as allocator's pointer, likewise for reference,
2417         const_pointer, and const_reference.
2418         * include/bits/stl_list.h: Likewise.
2419         * include/bits/stl_map.h: Likewise.
2420         * include/bits/stl_multimap.h: Likewise.
2421         * include/bits/stl_vector.h: Likewise.
2423 2004-06-09  Benjamin Kosnik  <bkoz@redhat.com>
2425         * crossconfig.m4: Remove signbit, signbitf, signbitl.
2426         * linkage.m4: Comment LIBMATHOBJS, tweak others.  AC_DEFINES for
2427         builtin math functions instead of AC_DEFINE_UNQUOTED.
2428         * configure: Regenerate.
2430 2004-06-08  Benjamin Kosnik  <bkoz@redhat.com>
2432         * docs/doxygen/filter.sed: Rename _GLIBCXX_STD to std.
2433         * docs/doxygen/mainpage.html: Remove links.
2435 2004-06-08  Jason Merrill  <jason@redhat.com>
2437         * config/linker-map.gnu: Use wildcards for
2438         __basic_file::{xsgetn,xsputn,seekoff,xsputn_2}.
2440 2004-06-08  Paolo Carlini  <pcarlini@suse.de>
2442         * include/ext/pool_allocator.h: Convert to a global free-list,
2443         as per the original SGI/HP design: move the implementation
2444         details to struct __pool_base, from which __pool_alloc derives.
2445         * src/allocator.cc: Instantiate __pool_base.
2447 2004-06-07  Dhruv Matani  <dhruvbird@gmx.net>
2448             Paolo Carlini  <pcarlini@suse.de>
2450         * testsuite/testsuite_performance.h
2451         (resource_counter::allocated_memory): Make it return the right
2452         number of bytes requested by the allocators/application. This is
2453         the sbrk+mmaped memory.
2455 2004-06-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2457         * include/std/std_complex.h (log): Tidy.
2459 2004-05-31  Benjamin Kosnik  <bkoz@redhat.com>
2461         * config/linker-map.gnu (GLIBCXX_3.4.1): Add.
2462         * testsuite/testsuite_abi.cc: Same.
2463         * configure.ac (libtool_VERSION): Bump to 6:1:0.
2464         * configure: Regenerate.
2465         * aclocal.m4: Regenerate.
2467 2004-05-30  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2469         * include/std/std_complex.h (complex<_Tp>): Properly indent
2470         to follow C++STYLE.
2471         (complex<>::__rep): New.
2472         (__complex_abs): New.  Dispatch to built-ins.
2473         (abs): Use them.
2474         (__complex_arg): New. Dispatch to built-ins.
2475         (arg): Use it.
2476         (__complex_cos): New. Dispatch to built-ins.
2477         (cos): Use it.
2478         (__complex_cosh): New. Dispatch to built-ins.
2479         (cosh): Use it.
2480         (__complex_exp): New. Dispatch to built-ins.
2481         (exp): Use it.
2482         (__complex_log): New. Dispatch to built-ins.
2483         (log): Use it.
2484         (__complex_sin): New. Dispatch to built-ins.
2485         (sin): Use it.
2486         (__complex_sinh): New. Dispatch to built-ins.
2487         (sinh): Use it.
2488         (__complex_sqrt): New. Dispatch to built-ins.
2489         (sqrt): Use it.
2490         (__complex_tan): New. Dispatch to built-ins.
2491         (tan): Use it.
2492         (__complex_tanh): New. Dispatch to built-ins.
2493         (tanh): Use it.
2494         (__complex_pow): New. Dispatch to built-ins.
2495         (pow): Use it.
2497 2004-05-29  Richard B. Kreckel  <Richard.Kreckel@Framatome-ANP.com>
2498             Benjamin Kosnik  <bkoz@redhat.com>
2500         PR libstdc++/14600
2501         * include/ext/stdio_sync_filebuf.h (stdio_sync_filebuf::file): New.
2502         * include/ext/stdio_filebuf.h (stdio_filebuf::file): New.
2503         * config/io/basic_file_stdio.cc (__basic_file::file): New.
2504         * config/io/basic_file_stdio.h: Define.
2506 2004-05-27  Benjamin Kosnik  <bkoz@redhat.com>
2508         PR libstdc++/15675
2509         * docs/html/documentation.html: Update doxygen links for 3.4.0.
2511 2004-05-27  Jan Beulich  <jbeulich@novell.com>
2513         * scripts/create_testsuite_files: Tweak.
2515 2004-05-25  Benjamin Kosnik  <bkoz@redhat.com>
2517         PR libstdc++/15489
2518         * scripts/create_testsuite_files: Revert xtype change, add non-GNU
2519         bits to do the same thing.
2521 2004-05-24  Paolo Carlini  <pcarlini@suse.de>
2523         * include/bits/istream.tcc (ignore): Correctly deal with
2524         n == numeric_limits<streamsize>::max().
2525         * testsuite/27_io/basic_istream/ignore/char/2.cc: New.
2527         * include/bits/istream.tcc (basic_istream<>::getline): Prefer
2528         '_M_gcount + 1 < __n' to '--__n; _M_gcount < __n', just in case
2529         __n == numeric_limits<>::min().
2531         * include/bits/istream.tcc: Minor tweaks.
2533         * testsuite/21_strings/basic_string/inserters_extractors/char/10.cc:
2534         Tighten.
2535         * testsuite/21_strings/basic_string/inserters_extractors/char/11.cc:
2536         Likewise.
2537         * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/10.cc:
2538         Likewise.
2539         * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc:
2540         Likewise.
2541         * testsuite/27_io/basic_istream/getline/char/5.cc: Likewise.
2543 2004-05-22  Benjamin Kosnik  <bkoz@redhat.com>
2545         PR libstdc++/12854
2546         Fixups for -Weffc++.
2547         * include/bits/basic_string.h (basic_string::operator=): Return
2548         pointer to this instead of result of assign. Although redundant,
2549         this doesn't impact resultant codegen.
2551         * include/bits/locale_facets.h (__numpunct_cache): Declare
2552         assignment opxserator and copy constructor private.
2553         (__timepunct_cache): Same.
2554         (__moneypunct_cache): Same.
2555         (collate): Use member initialization list for _M_c_locale_collate.
2556         * config/locale/gnu/messages_members.h: Same.
2557         * config/locale/gnu/time_members.h (__timepunct): Same.
2558         * src/codecvt.cc: Use member initialization list to initialize
2559         _M_c_locale_codecvt.
2560         * src/ctype.cc: Same, with _M_c_locale_ctype and _M_narrow_ok.
2561         * config/os/gnu-linux/ctype_noninline.h: Same.
2562         * src/locale.cc (_Impl): Same.
2563         * src/locale_init.cc: Same.
2564         * src/localename.cc: Same.
2566         * include/bits/basic_ios.h (basic_ios): Complete member
2567         initialization list.
2568         * include/bits/istream.tcc (basic_istream::sentry): Same.
2569         * include/bits/ostream.tcc (basic_ostream::sentry): Same.
2570         * include/bits/fstream.tcc (basic_filebuf): Add _M_lock and
2571         _M_pback to member initialization list.
2572         * include/std/std_streambuf.h: Same.
2573         * include/std/std_sstream.h: Same, for _M_mode.
2574         * src/ios.cc (ios_base): Same.
2576         * include/ext/rope: Make derived classes match exception
2578          specifications. Add copy constructors and assignment operators.
2580         * include/debug/safe_base.h (_Safe_sequence_base): Declare copy
2581         constructor and assignment operator protected.
2582         (_Safe_iterator_base): Same.
2583         * include/debug/formatter.h (_Error_formatter): Define copy
2584         constructor and assignment operator.
2586         * include/backward/strstream: Declare assignment operator and copy
2587         constructor private.
2589 2004-05-22  Benjamin Kosnik  <bkoz@redhat.com>
2591         * testsuite/testsuite_hooks.h (func_callback): Declare copy
2592         constructor and assignment operator private.
2593         * testsuite/23_containers/deque/cons/clear_allocator.cc: Match
2594         exception specifications of base class.
2595         * testsuite/23_containers/list/cons/clear_allocator.cc: Same.
2596         * testsuite/23_containers/vector/cons/clear_allocator.cc: Same.
2597         * testsuite/23_containers/vector/bool/clear_allocator.cc: New.
2599 2004-05-22  Benjamin Kosnik  <bkoz@redhat.com>
2601         * libsupc++/cxxabi.h: Remove duplicated and useless public and
2602         private keywords in class declarations. Format. Use
2603         stddef.h. Expose declarations to "C" compilation.
2604         * libsupc++/tinfo.cc (__upcast_result): Add copy constructor and
2605         assignment operator.
2606         (__dyncast_result): Same.
2607         * libsupc++/vec.cc (uncatch_exception): Same, use member
2608         initialization list.
2610 2004-05-22  Benjamin Kosnik  <bkoz@redhat.com>
2612         * testsuite/abi_check.cc: Add unistd.h.
2614 2004-05-22  Paolo Carlini  <pcarlini@suse.de>
2616         PR libstdc++/15565
2617         * include/bits/locale_facets.tcc (__int_to_char(unsigned long),
2618         __int_to_char(unsigned long long)): Showpos is not relevant
2619         for unsigned types.
2620         * testsuite/22_locale/num_put/put/char/15565.cc: New.
2621         * testsuite/22_locale/num_put/put/wchar_t/15565.cc: New.
2623         * testsuite/22_locale/num_put/put/wchar_t/1.cc: Use L for the fill
2624         char.
2625         * testsuite/22_locale/num_put/put/wchar_t/2.cc: Likewise.
2626         * testsuite/22_locale/num_put/put/wchar_t/3.cc: Likewise.
2627         * testsuite/22_locale/num_put/put/wchar_t/4.cc: Likewise.
2628         * testsuite/22_locale/num_put/put/wchar_t/5.cc: Likewise.
2629         * testsuite/22_locale/num_put/put/wchar_t/6.cc: Likewise.
2630         * testsuite/22_locale/num_put/put/wchar_t/8.cc: Likewise.
2632 2004-05-21  Matthias Klose  <doko@debian.org>
2634         * docs/doxygen/run_doxygen:  Bump required version.
2636 2004-05-21  Benjamin Kosnik  <bkoz@redhat.com>
2638         * docs/html/abi.html (libgcc_s): Additions suggested by Matthias Klose.
2639         * docs/doxygen/Intro.3: Subtractions suggested by Phil Edwards.
2641 2004-05-21  Paolo Carlini  <pcarlini@suse.de>
2643         * include/bits/istream.tcc (ignore): Remove redundant line.
2644         (readsome): Tidy, closely following 27.6.1.3, p30.
2646 2004-05-20  Paolo Carlini  <pcarlini@suse.de>
2648         * include/bits/istream.tcc (operator>>(basic_istream<>&,
2649         basic_string<>&)): Use a temporary buffer, thus avoiding
2650         reallocation for common case.
2651         * testsuite/21_strings/basic_string/inserters_extractors/char/11.cc:
2652         New.
2653         * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc:
2654         Likewise.
2656         * include/bits/istream.tcc: Const-ification of a few variables.
2658         * include/bits/ostream.tcc: Trivial formatting fixes and
2659         const-ification of some variables.
2661 2004-05-20  Benjamin Kosnik  <bkoz@redhat.com>
2663         PR libstdc++/15123
2664         PR libstdc++/13928
2665         * docs/doxygen/Intro.3: Remove Allocators.3.
2666         Add new extension headers, extension namespace list.
2667         * docs/doxygen/run_doxygen (problematic): Remove Allocators.3
2668         Rename GLIBCXXSTD names to std::. Rename __gnu_debug to
2669         __gnu_debug::. Remove __policy_ renames.
2670         * docs/doxygen/guide.html: Add dot note.
2671         * docs/doxygen/stdheader.cc: Edit, add files.
2672         * docs/doxygen/user.cfg.in: Regenerate with Doxygen 1.3.7.
2674 2004-05-18  Jonathan Wakely  <redi@gcc.gnu.org>
2676         * include/ext/stdio_filebuf.h: Update comments to reflect PR 11691.
2678 2004-05-18  Jan Beulich  <jbeulich@novell.com>
2680         PR libstdc++/15489
2681         * scripts/create_testsuite_files: Also find source files through
2682         symbolic links.
2684 2004-05-18  Jan Beulich  <jbeulich@novell.com>
2686         PR libstdc++/15488
2687         * testsuite/lib/libstdc++.exp: Make test files writable.
2689 2004-05-18  Paolo Carlini  <pcarlini@suse.de>
2691         * include/ext/mt_allocator.h:(__mt_alloc::allocate): Minor
2692         tweaks.
2694 2004-05-18  Dhruv Matani  <dhruvbird@gmx.net>
2696         * include/ext/mt_allocator.h:(__mt_alloc::allocate): Re-write
2697         allocation loop which removes blocks from the global free list
2698         from O(N) to O(1) when the required blocks are <= the number
2699         available.
2701 2004-05-18  Jonathan Wakely  <redi@gcc.gnu.org>
2703         * include/ext/enc_filebuf.h: Move concept-check macro to class scope.
2705 2004-05-17  Benjamin Kosnik  <bkoz@redhat.com>
2707         * testsuite/testsuite_hooks.h (__gnu_test::conversion): New class.
2708         * testsuite/23_containers/deque/14340.cc: New.
2709         * testsuite/23_containers/list/14340.cc: New.
2710         * testsuite/23_containers/map/14340.cc: New.
2711         * testsuite/23_containers/multimap/14340.cc: New.
2712         * testsuite/23_containers/multiset/14340.cc: New.
2713         * testsuite/23_containers/set/14340.cc: New.
2714         * testsuite/23_containers/vector/14340.cc: New.
2716 2004-05-17  Douglas Gregor   <gregod@cs.rpi.edu>
2718         PR libstdc++/14340
2719         * include/debug/safe_iterator.h (_Safe_iterator converting
2720         constructor): Only allow declaration to instantiate when the
2721         incoming _Safe_iterator has exactly the right iterator type.
2723 2004-05-17  Jonathan Wakely  <redi@gcc.gnu.org>
2725         * include/bits/boost_concept_check.h: Fix old attribute syntax.
2726         * testsuite/23_containers/map/modifiers/swap.cc: Define operator<
2727         to pass concept-checks.
2728         * testsuite/23_containers/multimap/modifiers/swap.cc: Same.
2729         * testsuite/23_containers/set/modifiers/swap.cc: Same.
2730         * testsuite/23_containers/multiset/modifiers/swap.cc: Same.
2732 2004-05-16  Paolo Carlini  <pcarlini@suse.de>
2734         * include/std/std_bitset.h: Minor formatting fixes.
2736 2004-05-16  Paolo Carlini  <pcarlini@suse.de>
2738         * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
2739         Consistently update __bin._M_free[0].
2740         (__mt_alloc<>::allocate): When __bin._M_first[0] != NULL use
2741         __bin._M_free[0] to simplify the while loop (i.e., the number
2742         of iterations becomes known at the outset).
2744 2004-05-15  Paolo Carlini  <pcarlini@suse.de>
2746         * include/std/std_bitset.h: Trivial formatting fixes.
2748 2004-05-14  Paolo Carlini  <pcarlini@suse.de>
2749             Ivan Godard  <igodard@pacbell.net>
2751         PR libstdc++/15361
2752         * include/std/std_bitset.h (_Base_bitset<_Nw>::_M_do_find_next): Fix.
2753         * testsuite/23_containers/bitset/ext/15361.cc: New.
2755 2004-05-13  Benjamin Kosnik  <bkoz@redhat.com>
2757         PR libstdc++/15046
2758         * crossconfig.m4: Add C99 math bits for linux crosses.
2759         * configure: Regenerate.
2761 2004-05-13  Simon Marshall <simon.marshall@misys.com>
2762             Benjamin Kosnik  <bkoz@redhat.com>
2764         PR libstdc++/15090
2765         * include/bits/locale_facets.h: Fix for -fno-for-scope.
2766         * include/debug/safe_sequence.h: Same.
2767         * include/debug/safe_iterator.tcc: Same.
2768         * src/debug.cc: Same.
2769         * src/locale.cc: Same.
2770         * src/locale_init.cc: Same.
2771         * src/localename.cc: Same.
2772         * config/locale/gnu/ctype_members.cc: Same.
2773         * config/locale/gnu/numeric_members.cc: Same.
2774         * testsuite/testsuite_abi.cc: Same.
2775         * testsuite/testsuite_hooks.cc: Same.
2777 2004-05-13  Jonathan Wakely  <redi@gcc.gnu.org>
2779         * docs/html/abi.html: Document effect of -fabi-version on value
2780         of __GXX_ABI_VERSION, and that it's defined in c-cppbuiltin.c.
2781         Fix markup.
2783 2004-05-13  Benjamin Kosnik  <bkoz@redhat.com>
2785         PR libstdc++/15074
2786         * docs/html/faq/index.html: Update docs for libsupc++ usage.
2788 2004-05-13  Benjamin Kosnik  <bkoz@redhat.com>
2790         PR libstdc++/15412
2791         * include/bits/stl_threads.h (_GLIBCXX_mutex): Move to namespace
2792         __gnu_internal.
2793         (_GLIBCXX_mutex_address): Same.
2794         (_GLIBCXX_once): Same.
2795         (_GLIBCXX_mutex_init): Same.
2796         (_GLIBCXX_mutex_address_init): Same.
2798 2004-05-13  Benjamin Kosnik  <bkoz@redhat.com>
2800         * docs/html/abi.html: New.
2801         * docs/html/abi.txt: Remove.
2802         * docs/html/documentation.html: Add link.
2803         * testsuite/Makefile.am: Add files.
2804         * testsuite/Makefile.in: Regenerated.
2805         * testsuite/abi_check.cc: Move and modify code into...
2806         * testsuite/testsuite_abi.cc: Add.
2807         * testsuite/testsuite_abi.h: Add.
2809         * docs/html/17_intro/TODO: Update.
2810         * include/bits/stl_pair.h: Format.
2812 2004-05-06  Matthias Klose  <doko@debian.org>
2814         * include/backward/iterator.h:  Add GPL copyright info,
2815         with exception clause.
2816         * include/bits/boost_concept_check.h: Likewise.
2817         * include
2818         * libsupc++/tinfo.h: Likewise.
2819         * po/string_literals.cc: Likewise.
2821 2004-05-03  Andreas Tobler  <a.tobler@schweiz.ch>
2823         * acinclude.m4: Replace -W with more speaking -Wextra.
2824         * configure: Rebuilt.
2826 2004-05-03  Paolo Carlini  <pcarlini@suse.de>
2828         Optimize locale::_M_impl->_M_names for the most common cases:
2829         !_M_names[0] means unnamed; !_M_names[1] means all the categories
2830         the same name (_M_names[0] && _M_names[1] means that the full set
2831         of _M_names must be processed, the general case).
2832         * include/bits/locale_classes.h (locale::_Impl::_M_check_same_name):
2833         Tweak, saving work when !_M_names[1].
2834         (locale::locale(const locale&, _Facet*): Simplify: now just setting
2835         _M_names[0] = 0 means unnamed.
2836         * src/locale.cc (locale::operator==): Deal first with the common,
2837         easy cases, otherwise fall back to locale::name().
2838         (locale::name()): Tweak, if !_M_names[0] just return "*".
2839         (locale::_Impl::_Impl(const _Impl&, size_t): Tweak, early stop
2840         copying __imp._M_names if !__imp._M_names[0] or !__imp._M_names[1].
2841         * src/locale_init.cc (locale::_Impl::_Impl(size_t)): Tweak.
2842         * src/localename.cc (locale::_Impl::_Impl(const char*, size_t):
2843         Simplify when !std::strchr, just updating _M_names[0]; clean up.
2844         (locale::_Impl::_M_replace_categories): When !_M_names[1] prepare
2845         for the general case (full set of names), then do the usual work;
2846         clean up.
2848         * src/locale.cc (locale::name()): Reserve space in __ret.
2849         * src/locale_init.cc (locale::global(const locale&)): Save
2850         the name in a temporary.
2851         * src/localename.cc (locale::locale(const char*)): Reserve space
2852         in __str.
2854 2004-04-29  Paolo Carlini  <pcarlini@suse.de>
2856         * src/locale.cc (locale::operator==): Always avoid constructing
2857         locale::name(), directly compare pairs of _M_names.
2859 2004-04-26  Paolo Carlini  <pcarlini@suse.de>
2861         * include/bits/istream.tcc: Fix comment.
2863 2004-04-26  Paolo Carlini  <pcarlini@suse.de>
2865         * include/bits/stl_vector.h: Trivial formatting fixes.
2866         * include/bits/vector.tcc: Likewise.
2868 2004-04-25  Paolo Carlini  <pcarlini@suse.de>
2870         PR libstdc++/15002 (continued again)
2871         * include/bits/istream.tcc (getline(basic_istream<>&,
2872         basic_string<>&, _CharT)): Use a temporary buffer, thus
2873         avoiding reallocation for common case.
2875         * include/bits/basic_string.tcc (_S_construct(_InIterator,
2876         _InIterator, const _Alloc&, input_iterator_tag)): Tweak size
2877         of temporary buffer to a power of two.
2879         * testsuite/27_io/basic_istream/getline/char/4.cc: Add comment.
2881 2004-04-25  Paolo Carlini  <pcarlini@suse.de>
2883         * testsuite/21_strings/basic_string/inserters_extractors/char/10.cc:
2884         New.
2885         * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/10.cc:
2886         Likewise.
2887         * testsuite/27_io/basic_istream/getline/char/5.cc: Likewise.
2889 2004-04-24  Paolo Carlini  <pcarlini@suse.de>
2890             Petur Runolfsson  <peturr02@ru.is>
2892         PR libstdc++/15002 (continued)
2893         * include/bits/istream.tcc (basic_istream<>::getline(char_type*,
2894         streamsize, char_type)): Use traits::find/copy in a loop to speed
2895         up greatly the function in the common case (I/O buffer size >> 1).
2897 2004-04-24  Paolo Carlini  <pcarlini@suse.de>
2899         * testsuite/27_io/basic_istream/getline/char/4.cc: New.
2901         * include/bits/istream.tcc (getline(basic_istream<>&,
2902         basic_string<>&, _CharT)): Change to use sgetc()/snextc() instead
2903         of sbumpc(), consistently with the other functions, thus also
2904         dealing correctly with the case of exceeded string::max_size().
2906 2004-04-24  Matthias Klose  <doko@debian.org>
2908         Jonathan Wakely  <cow@compsoc.man.ac.uk>
2909         * docs/html/configopts.html: Fix reference to allocator config option.
2911 2004-04-23  Andrew Pinski  <pinskia@physics.uc.edu>
2913         * linkage.m4 (GLIBCXX_CHECK_MATH_SUPPORT): Check for libmx also.
2914         * configure: Regenerate.
2916 2004-04-23  Daniel Jacobowitz  <drow@mvista.com>
2918         PR libstdc++/15047, libstdc++/11610
2919         * testsuite/lib/libstdc++.exp (v3-copy-files): Use remote_download.
2920         (libstdc++_init): Don't pass outdir to v3-copy-files.
2922 2004-04-21  Paolo Carlini  <pcarlini@suse.de>
2924         * include/bits/deque.tcc: Trivial formatting fixes.
2925         * include/bits/stl_deque.h: Likewise.
2926         * include/bits/stl_list.h: Likewise.
2927         * include/bits/stl_tree.h: Likewise.
2929 2004-04-21  Paolo Carlini  <pcarlini@suse.de>
2930             Andrew Pinski  <pinskia@physics.uc.edu>
2932         * include/bits/basic_string.tcc (_M_mutate): Don't compute
2933         __src unnecessarily.
2935 2004-04-19  Benjamin Kosnik  <bkoz@redhat.com>
2937         * testsuite/27_io/basic_istream/extractors_character/char/9555-ic.cc:
2938         Clarify assertion, set test variable to false before assert.
2939         * testsuite/27_io/basic_istringstream/str/char/1.cc: Same.
2940         * testsuite/27_io/basic_stringstream/str/char/1.cc: Same.
2941         * testsuite/27_io/ios_base/storage/2.cc: Same.
2943         * testsuite/27_io/basic_filebuf/imbue/char/13171-4.cc: Fix
2944         function returns.
2945         * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-3.cc: Same.
2946         * testsuite/27_io/fpos/14320-3.cc: Same.
2948         * testsuite/27_io/basic_filebuf/2.cc: Instantiate in namespace std.
2949         * testsuite/27_io/fpos/1.cc: Same.
2950         * testsuite/27_io/basic_stringstream/2.cc: Same.
2951         * testsuite/27_io/basic_stringbuf/4.cc: Same.
2952         * testsuite/27_io/basic_stringbuf/1.cc: Same.
2953         * testsuite/27_io/basic_stringbuf/2.cc: Same.
2954         * testsuite/27_io/basic_streambuf/2.cc: Same.
2955         * testsuite/27_io/basic_ostringstream/2.cc: Same.
2956         * testsuite/27_io/basic_ostream/2.cc: Same.
2957         * testsuite/27_io/basic_ofstream/2.cc: Same.
2958         * testsuite/27_io/basic_istringstream/2.cc: Same.
2959         * testsuite/27_io/basic_istream/2.cc: Same.
2960         * testsuite/27_io/basic_iostream/2.cc: Same.
2961         * testsuite/27_io/basic_ios/2.cc: Same.
2962         * testsuite/27_io/basic_ifstream/2.cc: Same.
2963         * testsuite/27_io/basic_fstream/2.cc: Same.
2964         * testsuite/ext/stdio_filebuf/char/1.cc: Same, in namespace __gnu_cxx.
2966         * testsuite/21_strings/basic_string/capacity/1.cc: Don't compare
2967         unsigned against zero.
2968         * testsuite/21_strings/basic_string/capacity/wchar_t/1.cc: Same.
2969         * testsuite/21_strings/basic_string/capacity/char/1.cc: Same.
2971         * testsuite/18_support/new_delete_placement.cc: Initialize
2972         variables before first use.
2973         * testsuite/21_strings/char_traits/requirements/wchar_t/1.cc: Same.
2974         * testsuite/21_strings/char_traits/requirements/char/1.cc: Same.
2975         * testsuite/21_strings/char_traits/requirements/short/1.cc: Same.
2976         * testsuite/27_io/basic_istream/seekg/char/exceptions_badbit_throw.cc:
2977         Same.
2978         * testsuite/27_io/basic_ostream/inserters_arithmetic/char/exceptions_badbit_throw.cc: Same.
2979         * testsuite/27_io/basic_ostream/seekp/char/exceptions_badbit_throw.cc:
2980         Same.
2981         * testsuite/27_io/basic_ostream/inserters_arithmetic/char/exceptions_failbit_throw.cc: Same.
2982         * testsuite/27_io/types/2.cc: Same.
2984         * testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc: Fix temporary
2985         file name.
2986         * testsuite/27_io/fpos/14775.cc: Same.
2988 2004-04-19  Paolo Carlini  <pcarlini@suse.de>
2990         PR libstdc++/15002 (partial)
2991         * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
2992         Special case __n2 == 1, not calling traits_type::assign/copy.
2994 2004-04-17  Benjamin Kosnik  <bkoz@redhat.com>
2996         * include/bits/stl_bvector.h: Use _M_impl._M_start.
2998 2004-04-16  Benjamin Kosnik  <bkoz@redhat.com>
3000         * include/bits/c++config (_GLIBCXX_STD): New.
3001         * src/list.cc: Use it.
3002         * include/std/std_bitset.h: Same.
3003         * include/bits/vector.tcc: Same.
3004         * include/bits/stl_set.h: Same.
3005         * include/bits/stl_multiset.h: Same.
3006         * include/bits/stl_multimap.h: Same.
3007         * include/bits/stl_map.h: Same.
3008         * include/bits/stl_list.h: Same.
3009         * include/bits/stl_vector.h: Same.
3010         * include/bits/stl_bvector.h: Same.
3011         * include/bits/stl_deque.h: Same.
3012         * include/bits/deque.tcc: Same.
3013         * include/bits/list.tcc: Same.
3014         * include/debug/vector: Same.
3015         * include/debug/set.h: Same.
3016         * include/debug/multiset.h: Same.
3017         * include/debug/multimap.h: Same.
3018         * include/debug/map.h: Same.
3019         * include/debug/list: Same.
3020         * include/debug/deque: Same.
3021         * include/debug/bitset: Same.
3022         * include/debug/formatter.h (__gnu_debug): Remove using directive.
3023         Add using declaration for std::type_info.
3024         * include/debug/safe_iterator.h: Add using declaration for
3025         std::iterator_traits and std::pair.
3026         * src/debug_list.cc: New.
3027         * src/Makefile.am: Add debug_list.cc.
3028         * src/Makefile.in: Regenerate.
3029         * config/linker-map.gnu: Add _List_node_base exports for std and
3030         __gnu_norm.
3032         * include/bits/stl_bvector.h (_Bvector_base): Use _Bvector_impl
3033         idiom that other containers use.
3034         * testsuite/23_containers/vector/bool/clear_allocator.cc: New.
3036 2004-04-16  Paolo Carlini  <pcarlini@suse.de>
3038         PR libstdc++/14975
3039         * include/bits/fstream.tcc (basic_filebuf::imbue): Zero _M_codecvt
3040         in case of error.
3041         * testsuite/27_io/basic_filebuf/imbue/char/14975-1.cc: New.
3042         * testsuite/27_io/basic_filebuf/imbue/wchar_t/14975-2.cc: New.
3044 2004-04-16  Paolo Carlini  <pcarlini@suse.de>
3046         * acconfig.h: Remove _GLIBCXX_USE_LONG_DOUBLE entry, not
3047         used anymore.
3048         * config.h.in: Regenerate.
3050 2004-04-16  Paolo Carlini  <pcarlini@suse.de>
3052         * config/locale/generic/monetary_members.cc
3053         (moneypunct<wchar_t>::_M_initialize_moneypunct): Avoid calling
3054         btowc unnecessarily, just cast to wchar_t (the concerned chars
3055         all belong to the basic character set).
3056         * config/locale/generic/numeric_members.cc
3057         (numpunct<wchar_t>::_M_initialize_numpunct): Likewise.
3058         * config/locale/gnu/monetary_members.cc
3059         (moneypunct<wchar_t>::_M_initialize_moneypunct): Likewise.
3060         * config/locale/gnu/numeric_members.cc
3061         (numpunct<wchar_t>::_M_initialize_numpunct): Likewise.
3063 2004-04-15  Paolo Carlini  <pcarlini@suse.de>
3065         * src/locale.cc (locale::operator==): When _M_impl == __rhs._M_impl
3066         avoid constructing unnecessarily this->name().
3068 2004-04-14  Zack Weinberg  <zack@codesourcery.com>
3070         * testsuite/Makefile.am: Add definition of AM_CXXFLAGS.
3071         Change definition of CXX to use $(shell) instead of backticks.
3072         * testsuite/Makefile.in: Regenerate.
3074 2004-04-12  Dhruv Matani  <dhruvbird@gmx.net>
3076         * testsuite/performance/20_util/allocator/list_sort_search.cc:
3077         Minor formatting fixes.
3078         * testsuite/performance/20_util/allocator/map_mt_find.cc:
3079         Likewise.
3081 2004-04-12  Paolo Carlini <pcarlini@suse.de>
3083         * config/locale/gnu/numeric_members.cc
3084         (numpunct<wchar_t>::_M_initialize_numpunct): No need to wrap
3085         in __uselocale, since btowc is called for chars belonging to
3086         the basic character set.
3088 2004-04-09  Paolo Carlini  <pcarlini@suse.de>
3090         * testsuite/22_locale/messages/members/char/1.cc: Remove junk.
3091         * testsuite/22_locale/messages/members/char/2.cc: Ditto.
3092         * testsuite/22_locale/messages/members/char/3.cc: Ditto.
3093         * testsuite/22_locale/num_get/get/char/1.cc: Ditto.
3094         * testsuite/22_locale/num_get/get/char/2.cc: Ditto.
3095         * testsuite/22_locale/num_get/get/char/3.cc: Ditto.
3096         * testsuite/22_locale/num_get/get/wchar_t/1.cc: Ditto.
3097         * testsuite/22_locale/num_get/get/wchar_t/2.cc: Ditto.
3098         * testsuite/22_locale/num_get/get/wchar_t/3.cc: Ditto.
3099         * testsuite/22_locale/num_put/put/char/1.cc: Ditto.
3100         * testsuite/22_locale/num_put/put/char/2.cc: Ditto.
3101         * testsuite/22_locale/num_put/put/char/3.cc: Ditto.
3102         * testsuite/22_locale/num_put/put/wchar_t/1.cc: Ditto.
3103         * testsuite/22_locale/num_put/put/wchar_t/2.cc: Ditto.
3104         * testsuite/22_locale/num_put/put/wchar_t/3.cc: Ditto.
3105         * testsuite/22_locale/numpunct/members/char/1.cc: Ditto.
3106         * testsuite/22_locale/numpunct/members/wchar_t/1.cc: Ditto.
3108 2004-04-07  Paolo Carlini  <pcarlini@suse.de>
3110         * config/locale/generic/time_members.cc
3111         (__timepunct<char>::_M_initialize_timepunct,
3112         __timepunct<wchar_t>::_M_initialize_timepunct): the correct
3113         _M_amonth07 in the "C" locale is "Jul" and L"Jul", respectively.
3114         * config/locale/gnu/time_members.cc
3115         (__timepunct<char>::_M_initialize_timepunct,
3116         __timepunct<wchar_t>::_M_initialize_timepunct): Ditto.
3117         * testsuite/22_locale/time_get/get_monthname/char/4.cc: New.
3118         * testsuite/22_locale/time_get/get_monthname/wchar_t/4.cc: New.
3120         * testsuite/22_locale/time_get/date_order/char/1.cc: Remove junk.
3121         * testsuite/22_locale/time_get/date_order/wchar_t/1.cc: Ditto.
3122         * testsuite/22_locale/time_get/get_date/char/1.cc: Ditto.
3123         * testsuite/22_locale/time_get/get_date/char/2.cc: Ditto.
3124         * testsuite/22_locale/time_get/get_date/wchar_t/1.cc: Ditto.
3125         * testsuite/22_locale/time_get/get_date/wchar_t/2.cc: Ditto.
3126         * testsuite/22_locale/time_get/get_monthname/char/1.cc: Ditto.
3127         * testsuite/22_locale/time_get/get_monthname/char/2.cc: Ditto.
3128         * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Ditto.
3129         * testsuite/22_locale/time_get/get_monthname/wchar_t/2.cc: Ditto.
3130         * testsuite/22_locale/time_get/get_time/char/1.cc: Ditto.
3131         * testsuite/22_locale/time_get/get_time/char/2.cc: Ditto.
3132         * testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Ditto.
3133         * testsuite/22_locale/time_get/get_time/wchar_t/2.cc: Ditto.
3134         * testsuite/22_locale/time_get/get_weekday/char/1.cc: Ditto.
3135         * testsuite/22_locale/time_get/get_weekday/char/2.cc: Ditto.
3136         * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Ditto.
3137         * testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc: Ditto.
3138         * testsuite/22_locale/time_get/get_year/char/1.cc: Ditto.
3139         * testsuite/22_locale/time_get/get_year/wchar_t/1.cc: Ditto.
3140         * testsuite/22_locale/time_put/put/char/1.cc: Ditto.
3141         * testsuite/22_locale/time_put/put/char/2.cc: Ditto.
3142         * testsuite/22_locale/time_put/put/char/3.cc: Ditto.
3143         * testsuite/22_locale/time_put/put/char/4.cc: Ditto.
3144         * testsuite/22_locale/time_put/put/char/5.cc: Ditto.
3145         * testsuite/22_locale/time_put/put/char/6.cc: Ditto.
3146         * testsuite/22_locale/time_put/put/char/7.cc: Ditto.
3147         * testsuite/22_locale/time_put/put/char/8.cc: Ditto.
3148         * testsuite/22_locale/time_put/put/wchar_t/1.cc: Ditto.
3149         * testsuite/22_locale/time_put/put/wchar_t/2.cc: Ditto.
3150         * testsuite/22_locale/time_put/put/wchar_t/3.cc: Ditto.
3151         * testsuite/22_locale/time_put/put/wchar_t/4.cc: Ditto.
3152         * testsuite/22_locale/time_put/put/wchar_t/5.cc: Ditto.
3153         * testsuite/22_locale/time_put/put/wchar_t/6.cc: Ditto.
3154         * testsuite/22_locale/time_put/put/wchar_t/7.cc: Ditto.
3155         * testsuite/22_locale/time_put/put/wchar_t/8.cc: Ditto.
3157         * testsuite/22_locale/time_put/put/char/9780-1.cc: Fix typos.
3159 2004-04-07  Paolo Carlini  <pcarlini@suse.de>
3161         * config/locale/gnu/monetary_members.cc
3162         (moneypunct<wchar_t>::_M_initialize_moneypunct): Prefer
3163         _NL_MONETARY_DECIMAL_POINT_WC, _NL_MONETARY_THOUSANDS_SEP_WC,
3164         and __MON_GROUPING to _NL_NUMERIC_DECIMAL_POINT_WC,
3165         _NL_NUMERIC_THOUSANDS_SEP_WC, and GROUPING.
3166         * config/locale/gnu/numeric_members.cc
3167         (numpunct<char>::_M_initialize_numpunct): Prefer DECIMAL_POINT
3168         and THOUSANDS_SEP to the deprecated RADIXCHAR and THOUSEP.
3170 2004-04-06  Benjamin Kosnik  <bkoz@redhat.com>
3172         Fixups for EDG front end.
3173         * include/ext/rope: Instead of non-existent function
3174         _Data_allocate, use allocator's allocate. Use this.
3175         (namespace _Rope_constants): Move _S_max_rope_depth, and _Tag
3176         enumerations from _Rope_RopeRep here.
3177         * include/ext/ropeimpl.h: Same.
3178         * src/ext-inst.cc (_S_min_len): Fix up definition.
3180         * config/locale/gnu/ctype_members.cc: Qualify base class members
3181         with this.
3182         * config/locale/generic/ctype_members.cc: Same.
3183         * config/locale/gnu/messages_members.h: Same.
3184         * config/locale/generic/messages_members.h: Same.
3185         * src/ctype.cc: Same.
3186         * include/bits/codecvt.h: Same.
3188         * include/bits/boost_concept_check.h: Declare.
3189         (__error_type_must_be_an_unsigned_integer_type): Remove this.
3190         (__error_type_must_be_an_integer_type): Remove this.
3191         (__error_type_must_be_a_signed_integer_type): Remove this.
3193         * config/io/basic_file_stdio.cc (__basic_file::sys_open): Remove cast.
3195         * libsupc++/eh_alloc.cc (__cxa_free_exception): Add exception
3196         specification to definition.
3197         (__cxa_allocate_exception): Same.
3198         * libsupc++/eh_catch.cc (__cxa_begin_catch): Same.
3199         * libsupc++/eh_globals.cc (__cxa_get_globals_fast): Same.
3200         (__cxa_get_globals): Same.
3202         * libsupc++/del_op.cc: Add comment about freestanding.
3204 2004-04-05  Paolo Carlini  <pcarlini@suse.de>
3206         * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
3207         The critical section is actually very small, only two assignments.
3209 2004-04-04  Paolo Carlini  <pcarlini@suse.de>
3210             Petur Runolfsson  <peturr02@ru.is>
3212         * testsuite/performance/27_io/filebuf_sputn_unbuf.cc: New,
3213         adapted from libstdc++/11378.
3215 2004-04-03  Paolo Carlini  <pcarlini@suse.de>
3217         * include/ext/mt_allocator.h (__mt_alloc<>::allocate): Factor out
3218         some duplicated code.
3219         (__mt_alloc<>::_Bin_record): Spare the space of _M_free and _M_used
3220         in the single threaded case.
3221         * testsuite/performance/20_util/allocator/list_sort_search.cc:
3222         Reorder and renumber the tests consistently with the other testfiles.
3223         * testsuite/performance/20_util/allocator/map_mt_find.cc: Ditto.
3224         * testsuite/performance/20_util/allocator/map_thread.cc: Ditto.
3225         * testsuite/performance/20_util/allocator/producer_consumer.cc: Ditto.
3227 2004-04-02  Paolo Carlini  <pcarlini@suse.de>
3229         * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
3230         Rearrange arithmetic to avoid computing two divisions at
3231         each deallocation.
3233 2004-04-01  Paolo Carlini  <pcarlini@suse.de>
3235         * include/ext/mt_allocator.h (__mt_alloc<>::_S_initialize):
3236         Streamline the second half, wrapping it in a single
3237         '#ifdef __GTHREADS if (__gthread_active_p())' and avoiding
3238         conditionals inside loops.
3240 2004-04-01  Paolo Carlini  <pcarlini@suse.de>
3242         PR libstdc++/14775
3243         * acconfig.h: Rename _GLIBCXX_MEM_LIMITS to _GLIBCXX_RES_LIMITS.
3244         * acinclude.m4 (GLIBCXX_CHECK_SETRLIMIT): Call
3245         GLIBCXX_CHECK_SETRLIMIT_ancilliary for FSIZE too, adjust define
3246         to _GLIBCXX_RES_LIMITS.
3247         (GLIBCXX_CHECK_SETRLIMIT_ancilliary): Rename HAVE_MEMLIMIT_* to
3248         HAVE_LIMIT_*.
3249         * testsuite/testsuite_hooks.h: Declare set_file_limit.
3250         * testsuite/testsuite_hooks.cc: Define it, using getrlimit
3251         and setrlimit(RLIMIT_FSIZE).
3252         * testsuite/27_io/fpos/14775.cc: New.
3253         * config.h.in: Regenerate.
3254         * configure: Likewise.
3256 2004-03-31  Paolo Carlini  <pcarlini@suse.de>
3258         * config/locale/generic/c_locale.cc (__convert_to_v(long double&)):
3259         In v3 uses of sscanf, the special floating-point numbers INF,
3260         INFINITY, etc., cannot occur in input, therefore, if the latter
3261         is too large, ERANGE is always stored in errno, no need of finitel.
3263 2004-03-30  Benjamin Kosnik  <bkoz@redhat.com>
3265         PR libstdc++/14783
3266         * include/bits/stl_tree.h: Adjust initialization list order.
3268 2004-03-29  Loren J. Rittle  <ljrittle@acm.org>
3270         * testsuite/thread/pthread7-rope.cc: Update comment to reflect test.
3272 2004-03-29  Paolo Carlini  <pcarlini@suse.de>
3274         * testsuite/thread/pthread7-rope.cc: Fix, unpredictably, depending
3275         on allocator behavior, the memory pointed by data2 may well be not
3276         trashed.
3278 2004-03-28  Chavdar Botev  <cbotev@yahoo.com>
3280         PR libstdc++/14245
3281         * include/bits/basic_string.tcc
3282         (basic_string::basic_string(const basic_string&)): Pass to
3283         _Rep::_M_grab the actual allocator of the string being constructed
3284         not the default constructed one.
3286 2004-03-27  Benjamin Kosnik  <bkoz@redhat.com>
3288         libstdc++ PR/13598
3289         * config/locale/ieee_1003.1-2001/codecvt_specializations.h
3290         (__enc_traits::_M_destroy): New.
3291         (__enc_traits::~__enc_traits): Use it.
3292         (__enc_traits::operator=): Use _M_destroy, _M_init.
3293         (__enc_traits::__enc_traits): Same.
3295 2004-03-27  Petur Runolfsson  <peturr02@ru.is>
3297         * testsuite/ext/enc_filebuf/char/13598.cc: New.
3299 2004-03-27  Paolo Carlini  <pcarlini@suse.de>
3301         * include/ext/mt_allocator.h: Uglify consistently names of
3302         variables, members and classes; tidy.
3304 2004-03-27  Dhruv Matani  <dhruvbird@gmx.net>
3306         * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
3307         Deallocation loop rewrote.
3309 2004-03-26  Paolo Carlini  <pcarlini@suse.de>
3311         * include/ext/mt_allocator.h (__mt_alloc<>::allocate,
3312         __mt_alloc<>::deallocate): Protect two instances of
3313         block->thread_id with __GTHREADS.
3315 2004-03-25  Gawain Bolton  <gp.bolton@computer.org>
3317         * include/bits/stl_tree.h (_Rb_tree_impl): Add _Node_allocator
3318         default argument in constructors.
3319         (_Rb_tree::_M_empty_initialize): Remove.
3321 2004-03-25  Benjamin Kosnik  <bkoz@redhat.com>
3323         * testsuite/23_containers/map/operators/1_neg.cc: Adjust line numbers.
3324         * testsuite/23_containers/set/operators/1_neg.cc: Same.
3326 2004-03-25  Dhruv Matani  <dhruvbird@gmx.net>
3328         * include/bits/cpp_type_traits.h: Changed __is_pod
3329         completely. Now, it does not use any of the previous type_traits
3330         to detect the pod types, and it also detects function pointers as
3331         POD types.
3333         * include/bits/stl_tree.h: Introduced a new class _Rb_tree_impl,
3334         which encapsulates the internal implementation of an rb_tree. Made
3335         the allocator a base class of this class instead of the rb_tree,
3336         which was not conforming. This _Rb_tree_impl class is also
3337         specialized on whether the _Compare parameter is a POD type or
3338         not. If so, then it maintains the comparison function as a data
3339         member, otherwise it makes the _Compare parameter a base class of
3340         itself. Also, _M_key_compare is now a function instead of a data
3341         member, so that the above trick can work properly. Delegated the
3342         initialization of the other data members to this newly created
3343         class. Also, now other member functions of rb_tree must refer to
3344         _M_key_compare as _M_impl._M_key_compare(). The other data members
3345         (*) can be referenced to as _M_impl.(*), where
3346         (*) includes _M_header, and _M_node_count.
3348 2004-03-25  Paolo Carlini  <pcarlini@suse.de>
3350         * include/ext/mt_allocator.h (__mt_alloc<>::tune):
3351         Add _M_min_bin, the size in bytes of the smallest bin.
3352         (__mt_alloc<>::tune()): Tweak accordingly.
3353         (__mt_alloc<>::tune(size_t, ...)): Likewise.
3354         (__mt_alloc<>::block_record): Change to a union: members next
3355         and thread_id are never used at the same time.
3356         (__mt_alloc<>::allocate): Update consistently.
3357         (__mt_alloc<>::deallocate): Likewise.
3358         (__mt_alloc<>::_S_initialize): Update setups of _S_binmap and
3359         _S_bin_size for the configurable _M_min_size.
3361 2004-03-25  Dhruv Matani  <dhruvbird@gmx.net>
3363         * include/bits/stl_list.h: Created a _List_impl class and made it
3364         derive from the allocator, instead of the list deriving from the
3365         allocator class, which was not conformant. Changed all references
3366         from this->_M_node to this->_M_impl._M_node * bits/list.tcc: Same
3367         as above (changed all references to the concerned variables).
3369 2004-03-25  Dhruv Matani  <dhruvbird@gmx.net>
3371         * include/bits/stl_deque.h: Created a _Deque_impl class and made
3372         it derive from the allocator, instead of the deque deriving from
3373         the allocator class, which was not conformant. Changed all
3374         references to the _M_start, _M_finish, _M_map, and _M_map_size to
3375         _M_impl.*.
3376         (_Deque_base<_Tp,_Alloc>::~_Deque_base()): Added this->
3377         qualification in 2 places where it was missing.
3378         (_Deque_base<_Tp,_Alloc>::_M_initialize_map(size_t)): Same as
3379         above.
3380         * include/bits/deque.tcc: Same as above (changed all references to
3381         the concerned variables).
3383 2004-03-25  Dhruv Matani  <dhruvbird@gmx.net>
3385         * include/bits/stl_vector.h: Created a _Vector_impl class and made
3386         it derive from the allocator, instead of the _Vector_base class,
3387         deriving from the allocator which was not conformant. Changed all
3388         references to the _M_start, _M_finish, and _M_end_of_storage to
3389         _M_impl.*.
3390         * include/bits/vector.tcc: Same as above (changed all references
3391         to the concerned variables).
3393 2004-03-25  Dhruv Matani  <dhruvbird@gmx.net>
3395         * testsuite/23_containers/deque/cons/clear_allocator.cc: New.
3396         * testsuite/23_containers/list/cons/clear_allocator.cc: New.
3397         * testsuite/23_containers/vector/cons/clear_allocator.cc: New.
3399 2004-03-24  Dhruv Matani  <dhruvbird@gmx.net>
3401         * include/ext/malloc_allocator.h: Fixed the construct function to
3402         call global placement new instead of assignment. Added a check
3403         after the return from malloc to check whether returned pointer is
3404         NULL, and if so, throw std::bad_alloc().
3405         * include/ext/debug_allocator.h: Added a check in the deallocate
3406         function to check whether the user has passed a NULL pointer or
3407         not.
3409 2004-03-24  Benjamin Kosnik  <bkoz@redhat.com>
3411         * docs/html/20_util/allocator.html: Add bitmap_allocator links.
3413 2004-03-24  Andreas Schwab  <schwab@suse.de>
3415         * testsuite/lib/prune.exp (prune_g++_output): Ignore errata
3416         warning from IA64 assembler.
3418 2004-03-24  Dhruv Matani  <dhruvbird@gmx.net>
3420         * include/ext/bitmap_allocator.h: (_Bit_scan_forward) -> Made this
3421         function call __builtin_ctz instead of the while loop.
3422         (allocate) -> If condition has __builtin_expect.
3423         (deallocate) -> Ditto.
3424         Renamed a few left-over variables and typedefs according to the
3425         C++STYLE mentioned in the documentation.
3426         Protected calls to __gthread* by __gthread_active_p(), whose value
3427         is cached in the local variable __threads_active.
3429 2004-03-24  Felix Yen  <fwy@alumni.brown.edu>
3431         * testsuite/performance/20_util/allocator/producer_consumer.cc:
3432         Use linear algorithm for producer.
3434 2004-03-24  Paolo Carlini  <pcarlini@suse.de>
3436         * include/ext/mt_allocator.h (__mt_alloc<>::allocate,
3437         __mt_alloc<>::deallocate): Avoid redundant conditionals.
3439 2004-03-23  Benjamin Kosnik  <bkoz@redhat.com>
3441         * include/bits/locale_facets.h: Tweaks for 80 column.
3442         (__numpunct_cache::_M_cache): Move to locale_facets.tcc.
3443         (__moneypunct_cache::_M_cache): Same.
3444         (num_get): Don't inherit from __num_base.
3445         (num_put): Same.
3446         (money_get): Don't inherit from money_base.
3447         (money_put): Same.
3448         (__timepunct::_M_am_pm_format): New.
3449         (time_get::_M_extract_num): Return iterator, use ios_base as argument.
3450         (time_get::_M_extract_name): Same.
3451         (time_get::_M_extract_via_format): Same.
3452         * include/bits/locale_facets.tcc: Tweaks for 80 column.
3453         Use _M_getloc instead of getloc.
3454         * testsuite/22_locale/money_put/put/char/9780-3.cc: New.
3455         * testsuite/22_locale/num_put/put/char/9780-2.cc: New.
3456         * testsuite/22_locale/time_put/put/char/9780-1.cc: New.
3458 2004-03-22  Paolo Carlini  <pcarlini@suse.de>
3460         * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Add pool_allocator.
3461         * configure: Regenerate.
3462         * config/allocator/pool_allocator_base.h: New.
3463         * include/ext/pool_allocator.h: Convert to a standard-conforming
3464         allocator.
3465         * src/allocator.cc: Tweak instantiations.
3466         * testsuite/performance/20_util/allocator/insert.cc: Add __pool_alloc.
3467         * testsuite/performance/20_util/allocator/insert_insert.cc: Ditto.
3468         * testsuite/performance/20_util/allocator/list_sort_search.cc: Ditto.
3469         * testsuite/performance/20_util/allocator/map_mt_find.cc: Ditto.
3470         * testsuite/performance/20_util/allocator/map_thread.cc: Ditto.
3471         * testsuite/performance/20_util/allocator/producer_consumer.cc: Ditto.
3473 2004-03-22  Hans-Peter Nilsson  <hp@axis.com>
3475         * config/cpu/cris/atomicity.h (__atomic_add): Remove "static
3476         inline" and attribute-unused.  Qualify parameter __mem with
3477         "volatile".
3478         (__exchange_and_add): Ditto.  Add back memory clobber to asm.
3480 2004-03-20  Paolo Carlini  <pcarlini@suse.de>
3482         * testsuite/27_io/basic_istream/extractors_arithmetic/char/2.cc:
3483         Remove junk.
3484         * testsuite/27_io/basic_istream/extractors_arithmetic/char/3.cc:
3485         Likewise.
3486         * testsuite/27_io/basic_istream/extractors_arithmetic/char/6.cc:
3487         Likewise.
3488         * testsuite/27_io/basic_istream/extractors_arithmetic/char/7.cc:
3489         Likewise.
3490         * testsuite/27_io/basic_istream/extractors_arithmetic/char/8.cc:
3491         Likewise.
3492         * testsuite/27_io/basic_istream/extractors_arithmetic/char/9.cc:
3493         Likewise.
3494         * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
3495         Likewise.
3496         * testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc:
3497         Likewise.
3498         * testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc:
3499         Likewise.
3500         * testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc:
3501         Likewise.
3503 2004-03-20  Paolo Carlini  <pcarlini@suse.de>
3505         * include/std/std_valarray.h: Document DR389 [Ready].
3506         * docs/html/ext/howto.html: Add an entry for DR389.
3508 2004-03-19  Michael Eager  <eager@mvista.com>
3510         * config/cpu/mips/atomicity.h:  Prevent reg loads between LL and
3511         SC instructions.
3513 2004-03-19  Paolo Carlini  <pcarlini@suse.de>
3515         * testsuite/22_locale/num_get/get/char/11.cc: Remove redundant
3516         static_cast-s.
3517         * testsuite/22_locale/num_get/get/char/12.cc: Likewise.
3518         * testsuite/22_locale/num_get/get/char/13.cc: Likewise.
3519         * testsuite/22_locale/num_get/get/char/14.cc: Likewise.
3520         * testsuite/22_locale/num_get/get/char/15.cc: Likewise.
3521         * testsuite/22_locale/num_get/get/wchar_t/11.cc: Likewise.
3522         * testsuite/22_locale/num_get/get/wchar_t/12.cc: Likewise.
3523         * testsuite/22_locale/num_get/get/wchar_t/13.cc: Likewise.
3524         * testsuite/22_locale/num_get/get/wchar_t/14.cc: Likewise.
3525         * testsuite/22_locale/num_get/get/wchar_t/15.cc: Likewise.
3527 2004-03-19  Paolo Carlini  <pcarlini@suse.de>
3528             Petur Runolfsson  <peturr02@ru.is>
3530         PR libstdc++/12077
3531         * include/ext/stdio_sync_filebuf.h (showmanyc): Remove, there's
3532         no way to find out the conversion used by the underlying FILE*.
3533         * testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc: New.
3534         * testsuite/27_io/objects/char/9.cc: Tweak.
3536 2004-03-19  Paolo Carlini  <pcarlini@suse.de>
3538         PR libstdc++/14648
3539         * include/ext/ropeimpl.h (rope<>::_S_apply_to_pieces): Fix
3540         memory allocation/deallocation calls.
3541         * testsuite/ext/14648.cc: New.
3543 2004-03-19  Peter Schmid  <schmid@snake.iap.physik.tu-darmstadt.de>
3545         PR libstdc++/14647
3546         * include/backward/bvector.h (bit_vector): Allocator is in std
3547         namespace.
3549 2004-03-19  Phil Edwards  <phil@codesourcery.com>
3551         * acinclude.m4 (GLIBCXX_CHECK_WCHAR_T_SUPPORT):  Set LIBICONV,
3552         not libiconv.  SUBST this variable as well.
3553         * testsuite/Makefile.am (site.exp):  New target, based on that
3554         created by automake.  Also set libiconv.
3556         * configure, Makefile.in, include/Makefile.in, libmath/Makefile.in,
3557         libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in,
3558         testsuite/Makefile.in:  Regenerate.
3560 2004-03-16  Benjamin Kosnik  <bkoz@redhat.com>
3562         * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Default setting is
3563         new_allocator for all hosts.
3564         * configure: Regenerate.
3566 2004-03-16  Paolo Carlini  <pcarlini@suse.de>
3568         * testsuite/22_locale/num_put/put/char/4.cc: Fix for 64-bit pointers.
3569         * testsuite/22_locale/num_put/put/wchar_t/4.cc: Likewise.
3571 2004-03-15  Paolo Carlini  <pcarlini@suse.de>
3573         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3574         Adjust the logic underlying the parsing of symbol to deal
3575         correctly with an optional sign component (i.e., when either
3576         negative_sign or positive_sign is empty)
3577         * testsuite/22_locale/money_get/get/char/19.cc: New.
3578         * testsuite/22_locale/money_get/get/wchar_t/19.cc: New.
3580 2004-03-15  Paolo Carlini  <pcarlini@suse.de>
3582         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3583         Do not accept an incomplete currency symbol.
3584         * testsuite/22_locale/money_get/get/char/18.cc: New.
3585         * testsuite/22_locale/money_get/get/wchar_t/18.cc: New.
3587 2004-03-13  Benjamin Kosnik  <bkoz@redhat.com>
3589         * config/allocator: New.
3590         * config/allocator/bitmap_allocator_base.h: New.
3591         * config/allocator/malloc_allocator_base.h: New.
3592         * config/allocator/mt_allocator_base.h: New.
3593         * config/allocator/new_allocator_base.h: New.
3594         * include/bits/allocator.h: Include c++allocator.h.
3595         * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): New.
3596         * aclocal.m4: Regenerate.
3597         * configure.ac: Use GLIBCXX_ENABLE_ALLOCATOR.
3598         * configure: Regenerate.
3599         * include/Makefile.am (host_headers_extra): Add c++allocator.h.
3600         * include/Makefile.in: Regenerate.
3601         * docs/html/configopts.html: Add enable-libstdcxx-allocator.
3603 2004-03-12  Benjamin Kosnik  <bkoz@redhat.com>
3605         * include/bits/allocator.h: Revert.
3607 2004-03-12  Paolo Carlini  <pcarlini@suse.de>
3609         * docs/html/ext/howto.html: Add entry for DR 253 [Ready].
3610         * include/bits/gslice_array.h: Add comment about DR 253.
3611         * include/bits/indirect_array.h: Likewise.
3612         * include/bits/mask_array.h: Likewise.
3613         * include/bits/slice_array.h: Likewise.
3615 2004-03-12  Benjamin Kosnik  <bkoz@redhat.com>
3617         * testsuite/20_util/allocator/14176.cc: New.
3618         * include/ext/mt_allocator.h: Formatting fixes.
3620 2004-03-11  Dhruv Matani  <dhruvbird@HotPOP.com>
3622         * include/Makefile.am (ext_headers): Add
3623         ${ext_srcdir}/bitmap_allocator.h .
3624         * include/Makefile.in: Regenerate.
3625         * docs/html/ext/ballocator_doc.txt: New file.
3626         * include/ext/bitmap_allocator.h: New file.
3627         * testsuite/performance/20_util/allocator/list_sort_search.cc: Add
3628         test.
3629         * testsuite/performance/20_util/allocator/map_mt_find.cc: Likewise.
3630         * testsuite/performance/20_util/allocator/producer_consumer.cc: Add
3631         test for the bitmap_allocator<>.
3632         * testsuite/performance/20_util/allocator/insert.cc: Likewise.
3633         * testsuite/performance/20_util/allocator/insert_insert.cc: Likewise.
3634         * testsuite/performance/20_util/allocator/map_thread.cc: Likewise.
3636 2004-03-11  Paolo Carlini  <pcarlini@suse.de>
3638         * include/std/std_complex.h (pow(const complex&, const _Tp&),
3639         pow(const _Tp&, const complex&), pow(const complex&,
3640         const complex&)): Fully qualify with std:: a few calls.
3641         * testsuite/26_numerics/complex/13450.cc: Minor tweak.
3643 2004-03-11  Steven Bosscher  <stevenb@suse.de>
3645         PR libstdc++/11706
3646         * include/c_std/cmath.tcc (__cmath_power): Define inline.
3648 2004-03-10  Kelley Cook  <kcook@gcc.gnu.org>
3650         * configure.ac: Bump AC_PREREQ to 2.59.
3652 2004-03-10  Paolo Carlini  <pcarlini@suse.de>
3654         * testsuite/26_numerics/valarray_subset_assignment.cc: Fix typos.
3656 2004-03-10  Paul Kienzle  <pkienzle@nist.gov>
3657             Paolo Carlini  <pcarlini@suse.de>
3659         PR libstdc++/13450
3660         * include/std/std_complex.h (pow(const complex&, const _Tp&),
3661         pow(const _Tp&, const complex&)): Use cmath pow only when safe.
3662         * testsuite/26_numerics/complex/13450.cc: New.
3664         * testsuite/26_numerics/cmath/overloads.C: Rename to overloads.cc.
3665         * testsuite/26_numerics/complex/pow.C: Rename to pow.cc and fix.
3667 2004-03-10  Jerry Quinn  <jlquinn@optonline.net>
3669         PR libstdc++/3247
3670         * include/bits/gslice_array.h (gslice_array()): Make public.
3671         (operator=(gslice_array)): Make public.  Implement.
3672         * include/bits/indirect_array.h (indirect_array()): Make public.
3673         * include/bits/mask_array.h (mask_array()): Make public.
3674         (operator=(mask_array)): Make public.  Implement.
3675         * include/bits/valarray_array.tcc (__valarray_copy):
3676         Comment.  Add versions for gslice_array and mask_array.
3677         * testsuite/26_numerics/valarray_subset_assignment.cc:  New test.
3679 2004-03-09  Benjamin Kosnik  <bkoz@redhat.com>
3681         * testsuite/23_containers/deque/modifiers/swap.cc: Add in bits for
3682         non-weak systems.
3683         * testsuite/23_containers/vector/modifiers/swap.cc: Same.
3684         * testsuite/23_containers/set/modifiers/swap.cc: Same.
3685         * testsuite/23_containers/multiset/modifiers/swap.cc: Same.
3686         * testsuite/23_containers/multimap/modifiers/swap.cc: Same.
3687         * testsuite/23_containers/map/modifiers/swap.cc: Same.
3688         * testsuite/23_containers/list/modifiers/swap.cc: Same.
3690         * testsuite/22_locale/locale/cons/12658_thread.cc: Catch exceptions.
3692 2004-03-08  Benjamin Kosnik  <bkoz@redhat.com>
3694         PR c++/13658
3695         * testsuite/23_containers/deque/modifiers/swap.cc: New.
3696         * testsuite/23_containers/list/modifiers/swap.cc: New.
3697         * testsuite/23_containers/map/modifiers/swap.cc: New.
3698         * testsuite/23_containers/multimap/modifiers/swap.cc: New.
3699         * testsuite/23_containers/multiset/modifiers/swap.cc: New.
3700         * testsuite/23_containers/set/modifiers/swap.cc: New.
3701         * testsuite/23_containers/vector/modifiers/swap.cc: New.
3703 2004-03-08  Petur Runolfsson  <peturr02@ru.is>
3705         PR libstdc++/12658
3706         * testsuite/22_locale/locale/cons/12658_thread.cc: New.
3708 2004-03-08  Paolo Carlini  <pcarlini@suse.de>
3710         * docs/html/ext/howto.html: Add entry for DR 103 [WP].
3711         * include/bits/stl_multiset.h: Add comment about DR 103.
3712         * include/bits/stl_set.h: Likewise.
3714 2004-03-08  Paolo Carlini  <pcarlini@suse.de>
3716         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3717         The value _space_ indicates that at least one space is required
3718         at that position.
3719         * testsuite/22_locale/money_get/get/char/17.cc: New.
3720         * testsuite/22_locale/money_get/get/wchar_t/17.cc: New.
3722         * testsuite/22_locale/money_get/get/char/7.cc: Minor tweaks.
3723         * testsuite/22_locale/money_get/get/wchar_t/7.cc: Likewise.
3725         * include/bits/locale_facets.tcc (money_get<>::do_get(long_double&)):
3726         Remove redundant conditional on __str.size().
3728 2004-03-08  Benjamin Kosnik  <bkoz@redhat.com>
3730         * include/bits/allocator.h: Switch defaults to mt_alloc.
3732 2004-03-06  Benjamin Kosnik  <bkoz@redhat.com>
3734         * include/ext/mt_allocator.h (_S_initialize): If
3735         !__GTHREAD_MUTEX_INIT, then initialize _S_thread_freelist_mutex.
3737 2004-03-06  Benjamin Kosnik  <bkoz@redhat.com>
3739         PR libstdc++/12658
3740         * src/locale_init.cc (locale::locale): Lock critical regions with
3741         external mutexes.
3742         (locale::global): Same.
3743         * include/bits/concurrence.h (__glibcxx_mutex_define_initialized):
3744         Add in once bits for cases without __GTHREAD_MUTEX_INIT.
3745         (__glibcxx_mutex_lock): Same.
3747         * config/cpu/generic/atomicity.h: Remove
3748         _GLIBCXX_NEED_GENERIC_MUTEX, use concurrence.h.
3749         * src/misc-inst.cc: Move all locking bits out of this file.
3751         * config/os/hpux/os_defines.h: Remove _GLIBCXX_INST_ATOMICITY_LOCK.
3752         * src/misc-inst.cc: Same.
3753         * config/cpu/hppa/atomicity.h: Same.
3755         * config/linker-map.gnu: Remove types in the signature of atomic
3756         exports, as they may vary.
3758 2004-03-06  Paolo Carlini  <pcarlini@suse.de>
3760         * include/bits/locale_facets.tcc: Tweak the comment preceding
3761         has_facet: doesn't throw.
3763 2004-03-06  Paolo Carlini  <pcarlini@suse.de>
3765         * testsuite/22_locale/money_get/get/char/1.cc: Clean up.
3766         * testsuite/22_locale/money_get/get/char/2.cc: Likewise.
3767         * testsuite/22_locale/money_get/get/char/3.cc: Likewise.
3768         * testsuite/22_locale/money_get/get/char/4.cc: Likewise.
3769         * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
3770         * testsuite/22_locale/money_get/get/wchar_t/2.cc: Likewise.
3771         * testsuite/22_locale/money_get/get/wchar_t/3.cc: Likewise.
3772         * testsuite/22_locale/money_get/get/wchar_t/4.cc: Likewise.
3774 2004-03-06  Paolo Carlini  <pcarlini@suse.de>
3776         * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
3777         num_get<>::_M_extract_int, num_get<>::do_get(bool&),
3778         __pad<>::_S_pad): Prefer plain operator== to traits::eq().
3779         * testsuite/testsuite_character.h (struct __gnu_test::character):
3780         Provide operator==.
3781         * testsuite/testsuite_hooks.h (struct __gnu_test::pod_char):
3782         Likewise.
3784 2004-03-05  Paolo Carlini  <pcarlini@suse.de>
3786         * testsuite/27_io/fpos/14320-2.cc: Remove xfail.
3788 2004-03-04  Benjamin Kosnik  <bkoz@redhat.com>
3790         * testsuite/23_containers/multiset/insert/1.cc: Test result string.
3792         * testsuite/23_containers/bitset/invalidation/1.cc: Main always
3793         returns 0.
3794         * testsuite/23_containers/deque/invalidation/4.cc: Same.
3795         * testsuite/23_containers/list/invalidation/1.cc: Same.
3796         * testsuite/23_containers/list/invalidation/2.cc: Same.
3797         * testsuite/23_containers/list/invalidation/3.cc: Same.
3798         * testsuite/23_containers/list/invalidation/4.cc: Same.
3799         * testsuite/23_containers/map/invalidation/2.cc: Same.
3800         * testsuite/23_containers/multimap/invalidation/1.cc: Same.
3801         * testsuite/23_containers/multimap/invalidation/2.cc: Same.
3802         * testsuite/23_containers/multiset/invalidation/1.cc: Same.
3803         * testsuite/23_containers/multiset/invalidation/2.cc: Same.
3804         * testsuite/23_containers/set/invalidation/1.cc: Same.
3805         * testsuite/23_containers/set/invalidation/2.cc: Same.
3806         * testsuite/23_containers/vector/invalidation/1.cc: Same.
3807         * testsuite/23_containers/vector/invalidation/2.cc: Same.
3808         * testsuite/23_containers/vector/invalidation/3.cc: Same.
3809         * testsuite/23_containers/vector/invalidation/4.cc: Same.
3811 2004-03-04  Paolo Carlini  <pcarlini@suse.de>
3813         * scripts/testsuite_flags.in: Add "-D_GLIBCXX_ASSERT" to
3814         CXXFLAGS_save.
3815         * testsuite/lib/libstdc++.exp: Don't add it conditionally to
3816         DEFAULT_CXXFLAGS.
3817         * testsuite/18_support/numeric_limits.cc: Remove "-D_GLIBCXX_ASSERT"
3818         from the dg-options.
3819         * testsuite/23_containers/vector/invalidation/1.cc: Likewise.
3820         * testsuite/23_containers/vector/invalidation/2.cc: Likewise.
3821         * testsuite/23_containers/vector/invalidation/3.cc: Likewise.
3822         * testsuite/23_containers/vector/invalidation/4.cc: Likewise.
3823         * testsuite/23_containers/vector/resize/1.cc: Likewise.
3824         * testsuite/26_numerics/complex_value.cc: Likewise.
3825         * testsuite/27_io/ios_base/storage/1.cc: Likewise.
3826         * testsuite/27_io/ios_base/storage/2.cc: Likewise.
3827         * testsuite/27_io/ios_base/storage/3.cc: Likewise.
3828         * testsuite/27_io/manipulators/standard/char/2.cc: Likewise.
3829         * testsuite/27_io/objects/char/5.cc: Likewise.
3830         * testsuite/27_io/objects/wchar_t/5.cc: Likewise.
3831         * testsuite/backward/11460.cc: Likewise.
3832         * testsuite/thread/pthread7-rope.cc: Likewise.
3834         * testsuite/21_strings/basic_string/compare/char/1.cc: Add
3835         missing test variable.
3836         * testsuite/21_strings/basic_string/compare/wchar_t/1.cc: Add
3837         missing test variable.
3839 2004-03-04  Benjamin Kosnik  <bkoz@redhat.com>
3841         * testsuite/20_util/allocator/1.cc: Provide explicit
3842         instantiations for non-weak systems.
3843         * testsuite/20_util/binders.cc: Same.
3844         * testsuite/20_util/allocator/8230.cc: Same.
3845         * testsuite/20_util/allocator/10378.cc: Same.
3846         * testsuite/22_locale/ctype/is/wchar_t/2.cc: Same.
3847         * testsuite/22_locale/ctype/is/char/2.cc: Same.
3848         * testsuite/thread/pthread7-rope.cc: Same.
3849         * testsuite/thread/pthread6.cc: Same.
3850         * testsuite/thread/pthread5.cc: Same.
3851         * testsuite/thread/pthread4.cc: Same.
3852         * testsuite/thread/pthread1.cc: Same.
3853         * testsuite/ext/rope.cc: Same.
3854         * testsuite/ext/hash_set.cc: Same.
3855         * testsuite/ext/hash_map.cc: Same.
3856         * testsuite/ext/concept_checks.cc: Same.
3857         * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9874.cc: Same.
3858         * testsuite/25_algorithms/unique/2.cc: Same.
3859         * testsuite/25_algorithms/unique/1.cc: Same.
3860         * testsuite/25_algorithms/rotate.cc: Same.
3861         * testsuite/25_algorithms/min_max.cc: Same.
3862         * testsuite/25_algorithms/equal.cc: Same.
3863         * testsuite/24_iterators/rel_ops.cc: Same.
3864         * testsuite/24_iterators/iterator.cc: Same.
3865         * testsuite/24_iterators/insert_iterator.cc: Same.
3866         * testsuite/24_iterators/front_insert_iterator.cc: Same.
3867         * testsuite/24_iterators/back_insert_iterator.cc: Same.
3868         * testsuite/23_containers/vector/resize/1.cc: Same.
3869         * testsuite/23_containers/vector/modifiers/2.cc: Same.
3870         * testsuite/23_containers/vector/modifiers/1.cc: Same.
3871         * testsuite/23_containers/vector/invalidation/4.cc: Same.
3872         * testsuite/23_containers/vector/invalidation/3.cc: Same.
3873         * testsuite/23_containers/vector/invalidation/2.cc: Same.
3874         * testsuite/23_containers/vector/invalidation/1.cc: Same.
3875         * testsuite/23_containers/vector/element_access/1.cc: Same.
3876         * testsuite/23_containers/vector/cons/6513.cc: Same.
3877         * testsuite/23_containers/vector/cons/3.cc: Same.
3878         * testsuite/23_containers/vector/cons/2.cc: Same.
3879         * testsuite/23_containers/vector/cons/1.cc: Same.
3880         * testsuite/23_containers/vector/capacity/8230.cc: Same.
3881         * testsuite/23_containers/vector/capacity/1.cc: Same.
3882         * testsuite/23_containers/vector/bool/6886.cc: Same.
3883         * testsuite/23_containers/stack/members/7158.cc: Same.
3884         * testsuite/23_containers/set/invalidation/2.cc: Same.
3885         * testsuite/23_containers/set/invalidation/1.cc: Same.
3886         * testsuite/23_containers/queue/members/7157.cc: Same.
3887         * testsuite/23_containers/priority_queue/members/7161.cc: Same.
3888         * testsuite/23_containers/multiset/invalidation/2.cc: Same.
3889         * testsuite/23_containers/multiset/invalidation/2.cc: Same.
3890         * testsuite/23_containers/multiset/insert/1.cc: Same.
3891         * testsuite/23_containers/multimap/invalidation/2.cc: Same.
3892         * testsuite/23_containers/multimap/invalidation/2.cc: Same.
3893         * testsuite/23_containers/map/operators/1.cc: Same.
3894         * testsuite/23_containers/map/invalidation/2.cc: Same.
3895         * testsuite/23_containers/map/invalidation/1.cc: Same.
3896         * testsuite/23_containers/map/insert/1.cc: Same.
3897         * testsuite/23_containers/list/operators/4.cc: Same.
3898         * testsuite/23_containers/list/operators/3.cc: Same.
3899         * testsuite/23_containers/list/operators/2.cc: Same.
3900         * testsuite/23_containers/list/operators/1.cc: Same.
3901         * testsuite/23_containers/list/modifiers/3.cc: Same.
3902         * testsuite/23_containers/list/modifiers/2.cc: Same.
3903         * testsuite/23_containers/list/modifiers/1.cc: Same.
3904         * testsuite/23_containers/list/invalidation/4.cc: Same.
3905         * testsuite/23_containers/list/invalidation/3.cc: Same.
3906         * testsuite/23_containers/list/invalidation/2.cc: Same.
3907         * testsuite/23_containers/list/invalidation/1.cc: Same.
3908         * testsuite/23_containers/list/cons/9.cc: Same.
3909         * testsuite/23_containers/list/cons/8.cc: Same.
3910         * testsuite/23_containers/list/cons/7.cc: Same.
3911         * testsuite/23_containers/list/cons/6.cc: Same.
3912         * testsuite/23_containers/list/cons/5.cc: Same.
3913         * testsuite/23_containers/list/cons/4.cc: Same.
3914         * testsuite/23_containers/list/cons/3.cc: Same.
3915         * testsuite/23_containers/list/cons/2.cc: Same.
3916         * testsuite/23_containers/list/cons/1.cc: Same.
3917         * testsuite/23_containers/list/capacity/1.cc: Same.
3918         * testsuite/23_containers/deque/operators/1.cc: Same.
3919         * testsuite/23_containers/deque/invalidation/4.cc: Same.
3920         * testsuite/23_containers/deque/invalidation/3.cc: Same.
3921         * testsuite/23_containers/deque/invalidation/2.cc: Same.
3922         * testsuite/23_containers/deque/invalidation/1.cc: Same.
3923         * testsuite/23_containers/deque/cons/2.cc: Same.
3924         * testsuite/23_containers/deque/cons/1.cc: Same.
3926         * src/allocator.cc: Add char, wchar_t instantiations
3927         to match extern template declarations in memory.h.
3929 2004-03-03  Paolo Carlini  <pcarlini@suse.de>
3931         * include/bits/locale_facets.tcc (money_put<>::_M_insert):
3932         Fix warning regression.
3934 2004-03-03  Paolo Carlini  <pcarlini@suse.de>
3936         * include/bits/locale_facets.tcc (money_put<>::_M_insert):
3937         Deal properly with empty __digits and negative frac_digits,
3938         clean-up a bit.
3940 2004-03-03  Jonathan Wakely  <redi@gcc.gnu.org>
3942         * docs/html/documentation.html: Regenerate.
3944 2004-03-02  Paolo Carlini  <pcarlini@suse.de>
3946         PR libstdc++/14320
3947         * include/bits/postypes.h (class streamoff): Remove, now
3948         streamoff is just typedef a 64 bit signed integer type.
3949         (class fpos): Tweak consistently.
3950         * testsuite/27_io/fpos/14320-1.cc: New.
3951         * testsuite/27_io/fpos/14320-2.cc: New.
3952         * testsuite/27_io/fpos/14320-3.cc: New.
3953         * testsuite/27_io/fpos/14320-4.cc: New.
3954         * testsuite/27_io/fpos/14320-5.cc: New.
3955         * testsuite/27_io/fpos/mbstate_t/4_neg.cc: xfail for now.
3957 2004-03-02  Paolo Carlini  <pcarlini@suse.de>
3959         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3960         Reorganize a bit the main parsing loop, thus early detecting
3961         an empty value component.
3962         * testsuite/22_locale/money_get/get/char/16.cc: New.
3963         * testsuite/22_locale/money_get/get/wchar_t/16.cc: New.
3965 2004-03-02  Benjamin Kosnik  <bkoz@redhat.com>
3967         Support automake 1.8.2
3968         * configure.ac (AM_INIT_AUTOMAKE): Add -Wno-override.
3969         * po/Makefile.am (EXTRA_DIST): New.
3970         * po/Makefile.in: Regenerate.
3971         * Makefile.in: Same.
3972         * include/Makefile.in: Same.
3973         * libmath/Makefile.in: Same.
3974         * libsupc++/Makefile.in: Same.
3975         * src/Makefile.in: Same.
3976         * testsuite/Makefile.in: Same.
3978         * include/Makefile.am (${host_builddir}/gthr-posix.h): Use
3979         __GXX_WEAK__ instead of SUPPORTS_WEAK.
3980         (${host_builddir}/gthr-default.h): Same.
3981         (${host_builddir}/gthr.h): Same.
3982         * acinclude.m4 (GLIBCXX_ENABLE_THREAD): Remove
3983         _GLIBCXX_SUPPORTS_WEAK, as this behavior can be modified via
3984         -fno-weak.
3985         * aclocal.m4: Regenerate.
3986         * acconfig.h: Remove _GLIBCXX_SUPPORTS_WEAK.
3987         * config.h.in: Regenerate.
3988         * configure: Same.
3990 2004-03-01  Benjamin Kosnik  <bkoz@redhat.com>
3992         Support autoconf 2.59
3993         * acinclude.m4: Quote correctly.
3994         * aclocal.m4: Regenerate.
3995         * linkage.m4: Same.
3997 2004-03-01  Benjamin Kosnik  <bkoz@redhat.com>
3999         * docs/html/test.html: Add multilib RUNTESTFLAGS example.
4001         * docs/html/18_support/howto.html: Add bit about writing to
4002         stderr, mostly by Zack.
4004 2004-03-01  Paolo Carlini  <pcarlini@suse.de>
4006         * include/bits/locale_facets.tcc (money_get<>::_M_extract,
4007         money_get<>::do_get(string_type&)): ... and two more.
4009 2004-03-01  Paolo Carlini  <pcarlini@suse.de>
4011         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
4012         Fix thinkos in the switch from string_type& to string& as last
4013         argument.
4015 2004-03-01  Paolo Carlini  <pcarlini@suse.de>
4017         * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
4018         Also when parsing exponent sign, first look for thousands_sep
4019         and decimal_point; tweak a bit.
4020         * testsuite/22_locale/num_get/get/char/15.cc: New.
4021         * testsuite/22_locale/num_get/get/wchar_t/15.cc: New.
4023         * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
4024         num_get<>::_M_extract_int): Reorder some conditionals.
4026 2004-03-01  Paolo Carlini  <pcarlini@suse.de>
4028         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
4029         Consistently with numpunct, enforce the requirements in
4030         22.2.6.3, p3 for the thousands separators; tweak a bit.
4031         * testsuite/22_locale/money_get/get/char/15.cc: New.
4032         * testsuite/22_locale/money_get/get/wchar_t/15.cc: New.
4034 2004-03-01  David Billinghurst <David.Billinghurst@riotinto.com>
4036         * testsuite/lib/libstdc++.exp (v3-list-tests): Use
4037         testsuite_files from correct multilib blddir when running
4038         testsuite.
4040 2004-02-29  Phil Edwards  <phil@codesourcery.com>
4042         * testsuite/Makefile.am (check-abi, check-abi-verbose):  Copy
4043         the summary file to the logfile.
4044         * testsuite/Makefile.in:  Regenerate.
4046 2004-02-28  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4048         * config/cpu/hppa/atomicity.h (__atomic_add): Make first argument
4049         volatile.
4050         * config/os/hpux/os_defines.h (_GLIBCXX_INST_ATOMICITY_LOCK): Use
4051         __GXX_WEAK__ instead of _GLIBCXX_SUPPORTS_WEAK.
4053 2004-02-28  Paolo Carlini  <pcarlini@suse.de>
4055         * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
4056         According to 22.2.3.1, p2, 'units' may be followed by 'e' with
4057         no 'decimal-point' in the middle: in this case too we must fix
4058         up __found_grouping; slightly tweak.
4059         * testsuite/22_locale/num_get/get/char/14.cc: New.
4060         * testsuite/22_locale/num_get/get/wchar_t/14.cc: New.
4062 2004-02-27  Eric Christopher  <echristo@redhat.com>
4063             Phil Edwards  <phil@codesourcery.com>
4065         * testsuite/22_locale/collate/compare/wchar_t/2.cc,
4066         testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc,
4067         testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc,
4068         testsuite/22_locale/collate/hash/wchar_t/2.cc,
4069         testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc,
4070         testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc,
4071         testsuite/22_locale/collate/transform/wchar_t/2.cc,
4072         testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc,
4073         testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
4074         Use dg-require-iconv.
4075         * testsuite/lib/libstdc++.exp:  Load target-supports.exp.
4077 2004-02-27  Phil Edwards  <phil@codesourcery.com>
4078             Eric Christopher  <echristo@redhat.com>
4080         * testsuite/config/default.exp:  Update with comments.
4081         (${tool}_target_compile):  New wrapper routine.
4082         * testsuite/lib/dg-options.exp:  New file, with dg-require-iconv.
4083         * testsuite/lib/libstdc++.exp:  Update with comments and cosmetic
4084         fixes.
4085         (load_gcc_lib, v3track):  New routines.
4086         (v3-init):  Rename to libstdc++_init.
4087         * testsuite/libstdc++-dg/normal.exp:  No longer call v3-init.
4088         Move DEFAULT_CXXFLAGS handling into libstdc++_init.
4090 2004-02-27  Benjamin Kosnik  <bkoz@redhat.com>
4092         * config/cpu/hppa/atomicity.h: Include c++config.h to get defines.
4094         * src/misc-inst.cc (_S_atomicity_lock): Move to __gnu_cxx.
4096         * config/os/irix/irix5.2/atomicity.h: Merge..
4097         * config/os/irix/irix6.5/atomicity.h: Merge..
4098         * config/os/irix/atomicity.h: ...into this.
4099         * config/os/irix/atomic_word.h: New.
4100         * configure.host: Set atomic_word_dir for irix.
4102         * hppa/atomicity.h: Change __Atomicity_lock to _Atomicity_lock.
4103         * i386/atomicity.h: Same.
4104         * m68k/atomicity.h: Same.
4105         * sparc/atomicity.h: Same.
4107 2004-02-27  David Edelsohn  <edelsohn@gnu.org>
4109         * config/os/aix/atomicity.h: Use __gnu_cxx namespace. Remove
4110         static, and inline keywords.
4112 2004-02-27  Paolo Carlini  <pcarlini@suse.de>
4114         * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
4115         num_get<>::_M_extract_int, money_get<>::_M_extract): If appropriate,
4116         call reserve on the __tmp_gruping string.
4117         (num_get<>::_M_extract_float): Don't append unnecessarily a
4118         char() to the returned string.
4119         * include/bits/locale_facets.tcc: Trivial reformattings.
4121 2004-02-27  Paolo Carlini  <pcarlini@suse.de>
4123         * include/bits/locale_facets.h (money_get<>::_M_extract):
4124         Change signature: now takes a plain string&.
4125         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
4126         Update consistently the definition; use the moneypunct cache
4127         to parse the value; use swap to change __units.
4128         (money_get<>::do_get(long double&)): Update call of _M_extract,
4129         avoid ctype::narrow, not correct wrt the standard.
4130         (money_get<>::do_get(string_type&)): Likewise, update call
4131         of _M_extract, use ctype::widen.
4132         * src/locale-inst.cc: Tweak instantiations of _M_extract.
4134 2004-02-26  Ian Lance Taylor  <ian@wasabisystems.com>
4136         * testsuite/demangle/abi_examples/01.cc: Expect error -2.
4137         * testsuite/demangle/abi_examples/02.cc: Likewise.
4138         * testsuite/demangle/regression/cw-11.cc: Likewise.
4139         * testsuite/demangle/regression/cw-16.cc: Change two expected
4140         results to match libiberty demangler output.
4142 2004-02-26  Benjamin Kosnik  <bkoz@redhat.com>
4144         PR libstdc++/10246
4145         * libsupc++/Makefile.am: Use libiberty demangler.
4146         (c_sources): Add cp-demangle.c.
4147         * libsupc++/Makefile.in: Regenerate.
4148         * src/Makefile.am (sources): Remove demangle.cc.
4149         * src/Makefile.in: Regenerate.
4150         * include/Makefile.am (bits_headers): Move demangle.h.
4151         (ext_headers): ...here.
4152         * include/Makefile.in: Regenerate.
4153         * include/bits/demangle.h: Move...
4154         * include/ext/demangle.h: ...here.
4155         * src/demangle.cc: Remove.
4157 2004-02-26  Benjamin Kosnik  <bkoz@redhat.com>
4159         * include/bits/demangle.h: Add type template parameter to all
4160         templates with just an Allocator template parameter.
4162 2004-02-25  Benjamin Kosnik  <bkoz@redhat.com>
4164         * include/bits/atomicity.h: New, forward declarations for __atomic_add
4165         and __exchange_and_add.
4166         * config/cpu/generic/atomic_word.h: New, typdef for atomic word.
4167         * config/cpu/cris/atomic_word.h: Same.
4168         * config/cpu/sparc/atomic_word.h: Same.
4169         * include/bits/ios_base.h (_Callback_list::_M_remove_reference):
4170         Qualifiy with __gnu_cxx.
4171         (_Callback_list::_M_add_reference): Same.
4172         * include/bits/locale_classes.h (locale::facet::_M_add_reference): Add.
4173         (locale::facet::_M_remove_reference): Same.
4174         (locale::_Impl::_M_add_reference): Add.
4175         (locale::_Impl::_M_remove_reference): Same.
4176         * include/bits/basic_string.h (basic_string::_Rep::_M_refcopy): Same.
4177         (basic_string::_Rep::_M_dispose): Same.
4178         * src/ios.cc (ios_base::xalloc): Same.
4179         * src/ios_init.cc (ios_base::Init::Init): Same.
4180         (ios_base::Init::~Init): Same.
4181         * src/locale.cc (locale::id::_M_id): Same.
4182         * config/cpu/i486/atomicity.h: Use __gnu_cxx namespace. Remove
4183         static, and inline keywords.
4184         * config/cpu/alpha/atomicity.h: Same.
4185         * config/cpu/cris/atomicity.h: Same.
4186         * config/cpu/generic/atomicity.h: Same.
4187         * config/cpu/hppa/atomicity.h: Same.
4188         * config/cpu/i386/atomicity.h: Same.
4189         * config/cpu/ia64/atomicity.h: Same.
4190         * config/cpu/m68k/atomicity.h: Same.
4191         * config/cpu/mips/atomicity.h: Same.
4192         * config/cpu/powerpc/atomicity.h: Same.
4193         * config/cpu/s390/atomicity.h: Same.
4194         * config/cpu/sparc/atomicity.h: Same.
4196         * src/Makefile.am (host_sources): Add atomicity.cc.
4197         (atomicity.cc): New rule.
4198         * src/Makefile.in: Regenerate.
4199         * include/Makefile.am (host_headers): Remove host atomicity.h.
4200         (host_headers): Add atomic_word.h.
4201         (bits_headers): Add bits atomicity.h.
4202         Change ATOMICITY_INC_SRCDIR to ATOMICITY_SRCDIR.
4203         * include/Makefile.in: Regenerate.
4204         * configure.host (atomic_word_dir): Add.
4205         * configure.ac: Substitute ATOMIC_WORD_SRCDIR. Change
4206         ATOMICITY_INC_SRCDIR to ATOMICITY_SRCDIR.
4207         * configure: Regenerate.
4208         * config/linker-map.gnu: Export __exchange_and_add, and __atomic_add.
4210         * testsuite/27_io/ios_base/cons/assign_neg.cc: Adjust line numbers.
4211         * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
4213 2004-02-25  Jonathan Wakely  <redi@gcc.gnu.org>
4215         * docs/html/20_util/howto.html, docs/html/20_util/allocator.html,
4216         docs/html/ext/howto.html, docs/html/ext/mt_allocator.html:
4217         Fix markup, more <link> tags.
4219 2004-02-25  Carlo Wood  <carlo@alinoe.com>
4221         * bits/demangle.h
4222         namespace __gnu_cxx::demangler
4223         (session<Allocator>::qualifier_list_Allocator): Add
4224         (session<Allocator>::M_qualifier_list_alloc): Add
4225         (session<Allocator>::decode_type_with_postfix):
4226         Use M_qualifier_list_alloc instead of calling operator new/delete.
4228 2004-02-24  Paolo Carlini  <pcarlini@suse.de>
4230         PR libstdc++/14252
4231         * include/bits/postypes.h (class streamoff): Add operator++(),
4232         operator++(int), operator--() and operator--(int).
4233         * testsuite/27_io/fpos/14252.cc: New.
4235 2004-02-24  Richard Sandiford  <rsandifo@redhat.com>
4237         * include/bits/locale_facets.tcc (num_get::_M_extract_int): Fix bounds
4238         error in handling of hex constants.
4240 2004-02-24  Paolo Carlini  <pcarlini@suse.de>
4242         * include/bits/locale_facets.tcc (money_put<>::_M_insert):
4243         Prefer basic_string::append to operator+= and a temporary.
4245 2004-02-23  Benjamin Kosnik  <bkoz@redhat.com>
4247         * libsupc++/vterminate.cc (__gnu_cxx::__verbose_terminate_handler):
4248         Only use fputs, not write.
4250 2004-02-23  Benjamin Kosnik  <bkoz@redhat.com>
4252         * include/ext/malloc_allocator.h: Add operators ==, !=.
4253         * include/ext/new_allocator.h: Add operators ==, !=.
4254         * include/ext/mt_allocator.h (__mt_alloc::tune): New.
4255         (__mt_alloc::_S_get_options): New.
4256         (__mt_alloc::_S_set_options): New.
4257         (__mt_alloc::_S_thread_key_destr): To _S_destroy_thread_key.
4258         (__mt_alloc::_S_no_of_bins): To _S_bin_size.
4259         Move functions out of line, simplify, format.
4260         * src/allocator.cc: Simplify explicit instantiations.
4261         * include/bits/allocator.h: Tweak.
4263 2004-02-22  Paolo Carlini  <pcarlini@suse.de>
4265         * include/bits/locale_facets.tcc (money_put<>::_M_insert):
4266         Restructure formatting of value component, first dealing with
4267         the non-decimal digits; use reserve.
4269 2004-02-22  Paolo Carlini  <pcarlini@suse.de>
4271         * include/bits/locale_facets.h (class money_get): Inherit
4272         from money_base too; tweak declaration of _M_extract, now
4273         parameterized on _Intl too.
4274         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
4275         Update definition to use the cache; call reserve on __res to
4276         avoid multiple reallocations; fix parsing of sign component
4277         according to 22.2.6.1.2, p3.
4278         (money_get<>::do_get(long double&),
4279         money_get<>::do_get(string_type&)): Update calls of _M_extract.
4280         * src/locale-inst.cc:  Add instantiations of
4281         money_get::_M_extract<false> and money_get::_M_extract<true>.
4282         * testsuite/22_locale/money_get/get/char/14.cc: New.
4283         * testsuite/22_locale/money_get/get/wchar_t/14.cc: Ditto.
4285 2004-02-21  Mark Mitchell  <mark@codesourcery.com>
4287         * libsupc++/vterminate.cc
4288         (__gnu_cxx::__verbose_terminate_handler): Guard against recursive
4289         calls to terminate.
4290         * src/demangle.cc (__cxa_demangle): Wrap in try-catch block.
4292         * testsuite/testsuite_hooks.cc (__gnu_test::set_memory_limits): Do
4293         not set RLIMIT_AS on HP-UX.
4295 2004-02-21  Mark Mitchell  <mark@codesourcery.com>
4297         * testsuite/testsuite_hooks.cc (__gnu_test::set_memory_limits): Do
4298         not set RLIMIT_AS on HP-UX.
4300 2004-02-21  Paolo Carlini  <pcarlini@suse.de>
4302         * include/bits/locale_facets.h (class money_base): Add { _S_minus,
4303         _S_zero, _S_end } enum, _S_atoms.
4304         (struct __moneypunct_cache<>): Parameterize on _Intl too; add
4305         _M_grouping_size, _M_curr_symbol_size, _M_positive_sign_size,
4306         _M_negative_sign_size, _M_atoms; tweak constructor consistently.
4307         (__moneypunct_cache<>::~__moneypunct_cache): Update.
4308         (__moneypunct_cache<>::_M_cache): Fill the cache.
4309         (class moneypunct): Tweak __cache_type typedef.
4310         (class money_put): Inherit from money_base too; tweak declaration
4311         of _M_insert, now parameterized on _Intl.
4312         * include/bits/locale_facets.tcc
4313         (struct __use_cache<__moneypunct_cache<_CharT, _Intl> >): New.
4314         (money_put<>::_M_insert): Update definition to use the cache;
4315         call reserve on __res to avoid multiple reallocations.
4316         (money_put<>::do_put(long double),
4317         money_put<>::do_put(const string_type&): Update calls of _M_insert.
4318         * config/locale/generic/monetary_members.cc
4319         (moneypunct<char, true>::_M_initialize_moneypunct,
4320         moneypunct<char, false>::_M_initialize_moneypunct,
4321         moneypunct<wchar_t, true>::_M_initialize_moneypunct,
4322         moneypunct<wchar_t, false>::_M_initialize_moneypunct): Update.
4323         * config/locale/gnu/monetary_members.cc: Likewise.
4324         * config/locale/gnu/monetary_members.cc
4325         (moneypunct<wchar_t, true>::~moneypunct(),
4326         moneypunct<wchar_t, false>::~moneypunct()): Likewise.
4327         * src/globals_locale.cc: Tweak fake_money_cache_c.
4328         * src/locale-inst.cc: Add instantiations for
4329         money_put::_M_insert<false> and money_put::_M_insert<true> and
4330         __moneypunct_cache<C, false>, __moneypunct_cache<C, true>.
4331         * src/locale_facets.cc: Define money_base::_S_atoms.
4332         * src/locale_init.cc: Update placement new of
4333         __moneypunct_cache<char, false>, __moneypunct_cache<char, true>,
4334         __moneypunct_cache<wchar_t, false>, __moneypunct_cache<wchar_T, true>.
4336         * config/locale/generic/numeric_members.cc: Clean up.
4337         * config/locale/gnu/numeric_members.cc: Likewise.
4338         * testsuite/22_locale/money_put/put/char/1.cc: Likewise.
4339         * testsuite/22_locale/money_put/put/char/2.cc: Likewise.
4340         * testsuite/22_locale/money_put/put/char/3.cc: Likewise.
4341         * testsuite/22_locale/money_put/put/wchar_t/1.cc: Likewise.
4342         * testsuite/22_locale/money_put/put/wchar_t/2.cc: Likewise.
4343         * testsuite/22_locale/money_put/put/wchar_t/3.cc: Likewise.
4345 2004-02-20  Mark Mitchell  <mark@codesourcery.com>
4347         * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: Open
4348         FIFO for writing with ios_base::in|ios_base::out.
4349         * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
4350         * testsuite/27_io/objects/char/7.cc: Likewise.
4351         * testsuite/27_io/objects/char/9661-1.cc: Open FIFO for writing
4352         with "r+".
4354 2004-02-19  David Edelsohn  <edelsohn@gnu.org>
4356         * 22_locale/collate/compare/wchar_t/2.cc: Change input-charset
4357         from iso-8859-1 to ISO8859-1.
4358         * 22_locale/collate/compare/wchar_t/wrapped_env.cc: Same.
4359         * 22_locale/collate/compare/wchar_t/wrapped_locale.cc: Same.
4360         * 22_locale/collate/hash/wchar_t/2.cc: Same.
4361         * 22_locale/collate/hash/wchar_t/wrapped_env.cc: Same.
4362         * 22_locale/collate/hash/wchar_t/wrapped_locale.cc: Same.
4363         * 22_locale/collate/transform/wchar_t/2.cc: Same.
4364         * 22_locale/collate/transform/wchar_t/wrapped_env.cc: Same.
4365         * 22_locale/collate/transform/wchar_t/wrapped_locale.cc: Same.
4367 2004-02-18  Paolo Carlini  <pcarlini@suse.de>
4369         * include/bits/locale_facets.h (money_get<>::_M_extract):
4370         New, helper for do_get.
4371         (money_put<>::_M_insert): Likewise, for do_put.
4372         * include/bits/locale_facets.tcc (money_get<>::_M_extract,
4373         money_put<>::_M_insert): Define.
4374         (money_get<>::do_get(long double&), money_get<>::do_get(
4375         string_type&), money_put::do_put(long double),
4376         money_put::do_put(const string_type&)): Use the helpers.
4378 2004-02-18  Paolo Carlini  <pcarlini@suse.de>
4380         * config/io/basic_file_stdio.cc (__gnu_internal::xwritev):
4381         Rewrite, avoiding recursion.
4382         (__gnu_internal::xwrite): Minor tweaks.
4384 2004-02-17  Stefan Olsson  <stefan@xapa.se>
4386         * include/ext/mt_allocator.h: Removed the last
4387         pointer. Deallocated blocks are now added to the front of
4388         freelists as proposed by Felix Yen.  This gives roughly 10%
4389         performance boost and saves some memory.
4390         * docs/html/ext/mt_allocator.html: Change due to that deallocated
4391         blocks now are added to the front of freelists. The reason to this
4392         approach is also explained.
4394 2004-02-17  Paolo Carlini  <pcarlini@suse.de>
4396         * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
4397         num_get<>::_M_extract_int, money_get<>::do_get): Simplify
4398         grouping fidelity conditional.
4400 2004-02-16  Paolo Carlini  <pcarlini@suse.de>
4402         * testsuite/27_io/basic_filebuf/overflow/char/13858.cc:
4403         Qualify exception with std::.
4404         * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Ditto.
4405         * testsuite/27_io/basic_filebuf/overflow/wchar_t/13858.cc: Ditto.
4406         * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
4407         * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
4408         * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
4410 2004-02-16  Paolo Carlini  <pcarlini@suse.de>
4412         * testsuite/ext/enc_filebuf/char/13189.cc: Don't check
4413         for now that the catch block is not reached.
4414         * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Likewise.
4416 2004-02-16  Paolo Carlini  <pcarlini@suse.de>
4418         * include/bits/locale_facets.tcc (money_get::do_get(string_type&)):
4419         Fix parsing of the remaining sign characters.
4420         * 22_locale/money_get/get/char/2.cc: Tweak: now, correctly,
4421         the input is scanned 'til eof.
4422         * 22_locale/money_get/get/char/4.cc: Likewise.
4423         * 22_locale/money_get/get/wchar_t/2.cc: Likewise.
4424         * 22_locale/money_get/get/wchar_t/4.cc: Likewise.
4425         * 22_locale/money_get/get/char/8.cc: Tweak: override do_neg_format,
4426         not do_pos_format: the former is the only one that matters during
4427         input.
4428         * 22_locale/money_get/get/wchar_t/8.cc: Likewise.
4430         * 22_locale/money_get/get/char/6.cc: Minor tweak.
4431         * 22_locale/money_get/get/wchar_t/6.cc: Likewise.
4433 2004-02-15  David Asher  <david.asher@cavium.com>
4435         PR libstdc++/11352
4436         * include/bits/locale_facets.tcc (__pad<>::_S_pad): Don't
4437         access __olds beyond __oldlen.
4439 2004-02-14  Paolo Carlini  <pcarlini@suse.de>
4441         * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Make
4442         sure the exception is actually thrown.
4443         * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
4444         * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
4445         * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
4447 2004-02-14  Paolo Carlini  <pcarlini@suse.de>
4449         PR libstdc++/13858
4450         * include/bits/fstream.tcc (basic_filebuf<>::_M_convert_to_external):
4451         In case of conversion errors, throw ios_failure; simplify.
4452         * testsuite/27_io/basic_filebuf/overflow/char/13858.cc: New.
4453         * testsuite/27_io/basic_filebuf/overflow/wchar_t/13858.cc: Ditto.
4454         * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Tweak,
4455         previously we didn't throw in case of conversion errors, instead
4456         just returned eof().
4457         * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
4458         * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
4459         * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
4461         * include/bits/fstream.tcc (basic_filebuf<>::overflow):
4462         Trivial simplification of a conditional.
4464 2004-02-12  Paolo Carlini  <pcarlini@suse.de>
4466         PR libstdc++/13731 (final part: writev)
4467         * config/io/basic_file_stdio.cc (__gnu_internal::xwritev):
4468         New, a wrapper around writev() handling partial writes.
4469         (__basic_file<char>::xwrite): Move to __gnu_internal and make
4470         static.
4471         (__basic_file<char>::xsputn): Update call.
4472         (__basic_file<char>::xsputn_2): Likewise.
4473         * config/io/basic_file_stdio.h (__basic_file<char>::xwrite):
4474         Don't declare, now static.
4476 2004-02-11  Stefan Olsson  <stefan@xapa.se>
4478         * docs/html/ext/mt_allocator.html: New.
4480 2004-02-11  Benjamin Kosnik  <bkoz@redhat.com>
4482         * docs/html/20_util/allocator.html: New file, consolidate
4483         allocator information here. Revamp.
4484         * docs/html/documentation.html: Change links.
4485         * docs/html/20_util/howto.html: Same.
4486         * docs/html/ext/howto.html: Same.
4488 2004-02-11  Paolo Carlini  <pcarlini@suse.de>
4490         PR libstdc++/13731 (first part: write)
4491         * config/io/basic_file_stdio.h (__basic_file<char>::xwrite):
4492         New, declare.
4493         * config/io/basic_file_stdio.cc (__basic_file<char>::xwrite):
4494         Define it: a wrapper around write() handling partial write.
4495         (__basic_file<char>::xsputn): Use it.
4496         (__basic_file<char>::xsputn_2): Likewise.
4498 2004-02-11  Paolo Carlini  <pcarlini@suse.de>
4499             Petur Runolfsson  <peturr02@ru.is>
4501         PR libstdc++/14078
4502         * include/std/std_istream.h (operator>>(__istream_type& (*)
4503         (__istream_type&)), operator>>(__ios_type& (*)(__ios_type&)),
4504         operator>>(ios_base& (*)(ios_base&))): Declare inline.
4505         * include/std/std_ostream.h (operator<<(__ostream_type& (*)
4506         (__ostream_type&)), operator<<(__ios_type& (*)(__ios_type&)),
4507         operator<<(ios_base& (*) (ios_base&))): Likewise.
4508         * testsuite/performance/27_io/fmtflags_manipulators.cc: New.
4510 2004-02-10  Loren J. Rittle  <ljrittle@acm.org>
4512         PR libstdc++/14098
4513         * config/linker-map.gnu: Add typeinfo and typeinfo name for
4514         __gnu_cxx::stdio_sync_filebuf<char, std::char_traits<char> >.
4516         PR libstdc++/14097
4517         * config/linker-map.gnu: Add typeinfo and typeinfo name for
4518         __gnu_cxx::stdio_filebuf<char, std::char_traits<char> >.
4520 2004-02-09  Loren J. Rittle  <ljrittle@acm.org>
4522         * include/ext/pool_allocator.h: Include c++config.h.
4524 2004-02-09  Stefan Olsson  <stefan@xapa.se>
4526         * include/ext/mt_allocator.h: thread_id is unused in non threaded
4527         applications and now has a ifdef to remove it completely on
4528         compilers without thread support. Include stdlib.h due to a
4529         compiler warning on getenv().
4531 2004-02-09  Paul Brook  <paul@codesourcery.com>
4533         * libstdc++-v3/configure.host: Explicitly check for atomicity.h file.
4535 2004-02-09  Paolo Carlini  <pcarlini@suse.de>
4537         PR libstdc++/14071
4538         * src/locale_init.cc (locale::global(const locale&)): Use
4539         locale::name() in order to decide whether calling setlocale.
4540         * testsuite/22_locale/locale/global_locale_objects/14071.cc: New.
4542         * include/bits/locale_classes.h (locale::_Impl::_M_check_same_name()):
4543         Avoid computing &= unnecessarily.
4545 2004-02-09  James E Wilson  <wilson@specifixinc.com>
4547         PR libstdc++/5625
4548         * libsuspc++/eh_personality.cc (PERSONALITY_FUNCTION): Use
4549         __builtin_extend_pointer.
4551 2004-02-09  Paolo Carlini  <pcarlini@suse.de>
4553         PR libstdc++/14072
4554         * include/bits/basic_ios.tcc (basic_ios<>::_M_cache_locale):
4555         Don't leave dangling pointers.
4556         * testsuite/27_io/basic_ios/imbue/14072.cc: New.
4557         * testsuite/22_locale/numpunct/members/pod/2.cc: Tweak, the num_put
4558         facet is needed in the final test.
4560 2004-02-09  Bernardo Innocenti  <bernie@develer.com>
4562         * crossconfig.m4: Don't enable _GLIBCXX_USE_LFS on *-uclinux*.
4563         * configure: Regenerate.
4565 2004-02-08  Richard Henderson  <rth@redhat.com>
4567         PR libstdc++/14026
4568         * libsupc++/eh_catch.cc (__cxa_begin_catch): Don't adjust
4569         uncaughtExceptions during nested catch rethrow.
4570         * testsuite/18_support/14026.cc: New.
4572 2004-02-08  Paolo Carlini  <pcarlini@suse.de>
4574         * include/bits/basic_string.tcc (assign(const _CharT*, size_type)):
4575         When working in place remember to set the state to sharable
4576         (otherwise, _M_mutate does it).
4578 2004-02-08  Bernardo Innocenti  <bernie@develer.com>
4580         * include/bits/allocator.h, include/bits/basic_ios.h,
4581         include/bits/basic_ios.tcc, include/bits/basic_string.h,
4582         include/bits/basic_string.tcc, include/bits/boost_concept_check.h,
4583         include/bits/char_traits.h, include/bits/codecvt.h,
4584         include/bits/concurrence.h, include/bits/cpp_type_traits.h,
4585         include/bits/demangle.h, include/bits/deque.tcc,
4586         include/bits/fstream.tcc, include/bits/functexcept.h,
4587         include/bits/gslice.h, include/bits/gslice_array.h,
4588         include/bits/indirect_array.h, include/bits/ios_base.h,
4589         include/bits/istream.tcc, include/bits/list.tcc,
4590         include/bits/locale_classes.h, include/bits/locale_facets.h,
4591         include/bits/locale_facets.tcc, include/bits/localefwd.h,
4592         include/bits/mask_array.h, include/bits/ostream.tcc,
4593         include/bits/postypes.h, include/bits/slice_array.h,
4594         include/bits/sstream.tcc, include/bits/stl_algo.h,
4595         include/bits/stl_algobase.h, include/bits/stl_bvector.h,
4596         include/bits/stl_construct.h, include/bits/stl_deque.h,
4597         include/bits/stl_function.h, include/bits/stl_heap.h,
4598         include/bits/stl_iterator.h, include/bits/stl_iterator_base_funcs.h,
4599         include/bits/stl_list.h, include/bits/stl_map.h,
4600         include/bits/stl_multimap.h, include/bits/stl_multiset.h,
4601         include/bits/stl_numeric.h, include/bits/stl_pair.h,
4602         include/bits/stl_queue.h, include/bits/stl_raw_storage_iter.h,
4603         include/bits/stl_relops.h, include/bits/stl_set.h,
4604         include/bits/stl_stack.h, include/bits/stl_tempbuf.h,
4605         include/bits/stl_threads.h, include/bits/stl_tree.h,
4606         include/bits/stl_uninitialized.h, include/bits/stl_vector.h,
4607         include/bits/stream_iterator.h, include/bits/streambuf.tcc,
4608         include/bits/streambuf_iterator.h,include/bits/stringfwd.h,
4609         include/bits/type_traits.h, include/bits/valarray_after.h,
4610         include/bits/valarray_array.h, include/bits/valarray_array.tcc,
4611         include/bits/valarray_before.h, include/bits/vector.tcc: Remove
4612         trailing whitespace.
4614 2004-02-06  Paolo Carlini  <pcarlini@suse.de>
4616         * include/bits/basic_string.h: Fix comment.
4618 2004-02-06  Paolo Carlini  <pcarlini@suse.de>
4620         * include/bits/stl_construct.h: Wrap overlong lines, reformat
4621         according to the coding standards.
4622         * include/bits/stl_pair.h: Likewise.
4623         * include/bits/stl_raw_storage_iter.h: Likewise.
4624         * include/bits/stl_stack.h: Likewise.
4625         * include/bits/stl_uninitialized.h: Likewise.
4626         * include/bits/stream_iterator.h: Likewise.
4627         * include/bits/streambuf_iterator.h: Likewise.
4628         * include/bits/type_traits.h: Likewise.
4630 2004-02-06  Paolo Carlini  <pcarlini@suse.de>
4632         * testsuite/27_io/basic_filebuf/open/char/9507.cc:
4633         Adjust timings.
4635 2004-02-05  Loren J. Rittle  <ljrittle@acm.org>
4637         * scripts/check_performance: Support PCH.
4639         * scripts/check_performance (CXX): Add -DNOTHREAD.
4640         * testsuite/performance/20_util/allocator/insert.cc: Integrate
4641         threaded tests from insert_insert.cc.  Tweak iterations,
4642         remove special cases.
4643         * testsuite/performance/20_util/allocator/insert_insert.cc:
4644         Make all tests single-threaded. Tweak iterations.
4645         * testsuite/performance/20_util/allocator/map_thread.cc:
4646         Tweak iterations.
4647         * testsuite/performance/20_util/allocator/producer_consumer.cc:
4648         Likewise.
4650 2004-02-05  Geoffrey Keating  <geoffk@apple.com>
4652         PR 12179
4653         * .cvsignore: New.
4654         * acinclude.m4 (GLIBCXX_EXPORT_INSTALL_INFO): Use 'gcc', not
4655         'gcc-lib'.  Add comment about poorly-named variables.
4656         * aclocal.m4: Regenerate.
4657         * configure: Regenerate.
4659 2004-02-05  Paolo Carlini  <pcarlini@suse.de>
4661         * include/bits/locale_facets.tcc (money_get::do_get(string_type&)):
4662         Thousands-sep are always optional; thousands-sep are not allowed
4663         after the decimal_point.
4664         * testsuite/22_locale/money_get/get/char/12.cc: New.
4665         * testsuite/22_locale/money_get/get/char/13.cc: New.
4666         * testsuite/22_locale/money_get/get/wchar_t/12.cc: New.
4667         * testsuite/22_locale/money_get/get/wchar_t/13.cc: New.
4669         * testsuite/22_locale/money_get/get/char/1.cc: Clean-up.
4670         * testsuite/22_locale/money_get/get/char/2.cc: Likewise.
4671         * testsuite/22_locale/money_get/get/char/3.cc: Likewise.
4672         * testsuite/22_locale/money_get/get/char/4.cc: Likewise.
4673         * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
4674         * testsuite/22_locale/money_get/get/wchar_t/2.cc: Likewise.
4675         * testsuite/22_locale/money_get/get/wchar_t/3.cc: Likewise.
4676         * testsuite/22_locale/money_get/get/wchar_t/4.cc: Likewise.
4678         * testsuite/22_locale/money_get/get/char/9.cc: Fix citation from
4679         the standard.
4680         * testsuite/22_locale/money_get/get/wchar_t/9.cc: Likewise.
4682 2004-02-05  Richard Sandiford  <rsandifo@redhat.com>
4684         * config/os/irix/irix6.5/os_defines.h (_GLIBCXX_FIONREAD_TAKES_OFF_T):
4685         Define.
4686         * config/io/basic_file_stdio.cc (__basic_file<char>::showmanyc): Use
4687         it to decide whether FIONREAD should take an off_t or int argument.
4689 2004-02-05  Paolo Carlini  <pcarlini@suse.de>
4691         * include/bits/stl_function.h: Minor formatting changes.
4693 2004-02-04  Zack Weinberg  <zack@codesourcery.com>
4695         Revert previous change to config/abi/*/baseline_symbols.txt.
4697 2004-02-04  Benjamin Kosnik  <bkoz@redhat.com>
4698             Zack Weinberg  <zack@codesourcery.com>
4700         * config/io/basic_file_stdio.cc (__gnu_internal::fopen_mode):
4701         New function.
4702         (__basic_file<char>::sys_open, __basic_file<char>::open): Use it.
4703         (__basic_file<char>::_M_open_mode): Delete.
4704         * config/io/basic_file_stdio.cc: Delete declaration of _M_open_mode.
4706         * testsuite/27_io/basic_filebuf/close/char/9964.cc
4707         * testsuite/27_io/basic_filebuf/open/char/9507.cc:
4708         Correct flags to filebuf::open calls.
4710         * config/abi/alpha-freebsd5/baseline_symbols.txt
4711         * config/abi/alpha-linux-gnu/baseline_symbols.txt
4712         * config/abi/hppa-linux-gnu/baseline_symbols.txt
4713         * config/abi/i386-freebsd4/baseline_symbols.txt
4714         * config/abi/i386-freebsd5/baseline_symbols.txt
4715         * config/abi/i486-linux-gnu/baseline_symbols.txt
4716         * config/abi/ia64-linux-gnu/baseline_symbols.txt
4717         * config/abi/mips-linux-gnu/baseline_symbols.txt
4718         * config/abi/sparc-freebsd5/baseline_symbols.txt
4719         * config/abi/sparc-linux-gnu/baseline_symbols.txt
4720         * config/abi/x86_64-linux-gnu/baseline_symbols.txt:
4721         Remove entry for __basic_file<char>::_M_open_mode.
4723 2004-02-04  Loren J. Rittle  <ljrittle@acm.org>
4725         * testsuite/performance/20_util/allocator/insert.cc (main): Tweak.
4727 2004-02-04  Felix Yen  <fwy@alumni.brown.edu>
4729         * testsuite/performance/20_util/producer_consumer.cc: New.
4730         * testsuite/performance/20_util/allocator/insert_insert.cc: Two loops.
4732 2004-02-04  Benjamin Kosnik  <bkoz@redhat.com>
4734         * testsuite/performance/20_util/allocator.cc: Move to..
4735         * testsuite/performance/20_util/allocator/insert.cc: ...here.
4736         * testsuite/performance/20_util/allocator_thread.cc: Move to...
4737         * testsuite/performance/20_util/allocator/insert_insert.cc: ...here.
4738         * testsuite/performance/20_util/allocator_map_thread.cc: Move to...
4739         * testsuite/performance/20_util/allocator/map_thread.cc: ...here.
4741 2004-02-04  Jonathan Wakely  <redi@gcc.gnu.org>
4743         * docs/html/faq/index.html: Recommend using LD_LIBRARY_PATH.
4744         * docs/html/faq/index.txt: Regenerate.
4746 2004-02-04  Dhruv Matani  <dhruvbird@gmx.net>
4748         * include/ext/debug_allocator.h: _M_extra now stands for the
4749         number of extra objects instead of the number of extra bytes.
4750         (debug_allocator::allocate): Adjust.
4751         (debug_allocator::deallocate): Adjust.
4753         * include/ext/pool_allocator.h: Fix typo.
4755 2004-02-03  Felix Yen  <fwy@alumni.brown.edu>
4756             Benjamin Kosnik  <bkoz@redhat.com>
4758         * testsuite/performance/20_util/allocator.cc: Add map,
4759         deque, set tests.
4760         * testsuite/performance/20_util/allocator_thread.cc: Same.
4762 2004-02-03  Paolo Carlini  <pcarlini@suse.de>
4764         * include/bits/basic_string.h (insert(iterator)): Remove,
4765         non-standard and already scheduled for removal.
4767 2004-02-03  Paolo Carlini  <pcarlini@suse.de>
4769         * include/bits/stl_iterator_base_funcs.h: Minor formatting
4770         and indentation tweaks.
4771         * include/bits/stl_iterator_base_types.h: Likewise.
4772         * include/bits/stl_list.h: Likewise.
4773         * include/bits/stl_map.h: Likewise.
4774         * include/bits/stl_tempbuf.h: Likewise.
4776 2004-02-02  Jerry Quinn  <jlquinn@optonline.net>
4778         * include/bits/gslice.h, include/bits/gslice_array.h,
4779         include/bits/indirect_array.h, include/bits/mask_array.h,
4780         include/bits/slice_array.h, include/bits/stl_numeric.h,
4781         include/std/std_valarray.h:  Update copyright years.
4783 2004-02-02  Jerry Quinn  <jlquinn@optonline.net>
4785         * include/bits/gslice.h (gslice):  Document.
4786         * include/bits/gslice_array.h (gslice_array):  Document.
4787         * include/bits/indirect_array (indirect_array):  Document.
4788         * include/bits/mask_array (mask_array):  Document.
4789         * include/bits/slice_array.h (slice,slice_array):  Document.
4790         * include/bits/stl_numeric.h (accumulate, inner_product, partial_sum,
4791         adjacent_difference):  Document
4792         * include/std/std_valarray.h (valarray):  Document.
4794 2004-02-02  Benjamin Kosnik  <bkoz@redhat.com>
4796         * docs/html/19_diagnostics/howto.html: Move verbose terminate
4797         documentation...
4798         * docs/html/18_support/howto.html: Here.
4799         * docs/html/documentation.html: Add reference here.
4801 2004-02-02  Paolo Carlini  <pcarlini@suse.de>
4803         * config/locale/gnu/c++locale_internal.h: Remove prototypes
4804         of no longer used GLIBC thread locale functions.
4806 2004-02-02  Eric Christopher  <echristo@redhat.com>
4807             Zack Weinberg  <zack@codesourcery.com>
4809         * testsuite/22_locale/collate/compare/wchar_t/2.cc: Remove xfail. Use
4810         -finput-charset.
4811         * testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc: Ditto.
4812         * testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc: Ditto
4813         * testsuite/22_locale/collate/hash/wchar_t/2.cc: Ditto.
4814         * testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc: Ditto.
4815         * testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc: Ditto.
4816         * testsuite/22_locale/collate/transform/wchar_t/2.cc: Ditto.
4817         * testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc: Ditto.
4818         * testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
4819         Ditto.
4821 2004-02-02  Paolo Carlini  <pcarlini@suse.de>
4823         * include/bits/stl_function.h: Additional minor tweaks.
4824         * include/bits/stl_multiset.h: Likewise.
4826         * include/bits/stl_queue.h: Minor tweaks.
4828 2004-02-02  Paolo Carlini  <pcarlini@suse.de>
4830         PR libstdc++/13976 (continued)
4831         * include/ext/malloc_allocator.h (malloc_allocator::deallocate):
4832         Make the second parameter unnamed, to void unused parameter
4833         warnings.
4834         * include/ext/new_allocator.h (new_allocator::deallocate): Ditto.
4836 2004-02-02  Paolo Carlini  <pcarlini@suse.de>
4838         PR libstdc++/13976
4839         * include/ext/malloc_allocator.h (malloc_allocator::allocate):
4840         Make the second parameter unnamed, to void unused parameter
4841         warnings.
4842         * include/ext/mt_allocator.h (__mt_alloc::allocate): Ditto.
4843         * include/ext/new_allocator.h (new_allocator::allocate): Ditto.
4845 2004-02-01  Paolo Carlini  <pcarlini@suse.de>
4847         * include/bits/stl_algo.h: Additional minor tweaks.
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_set.h: Likewise.
4852         * include/bits/stl_tree.h: Likewise.
4854 2004-02-01  Paolo Carlini  <pcarlini@suse.de>
4856         * include/bits/vector.tcc (vector::_M_insert_aux(iterator)):
4857         Remove, unused.
4859 2004-02-01  Paolo Carlini  <pcarlini@suse.de>
4861         * include/bits/stl_function.h: Additional minor tweaks.
4863 2004-02-01  Paolo Carlini  <pcarlini@suse.de>
4865         * include/bits/deque.tcc: Wrap overlong lines, constify
4866         a few variables, reformat according to the coding standards.
4867         * include/bits/list.tcc: Likewise.
4868         * include/bits/stl_deque.h: Likewise.
4869         * include/bits/stl_function.h: Likewise.
4870         * include/bits/stl_iterator.h: Likewise.
4871         * include/bits/stl_iterator_base_funcs.h: Likewise.
4872         * include/bits/stl_iterator_base_types.h: Likewise.
4873         * include/bits/stl_list.h: Likewise.
4874         * include/bits/stl_map.h: Likewise.
4875         * include/bits/stl_multimap.h: Likewise.
4876         * include/bits/stl_multiset.h: Likewise.
4877         * include/bits/stl_relops.h: Likewise.
4878         * include/bits/stl_set.h: Likewise.
4880 2004-02-01  Paolo Carlini  <pcarlini@suse.de>
4882         * include/bits/stl_bvector.h: Wrap overlong lines, constify
4883         a few variables, reformat according to the coding standards.
4884         * include/bits/stl_tree.h: Likewise.
4886 2004-01-31  Paolo Carlini  <pcarlini@suse.de>
4888         * include/bits/stl_algo.h: Minor additional reformat, add
4889         copyright year.
4890         * include/bits/stl_algobase.h: Add copyright year.
4892 2004-01-31  Paolo Carlini  <pcarlini@suse.de>
4894         * include/bits/stl_algo.h: Wrap overlong lines, constify
4895         a few variables, reformat according to the coding standards.
4896         * include/bits/stl_algobase.h: Likewise.
4897         * include/bits/stl_heap.h: Likewise.
4899 2004-01-31  Paolo Carlini  <pcarlini@suse.de>
4901         * include/bits/basic_string.h (_Rep::operator[]): Remove, unused.
4903         * include/bits/basic_string.h: Fix two comments.
4905 2004-01-31  Per Bothner  <per@bothner.com>
4907         * include/ext/mt_allocator.h
4908         (__mt_alloc::_S_thread_freelist_mutex): Guard with
4909         __GTHREAD_MUTEX_INIT.
4911 2004-01-31  Paolo Carlini  <pcarlini@suse.de>
4913         * include/bits/basic_string.tcc (_Rep::_S_create): Minor tweak.
4915 2004-01-30  Paolo Carlini  <pcarlini@suse.de>
4917         * testsuite/21_strings/basic_string/cons/char/6.cc: New.
4918         * testsuite/21_strings/basic_string/cons/wchar_t/6.cc: New.
4919         * testsuite/performance/21_strings/string_cons_input_iterator.cc: New.
4921 2004-01-30  Felix Yen  <fwy@alumni.brown.edu>
4923         * testsuite/performance/20_util/allocator_thread.cc (do_loop):
4924         Don't use clear, but instead assign. Use insert.
4926 2004-01-30  Benjamin Kosnik  <bkoz@redhat.com>
4928         * src/demangle.cc: Add instantiations.
4929         * src/Makefile.am: Remove special rules for demangle.lo, demangle.o.
4930         * src/Makefile.in: Regenerate.
4932 2004-01-30  David Edelsohn  <edelsohn@gnu.org>
4934         * src/allocator.cc: Protect _S_get_thread_id() and
4935         _S_thread_key_destr() with #ifdef __GTHREADS.
4937 2004-01-30  Paolo Carlini  <pcarlini@suse.de>
4939         Reshuffle performance testsuite.
4940         * testsuite/performance/allocator.cc, allocator_map_thread.cc,
4941         allocator_thread.cc, complex_norm.cc, container_benchmark.cc,
4942         cout_insert_int.cc, filebuf_copy.cc, filebuf_sputc.cc,
4943         fstream_seek_write.cc, ifstream_extract_float.cc,
4944         ifstream_extract_int.cc, ifstream_getline.cc, is_wchar_t.cc,
4945         list_create_fill_sort.cc, map_create_fill.cc,
4946         narrow_widen_char.cc, narrow_widen_wchar_t.cc,
4947         ofstream_insert_float.cc, ofstream_insert_int.cc,
4948         string_append.cc, wchar_t_in.cc, wchar_t_length.cc,
4949         wchar_t_out.cc: Split into...
4950         * testsuite/performance/20_util/allocator.cc: New.
4951         * testsuite/performance/20_util/allocator_map_thread.cc: New.
4952         * testsuite/performance/20_util/allocator_thread.cc: New.
4953         * testsuite/performance/21_strings/string_append: New.
4954         * testsuite/performance/22_locale/is_wchar_t.cc: New.
4955         * testsuite/performance/22_locale/narrow_widen_char.cc: New.
4956         * testsuite/performance/22_locale/narrow_widen_wchar_t.cc: New.
4957         * testsuite/performance/22_locale/wchar_t_in.cc: New.
4958         * testsuite/performance/22_locale/wchar_t_length.cc: New.
4959         * testsuite/performance/22_locale/wchar_t_out.cc: New.
4960         * testsuite/performance/23_containers/container_benchmark.cc: New.
4961         * testsuite/performance/23_containers/list_create_fill_sort.cc: New.
4962         * testsuite/performance/23_containers/map_create_fill.cc: New.
4963         * testsuite/performance/26_numerics/complex_norm.cc: New.
4964         * testsuite/performance/27_io/cout_insert_int.cc: New.
4965         * testsuite/performance/27_io/filebuf_copy.cc: New.
4966         * testsuite/performance/27_io/filebuf_sputc.cc: New.
4967         * testsuite/performance/27_io/fstream_seek_write.cc: New.
4968         * testsuite/performance/27_io/ifstream_extract_float.cc: New.
4969         * testsuite/performance/27_io/ifstream_extract_int.cc: New.
4970         * testsuite/performance/27_io/ifstream_getline.cc: New.
4971         * testsuite/performance/27_io/ofstream_insert_float.cc: New.
4972         * testsuite/performance/27_io/ofstream_insert_int.cc: New.
4974 2004-01-30  Paolo Carlini  <pcarlini@suse.de>
4976         * include/bits/basic_string.tcc (_Rep::_S_create):
4977         Never allocate a string bigger than max_size(); always keep
4978         __capacity and __size in sync to avoid memory leaks at
4979         deallocation time.
4981 2004-01-30  Paolo Carlini  <pcarlini@suse.de>
4983         * include/bits/basic_string.tcc (_S_construct(_InIterator,
4984         _InIterator, const _Alloc&, input_iterator_tag)): Simplify
4985         the double loop, streamline.
4987         * include/bits/basic_string.tcc: Very minor tweaks.
4989 2004-01-30  Loren J. Rittle  <ljrittle@acm.org>
4991         * scripts/check_performance: Only compile with $THREAD_FLAG
4992         when test is marked to require it.  Allow multiple
4993         compilations/executions of marked tests.
4994         * testsuite/testsuite_performance.h (report_performance):
4995         Report dynamic thread support status.
4996         (report_header): Likewise.
4997         * testsuite/performance/allocator.cc: Stabilize iteration
4998         count.  Support more allocators.  Mark each allocator test to
4999         run and report independently.
5000         * testsuite/performance/allocator_map_thread.cc: Likewise.
5001         * testsuite/performance/allocator_thread.cc: Likewise.
5003 2004-01-29  Stephen M. Webb  <stephen.webb@bregmasoft.com>
5005         * config/local/generic/c_locale.h: Change ::malloc() to new char[].
5006         * config/local/gnu/c_locale.h: Change ::malloc() to new char[].
5007         * include/bits/stl_tempbuf.h: Convert _Temporary_buffer to use
5008         std::get_temporary_buffer() instead of duplicating its code.
5009         Update to C++STYLE conventions.
5010         * include/std/std_memory.h (get_temporary_buffer): Use ::operator
5011         new() instead of std::malloc().
5012         (return_temporary_buffer): Use ::operator delete() instead of
5013         std::free().
5015 2004-01-29  Benjamin Kosnik  <bkoz@redhat.com>
5017         * include/bits/allocator.h: Temporary switch to new_allocator as
5018         the default to unjam bootstraps.
5020 2004-01-28  Benjamin Kosnik  <bkoz@redhat.com>
5022         * include/Makefile.am (bits_headers): Remove allocator_traits.h.
5023         * include/Makefile.in: Regenerate.
5024         * include/bits/allocator_traits.h: Remove.
5025         * include/bits/allocator.h: Remove allocator_traits.h include, and
5026         relevant comments.
5027         (allocator): Empty base class, inherit from the underlying allocator.
5028         * src/allocator-inst.cc: Move __pool_alloc instantiation to...
5029         * src/allocator.cc: ...here. New. For the underlying allocators.
5030         Add __mt_alloc, __pool_alloc, new_allocator, malloc_allocator bits.
5031         * config/linker-map.gnu: Remove __pool_alloc bits.
5032         * src/Makefile.am (sources): Add allocator.cc.
5033         * src/Makefile.in: Regenerate.
5034         * testsuite/20_util/allocator/1.cc: Split second test into...
5035         * testsuite/20_util/allocator/8230.cc: ...this.
5036         * include/bits/stl_bvector.h (__gnu_norm): Change bit_vector
5037         typedef to use std::allocatore. Format.
5038         * include/ext/pool_allocator.h: Remove allocator_traits.h include,
5039         _Alloc_traits.
5040         * include/ext/mt_allocator.h (__gnu_cxx): Qualify
5041         __throw_bad_alloc calls. Don't include <memory>.
5042         * include/ext/malloc_allocator.h: Remove <memory> include.
5043         * include/ext/new_allocator.h (new_allocator): Same.
5044         * include/ext/ropeimpl.h (__gnu_cxx): Remove __alloc using
5045         declaration. Switch __alloc to _Alloc.
5046         * include/ext/hashtable.h: Remove __alloc.
5047         * include/backward/alloc.h: Only inject allocator, not
5048         implementation details.
5050         * include/ext/mt_allocator.h: Replace free with delete.
5052 2004-01-28  Benjamin Kosnik  <bkoz@redhat.com>
5054         * src/globals_io.cc: Change to __gnu_internal namespace.
5055         * src/globals_locale.cc: Same.
5056         * src/locale_init.cc: Same.
5057         * src/ios_init.cc: Same.
5059 2004-01-28  Stefan Olsson  <stefan@snon.net>
5061         * include/ext/mt_allocator.h: Replaced all malloc() calls with
5062         operator new(). Added support for the env variable
5063         GLIBCXX_FORCE_NEW (this required the _S_init call to be the first
5064         one in allocate() as well). Fix typos.
5066 2004-01-28  Paolo Carlini  <pcarlini@suse.de>
5068         * include/bits/basic_string.h (_S_create(size_t,
5069         const _Alloc&): Change signature to take two size_type
5070         arguments.
5071         * include/bits/basic_string.tcc (_S_construct(_InIterator,
5072         _InIterator, const _Alloc&, input_iterator_tag)): Update
5073         call, tweak a bit.
5074         (_S_construct(_InIterator, _InIterator, const _Alloc&,
5075         forward_iterator_tag)): Likewise.
5076         (_S_construct(size_type, _CharT, const _Alloc&)): Likewise.
5077         (_M_mutate(size_type, size_type, size_type)): Don't
5078         implement the exponential growth policy, demand it to
5079         _S_create, update call and simplify.
5080         (_M_clone(const _Alloc&, size_type)): Likewise.
5081         (_S_create(size_type, size_type, const _Alloc&)): Implement
5082         the growth policy, simplify otherwise.
5084         * include/bits/basic_string.h (_Rep::operator[]): Tweak
5085         signature to take a size_type, consistently with the other
5086         members.
5088 2004-01-27  Benjamin Kosnik  <bkoz@redhat.com>
5090         * testsuite/27_io/ios_base/storage/11584.cc: Correct new and
5091         delete declarations, add include and test variable.
5093 2003-01-27  Jerry Quinn  <jlquinn@optonline.net>
5095         * include/bits/codecvt.h, include/bits/locale_facets.h,
5096         include/bits/postypes.h, include/bits/stl_bvector.h,
5097         include/bits/stl_multiset.h, include/bits/stl_set.h,
5098         include/bits/stream_iterator.h, include/bits/streambuf_iterator.h,
5099         include/std/std_complex.h:  Document.
5101 2004-01-27  Jerry Quinn  <jlquinn@optonline.net>
5103         PR libstdc++/11584
5104         * include/bits/ios_base.h (ios_base::_M_grow_words):  Add
5105         iword/pword selector.
5106         (ios_base::iword, ios_base::pword):  Use it.
5107         * src/ios.cc (ios_base::_M_grow_words):  Clear _M_word_zero
5108         iword or pword member on alloc failure.
5109         * testsuite/27_io/ios_base/storage/11584.cc:  New test.
5111 2004-01-27  Ulrich Weigand  <uweigand@de.ibm.com>
5112             PJ Darcy  <darcypj@us.ibm.com>
5114         * configure.host: Add support for *-tpf.
5115         * crossconfig.m4: Likewise.
5116         * configure: Regenerate.
5117         * config/os/tpf: New directory.
5118         * config/os/tpf/os_defines.h: New file.
5119         * config/os/tpf/ctype_base.h: Likewise.
5120         * config/os/tpf/ctype_inline.h: Likewise.
5121         * config/os/tpf/ctype_noninline.h: Likewise.
5123 2004-01-27  Paolo Carlini  <pcarlini@suse.de>
5125         PR libstdc++/13884
5126         * include/bits/sstream.tcc: Guard use of extern template.
5128 2004-01-27  Paolo Carlini  <pcarlini@suse.de>
5130         * include/bits/basic_string.tcc
5131         (basic_string(const basic_string&, size_type, size_type),
5132         basic_string(const basic_string&, size_type, size_type,
5133         const _Alloc&)): Avoid unnecessarily constructing iterators.
5135 2004-01-26  Paolo Carlini  <pcarlini@suse.de>
5137         * config/locale/generic/c_locale.cc: Fix throw messages
5138         to use the __N marker.
5139         * config/locale/gnu/c_locale.cc: Likewise.
5140         * config/locale/ieee_1003.1-2001/codecvt_specializations.h:
5141         Likewise.
5142         * docs/html/17_intro/C++STYLE: Likewise.
5143         * include/bits/basic_ios.tcc: Likewise.
5144         * include/bits/fstream.tcc: Likewise.
5145         * include/bits/vector.tcc: Likewise.
5146         * include/ext/ropeimpl.h: Likewise.
5147         * include/std/std_bitset.h: Likewise.
5148         * src/ios.cc: Likewise.
5149         * src/locale.cc: Likewise.
5150         * src/localename.cc: Likewise.
5152 2004-01-26  Paolo Carlini  <pcarlini@suse.de>
5154         * include/bits/basic_string.h (_M_replace_aux): Use the
5155         __N marker in throw message.
5156         * include/bits/basic_string.tcc (assign(const _CharT*,
5157         size_type), insert(size_type, const _CharT*, size_type),
5158         replace(size_type, size_type, const _CharT*, size_type),
5159         reserve, _Rep::_S_create, resize, _M_replace_dispatch):
5160         Likewise.
5162         * include/bits/basic_string.h, include/bits/basic_string.tcc:
5163         Fold overlong lines, minor formatting changes.
5165 2004-01-26  Paolo Carlini  <pcarlini@suse.de>
5167         * include/bits/basic_string.h (replace(iterator, iterator,
5168         const basic_string&)): Remove _GLIBCXX_DEBUG_PEDASSERT.
5169         (replace(iterator, iterator, const _CharT*)): Ditto.
5170         (replace(iterator, iterator, const _CharT*, size_type)):
5171         Add missing _GLIBCXX_DEBUG_PEDASSERT.
5173 2004-01-26  Paolo Carlini  <pcarlini@suse.de>
5175         * include/bits/basic_string.tcc (replace(size_type,
5176         size_type, const _CharT*, size_type)): Implement optimized
5177         in-place algorithm for non-overlapping ranges.
5178         * testsuite/21_strings/basic_string/replace/char/6.cc: New.
5179         * testsuite/21_strings/basic_string/replace/wchar_t/6.cc: New.
5181         * include/bits/basic_string.tcc (insert(size_type,
5182         const _CharT*, size_type)): Tweak slightly.
5184 2004-01-26  Andreas Schwab  <schwab@suse.de>
5186         * config/locale/gnu/monetary_members.cc: Restore locale before
5187         rethrowing exception.
5189 2004-01-25  Paolo Carlini  <pcarlini@suse.de>
5191         * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
5192         Define inline here.
5193         * include/bits/basic_string.tcc (_M_replace_aux, _M_replace_safe):
5194         Move inline.
5196         * include/bits/basic_string.tcc: Very minor tweaks.
5198 2004-01-25  Paolo Carlini  <pcarlini@suse.de>
5200         * testsuite/performance/string_append.cc: Increase number
5201         of iterations.
5203 2004-01-25  Paolo Carlini  <pcarlini@suse.de>
5205         * include/bits/basic_string.h (erase(size_type, size_type),
5206         erase(iterator), erase(iterator, iterator)): Call _M_replace_safe
5207         instead, thus avoiding redundant check for length_error.
5209         * include/bits/basic_string.h: Tweak some comments.
5211 2004-01-24  Paolo Carlini  <pcarlini@suse.de>
5213         * include/bits/basic_string.tcc (operator+(const _CharT*,
5214         const basic_string&)): No need to go through the append
5215         taking two iterators.
5217 2004-01-24  Paolo Carlini  <pcarlini@suse.de>
5219         * include/bits/basic_string.tcc (rfind(_CharT, size_type)):
5220         Revert last change to use std::min: machine language is worse.
5221         (find_last_of(const _CharT*, size_type, size_type)): Ditto.
5222         (find_last_not_of(const _CharT*, size_type, size_type)): Ditto.
5223         (find_last_not_of(_CharT, size_type)): Ditto.
5225         * include/bits/basic_string.tcc (insert(size_type, const _CharT*,
5226         size_type)): Discard the value returned by _M_check.
5227         (replace(size_type, size_type, const _CharT*, size_type)): Ditto.
5228         (append(const basic_string&, size_type, size_type)): Ditto.
5229         (copy(_CharT*, size_type, size_type)): Ditto.
5230         (compare(size_type, size_type, const basic_string&)): Ditto.
5231         (compare(size_type, size_type, const basic_string&,
5232         size_type, size_type)): Ditto.
5233         (compare(size_type, size_type, const _CharT*)): Ditto.
5234         (compare(size_type, size_type, const _CharT*, size_type)): Ditto.
5236 2004-01-24  Paolo Carlini  <pcarlini@suse.de>
5238         * include/bits/basic_string.h (insert(size_type,
5239         const basic_string&, size_type, size_type)): Define inline here.
5240         * include/bits/basic_string.tcc (insert(size_type,
5241         const basic_string&, size_type, size_type)): Move inline.
5243 2004-01-24  Paolo Carlini  <pcarlini@suse.de>
5245         * include/bits/basic_string.h (assign(const basic_string&,
5246         size_type, size_type)): Define inline here.
5247         (replace(size_type, size_type, const basic_string&,
5248         size_type, size_type)): Ditto.
5249         (_M_replace_dispatch(iterator, iterator, _InputIterator,
5250         _InputIterator, __false_type)): Only declare.
5251         (_M_replace(iterator, iterator, _InputIterator,
5252         _InputIterator)): Remove.
5253         * include/bits/basic_string.tcc (assign(const basic_string&,
5254         size_type, size_type)): Move inline.
5255         (replace(size_type, size_type, const basic_string&,
5256         size_type, size_type)): Ditto.
5257         (_M_replace_dispatch(iterator, iterator, _InputIterator,
5258         _InputIterator, __false_type)): Define, now does also what
5259         _M_replace did before.
5260         * src/string-inst.cc (_M_replace): Don't instantiate.
5262         * include/bits/basic_string.tcc (find(const _CharT*,
5263         size_type, size_type)): Tidy.
5264         (rfind(_CharT, size_type)): Ditto.
5265         (find_first_not_of(const _CharT*, size_type, size_type)): Ditto.
5266         (find_first_not_of(_CharT, size_type)): Ditto.
5267         (find_last_not_of(const _CharT*, size_type, size_type)): Ditto.
5268         (find_last_not_of(_CharT, size_type)): Ditto.
5270 2004-01-23  Paolo Carlini  <pcarlini@suse.de>
5272         PR libstdc++/13838
5273         * include/debug/bitset (operator|=): Fix typo.
5274         * testsuite/23_containers/bitset/operations/13838.cc: New.
5276 2004-01-23  Paolo Carlini  <pcarlini@suse.de>
5278         * include/bits/basic_string.tcc (insert(size_type,
5279         const _CharT*, size_type __n)): Fix length_error check.
5280         (replace(size_type, size_type, const _CharT*, size_type):
5281         Ditto; call _M_replace_safe.
5282         (_M_replace_aux(size_type, size_type, size_type, _CharT):
5283         Fix length_error check.
5284         (_M_replace(iterator, iterator, _InputIterator,
5285         _InputIterator)): Ditto, tweak.
5286         (_M_replace_safe(size_type, size_type, const _CharT*,
5287         size_type)): Remove length_error check.
5289         * include/bits/basic_string.tcc (append(const basic_string&),
5290         append(const basic_string&, size_type, size_type)): Tweak
5291         comment.
5293         * include/bits/basic_string.tcc (copy(_CharT*, size_type,
5294         size_type)): If __n == 0 don't call traits::copy.
5296 2004-01-23  Stefan Olsson  <stefan@snon.net>
5298         * include/ext/mt_allocator.h: Reduce lock contention.
5300 2004-01-23  Paolo Carlini  <pcarlini@suse.de>
5302         PR libstdc++/13831
5303         * include/bits/fstream.tcc (underflow): Remove unused
5304         variable.
5305         * include/bits/streambuf_iterator.h (equal): Ditto.
5306         * include/bits/locale_facets.h (_M_convert_from_char):
5307         Ditto.
5309 2004-01-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5311         PR c/13814
5312         * config/linker-map.gnu (nan): Delete.
5313         * libmath/mathconf.h (NAN, nan): Delete.
5314         * linkage.m4 (nan): Don't check for it.
5315         * libmath/nan.c: Delete file.
5317         * config.h.in, configure: Regenerate.
5319 2004-01-23  Paolo Carlini  <pcarlini@suse.de>
5321         * include/bits/basic_string.h (push_back(_CharT)):
5322         Call _M_replace_aux.
5323         (insert(size_type, const basic_string&)): Trivial tweak.
5324         (insert(size_type, size_type, _CharT)): Call _M_replace_aux.
5325         (insert(iterator, _CharT)): Ditto.
5326         (erase(size_type, size_type)): Ditto.
5327         (erase(iterator)): Ditto.
5328         (erase(iterator, iterator)): Ditto.
5329         (replace(size_type, size_type, size_type, _CharT)): Ditto.
5331 2004-01-23  Loren J. Rittle  <ljrittle@acm.org>
5333         libstdc++/13823
5334         * testsuite/performance/allocator_map_thread.cc: New test.
5336 2004-01-22  Paolo Carlini  <pcarlini@suse.de>
5338         * include/bits/locale_facets.tcc
5339         (money_put::do_put(..., long double)): Use the basic_string
5340         constructor for char arrays, not that for C-strings, to pass
5341         __digits to do_put(..., const string_type&): __ws isn't
5342         null-terminated.
5344 2004-01-22  Paolo Carlini  <pcarlini@suse.de>
5346         * include/bits/basic_string.h (_M_replace_safe): Change
5347         signatures to take size_types and const _CharT*.
5348         (_M_replace_aux): Likewise, takes size_types instead of
5349         iterators.
5350         (append(size_type, _CharT)): Update call.
5351         (assign(size_type, _CharT)): Ditto.
5352         (replace(iterator, iterator, size_type, _CharT)): Ditto.
5353         (_M_replace_dispatch(iterator, iterator, _Integer,
5354         _Integer, __true_type)): Ditto.
5355         * include/bits/basic_string.tcc (assign(const _CharT*,
5356         size_type)): Ditto.
5357         (insert(size_type, const _CharT*, size_type)): Ditto.
5358         (replace(size_type, size_type, const _CharT*,
5359         size_type)): Ditto.
5360         (_M_replace(iterator, iterator, _InputIterator,
5361         _InputIterator)): Ditto.
5362         (append(const basic_string&)): Ditto.
5363         (append(const basic_string&, size_type, size_type): Ditto.
5364         (append(const _CharT*, size_type): Ditto.
5365         (_M_replace_safe, _M_replace_safe): Change definitions
5366         accordingly, simplify.
5367         * string-inst.cc (_M_replace_safe): Don't instantiate.
5369 2004-01-21  Paolo Carlini  <pcarlini@suse.de>
5371         * include/bits/basic_string.tcc (append(const basic_string&)):
5372         Revert previous change.
5373         (append(const basic_string&, size_type, size_type)): Revert
5374         previous change, use _M_check and _M_limit.
5376 2004-01-21  Paolo Carlini  <pcarlini@suse.de>
5378         * include/bits/basic_string.h (_M_check): Change to return
5379         a checked __pos and take an additional const char* argument.
5380         (_M_fold): Rename to _M_limit, change to return a size_type,
5381         corresponding to the __off limited to the actual length.
5382         (insert(size_type, size_type, _CharT)): Update call, call
5383         replace.
5384         (insert(iterator, _CharT)): Call replace(iterator, iterator,
5385         size_type, _CharT) instead.
5386         (erase(size_type, size_type)): Update calls.
5387         (replace(size_type, size_type, size_type, _CharT)): Ditto.
5388         (substr(size_type, size_type)): Use _M_check.
5389         * include/bits/basic_string.tcc (basic_string(const basic_string&,
5390         size_type, size_type)): Update calls.
5391         (basic_string(const basic_string&, size_type, size_type,
5392         const _Alloc&)): Ditto.
5393         (assign(const basic_string&, size_type, size_type)): Use the
5394         new _M_check and _M_limit.
5395         (insert(size_type, const basic_string&, size_type, size_type):
5396         Ditto.
5397         (insert(size_type, const _CharT*, size_type)): Ditto.
5398         (replace(size_type, size_type, const _CharT*, size_type): Ditto.
5399         (replace(size_type, size_type, const basic_string&,
5400         size_type, size_type)): Ditto.
5401         (append(const basic_string&)): Ditto.
5402         (append(const basic_string&, size_type, size_type)): Ditto.
5403         (copy(_CharT*, size_type, size_type)): Ditto.
5404         (compare(size_type, size_type, const basic_string&)): Ditto.
5405         (compare(size_type, size_type, const basic_string&,size_type,
5406         size_type)): Ditto.
5407         (compare(size_type, size_type, const _CharT*)): Ditto.
5408         (compare(size_type, size_type, const _CharT*, size_type)): Ditto.
5410 2004-01-19  Stefan Olsson  <stefan@snon.net>
5412         * include/ext/mt_allocator.h: If a thread, when it dies, still has
5413         memory on it's freelist this memory is not returned to global
5414         list. Simplification of deallocate so that memory is always
5415         returned to the calling thread id's freelist instead of to
5416         global. Fix typos. Add volatile where appropriate.
5418 2004-01-19  Loren J. Rittle  <ljrittle@acm.org>
5420         * testsuite/ext/stdio_filebuf/char/10063-2.cc: Treat unbuffered.
5421         * testsuite/ext/stdio_filebuf/char/10063-3.cc: New test.  Like -2 but
5422         use __gnu_cxx::stdio_sync_filebuf<char> instead; allow buffered stream.
5424 2004-01-19  Paolo Carlini  <pcarlini@suse.de>
5426         * src/debug.cc: Make sure all the names are prefixed with
5427         double (or single) underscore.
5429 2004-01-19  Paolo Carlini  <pcarlini@suse.de>
5431         * src/debug.cc: Trivial formatting change.
5433 2004-01-19  Paolo Carlini  <pcarlini@suse.de>
5435         * include/bits/basic_string.tcc (_S_construct(size_type,
5436         _CharT, const _Alloc&)): Remove redundant try/catch.
5437         (_M_mutate(size_type, size_type, size_type)): Ditto.
5438         (_M_clone(const _Alloc&, size_type)): Ditto.
5440 2004-01-18  Paolo Carlini  <pcarlini@suse.de>
5442         * include/bits/basic_string.h (c_str()): Simplify, due to
5443         21.3.4 the internal representation is always kept null-terminated.
5444         * include/bits/basic_string.tcc (_M_clone): Null-terminate.
5445         * testsuite/21_strings/basic_string/element_access/char/4.cc: New.
5446         * testsuite/21_strings/basic_string/element_access/wchar_t/4.cc:
5447         Ditto.
5449 2004-01-18  Paolo Carlini  <pcarlini@suse.de>
5451         * include/bits/basic_string.h (append(size_type, _CharT)):
5452         Moved inline, just call _M_replace_aux, no source iterators at
5453         risk of being clobbered.
5454         (assign(size_type, _CharT)): Call directly _M_replace_aux.
5455         (_M_replace(iterator, iterator, _InputIterator, _InputIterator,
5456         input_iterator_tag)): Remove fifth unused argument.
5457         (_M_replace_dispatch(iterator, iterator, _InputIterator,
5458         _InputIterator, __false_type)): Update call.
5459         * include/bits/basic_string.tcc (replace(size_type, size_type,
5460         const _CharT*, size_type)): Update call.
5461         (_M_replace_aux(iterator, iterator, size_type, _CharT)): Tweak
5462         throw string literal.
5463         (_M_replace_safe(iterator, iterator, _ForwardIterator,
5464         _ForwardIterator)): Likewise.
5465         (_M_replace(iterator, iterator, _InputIterator, _InputIterator,
5466         input_iterator_tag)): Remove fifth unused argument.
5467         (append(size_type __n, _CharT __c)): Move inline.
5468         * src/string-inst.cc (S::_M_replace(S::iterator, S::iterator,
5469         const C*, const C*, input_iterator_tag)): Remove fifth unused
5470         argument.
5472 2004-01-16  Benjamin Kosnik  <bkoz@redhat.com>
5474         * testsuite/ext/enc_filebuf/char/13189.cc: Fix guards.
5475         * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Same.
5477 2004-01-16  Danny Smith  <dannysmith@users.sourceforge.net>
5479         * testsuite/testsuite_hooks.cc (try_mkfifo): Avoid calling
5480         mkfifo for mingw32.
5482 2004-01-15  Stefan Olsson  <stefan@snon.net>
5484         * include/ext/mt_allocator.h: Reuse thread id's as soon as
5485         possible by changing the behaviour of thread_freelist to do
5486         push_front when threads die instead of push_back.
5488 2004-01-14  Paolo Carlini  <pcarlini@suse.de>
5490         * include/bits/locale_facets.h (struct __numpunct_cache):
5491         Add member _M_grouping_size, caching the length of _M_grouping.
5492         (__numpunct_cache<>::_M_cache): Assign the latter.
5493         (__verify_grouping): Move declaration...
5494         * include/bits/locale_facets.tcc (__verify_grouping):
5495         ... here, change signature to take a const char* and a size_t
5496         for the grouping; not a template anymore.
5497         (__add_grouping, num_put::_M_group_int, num_put::_M_group_float):
5498         Likewise change signature and tweak consistently.
5499         (num_get::_M_extract_float, num_get::_M_extract_int,
5500         num_put::_M_insert_int, num_put::_M_insert_float,
5501         money_get::do_get(string_type&), money_get::do_put(string_type)):
5502         Update callers.
5503         * config/locale/generic/numeric_members.cc
5504         (numpunct<>::_M_initialize_numpunct): Assign the new member.
5505         * config/locale/gnu/numeric_members.cc
5506         (numpunct<>::_M_initialize_numpunct): Likewise.
5507         * src/locale-inst.cc (__add_grouping): Tweak signature.
5508         (__verify_grouping): Don't instantiate, not a template anymore.
5510         * include/bits/locale_facets.h: Rename _M_truename_len ->
5511         _M_truename_size, _M_falsename_len -> _M_falsename_size.
5512         * include/bits/locale_facets.tcc: Likewise.
5513         * config/locale/generic/numeric_members.cc: Likewise.
5514         * config/locale/gnu/numeric_members.cc: Likewise.
5516 2004-01-14  Stefan Olsson  <stefan@snon.net>
5518         * include/ext/mt_allocator.h: Fixups.
5519         * testsuite/performance/allocator.cc: Enable __mt_alloc tests.
5520         * testsuite/performance/allocator_thread.cc: Same.
5522 2004-01-13  Benjamin Kosnik  <bkoz@redhat.com>
5524         * testsuite/performance/ifstream_extract_float.cc: Add higher
5525         precision tests.
5526         * testsuite/performance/ofstream_insert_float.cc: Same.
5528 2004-01-13  Paolo Carlini  <pcarlini@suse.de>
5530         * src/locale-misc-inst.cc (__convert_from_v(long),
5531         __convert_from_v(unsigned long), __convert_from_v(long long),
5532         __convert_from_v(unsigned long long)): Remove, unused.
5534 2004-01-13  Benjamin Kosnik  <bkoz@redhat.com>
5536         * testsuite/performance/ifstream_extract_float.cc: New.
5537         * testsuite/performance/ofstream_insert_float.cc: Float generation
5538         matches above.
5540         * 20_util/auto_ptr.cc, auto_ptr_neg.cc: Break into...
5541         * 20_util/auto_ptr/1.cc: ...this.
5542         * 20_util/auto_ptr/2.cc: Same.
5543         * 20_util/auto_ptr/3.cc: Same.
5544         * 20_util/auto_ptr/3946.cc: Same.
5545         * 20_util/auto_ptr/4.cc: Same.
5546         * 20_util/auto_ptr/5.cc: Same.
5547         * 20_util/auto_ptr/6.cc: Same.
5548         * 20_util/auto_ptr/7.cc: Same.
5549         * 20_util/auto_ptr/assign_neg.cc
5550         * 20_util/pairs.cc: Break into...
5551         * 20_util/pair/1.cc: ...this.
5552         * 20_util/pair/2.cc: Same.
5553         * 20_util/pair/3.cc: Same.
5554         * 20_util/pair/4.cc: Same.
5556 2004-01-13  Paolo Carlini  <pcarlini@suse.de>
5558         * include/bits/locale_facets.tcc (num_get::do_get(void*&)):
5559         Set correctly just basefield, the only group that matters.
5561 2004-01-13  Paolo Carlini  <pcarlini@suse.de>
5563         * include/ext/rope (_Rope_rep_alloc_base): Eliminate.
5564         (_Rope_rep_base): Inherit directly from the rope allocator;
5565         use rebinding instead of _Alloc_traits; pick up data member
5566         from _Rope_rep_alloc_base.
5567         (_Rope_alloc_base): Eliminate.
5568         (_Rope_base): Inherit directly from the rope allocator; use
5569         rebinding instead of _Alloc_traits; pick up data member from
5570         _Rope_alloc_base.
5571         (rope::_S_new_RopeLeaf, rope::_S_new_RopeConcatenation,
5572         rope::_S_new_RopeFunction, rope::_S_new_RopeSubstring): Tweak.
5574 2004-01-13  Paolo Carlini  <pcarlini@suse.de>
5576         PR libstdc++/13650
5577         * include/bits/basic_string.tcc (compare(size_type, size_type,
5578         const _CharT*, size_type)): Implement correctly the resolution
5579         of DR 5: basically, s is a char array, -not- a C string.
5580         * include/bits/basic_string.h: Tweak some comments.
5581         * testsuite/21_strings/basic_string/compare/char/13650.cc: New.
5582         * testsuite/21_strings/basic_string/compare/wchar_t/13650.cc: New.
5584 2004-01-12  Andreas Tobler  <a.tobler@schweiz.ch>
5586         * testsuite/lib/libstdc++.exp: Set LD_LIBRARY_PATH_32 for
5587         Solaris.
5589 2004-01-12  Paolo Carlini  <pcarlini@suse.de>
5591         * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc:
5592         Use try_mkfifo.
5593         * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc:
5594         Likewise.
5596 2004-01-12  Paolo Carlini  <pcarlini@suse.de>
5598         * include/bits/locale_facets.h (struct __numpunct_cache):
5599         Add members _M_truename_len and _M_falsename_len, caching
5600         the lengths of _M_truename and _M_falsename.
5601         (__numpunct_cache<>::_M_cache): Assign the latter.
5602         * include/bits/locale_facets.tcc (num_get::do_get(bool&),
5603         num_put::do_put(bool)): Use the new members, thus avoiding
5604         computing string lengths again and again.
5605         * config/locale/generic/numeric_members.cc
5606         (numpunct<>::_M_initialize_numpunct): Assign the new members.
5607         * config/locale/gnu/numeric_members.cc
5608         (numpunct<>::_M_initialize_numpunct): Likewise.
5610 2004-01-12  Mark Mitchell  <mark@codesourcery.com>
5612         * testsuite/testsuite_hooks.h (__gnu_test::try_mkfifo): Declare it.
5613         * testsuite/testsuite_hooks.cc (__gnu_test::try_mkfifo): Define
5614         it.
5615         * testsuite/27_io/basic_filebuf/close/char/4879.cc: Use try_mkfifo
5616         and remove Cygwin XFAIL.
5617         * testsuite/27_io/basic_filebuf/close/char/9964.cc: Likewise.
5618         * testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc: Likewise.
5619         * testsuite/27_io/basic_filebuf/open/char/9507.cc: Likewise.
5620         * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc:
5621         Likewise.
5622         * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
5623         * testsuite/27_io/objects/char/7.cc: Likewise.
5624         * testsuite/27_io/objects/char/9661-1.cc: Likewise.
5625         * testsuite/27_io/objects/wchar_t/7.cc: Likewise.
5626         * testsuite/27_io/objects/wchar_t/9661-1.cc: Likewise.
5628 2004-01-11  Gabriel Dos Reis  <gdr@integrable-solutions.net>
5630         * include/std/std_complex.h (std::complex<>::real): Return a
5631         reference. Add non-const overload.
5632         (std::complex<>::real): Likewise.
5633         (std::real): Likewise.
5634         (std::imag): Likewise.
5635         (std::operator+): Tidy.
5636         (std::operator-): Likewise.
5637         (std::operator*): Likewise.
5638         (std::operator/): Likewise.
5639         (std::operator>>): Likewise.
5641 2004-01-11  Paolo Carlini  <pcarlini@suse.de>
5643         PR libstdc++/13582
5644         * include/bits/fstream.tcc (imbue): Exploit the external
5645         buffer to imbue 'on the fly' a new locale and convert its
5646         remainder with the new codecvt facet.
5647         (underflow): Tweak slightly to deal with this special case.
5648         * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc: New.
5649         * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc: Ditto.
5650         * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-3.cc: Ditto.
5651         * testsuite/27_io/objects/wchar_t/13582-1_xin.cc: Ditto.
5652         * testsuite/27_io/objects/wchar_t/13582-1_xin.in: Ditto.
5654 2004-01-10  Paolo Carlini  <pcarlini@suse.de>
5656         * docs/html/ext/lwg-active.html, docs/html/ext/lwg-defects.html:
5657         Import Revision 28.
5659 2004-01-10  Paolo Carlini  <pcarlini@suse.de>
5661         PR libstdc++/13630
5662         * include/bits/locale_classes.h (class locale): Fix category
5663         typedef.
5664         * testsuite/22_locale/locale/13630.cc: Add.
5666 2004-01-10  Giovanni Bajo  <giovannibajo@gcc.gnu.org>
5668         * include/bits/locale_facets.h: Make a name really dependent. This
5669         will be needed when Core Issue 224 is implemented.
5671 2004-01-09  Paolo Carlini  <pcarlini@suse.de>
5673         * testsuite/performance/allocator.cc: Demangle typeid(obj).name().
5674         * testsuite/performance/allocator_thread.cc: Likewise.
5676 2004-01-07  Benjamin Kosnik  <bkoz@redhat.com>
5678         * crossconfig.m4: Add LFS, io bits to linux cross config.
5679         * acconfig.h: Remove obsolete bits, reorder.
5680         * config.h.in: Regenerate.
5681         * aclocal.m4: Same.
5682         * configure: Same.
5684 2004-01-07  Gawain Bolton  <gp.bolton@computer.org>
5686         * include/bits/stl_list.h:
5687         * include/bits/list.tc:
5688         * src/list.cc:
5689         Performance enhancements for destructor, push_front(),
5690         push_back(), pop_front(), pop_back(), sort()
5691         Eliminated static_casts where possible.
5692         Moved code out of header files into new src/list.cc
5693         implementation file for library where possible.
5694         Remove inheritance from iterator class and create separate
5695         classes for non-constant and constant iterators.
5696         * include/bits/stl_tree.h (_Rb_tree class):
5697         * src/tree.cc:
5698         Only erase contents in destructor.
5699         Eliminate unnecessary initialization in assignment operator.
5700         Optimize for the nominal case by not checking whether
5701         container is empty in clear().
5702         Re-order test in _M_insert() to improve performance.
5703         Move initialization of new node's left & right pointers to
5704         src/tree.cc to where new node's colour is initialized
5705         and to reduce the amount of inline code.
5706         Use  _M_leftmost() and _M_end() to improve readability where
5707         appropriate.
5708         Create separate classes for non-constant and constant
5709         iterators to clarify code, avoid extra template parameters and
5710         casting away constness.
5712 2004-01-07  Benjamin Kosnik  <bkoz@redhat.com>
5714         * src/Makefile.am (sources): Add list.cc, tree.cc.
5715         * src/stl_tree.cc: Move to...
5716         * src/tree.cc: ...here.
5717         * src/list.cc: Add.
5718         * config/linker-map.gnu: Tweaks.
5719         * testsuite/23_containers/map/operators/1_neg.cc: Add excess errors.
5720         * testsuite/23_containers/set/operators/1_neg.cc: Add excess errors.
5722         * bits/stl_vector.h: Column wrap comments.
5724 2004-01-07  Loren J. Rittle  <ljrittle@acm.org>
5726         (re-open) PR libstdc++/12658
5727         * src/locale_init.cc (locale::locale): Remove ill-scoped mutex.
5728         (locale::global): Likewise.
5730 2004-01-07  Paolo Carlini  <pcarlini@suse.de>
5732         * testsuite/27_io/basic_istream/extractors_other/char/9318-in.cc:
5733         Remove redundant #include.
5734         * testsuite/27_io/basic_ostream/endl/char/1.cc: Likewise.
5735         * testsuite/27_io/basic_ostream/ends/char/1.cc: Likewise,
5736         re-enable normal testing.
5737         * testsuite/27_io/basic_ostream/ends/char/2.cc: Remove redundant
5738         #include.
5739         * testsuite/27_io/basic_ostream/flush/char/1.cc: Likewise.
5740         * testsuite/27_io/basic_ostream/inserters_character/char/1.cc:
5741         Likewise.
5742         * testsuite/27_io/basic_ostream/inserters_character/char/2.cc:
5743         Likewise.
5744         * testsuite/27_io/basic_ostream/inserters_character/char/3.cc:
5745         Likewise.
5746         * testsuite/27_io/basic_ostream/inserters_character/char/4.cc:
5747         Likewise.
5748         * testsuite/27_io/basic_ostream/inserters_character/char/5.cc:
5749         Likewise.
5750         * testsuite/27_io/basic_ostream/inserters_character/char/6.cc:
5751         Likewise.
5752         * testsuite/27_io/basic_ostream/inserters_character/char/8.cc:
5753         Likewise.
5754         * testsuite/27_io/basic_ostream/inserters_character/wchar_t/7.cc:
5755         More properly, #include <locale>.
5756         * testsuite/27_io/basic_ostream/inserters_character/wchar_t/8.cc:
5757         Remove redundant #include.
5758         * testsuite/27_io/basic_ostream/inserters_other/char/2.cc: Likewise.
5759         * testsuite/27_io/basic_ostream/inserters_other/char/3.cc: Remove
5760         redundant DejaGnu directive.
5761         * testsuite/27_io/basic_ostream/inserters_other/char/4.cc: Remove
5762         redundant #include.
5764 2004-01-06  Benjamin Kosnik  <bkoz@redhat.com>
5765             Stefan Olsson  <stefan@snon.net>
5767         * scripts/check_performance: Use -pthread.
5768         * testsuite/performance/allocator.cc: Tweaks, add list.
5769         * testsuite/performance/allocator_thread.cc: New.
5771 2004-01-06  Jerry Quinn  <jlquinn@optonline.net>
5773         * include/bits/locale_facets.h: Document public classes and
5774         functions.
5775         * include/bits/locale_facets.tcc (time_get::_M_extract_via_format):
5776         Add comment.
5778 2004-01-06  Paolo Carlini  <pcarlini@suse.de>
5780         * testsuite/27_io/basic_istream/extractors_other/char/1.cc:
5781         Remove redundant #includes.
5782         * testsuite/27_io/basic_istream/extractors_other/char/2.cc:
5783         Likewise.
5784         * testsuite/27_io/basic_istream/extractors_other/char/3.cc:
5785         Likewise.
5786         * testsuite/27_io/basic_istream/get/char/1.cc: Likewise.
5787         * testsuite/27_io/basic_istream/get/char/2.cc: Likewise.
5788         * testsuite/27_io/basic_istream/getline/char/1.cc: Likewise.
5789         * testsuite/27_io/basic_istream/getline/char/2.cc: Likewise.
5790         * testsuite/27_io/basic_istream/getline/char/3.cc: Likewise.
5791         * testsuite/27_io/basic_istream/ignore/char/1.cc: Likewise.
5792         * testsuite/27_io/basic_istream/ignore/char/6360.cc: Likewise.
5793         * testsuite/27_io/basic_istream/ignore/char/7220.cc: Likewise.
5794         * testsuite/27_io/basic_istream/peek/char/1.cc: Likewise.
5795         * testsuite/27_io/basic_istream/peek/char/6414.cc: Likewise.
5796         * testsuite/27_io/basic_istream/putback/char/1.cc: Likewise.
5797         * testsuite/27_io/basic_istream/read/char/1.cc: Likewise.
5798         * testsuite/27_io/basic_istream/read/char/2.cc: Likewise.
5799         * testsuite/27_io/basic_istream/read/char/3.cc: Likewise.
5800         * testsuite/27_io/basic_istream/readsome/char/6746-1.cc:
5801         Likewise.
5802         * testsuite/27_io/basic_istream/readsome/char/6746-2.cc:
5803         Likewise.
5804         * testsuite/27_io/basic_istream/readsome/char/8258.cc:
5805         Likewise.
5806         * testsuite/27_io/basic_istream/seekg/char/2346-fstream.cc:
5807         Likewise.
5808         * testsuite/27_io/basic_istream/seekg/char/2346-sstream.cc:
5809         Likewise.
5810         * testsuite/27_io/basic_istream/seekg/char/8348-1.cc: Likewise.
5811         * testsuite/27_io/basic_istream/seekg/char/8348-2.cc: Likewise.
5812         * testsuite/27_io/basic_istream/tellg/char/8348.cc: Likewise.
5814 2004-01-04  Paolo Carlini  <pcarlini@suse.de>
5816         * testsuite/27_io/basic_istream/extractors_arithmetic/char/01.cc:
5817         Remove redundant #includes.
5818         * testsuite/27_io/basic_istream/extractors_arithmetic/char/02.cc:
5819         Likewise.
5820         * testsuite/27_io/basic_istream/extractors_arithmetic/char/03.cc:
5821         Likewise.
5822         * testsuite/27_io/basic_istream/extractors_arithmetic/char/06.cc:
5823         Likewise.
5824         * testsuite/27_io/basic_istream/extractors_arithmetic/char/07.cc:
5825         Likewise.
5826         * testsuite/27_io/basic_istream/extractors_arithmetic/char/08.cc:
5827         Likewise.
5828         * testsuite/27_io/basic_istream/extractors_arithmetic/char/09.cc:
5829         Likewise.
5830         * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
5831         Likewise.
5832         * testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc:
5833         Likewise.
5834         * testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc:
5835         Likewise.
5836         * testsuite/27_io/basic_ostream/inserters_arithmetic/char/1.cc:
5837         Likewise.
5838         * testsuite/27_io/basic_ostream/inserters_arithmetic/char/2.cc:
5839         Likewise.
5840         * testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc:
5841         Likewise.
5843 2004-01-04  Mark Mitchell  <mark@codesourcery.com>
5845         PR c++/12226
5846         * testsuite/27_io/basic_filebuf/4.cc: Remove use of invalid copy
5847         constructor.
5848         * testsuite/27_io/basic_fstream/4.cc: Likewise.
5849         * testsuite/27_io/basic_ifstream/4.cc: Likewise.
5850         * testsuite/27_io/basic_ios/4.cc: Likewise.
5851         * testsuite/27_io/basic_iostream/4.cc: Likewise.
5852         * testsuite/27_io/basic_istream/4.cc: Likewise.
5853         * testsuite/27_io/basic_istingstream/4.cc: Likewise.
5854         * testsuite/27_io/basic_ofstream/4.cc: Likewise.
5855         * testsuite/27_io/basic_ostream/4.cc: Likewise.
5856         * testsuite/27_io/basic_ostringstream/4.cc: Likewise.
5857         * testsuite/27_io/basic_stringbuf/5.cc: Likewise.
5858         * testsuite/27_io/basic_stringstream/4.cc: Likewise.
5860 2004-01-04  Paolo Carlini  <pcarlini@suse.de>
5862         * config/locale/generic/numeric_members.cc (_M_initialize_numpunct):
5863         Avoid unnecessarily zero terminating _M_atoms_out and _M_atoms_in;
5864         always use double underscored names.
5865         * config/locale/gnu/numeric_members.cc (_M_initialize_numpunct):
5866         Likewise.
5867         * include/bits/locale_facets.h (struct __numpunct_cache):
5868         Dimension _M_atoms_out and _M_atoms_in one position smaller.
5869         (__numpunct_cache<>::_M_cache): Don't zero terminate _M_atoms_out
5870         and _M_atoms_in.