OSDN Git Service

dbbbea991137f377063ef62ca2fb7a7e3d0f1c64
[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: