OSDN Git Service

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