OSDN Git Service

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