OSDN Git Service

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