OSDN Git Service

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