OSDN Git Service

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