OSDN Git Service

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