OSDN Git Service

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