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