OSDN Git Service

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