OSDN Git Service

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