OSDN Git Service

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