OSDN Git Service

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