OSDN Git Service

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