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