OSDN Git Service

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