OSDN Git Service

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