OSDN Git Service

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