OSDN Git Service

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