OSDN Git Service

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