OSDN Git Service

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