OSDN Git Service

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