OSDN Git Service

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