2006-06-09 Paolo Carlini <pcarlini@suse.de>
[official-gcc.git] / libstdc++-v3 / ChangeLog
blob69b390267ac95cdd204f7c617d17bf46a9f7b58c
1 2006-06-09  Paolo Carlini  <pcarlini@suse.de>
3         * include/tr1/random (random_device::random_device(const
4         std::string& = "/dev/urandom")): Open in binary mode.
6         * include/tr1/random (random_device::random_device(const
7         std::string& = "rand")): Use mersenne_twister.
8         (random_device::_M_strtoul): New.
9         (random_device::operator()()): Update.
11         * include/tr1/random: Minor stylistic changes, consistently
12         qualify with std::.
14 2006-06-09  Paolo Carlini  <pcarlini@suse.de>
16         * acinclude.m4 ([GLIBCXX_CHECK_RANDOM_TR1]): New, check for
17         the availability of "/dev/random" and "/dev/urandom".
18         * configure.ac: Use it.
19         * include/tr1/random (random_device): Implement, a fall-back for
20         systems not providing "/dev/random" and "/dev/urandom" included.
21         * testsuite/tr1/5_numerical_facilities/random/random_device/
22         cons/default.cc: New.
23         * testsuite/tr1/5_numerical_facilities/random/random_device/
24         cons/token.cc: Likewise.
25         * testsuite/tr1/5_numerical_facilities/random/random_device/
26         requirements/typedefs.cc: Likewise.
27         * config.h.in: Regenerate.
28         * configure: Likewise.
30         * testsuite/tr1/5_numerical_facilities/random/mersenne_twister/
31         cons/gen1.cc: Minor tweak, add bool test.
33 2006-06-06  Benjamin Kosnik  <bkoz@redhat.com>
35         * testsuite/util: New directory.
36         * testsuite/testsuite_hooks.cc: Move to util sub-directory.
37         * testsuite/testsuite_abi_check.cc: Same.
38         * testsuite/testsuite_abi.cc: Same.
39         * testsuite/testsuite_tr1.h: Same.
40         * testsuite/testsuite_io.h: Same.
41         * testsuite/testsuite_iterators.h: Same.
42         * testsuite/testsuite_allocator.cc: Same.
43         * testsuite/testsuite_allocator.h: Same.
44         * testsuite/testsuite_hooks.h: Same.
45         * testsuite/testsuite_character.cc: Same.
46         * testsuite/testsuite_abi.h: Same.
47         * testsuite/testsuite_character.h: Same.
48         * testsuite/testsuite_visualization.h: Same.
49         * testsuite/testsuite_performance.h: Same.
50         * testsuite/testsuite_shared.cc: Same.
51         * testsuite/testsuite_common_types.h: Same.
53         * testsuite/lib/libstdc++.exp (v3-build_support): Adjust paths.
54         * testsuite/libstdc++-abi/abi.exp: Same.
55         * testsuite/libstdc++-dg/conformance.exp: Remove any files in the
56         utilities subdirectory from the list of test cases.
57         
58         * scripts/testsuite_flags.in (build-includes): Adjust path for
59         testsuite includes.
60         * scripts/create_testsuite_files (dlist): Don't let utility files
61         creep into the testsuite_files list.
62         
63 2006-06-06  Paolo Carlini  <pcarlini@suse.de>
65         * include/tr1/random (mersenne_twister<>::operator==,
66         operator!=, operator<<, operator>>): Implement.
67         * testsuite/tr1/5_numerical_facilities/random/mersenne_twister/
68         operators/equal.cc: New.        
69         * testsuite/tr1/5_numerical_facilities/random/mersenne_twister/
70         operators/not_equal.cc: Likewise.
71         * testsuite/tr1/5_numerical_facilities/random/mersenne_twister/
72         operators/serialize.cc: Likewise.
74         * include/tr1/random (subtract_with_carry<>::operator==): Fix,
75         compare the whole state; use std::equal.
77         * include/tr1/random: Minor formatting and style changes.
79 2006-06-06  Benjamin Kosnik  <bkoz@redhat.com>
81         * testsuite/tr1/5_numerical_facilies: Move to...
82         * testsuite/tr1/5_numerical_facilities: ...this.        
84 2006-06-06  Paolo Carlini  <pcarlini@suse.de>
86         * include/tr1/random: Trivial uglification fixes.
87         * include/tr1/random.tcc: Likewise.
89         * include/tr1/random (subtract_with_carry<>::
90         subtract_with_carry(_IntType)): Fix parameter type to unsigned long.
91         (subtract_with_carry<>::seed(_IntType)): Likewise.
92         * include/tr1/random.tcc (subtract_with_carry<>::seed(_IntType)):
93         Adjust.
95 2006-06-05  Paolo Carlini  <pcarlini@suse.de>
97         * include/tr1/random (mersenne_twister<>::seed()): Fix per
98         tr1/5.1.4.2, p8.
99         * include/tr1/random.tcc (mod_w): Add.
100         (mersenne_twister<>::seed(unsigned long)): Fix per tr1/5.1.4.2, p9.
101         (mersenne_twister<>::seed(Gen&, false_type)): Adjust to use mod_w.
102         * testsuite/tr1/5_numerical_facilies/random/mt19937.cc: Fix
103         expected result per tr1/5.1.5, p2.
104         * testsuite/tr1/5_numerical_facilies/random/mersenne_twister/
105         cons/default.cc: Adjust.
107         * include/tr1/random (exponential_distribution<>::operator()()): Fix.
109 2006-06-05  Paolo Carlini  <pcarlini@suse.de>
111         * include/tr1/random.tcc (Max::value()): Cast 1 to Tp(1) and
112         adjust shift count to w; rename as Max_w.
113         (struct Mod_w): New.
114         (mersenne_twister<>::seed(Gen&, false_type): Use the latter.
115         (mersenne_twister<>::operator()()): Fix ~0ul to ~_UInt().
116         * testsuite/tr1/5_numerical_facilies/random/mersenne_twister/
117         cons/default.cc: Fix ~0ul to 2^32-1.
118         * testsuite/tr1/5_numerical_facilies/random/mersenne_twister/
119         cons/gen1.cc: Likewise.
121 2006-06-05  Stephen M. Webb  <stephen.webb@bregmasoft.com>
123         * include/tr1/random: New.
124         * include/tr1/random.tcc: Likewise.
125         * include/Makefile.am: Add.
126         * testsuite/tr1/5_numerical_facilies/random/ranlux3.cc: New.
127         * testsuite/tr1/5_numerical_facilies/random/ranlux4.cc: Likewise.
128         * testsuite/tr1/5_numerical_facilies/random/mt19937.cc: Likewise.
129         * testsuite/tr1/5_numerical_facilies/random/variate_generator/
130         requirements/typedefs.cc: Likewise.
131         * testsuite/tr1/5_numerical_facilies/random/subtract_with_carry/
132         cons/seed1.cc: Likewise.
133         * testsuite/tr1/5_numerical_facilies/random/subtract_with_carry/
134         cons/seed2.cc: Likewise.
135         * testsuite/tr1/5_numerical_facilies/random/subtract_with_carry/
136         cons/default.cc: Likewise.
137         * testsuite/tr1/5_numerical_facilies/random/subtract_with_carry/
138         cons/gen1.cc: Likewise.
139         * testsuite/tr1/5_numerical_facilies/random/subtract_with_carry/
140         requirements/typedefs.cc: Likewise.
141         * testsuite/tr1/5_numerical_facilies/random/subtract_with_carry/
142         operators/equal.cc: Likewise.
143         * testsuite/tr1/5_numerical_facilies/random/subtract_with_carry/
144         operators/not_equal.cc: Likewise.
145         * testsuite/tr1/5_numerical_facilies/random/subtract_with_carry/
146         operators/serialize.cc: Likewise.
147         * testsuite/tr1/5_numerical_facilies/random/uniform_real/
148         requirements/typedefs.cc: Likewise.
149         * testsuite/tr1/5_numerical_facilies/random/discard_block/
150         requirements/requirements.cc: Likewise.
151         * testsuite/tr1/5_numerical_facilies/random/linear_congruential/
152         cons/seed1.cc: Likewise.
153         * testsuite/tr1/5_numerical_facilies/random/linear_congruential/
154         cons/seed2.cc: Likewise.
155         * testsuite/tr1/5_numerical_facilies/random/linear_congruential/
156         cons/default.cc: Likewise.
157         * testsuite/tr1/5_numerical_facilies/random/linear_congruential/
158         cons/gen1.cc: Likewise.
159         * testsuite/tr1/5_numerical_facilies/random/linear_congruential/
160         requirements/non_uint_neg.cc: Likewise.
161         * testsuite/tr1/5_numerical_facilies/random/linear_congruential/
162         requirements/typedefs.cc: Likewise.
163         * testsuite/tr1/5_numerical_facilies/random/linear_congruential/
164         operators/equal.cc: Likewise.
165         * testsuite/tr1/5_numerical_facilies/random/linear_congruential/
166         operators/not_equal.cc: Likewise.
167         * testsuite/tr1/5_numerical_facilies/random/linear_congruential/
168         operators/serialize.cc: Likewise.
169         * testsuite/tr1/5_numerical_facilies/random/xor_combine/
170         requirements/typedefs.cc: Likewise.
171         * testsuite/tr1/5_numerical_facilies/random/minstd_rand.cc: Likewise.
172         * testsuite/tr1/5_numerical_facilies/random/minstd_rand0.cc: Likewise.
173         * testsuite/tr1/5_numerical_facilies/random/uniform_int/
174         cons/range.cc: Likewise.
175         * testsuite/tr1/5_numerical_facilies/random/uniform_int/
176         cons/default.cc: Likewise.
177         * testsuite/tr1/5_numerical_facilies/random/uniform_int/
178         cons/range_neg.cc: Likewise.
179         * testsuite/tr1/5_numerical_facilies/random/uniform_int/
180         requirements/typedefs.cc: Likewise.
181         * testsuite/tr1/5_numerical_facilies/random/mersenne_twister/
182         cons/seed1.cc: Likewise.
183         * testsuite/tr1/5_numerical_facilies/random/mersenne_twister/
184         cons/seed2.cc: Likewise.
185         * testsuite/tr1/5_numerical_facilies/random/mersenne_twister/
186         cons/default.cc: Likewise.
187         * testsuite/tr1/5_numerical_facilies/random/mersenne_twister/
188         cons/gen1.cc: Likewise.
189         * testsuite/tr1/5_numerical_facilies/random/mersenne_twister/
190         requirements/typedefs.cc: Likewise.
191         * include/Makefile.in: Regenerate.
192         * testsuite/tr1/headers.cc: Update.
194 2006-06-04  Paolo Carlini  <pcarlini@suse.de>
196         PR libstdc++/27867
197         * include/bits/valarray_before.h (struct _BinClos<_Oper, _ValArray,
198         _ValArray, _Tp, _Tp>): Fix value_type typedef.
199         * testsuite/26_numerics/valarray/27867.cc: New.
201 2006-05-29  Paolo Carlini  <pcarlini@suse.de>
203         PR libstdc++/24692
204         * include/bits/atomicity.h (__exchange_and_add_multi,
205         __atomic_add_multi): New, depending on _GLIBCXX_ATOMIC_BUILTINS,
206         inline the atomic builtins.
207         (__exchange_and_add_dispatch, __atomic_add_dispatch): Adjust.
208         * configure.ac: Define _GLIBCXX_ATOMIC_BUILTINS when the atomic
209         builtins are available.
210         * configure: Regenerate.
211         * config.h.in: Likewise.
213 2006-05-27  Paolo Carlini  <pcarlini@suse.de>
215         * configure.host: If the CPU provides atomic builtins select
216         generic/atomic_builtins/atomicity.h.
217         * config/cpu/generic/atomic_builtins/atomicity.h: Add.
218         * config/cpu/powerpc/atomicity.h: Remove.
219         * config/cpu/ia64/atomicity.h: Likewise.
220         * config/cpu/alpha/atomicity.h: Likewise.
221         * config/cpu/s390/atomicity.h: Likewise.
223 2006-05-26  Carlos O'Donell  <carlos@codesourcery.com>
225         * Makefile.am: Add install-html target. Add install-html to .PHONY
226         * Makefile.in: Regenerate.
228 2006-05-24  Paolo Carlini  <pcarlini@suse.de>
230         PR libstdc++/24704
231         * include/bits/atomicity.h (__exchange_and_add_single,
232         __atomic_add_single): New, single thread versions of the atomic
233         functions.
234         (__exchange_and_add_dispatch, __atomic_add_dispatch): New,
235         depending on __GTHREADS and __gthread_active_p() dispatch either
236         to the above or to the existing atomic functions.
237         * include/ext/pool_allocator.h: Update callers.
238         * include/ext/rc_string_base.h: Likewise.
239         * include/bits/locale_classes.h: Likewise.
240         * include/bits/basic_string.h: Likewise.
241         * include/bits/ios_base.h: Likewise.
242         * include/tr1/boost_shared_ptr.h: Likewise.
243         * src/ios.cc: Likewise.
244         * src/locale.cc: Likewise.
245         * src/ios_init.cc: Likewise.
247 2006-05-23  Paolo Carlini  <pcarlini@suse.de>
249         * testsuite/testsuite_shared.cc: Fix --enable-threads=single build.
251 2006-05-19  Paolo Carlini  <pcarlini@suse.de>
253         * testsuite/27_io/objects/wchar_t/9661-1.cc: Avoid leaking the
254         semaphores if a VERIFY fails.
255         * testsuite/27_io/objects/wchar_t/7.cc: Likewise.
256         * testsuite/27_io/objects/char/9661-1.cc: Likewise.
257         * testsuite/27_io/objects/char/7.cc: Likewise.
258         * testsuite/27_io/basic_filebuf/seekoff/char/26777.cc: Likewise.
259         * testsuite/27_io/basic_filebuf/imbue/wchar_t/14975-2.cc: Likewise.
260         * testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc: Likewise.
261         * testsuite/27_io/basic_filebuf/close/char/4879.cc: Likewise.
262         * testsuite/27_io/basic_filebuf/close/char/9964.cc: Likewise.
263         * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
265 2006-05-17  Paolo Carlini  <pcarlini@suse.de>
267         * include/tr1/hashtable (hashtable<>::m_find): Remove; update callers.
269         * include/tr1/hashtable (map_base<>::operator[]): Move out of line.
271         * include/tr1/hashtable (hashtable<>::m_insert(const value_type&,
272         std::tr1::false_type)): Avoid memory leak risk for new_node.
274 2006-05-15  Paolo Carlini  <pcarlini@suse.de>
276         * include/tr1/hashtable (hashtable<>::m_find, m_insert_bucket): Add.
277         (hashtable<>::find, m_insert(const value_type&, std::tr1::true_type),
278         map_base<>::operator[]): Use the above.
279         * testsuite/performance/23_containers/insert/unordered_map_array.cc:
280         New.    
282         * include/tr1/hashtable (hashtable<>::find_node,
283         insert(const value_type&, ...), erase_node): Rename to m_*, adjust
284         callers.
285         * include/tr1/hashtable: Minor cosmetic changes.
287 2006-05-13  Peter Doerfler  <gcc@pdoerfler.com>
289         * include/tr1/hashtable (identity<>::operator(),
290         extract1st<>::operator()): Return by const ref.
292 2006-05-10  Steve Ellcey  <sje@cup.hp.com>
294         * testsuite/lib/libstdc++.exp (check_v3_target_cxa_atexit):
295         Move to gcc subdir.
296         * testsuite/lib/dg-options.exp (dg-require-iconv): Remove.
297         (dg-require-cxa-atexit): Move to gcc subdir.
299 2006-05-10  Paolo Carlini  <pcarlini@suse.de>
300             Peter Doerfler  <gcc@pdoerfler.com>
302         * include/tr1/hashtable (hashtable_iterator<>::hashtable_iterator(),
303         hashtable_const_iterator<>::hashtable_const_iterator(),
304         node_iterator<>::node_iterator(),
305         node_const_iterator<>::node_const_iterator()): Add.
306         (node_iterator<>::node_iterator(hash_node<>*),
307         node_const_iterator<>::node_const_iterator(hash_node<>*)): Tweak,
308         remove default.
309         * testsuite/tr1/6_containers/unordered/hashtable/
310         iterators_default_constructor.c: New.
312 2006-05-10  Marc Glisse  <marc.glisse@normalesup.org>
314         * include/ext/pool_allocator.h: Add missing std:: qualifications.
315         * include/ext/mt_allocator.h: Likewise.
316         * include/ext/pb_assoc/detail/resize_policy/
317         hash_load_check_resize_trigger_imp.hpp: Likewise.
318         * include/ext/pb_assoc/detail/resize_policy/
319         hash_standard_resize_policy_imp.hpp: Likewise.
320         * include/ext/pb_assoc/detail/lu_policy/
321         counter_lu_metadata_imp.hpp: Likewise.
322         * include/ext/pb_assoc/detail/map_debug_base.hpp: Likewise.
323         * libsupc++/eh_alloc.cc: Typo: memcpy -> memset.
325 2006-05-07  Paolo Carlini  <pcarlini@suse.de>
327         * include/tr1/type_traits (integral_constant<>::value): Define.
328         * testsuite/tr1/4_metaprogramming/helper_classes/static_definition.cc:
329         New.
331 2006-05-04  Douglas Gregor  <dgregor@cs.indiana.edu>
333         PR libstdc++/27404
334         * include/ext/rope (_Rope_const_iterator<>::operator*() const,
335         _Rope_iterator<>::operator*() const): Add.
337 2006-05-01  Paolo Carlini  <pcarlini@suse.de>
339         * acinclude.m4 (GLIBCXX_ENABLE_WCHAR_T): Always check the
340         presence of wctype.h, for use in GLIBCXX_ENABLE_C99.
341         * configure: Regenerate.
343 2006-04-29  Paolo Carlini  <pcarlini@suse.de>
345         * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
346         Special case main parsing loop for !_M_allocated (i.e., "C" locale).
347         (num_get<>::_M_extract_int): Likewise.
348         * include/bits/locale_facets.h (num_get<>::_M_find): New.
350 2006-04-27  Benjamin Kosnik  <bkoz@redhat.com>
352         * docs/html/17_intro/TODO: Update.
353         
354 2006-04-26  Benjamin Kosnik  <bkoz@redhat.com>
356         PR libstdc++/26875
357         * include/ext/array_allocator.h (array_allocator): _M_used, new
358         data member.  
359         * testsuite/ext/array_allocator/26875.cc: New.
360         
361 2006-04-26  Shantonu Sen  <ssen@opendarwin.org>
363          PR libstdc++/26513
364          * scripts/make_exports.pl: Use $ENV{NM_FOR_TARGET}, if present.
366 2006-04-23  Marc Glisse  <marc.glisse@normalesup.org>
368         PR libstdc++/27199
369         * ext/pool_allocator.h: Add using declarations for size_t, ptrdiff_t.
370         * ext/bitmap_allocator.h: Likewise; qualify with std::.
371         * ext/new_allocator.h: Likewise.
372         * ext/malloc_allocator.h: Likewise.
373         * ext/array_allocator.h: Likewise.
374         * ext/mt_allocator.h: Likewise.
375         * ext/functional: Likewise for size_t.
376         * ext/debug_allocator.h: Likewise.
377         * bits/char_traits.h: Qualify with std:: size_t.
378         * debug/hash_multimap.h: Likewise.
380 2006-04-23  Paolo Carlini  <pcarlini@suse.de>
382         * docs/html/ext/lwg-active.html, lwg-defects.html: Import Revision 42.
384 2006-04-19  Paolo Carlini  <pcarlini@suse.de>
386         PR libstdc++/26424
387         * include/tr1/hashtable (X<>::primes): Extend for 64-bit machines.
388         (X<>::n_primes): Adjust.
389         (prime_rehash_policy::next_bkt, bkt_for_elements, need_rehash): Adjust.
391 2006-04-18  Paolo Carlini  <pcarlini@suse.de>
393         * docs/html/faq/index.html ([5.5]): Adjust to mention function
394         objects and reference_wrapper; minor tweaks.
395         * docs/html/faq/index.txt: Regenerate.
397 2006-04-16  Paolo Carlini  <pcarlini@suse.de>
399         PR libstdc++/6702 (again)
400         * acinclude.m4 (GLIBCXX_ENABLE_C99): Don't check non-C99
401         wchar_t functions...
402         (GLIBCXX_ENABLE_WCHAR_T): ... do that here.
403         * configure.ac: Adjust order of checks.
404         * configure: Regenerate.
406 2006-04-14  Douglas Gregor  <dgregor@cs.indiana.edu>
408         PR libstdc++/27162
409         * include/bits/stl_algo.h (__search_n(,,,, _BinaryPredicate,
410         std::forward_iterator_tag)): Use __binary_pred, not ==.
412 2006-04-10  Matthias Klose  <doko@debian.org>
414         * testsuite/lib/libstdc++.exp (libstdc++_init): Recognize multilib
415         directory names containing underscores.
417 2006-04-10  Paolo Carlini  <pcarlini@suse.de>
419         DR 538, [Ready]
420         * include/bits/stl_algo.h (__unique_copy(,,, input_iterator_tag,
421         output_iterator_tag), and predicated counterpart): Revert to the
422         algorithm pre-DR 241, i.e., value_type of InputIterator is now
423         required to be Assignable too.
424         * testsuite/25_algorithms/unique_copy/3.cc: Remove.
425         * docs/html/ext/howto.html: Add an entry for DR 538.
427 2006-03-29  Benjamin Kosnik  <bkoz@redhat.com>
429         * testsuite/data/sgetn.txt: Correct copyright holder.
430         * testsuite/data/wistream_extractor_other-1.tst: Same.
431         * testsuite/data/wistream_extractor_other-2.tst: Same.
432         * testsuite/data/istream_extractor_other-1.txt: Same.
433         * testsuite/data/filebuf_virtuals-1.txt: Same.
434         * testsuite/data/wostream_inserter_other-1.tst: Same.
435         * testsuite/data/wostream_inserter_other-2.tst: Same.
436         * testsuite/data/ostream_inserter_other-1.tst: Same.
437         * testsuite/data/ostream_inserter_other-2.tst: Same.
438         * testsuite/data/wistream_extractor_other-1.txt: Same.
439         * testsuite/data/istream_extractor_other-1.tst: Same.
440         * testsuite/data/istream_extractor_other-2.tst: Same.
441         * testsuite/data/filebuf_virtuals-1.tst: Same.
442         * testsuite/27_io/basic_filebuf/sgetn/char/1-in.cc: Adjust test
443         conditions.
444         * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: Same.
445         * testsuite/27_io/basic_filebuf/sgetn/char/2-in.cc: Same.
446         * testsuite/27_io/basic_filebuf/sgetn/char/2-io.cc: Same.
448 2006-03-28  Paolo Carlini  <pcarlini@suse.de>
450         * include/ext/vstring.h (operator[]): Allow s[s.size()] in
451         debug mode, but not pedantic mode.
453 2006-03-24  Mark Mitchell  <mark@codesourcery.com>
454             Joseph S. Myers  <joseph@codesourcery.com>
456         PR libstdc++/20448
457         PR libstdc++/20451
458         * scripts/testsuite_flags.in (--cxxflags): Don't define LOCALEDIR.
459         * testsuite/lib/libstdc++.exp (libstdc++_init): Always define
460         LOCALEDIR to ".".
461         (v3-build_support): Build MO files.
463 2006-03-22  Paolo Carlini  <pcarlini@suse.de>
465         PR libstdc++/26777
466         * include/bits/fstream.tcc (basic_filebuf<>::_M_seek): Check
467         the return value of _M_file.seekoff.
468         * testsuite/27_io/basic_filebuf/seekoff/char/26777.cc: New.
470 2006-03-21  Paolo Carlini  <pcarlini@suse.de>
472         PR libstdc++/25482
473         * include/bits/stl_algobase.h (__copy_aux(_CharT*, _CharT*,
474         ostreambuf_iterator<_CharT>), __copy_aux(const _CharT*, const _CharT*,
475         ostreambuf_iterator<_CharT>), __copy_aux(istreambuf_iterator<_CharT>,
476         istreambuf_iterator<_CharT>, _CharT*), copy(istreambuf_iterator<_CharT>,
477         istreambuf_iterator<_CharT>, ostreambuf_iterator<_CharT>)): Declare.
478         * include/bits/stl_algo.h (find(istreambuf_iterator<_CharT>,
479         istreambuf_iterator<_CharT>, _CharT)): Likewise.
480         * include/bits/streambuf_iterator.h (copy(istreambuf_iterator<_CharT>,
481         istreambuf_iterator<_CharT>, ostreambuf_iterator<_CharT>),
482         __copy_aux(_CharT*, _CharT*, ostreambuf_iterator<_CharT>),
483         __copy_aux(const _CharT*, const _CharT*, ostreambuf_iterator<_CharT>),
484         __copy_aux(istreambuf_iterator<_CharT>, istreambuf_iterator<_CharT>,
485         _CharT*), find(istreambuf_iterator<_CharT>, istreambuf_iterator<_CharT>,
486         _CharT)): Define.
487         (class istreambuf_iterator<>, class ostreambuf_iterator<>): Declare
488         friends.
489         * include/std/std_streambuf.h (class basic_streambuf<>): Likewise.
490         * include/bits/cpp_type_traits.h (struct __is_char<>): Add.
491         * testsuite/25_algorithms/copy/streambuf_iterators/char/1.cc: New.
492         * testsuite/25_algorithms/copy/streambuf_iterators/char/2.cc: New.
493         * testsuite/25_algorithms/copy/streambuf_iterators/char/3.cc: New.
494         * testsuite/25_algorithms/copy/streambuf_iterators/char/4.cc: New.
495         * testsuite/25_algorithms/copy/streambuf_iterators/wchar_t/1.cc: New.
496         * testsuite/25_algorithms/copy/streambuf_iterators/wchar_t/2.cc: New.
497         * testsuite/25_algorithms/copy/streambuf_iterators/wchar_t/3.cc: New.
498         * testsuite/25_algorithms/copy/streambuf_iterators/wchar_t/4.cc: New.
499         * testsuite/25_algorithms/find/istreambuf_iterators/char/1.cc: New.
500         * testsuite/25_algorithms/find/istreambuf_iterators/char/2.cc: New.
501         * testsuite/25_algorithms/find/istreambuf_iterators/wchar_t/1.cc: New.
502         * testsuite/25_algorithms/find/istreambuf_iterators/wchar_t/2.cc: New.
503         * testsuite/performance/25_algorithms/copy_streambuf_iterators.cc: New.
504         * testsuite/performance/25_algorithms/find_istreambuf_iterators.cc: New.
506 006-03-13  Paolo Carlini  <pcarlini@suse.de>
508         * include/bits/postypes.h (fpos<>::operator==, operator!=): Remove,
509         exploit conversion to streamoff.
510         * testsuite/27_io/fpos/mbstate_t/5.cc: New.
512 2006-03-12  Howard Hinnant  <hhinnant@apple.com>
514         * testsuite/27_io/basic_filebuf/underflow/char/10097.cc:
515         Fix race condition.
516         * testsuite/27_io/objects/char/9661-1.cc: Likewise.
517         * testsuite/27_io/objects/wchar_t/9661-1.cc: Likewise.
519 2006-03-10  Paolo Carlini  <pcarlini@suse.de>
521         * include/tr1/cmath: Add atan2 and pow bits; add using declarations.    
522         * include/tr1/math.h: Add using declarations.
523         * include/tr1/complex: Add using declarations.
524         * testsuite/tr1/8_c_compatibility/cmath/functions.cc: Fully
525         qualify calls.
526         * testsuite/tr1/8_c_compatibility/cmath/overloads.cc: Likewise;
527         add atan2 and pow bits.
528         * testsuite/tr1/8_c_compatibility/complex/overloads_float.cc: Likewise.
529         * testsuite/tr1/8_c_compatibility/complex/overloads_int.cc: Likewise;
530         adjust polar bits.
532         * acinclude.m4 ([GLIBCXX_CHECK_C99_TR1]): Add checks for double_t
533         and float_t typedefs.
534         * include/tr1/cmath: Add double_t and float_t.
535         * testsuite/tr1/8_c_compatibility/cmath/types.cc: New.
537         * include/tr1/ctgmath: New.
538         * include/tr1/tgmath.h: Likewise.
539         * include/Makefile.am: Add.
540         * testsuite/tr1/headers.cc: Update.
542         * include/Makefile.in: Regenerate.
543         * configure: Likewise.
545         * docs/html/ext/tr1.html: Update.
547 2006-03-08  Paolo Carlini  <pcarlini@suse.de>
549         Implement the resolution of DR 455, [DR].
550         * src/ios_init.cc (ios_base::Init::Init()): Do it.
551         * testsuite/27_io/objects/char/dr455.cc: New.
552         * testsuite/27_io/objects/wchar_t/dr455.cc: Likewise.
553         * docs/html/ext/howto.html: Add an entry for DR 455.
555 2006-03-07  Paolo Carlini  <pcarlini@suse.de>
557         * include/tr1/cmath: Add C99 overloads.
558         * include/tr1/common.h (struct __promote_3): Add.
559         * testsuite/tr1/8_c_compatibility/cmath/overloads.cc: New.
561         * testsuite/tr1/8_c_compatibility/cmath/functions.cc: Tweak.
562         * testsuite/tr1/8_c_compatibility/complex/overloads_float.cc: Likewise.
564 2006-03-06  Paolo Carlini  <pcarlini@suse.de>
566         PR target/26532
567         * config/io/c_io_stdio.h (struct __ios_flags): Remove.
568         * include/bits/ios_base.h: Adjust consistently.
569         (ios_base::_S_local_word_size): Change to an anonymous enum.
570         * src/ios.cc: Do not define static const data of __ios_flags,
571         likewise for ios_base::_S_local_word_size.      
572         * include/bits/locale_classes.h (locale::_S_categories_size):
573         Change to an anonymous enum.
574         * src/locale.cc: Don't define.
576 2006-03-03  Paolo Carlini  <pcarlini@suse.de>
578         PR libstdc++/26526
579         * config/abi/pre/gnu.ver (__copy_streambufs, 64-bit version): Add
580         @GLIBCXX_3.4.8; move existing symbols @GLIBCXX_3.4.8 to 3.4.9.
581         * configure.ac (libtool_VERSION): To 6:9:0.
582         * testsuite/testsuite_abi.cc (check_version): Add GLIBCXX_3.4.9.
583         * configure: Regenerate.
585 2006-03-02  Paolo Carlini  <pcarlini@suse.de>
587         * config/abi/pre/gnu.ver: Adjust __copy_streambufs_eof export
588         vs 64-bit arches.
590 2006-03-01  Paolo Carlini  <pcarlini@suse.de>
592         * docs/html/ext/lwg-active.html, lwg-defects.html: Import Revision 41.
594 2006-02-27  Jakub Jelinek  <jakub@redhat.com>
596         PR other/26208
597         * libsupc++/eh_personality.cc (PERSONALITY_FUNCTION): Use
598         _Unwind_GetIPInfo instead of _Unwind_GetIP.
600 2006-02-27  Paolo Carlini  <pcarlini@suse.de>
602         PR libstdc++/14866
603         * testsuite/27_io/ios_base/sync_with_stdio/1.cc: Redirect
604         stderr instead.
606 2006-02-26  Paolo Carlini  <pcarlini@suse.de>
608         * include/tr1/cmath: Add templates (8.16.3).    
609         * include/tr1/cstdbool: New.
610         * include/tr1/stdbool.h: Likewise.
611         * include/Makefile.am: Add.
612         * testsuite/tr1/8_c_compatibility/cmath/templates.cc: New.
613         * testsuite/tr1/headers.cc: Update.
614         * acinclude.m4 ([GLIBCXX_CHECK_C99_TR1]): Add <stdbool.h> check.
615         * docs/html/ext/tr1.html: Update.
616         * include/Makefile.in: Regenerate.
617         * config.h.in: Likewise.
618         * configure: Likewise.
620 2006-02-24  Paolo Carlini  <pcarlini@suse.de>
622         * include/tr1/array (array<>::swap, assign): Implement.
623         * include/tr1/array (operator==, operator!=, operator<,
624         operator>, operator>=, operator<=, swap, get): Inline.
625         * testsuite/tr1/6_containers/array/requirements/member_swap.cc: New.
626         * testsuite/tr1/6_containers/array/requirements/assign.cc: Likewise.
627         * testsuite/tr1/6_containers/array/specialized_algorithms/swap.cc:
628         Likewise.
630 2006-02-23  Benjamin Kosnik  <bkoz@redhat.com>
632         * testsuite/22_locale/codecvt/in/wchar_t/1.cc (test01): Change int
633         to size_t. Use explicit static_cast for casts.
634         * testsuite/22_locale/codecvt/in/wchar_t/6.cc (test06): Same.
635         * testsuite/22_locale/codecvt/in/wchar_t/5.cc (test05): Same.
636         * testsuite/ext/stdio_sync_filebuf/wchar_t/1.cc (test01): Same.
637         
638 2006-02-22  Paolo Carlini  <pcarlini@suse.de>
640         * docs/html/ext/pb_assoc/
641         basic_tree_assoc_cntnr_const_node_iterator.html:Fix links
642         * docs/html/ext/pb_assoc/basic_tree_assoc_cntnr_node_iterator.html:
643         Likewise.
644         * docs/html/ext/pb_assoc/hash_based_containers.html: Likewise.
645         * docs/html/ext/pb_assoc/hash_standard_resize_policy.html: Likewise.
646         * docs/html/ext/pb_assoc/interface.html: Likewise..
647         * docs/html/ext/pb_assoc/list_updates.html: Likewise.
648         * docs/html/ext/pb_assoc/lu_based_containers.html: Likewise.
649         * docs/html/ext/pb_assoc/resize_policies.html: Likewise.
650         * docs/html/ext/pb_assoc/sample_probe_fn.html: Likewise.
651         * docs/html/ext/pb_assoc/sample_range_hashing.html: Likewise.
652         * docs/html/ext/pb_assoc/sample_ranged_hash_fn.html: Likewise.
653         * docs/html/ext/pb_assoc/sample_ranged_probe_fn.html: Likewise.
654         * docs/html/ext/pb_assoc/sample_resize_policy.html: Likewise.
655         * docs/html/ext/pb_assoc/tree_assoc_cntnr_const_node_iterator.html:
656         Likewise.
657         * docs/html/ext/pb_assoc/tree_assoc_cntnr_node_iterator.html: Likewise.
659 2006-02-22  Paolo Carlini  <pcarlini@suse.de>
661         PR libstdc++/26132
662         * include/tr1/hashtable (hashtable<>::rehash): Define.
663         * testsuite/tr1/6_containers/unordered/hashtable/26132.cc: New.
665         * include/tr1/hashtable: Trivial formatting and stylistic fixes.
667         * testsuite/tr1/headers.cc: remove <tr1/hashtable>, not a tr1 header,
668         only an implementation detail.
670 2006-02-22  Paolo Carlini  <pcarlini@suse.de>
672         * include/debug/list (splice): Remove splice_alloc check, redundant
673         after implementing the splice bits of N1599.
675 2006-02-21  Benjamin Kosnik  <bkoz@redhat.com>
677         * include/c_std/cmath.tcc: Use _GLIBCXX_BEGIN_NAMESPACE,
678         _GLIBCXX_END_NAMESPACE.
680 2006-02-21  Benjamin Kosnik  <bkoz@redhat.com>
682         * include/bits/c++config: Simplify debug namespaces.
683         * include/ext/hash_set: Specialize insert_iterator after norm,
684         debug containers have been (optionally) declared. Use nested
685         namespaces.     
686         * include/ext/hash_map: Same.
687         * include/debug/hash_map.h (insert): Add specialization for value
688         pointer types.
689         * include/debug/hash_set.h (insert): Same.
690         * include/debug/hash_multimap.h: Change __gnu_debug_def to __debug.
691         * include/debug/set.h: Same.
692         * include/debug/bitset: Same.
693         * include/debug/multiset.h: Same.
694         * include/debug/hash_multiset.h: Same.
695         * include/debug/vector: Same.
696         * include/debug/map.h: Same.
697         * include/debug/deque: Same.
698         * include/debug/list: Same.
699         * include/debug/multimap.h. Same.
700         * include/debug/macros.h: Use __gnu_debug.
701         * include/debug/debug.h: Same.
702         * include/debug/formatter.h: Same.
703         * include/debug/safe_sequence.h: Same.
704         * include/debug/functions.h: Same.
705         * include/debug/safe_base.h: Same.
706         * include/debug/safe_iterator.h: Same.
707         * include/debug/safe_iterator.tcc: Same.
708         (_M_invalidate): Adjust compare order.
709         * include/debug/string: Change std::__gnu_debug to __gnu_debug.
710         * include/ext/hashtable.h: Formatting fixes.
711         * include/bits/stl_map.h: Formatting fixes.             
712         * src/compatibility.cc: Adjust compatibility symbols for old debug
713         mode model.     
714         * src/debug_list.cc: Tweak.
715         * src/debug.cc: Adjust namespaces.
716         * docs/html/debug_mode.html: Adjust namespace names.
717         * testsuite/25_algorithms/heap/heap.cc: Restore _GLIBCXX_DEBUG
718         macro guards, as count values differ when in debug mode.        
719         * testsuite/23_containers/vector/26412.cc: Move to...
720         * testsuite/23_containers/vector/26412-1.cc: ... here.
721         * testsuite/23_containers/vector/26412-2.cc: Add.
723         * include/ext/pb_assoc/detail/standard_policies.hpp
724         (PB_ASSOC_HASH_NAMESPACE): Remove, use __gnu_cxx::hash_map and
725         std::equal_to.
727         * configure.ac (libtool_VERSION): To 6:8:0.
728         * configure: Regenerate.
729         * config/abi/pre/gnu.ver: Revert to exporting __gnu_debug symbols.
730         (GLIBCXX_3.4.8): New.
731         * testsuite/testsuite_abi.cc: Add GLIBCXX_3.4.8 to known versions.
732         
733 2006-02-21  Paolo Carlini  <pcarlini@suse.de>
735         * include/tr1/hashtable: Trivial formatting fixes.
737 2006-02-20  Paolo Carlini  <pcarlini@suse.de>
739         Revert recent commit for libstdc++/26211, now suspended waiting for
740         DR 342 (reopened) to reach a new resolution.
741         * include/bits/istream.tcc (basic_istream<>::tellg, seekg(pos_type),
742         seekg(off_type, ios_base::seekdir)): Remove sentry.
743         * testsuite/27_io/basic_istream/seekg/char/26211.cc: Remove.
744         * testsuite/27_io/basic_istream/seekg/wchar_t/26211.cc: Likewise.
745         * testsuite/27_io/basic_istream/tellg/char/26211.cc: Likewise.
746         * testsuite/27_io/basic_istream/tellg/wchar_t/26211.cc: Likewise.
747         * testsuite/27_io/basic_istream/seekg/char/8348-1.cc: Revert changes.
748         * testsuite/27_io/basic_istream/seekg/wchar_t/8348-1.cc: Likewise.
749         * testsuite/27_io/basic_istream/seekg/char/8348-2.cc: Likewise.
750         * testsuite/27_io/basic_istream/seekg/wchar_t/8348-1.cc: Likewise.
751         * testsuite/27_io/basic_istream/tellg/char/8348.cc: Likewise.
752         * testsuite/27_io/basic_istream/tellg/wchar_t/8348.cc: Likewise.
754 2006-02-19  Paolo Carlini  <pcarlini@suse.de>
756         * include/std/std_sstream.h (basic_stringbuf<>::setbuf): Simply
757         clear the internal _M_string, adjust _M_sync call.
758         * include/bits/sstream.tcc (basic_stringbuf<>::_M_sync): Adjust
759         consistently for calls from setbuf.
761 2006-02-17  Paolo Carlini  <pcarlini@suse.de>
762             Howard Hinnant  <hhinnant@apple.com>
764         PR libstdc++/26250
765         * include/bits/sstream.tcc (basic_stringbuf<>::overflow): Tweak
766         to leave epgtr() just past the new write position, as per the
767         relevant bits of 27.7.1.3/8 (not changed by DR 432).
768         * testsuite/27_io/basic_stringbuf/overflow/char/26250.cc: New.
769         * testsuite/27_io/basic_stringbuf/overflow/wchar_t/26250.cc: Same.
771         * docs/html/ext/howto.html: Add entries for DR 169 and DR 432.
773         * include/std/std_sstream.h (basic_stringbuf<>::_M_sync): Move out
774         of line...
775         * include/bits/sstream.tcc: ... here.
777 2006-02-16  Joseph S. Myers  <joseph@codesourcery.com>
779         PR libstdc++/14939
780         * config/os/uclibc/ctype_base.h, config/os/uclibc/ctype_inline.h,
781         config/os/uclibc/ctype_noninline.h, config/os/uclibc/os_defines.h:
782         New.
783         * acinclude.m4 (GLIBCXX_CONFIGURE): Test whether using uClibc.
784         * configure.host: Use os/uclibc for uClibc.
785         * crossconfig.m4 (*-linux*): Use link tests.  Don't hardcode
786         presence of math functions.
787         * configure: Regenerate.
789 2006-02-12  Paolo Carlini  <pcarlini@suse.de>
791         PR libstdc++/26211
792         * include/bits/istream.tcc (basic_istream<>::tellg, seekg(pos_type),
793         seekg(off_type, ios_base::seekdir)): Construct a sentry, as per
794         27.6.1.3/1.
795         * testsuite/27_io/basic_istream/seekg/char/26211.cc: New.
796         * testsuite/27_io/basic_istream/seekg/wchar_t/26211.cc: Likewise.
797         * testsuite/27_io/basic_istream/tellg/char/26211.cc: Likewise.
798         * testsuite/27_io/basic_istream/tellg/wchar_t/26211.cc: Likewise.
799         * testsuite/27_io/basic_istream/seekg/char/8348-1.cc: Adjust.
800         * testsuite/27_io/basic_istream/seekg/wchar_t/8348-1.cc: Likewise.
801         * testsuite/27_io/basic_istream/seekg/char/8348-2.cc: Likewise.
802         * testsuite/27_io/basic_istream/seekg/wchar_t/8348-1.cc: Likewise.
803         * testsuite/27_io/basic_istream/tellg/char/8348.cc: Likewise.
804         * testsuite/27_io/basic_istream/tellg/wchar_t/8348.cc: Likewise.
806 2006-02-10  Paolo Carlini  <pcarlini@suse.de>
808         PR libstdc++/26181
809         * include/bits/streambuf.tcc (__copy_streambufs_eof): New, like
810         the existing __copy_streambufs but reporting eof in input.
811         (__copy_streambufs): Just use the latter.
812         * src/streambuf.cc (__copy_streambufs_eof): Adjust specializations
813         of __copy_streambufs.
814         * include/bits/istream.tcc (operator>>(__streambuf_type*)): Use
815         __copy_streambufs_eof instead.
816         * include/std/std_streambuf.h: Adjust.
817         * src/streambuf-inst.cc: Adjust.
818         * config/abi/pre/gnu.ver: Export the new symbols.
819         * testsuite/27_io/basic_istream/extractors_other/char/26181.cc: New.
820         * testsuite/27_io/basic_istream/extractors_other/wchar_t/26181.cc:
821         Likewise.
822         * testsuite/27_io/basic_istream/extractors_other/char/1.cc: Adjust.
823         * testsuite/27_io/basic_istream/extractors_other/wchar_t/1.cc:
824         Likewise.
826 2006-02-08  Benjamin Kosnik  <bkoz@redhat.com>
828         PR libstdc++/26142
829         * include/debug/debug.h: Move debug alias inside namespace std,
830         same with namespace __gnu_cxx. Add top-level __gnu_debug
831         namespace.      
832         * include/debug/hash_multimap.h: Nest within __gnu_cxx, not
833         std. Also, change nesting namespace name from __gnu_debug_def to
834         __gnu_debug.    
835         * include/debug/hash_map.h: Same.
836         * include/debug/hash_multiset.h: Same.
837         * include/debug/hash_set.h: Same.
838         * docs/html/debug.html: Same.
839         * testsuite/23_containers/vector/26412.cc: New.
840         * testsuite/23_containers/vector/invalidation/1.cc:  Correct
841         qualifications for debug namespace change.
842         * testsuite/23_containers/vector/invalidation/2.cc: Same.
843         * testsuite/23_containers/vector/invalidation/3.cc: Same.
844         * testsuite/23_containers/vector/invalidation/4.cc: Same.
845         * testsuite/23_containers/deque/invalidation/1.cc: Same.
846         * testsuite/23_containers/deque/invalidation/2.cc: Same.
847         * testsuite/23_containers/deque/invalidation/3.cc: Same.
848         * testsuite/23_containers/deque/invalidation/4.cc: Same.
849         * testsuite/23_containers/multiset/invalidation/1.cc: Same.
850         * testsuite/23_containers/multiset/invalidation/2.cc: Same.
851         * testsuite/23_containers/multimap/invalidation/1.cc: Same.
852         * testsuite/23_containers/multimap/invalidation/2.cc: Same.
853         * testsuite/23_containers/bitset/invalidation/1.cc: Same.
854         * testsuite/23_containers/bitset/cons/16020.cc: Same.
855         * testsuite/23_containers/bitset/operations/13838.cc: Same.
856         * testsuite/23_containers/list/invalidation/1.cc: Same.
857         * testsuite/23_containers/list/invalidation/2.cc: Same.
858         * testsuite/23_containers/list/invalidation/3.cc: Same.
859         * testsuite/23_containers/list/invalidation/4.cc: Same.
860         * testsuite/23_containers/set/invalidation/1.cc: Same.
861         * testsuite/23_containers/set/invalidation/2.cc: Same.
862         * testsuite/23_containers/map/invalidation/1.cc: Same.
863         * testsuite/23_containers/map/invalidation/2.cc: Same.
864         * testsuite/23_containers/map/modifiers/insert/16813.cc: Same.
865         * testsuite/21_strings/basic_string/2.cc: Same.
867 2006-02-08  Paolo Carlini  <pcarlini@suse.de>
869         PR libstdc++/26133  (DR 241, [WP])
870         * include/bits/stl_algo.h (__unique_copy(,,, forward_iterator_tag,
871         output_iterator_tag), __unique_copy(,,, input_iterator_tag,
872         output_iterator_tag), __unique_copy(,,, input_iterator_tag,
873         forward_iterator_tag), and predicated counterparts): Add.
874         (__unique_copy(,,, output_iterator_tag), __unique_copy(,,,
875         forward_iterator_tag), and predicated counterparts): Remove.
876         (unique_copy): Adjust, dispatch to the three helpers above.
877         * testsuite/25_algorithms/unique_copy/2.cc: New.
878         * testsuite/25_algorithms/unique_copy/26133.cc: Likewise.
879         * testsuite/25_algorithms/unique_copy/3.cc: Likewise.   
880         * docs/html/ext/howto.html: Add an entry for DR 241.
882         * testsuite/25_algorithms/unique_copy/1.cc: Minor cosmetic changes.
884 2006-02-07  Jakub Jelinek  <jakub@redhat.com>
885             Benjamin Kosnik  <bkoz@redhat.com>
887         * configure.ac (_GLIBCXX_LONG_DOUBLE_COMPAT): New check.
888         If true, set also port_specific_symbol_files and create
889         as_symver_specs.
890         (GLIBCXX_LDBL_COMPAT): New GLIBCXX_CONDITIONAL.
891         * configure: Rebuilt.
892         * config.h.in: Rebuilt.
893         * config/os/gnu-linux/ldbl-extra.ver: New file.
894         * config/abi/pre/gnu.ver: Make sure no __float128 symbols are
895         exported.
896         * include/bits/c++config (_GLIBCXX_LONG_DOUBLE_COMPAT,
897         _GLIBCXX_LDBL_NAMESPACE, _GLIBCXX_BEGIN_LDBL_NAMESPACE,
898         _GLIBCXX_END_LDBL_NAMESPACE): Define.
899         * include/bits/localefwd.h: Use them to conditionally scope facets.
900         * include/bits/locale_facets.h: Surround std::{money,num}_{get,put}
901         with _GLIBCXX_BEGIN_LDBL_NAMESPACE and _GLIBCXX_END_LDBL_NAMESPACE.
902         Surround std::{money,num}_{get,put}
903         with _GLIBCXX_BEGIN_LDBL_NAMESPACE and _GLIBCXX_END_LDBL_NAMESPACE.
904         [_GLIBCXX_LONG_DOUBLE_COMPAT] (std::money_get): Add __do_get method.
905         [_GLIBCXX_LONG_DOUBLE_COMPAT] (std::money_put): Add __do_put method.
906         [_GLIBCXX_LONG_DOUBLE_COMPAT] (std::num_get): Add __do_get method.
907         [_GLIBCXX_LONG_DOUBLE_COMPAT] (std::num_put): Add __do_put method.
908         * include/bits/locale_facets.tcc: Surround std::{money,num}_{get,put}
909         with _GLIBCXX_BEGIN_LDBL_NAMESPACE and _GLIBCXX_END_LDBL_NAMESPACE.
910         (std::money_get::__do_get, std::money_put::__do_put,
911         std::num_get::__do_get, std::num_put::__do_put): New
912         specializations.
913         * include/Makefile.am: Conditionally define
914         _GLIBCXX_LONG_DOUBLE_COMPAT in c++config.
915         * include/Makefile.in: Regenerate.
916         * src/locale.cc [_GLIBCXX_LONG_DOUBLE_COMPAT] (_GLIBCXX_LOC_ID,
917         _GLIBCXX_SYNC_ID): Define, use them.
918         * src/compatibility-ldbl.cc: New file.
919         * src/complex_io.cc [_GLIBCXX_LONG_DOUBLE_COMPAT]: Add compatibility
920         symbols.
921         * src/limits.cc [_GLIBCXX_LONG_DOUBLE_COMPAT]: Likewise.
922         * src/locale.cc [_GLIBCXX_LONG_DOUBLE_COMPAT]: Likewise.
923         * src/locale-inst.cc [_GLIBCXX_LONG_DOUBLE_COMPAT]: Likewise.   
924         * src/locale-misc-inst.cc [_GLIBCXX_LONG_DOUBLE_COMPAT]: Likewise.
925         * src/istream-inst.cc [_GLIBCXX_LONG_DOUBLE_COMPAT]: Likewise.
926         * src/ostream-inst.cc [_GLIBCXX_LONG_DOUBLE_COMPAT]: Likewise.
927         * src/locale.cc [_GLIBCXX_LONG_DOUBLE_COMPAT]: Likewise.
928         * src/wlocale-inst.cc [_GLIBCXX_LONG_DOUBLE_COMPAT]: Likewise.
929         * src/compatibility.cc [_GLIBCXX_LONG_DOUBLE_COMPAT]: Likewise.
930         * config/locale/generic/c_locale.cc [_GLIBCXX_LONG_DOUBLE_COMPAT]:
931         Likewise.
932         * config/locale/gnu/c_locale.cc [_GLIBCXX_LONG_DOUBLE_COMPAT]:
933         Likewise.
934         * src/Makefile.am (libstdc++-symbol.ver): Append instead of
935         insert in the middle if port specific symbol file requests it.
936         (ldbl_compat_sources): New variable.
937         (sources): Use it.
938         (compatibility-ldbl.lo, compatibility-ldbl.o): New rules.
939         * src/Makefile.in: Rebuilt.
940         * testsuite/testsuite_abi.cc: Recognize GLIBCXX_LDBL_3.4,
941         GLIBCXX_LDBL_3.4.7, CXXABI_LDBL_1.3.    
943 2006-02-07  Paolo Carlini  <pcarlini@suse.de>   
945         * include/tr1/hashtable: Trivial formatting fixes.
947 2006-02-07  Paolo Carlini  <pcarlini@suse.de>
948             Zak Kipling  <zak@transversal.com>
950         PR libstdc++/26127
951         * include/tr1/hashtable (hashtable<>::key_equal): Define.
952         (hashtable<>::bucket, rehash_base<>::max_load_factor): Fix.
953         * testsuite/tr1/6_containers/unordered/hashtable/26127.cc: New.
955 2006-02-07  Paolo Carlini  <pcarlini@suse.de>
957         * include/tr1/cmath: New.
958         * include/tr1/cstdlib: Likewise.
959         * include/tr1/ctime: Likewise.
960         * include/tr1/math.h: Likewise. 
961         * include/tr1/stdlib.h: Likewise.
962         * include/Makefile.am: Add.
963         * acinclude.m4 ([GLIBCXX_CHECK_C99_TR1]): Add <math.h> checks.
964         * testsuite/tr1/8_c_compatibility/cmath/functions.cc: New.
965         * testsuite/tr1/8_c_compatibility/cstdlib/functions.cc: Likewise.
966         * testsuite/tr1/8_c_compatibility/cstdlib/types.cc: Likewise.
967         * testsuite/tr1/headers.cc: Update.     
969         * include/tr1/cinttypes: Do not provide abs and div, conflicting
970         with the above overloads for _Longlong types.
971         * include/tr1/inttypes.h: Adjust.
972         * testsuite/tr1/8_c_compatibility/cinttypes/functions.cc: Adjust.
974         * docs/html/ext/tr1.html: Update.
975         
976         * testsuite/tr1/8_c_compatibility/cwchar/functions.cc: Tweak.
978         * include/Makefile.in: Regenerate.
979         * config.h.in: Likewise.
980         * configure: Likewise.
982 2006-02-07  Mark Mitchell  <mark@codesourcery.com>
984         * testsuite/testsuite_tr1.h (test_property): New function.
985         * testsuite/tr1/4_metaprogramming/type_properties/extent/extent.cc 
986         (test01) 
988 2006-02-05  Paolo Carlini  <pcarlini@suse.de>
990         * include/tr1/cstdio: New.
991         * include/tr1/stdio.h: Likewise.
992         * include/Makefile.am: Add.
993         * testsuite/tr1/8_c_compatibility/cstdio/functions.cc: New.
994         * testsuite/tr1/headers.cc: Update.     
995         * docs/html/ext/tr1.html: Update.
997         * include/tr1/cwchar: Simplify, use _GLIBCXX_USE_C99, consistently
998         with the facilities in std::.
999         * include/tr1/cwctype: Likewise.
1000         * testsuite/tr1/8_c_compatibility/cwchar/functions.cc: Tweak.
1001         * testsuite/tr1/8_c_compatibility/cwctype/functions.cc: Likewise.
1002         * acinclude.m4 ([GLIBCXX_CHECK_C99_TR1]): Remove <wchar.h> and
1003         <wctype.h> checks.
1005         * include/Makefile.in: Regenerate.
1006         * config.h.in: Likewise.
1007         * configure: Likewise.
1009 2006-02-04  Paolo Carlini  <pcarlini@suse.de>
1011         * testsuite/tr1/8_c_compatibility/cwchar/functions.cc: Fix.
1013 2006-02-04  Paolo Carlini  <pcarlini@suse.de>
1015         * testsuite/27_io/basic_stringbuf/in_avail/char/21955.cc: Avoid
1016         warning on string constant.
1018 2006-02-03  Paolo Carlini  <pcarlini@suse.de>
1020         * include/tr1/cwchar: New.
1021         * include/tr1/cwctype: Likewise.
1022         * include/tr1/wchar.h: Likewise.
1023         * include/tr1/wctype.h: Likewise.
1024         * include/Makefile.am: Add.
1025         * testsuite/tr1/8_c_compatibility/cwchar/functions.cc: New.
1026         * testsuite/tr1/8_c_compatibility/cwctype/functions.cc: Likewise.
1027         * testsuite/tr1/headers.cc: Update.
1028         * acinclude.m4 ([GLIBCXX_CHECK_C99_TR1]): Add <wchar.h> and
1029         <wctype.h> checks.
1030         * docs/html/ext/tr1.html: Update.
1031         * include/Makefile.in: Regenerate.
1032         * config.h.in: Likewise.
1033         * configure: Likewise.
1035         * testsuite/tr1/8_c_compatibility/cctype/functions.cc: Cosmetic tweak.
1037 2006-02-02  Paolo Carlini  <pcarlini@suse.de>
1039         * include/tr1/cfloat: New.
1040         * include/tr1/climits: Likewise.                
1041         * include/tr1/cstdarg: Likewise.
1042         * include/tr1/ctype.h: Likewise.
1043         * include/tr1/fenv.h: Likewise.
1044         * include/tr1/float.h: Likewise.
1045         * include/tr1/inttypes.h: Likewise.
1046         * include/tr1/limits.h: Likewise.
1047         * include/tr1/stdint.h: Likewise.
1048         * include/tr1/stdarg.h: Likewise.
1049         * include/Makefile.am: Add.
1050         * include/Makefile.in: Regenerate.
1051         * docs/html/ext/tr1.html: Update.
1052         * testsuite/tr1/headers.cc: New.
1054         * include/tr1/cctype: Include <cctype> instead.
1056 2006-01-31  Paolo Carlini  <pcarlini@suse.de>
1058         PR libstdc++/21554
1059         * include/tr1/array (array<>::_M_instance): Maximally align.
1060         * testsuite/ext/array_allocator/2.cc: Do not xfail for powerpc.
1062 2006-01-31  Ed Smith-Rowland  <3dw4rd@verizon.net>
1064         * docs/html/faq/index.html ([1.0]): Replace references to CVS
1065         with appropriate references to SVN.
1066         ([1.3]): Likewise.
1067         ([1.4]): Likewise.
1068         ([2.3]): Likewise.
1069         * docs/html/faq/index.txt: Regenerated.
1071 2006-01-30  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1073         * include/bits/valarray_array.h (__valarray_default_construct):
1074         Replace use __is_fundamental with __is_pod.
1075         (__valarray_fill_construct): Likewise.
1076         (__valarray_copy_construct): Likewise.
1077         (__valarray_destroy_elements): Likewise.
1078         (__valarray_copy): Likewise.
1080 2006-01-30  Paolo Carlini  <pcarlini@suse.de>
1082         * acinclude.m4 ([GLIBCXX_CHECK_C99_TR1]): Do the <inttypes.h>
1083         checks only if the <stdint.h> checks are successful.
1084         * configure: Regenerate.
1086 2006-01-30  Paolo Carlini  <pcarlini@suse.de>
1088         * include/tr1/cinttypes: New.
1089         * include/Makefile.am: Add.
1090         * testsuite/tr1/8_c_compatibility/cinttypes/functions: New.     
1091         * testsuite/tr1/8_c_compatibility/cinttypes/types: Likewise.
1092         * acinclude.m4 ([GLIBCXX_CHECK_C99_TR1]): Add <inttypes.h> checks.
1093         * docs/html/ext/tr1.html: Update.
1094         * include/Makefile.in: Regenerate.
1095         * config.h.in: Likewise.
1096         * configure: Likewise.
1098         * testsuite/tr1/8_c_compatibility/cfenv/functions.cc: Cosmetic tweak.
1099         * testsuite/tr1/8_c_compatibility/cfenv/types.cc: Likewise.
1101         * testsuite/tr1/8_c_compatibility/cstdint/types.cc: Fix, check in
1102         std::tr1.
1104 2006-01-29  Paolo Carlini  <pcarlini@suse.de>
1106         * include/tr1/cstdint: New.
1107         * include/Makefile.am: Add.
1108         * testsuite/tr1/8_c_compatibility/cstdint/types: New.
1109         * acinclude.m4 ([GLIBCXX_CHECK_C99_TR1]): Add <stdint.h> checks.
1110         * docs/html/ext/tr1.html: Update.
1111         * include/Makefile.in: Regenerate.
1112         * config.h.in: Likewise.
1113         * configure: Likewise.
1115         * testsuite/tr1/8_c_compatibility/cfenv/types.cc: Cosmetic tweak.
1117 2006-01-29  Paolo Carlini  <pcarlini@suse.de>
1119         PR libstdc++/26006
1120         * acinclude.m4 ([GLIBCXX_CHECK_C99_TR1]): Tighten <ctype.h> and
1121         <fenv.h> checks.
1122         * configure: Regenerate.
1124 2006-01-26  Paolo Carlini  <pcarlini@suse.de>
1126         * include/std/std_bitset.h (bitset<>::_M_copy_to_string):
1127         Call the internal _Unchecked_set(size_t) instead of set.
1129 2006-01-26  Paolo Carlini  <pcarlini@suse.de>
1131         * docs/html/install.html ([Tools you will need beforehand]):
1132         Clarify that the de_DE locale is used by configure; clarify
1133         that missing localedata leads to skipped tests, not fails.
1135 2006-01-26  Paolo Carlini  <pcarlini@suse.de>
1137         * include/tr1/cfenv: New.
1138         * include/Makefile.am: Add.
1139         * testsuite/tr1/8_c_compatibility/cfenv/functions.cc: New.
1140         * testsuite/tr1/8_c_compatibility/cfenv/types.cc: Likewise.
1141         * acinclude.m4 ([GLIBCXX_CHECK_C99_TR1]): Add <fenv.h> checks.
1142         * docs/html/ext/tr1.html: Update; add note.
1143         * include/Makefile.in: Regenerate.
1144         * config.h.in: Likewise.
1145         * configure: Likewise.  
1147         * testsuite/tr1/8_c_compatibility/complex/functions.cc: Tweak.
1148         * testsuite/tr1/8_c_compatibility/cctype/functions.cc: Likewise.
1150         * docs/html/faq/index.html: Fix link to tr1.html text; fix
1151         formatting.
1153 2006-01-25  Paolo Carlini  <pcarlini@suse.de>
1155         * include/tr1/cctype: New.
1156         * include/Makefile.am: Add.
1157         * testsuite/tr1/8_c_compatibility/cctype/functions.cc: New.
1158         * include/Makefile.in: Regenerate.
1160         * acinclude.m4 ([GLIBCXX_CHECK_C99_TR1]): New, check for C99
1161         support to TR1, Chapter 8.
1162         * configure.ac: Use it.
1163         * include/tr1/complex: Adjust.
1164         * config.h.in: Regenerate.
1165         * configure: Likewise.
1167 2006-01-25  Benjamin Kosnik  <bkoz@redhat.com>
1169         * docs/html/configopts.html: Tweak docs.
1171         * libsupc++/eh_personality.cc: Fix typos.
1173 2006-01-24  Paolo Carlini  <pcarlini@suse.de>
1175         PR libstdc++/25649
1176         * include/std/std_istream.h (operator>>(short&), operator>>(int&)):
1177         Move out of line...
1178         * include/bits/istream.tcc: ... here.
1179         * include/std/std_ostream.h (operator<<(short), operator<<(int)):
1180         Move out of line...
1181         * include/bits/ostream.tcc: ... here.
1183 2006-01-24  Ed Smith-Rowland  <3dw4rd@verizon.net>
1185         * docs/html/faq/index.html ([5.2]): Mention TR1 and point to
1186         paragraph [5.5], describing it.
1187         ([5.5]): New.
1188         * docs/html/ext/tr1.html: New.
1190 2006-01-20  Benjamin Kosnik  <bkoz@redhat.com>
1192         * acinclude.m4 (GLIBCXX_CHECK_LINKER_FEATURES): Verbose ld version
1193         reporting.  Disable --gc-sections for old binutils, by version.
1194         * configure: Regenerate.
1196 2006-01-20  Joseph S. Myers  <joseph@codesourcery.com>
1198         PR libstdc++/25524
1199         * include/Makefile.am: Install host-specific headers in multilib
1200         subdirectory.
1201         * include/Makefile.in: Regenerate.
1203 2006-01-19  Paolo Carlini  <pcarlini@suse.de>
1205         Implement list::splice (and merge) bits of N1599
1206         * include/bits/stl_list.h (list<>::_M_check_equal_allocators): New.
1207         (list<>::splice(iterator, list&), splice(iterator, list&, iterator),
1208         splice(iterator, list&, iterator, iterator)): Use it.
1209         * include/bits/list.tcc (list<>::merge(list&), merge(list&,
1210         _StrictWeakOrdering)): Likewise.
1211         * testsuite/23_containers/list/operators/5.cc: New.
1213 2006-01-19  H.J. Lu  <hongjiu.lu@intel.com>
1215         PR libstdc++/25797
1216         * acinclude.m4 (GLIBCXX_CHECK_LINKER_FEATURES): Remove -Werror
1217         from CFLAGS.  Check if linker really supports --gc-sections.
1218         * configure: Regenerated.
1220 2006-01-18  Paul Brook  <paul@codesourcery.com>
1222         * libsupc++/eh_personality.cc (PERSONALITY_FUNCTION): Use std::abort.
1224 2006-01-18  Paolo Carlini  <pcarlini@suse.de>
1226         * include/bits/allocator.h: Include <bits/cpp_type_traits.h>.
1228 2006-01-18  Perry Smith  <pedz@easesoftware.net>
1230         PR libstdc++/25823
1231         PR libstdc++/25824
1232         * libsupc++/eh_alloc.cc: Fix return type of memset declaration.
1233         * libsupc++/eh_globals.cc: If !_GLIBCXX_HOSTED declare malloc and free.
1235 2006-01-18  Paolo Carlini  <pcarlini@suse.de>
1237         * include/ext/pb_assoc/detail/value_type_adapter/
1238         value_type_adapter.hpp: Include <tr1/type_traits>.
1239         * include/ext/pb_assoc/detail/value_type_adapter/
1240         it_value_type_traits.hpp (it_value_type_traits_<>::value_type_holder):
1241         Use tr1::aligned_storage and tr1::alignment_of.
1242         (it_value_type_traits_<>::buf_t): Remove.
1243         (it_value_type_traits_<>::make_valid, recast): Adjust.
1245 2006-01-16  Benjamin Kosnik  <bkoz@redhat.com>
1247         PR libstdc++/25797
1248         * acinclude.m4 (GLIBCXX_CHECK_LINKER_FEATURES): Add -Werror to
1249         CFLAGS for --gc-sections test.  Correct compile test.
1250         * configure: Regenerated.
1251         
1252 2006-01-15  Paolo Carlini  <pcarlini@suse.de>
1253             Gabriel Dos Reis  <gdr@integrable-solutions.net>
1255         PR libstdc++/25626
1256         * include/std/std_valarray.h (valarray(const slice_array<>&),
1257         valarray(const gslice_array<>&), valarray(const mask_array<>&),
1258         valarray(const indirect_array<>&), valarray(const _Expr<>&)):
1259         Forward to __valarray_copy_construct, not __valarray_copy.
1260         * include/bits/valarray_array.h
1261         (__valarray_copy_construct(_Array<>, _Array<>, _Array<>, size_t),
1262         __valarray_copy_construct(_Array<>, size_t, size_t, _Array<>)):
1263         New.
1265 2006-01-15  Paolo Carlini  <pcarlini@suse.de>
1267         * testsuite/tr1/8_c_compatibility/complex/overloads_int.cc:
1268         Fix norm test, use casts everywhere.
1270 2006-01-14  Paolo Carlini  <pcarlini@suse.de>
1272         * testsuite/testsuite_tr1.h: Add missing include; use std::__are_same.
1274 2006-01-14  Paolo Carlini  <pcarlini@suse.de>
1276         * testsuite/tr1/8_c_compatibility/complex/overloads_int.cc:
1277         Fix wrong test (don't pick by mistake the (const complex<>&, int)
1278         overload); add some.
1280 2006-01-13  Paolo Carlini  <pcarlini@suse.de>
1281             Howard Hinnant  <hhinnant@apple.com>
1283         * include/tr1/complex (arg, conj, imag, norm, polar, pow, real):
1284         Add, implementing TR1, 8.1.9.
1285         (__promote_2): New.
1286         * include/tr1/common.h: New, provides __promote, __promote_2.
1287         * include/Makefile.am: Add.
1288         * include/Makefile.in: Regenerate.
1289         * testsuite/testsuite_tr1.h (check_ret_type): New.
1290         * testsuite/tr1/8_c_compatibility/complex/overloads_int.cc: New.
1291         * testsuite/tr1/8_c_compatibility/complex/overloads_float.cc: New.
1293 2006-01-12  Benjamin Kosnik  <bkoz@redhat.com>
1295         * acinclude.m4(GLIBCXX_CHECK_LINKER_FEATURES): Enable
1296         --gc-sections in more cases.    
1297         * configure: Regenerate.
1298         * scripts/testsuite_flags.in: Remove SECTION_LDFLAGS.
1299         * scripts/testsuite_flags.in (cxxldflags): New.
1300         * testsuite/lib/libstdc++.exp (v3_target_compile): Add cxxldflags.
1301         (libstdc++_init ): Same.
1302                 
1303 2006-01-12  Jan Beulich  <jbeulich@novell.com>
1305         * crossconfig.m4: Add AC_DEFINE-s for HAVE_HYPOT, HAVE_ISINF, and
1306         HAVE_ISNAN for *-*-netware*.
1307         * configure: Refresh.
1309 2006-01-11  Benjamin Kosnik  <bkoz@redhat.com>
1311         * acinclude.m4(GLIBCXX_CHECK_LINKER_FEATURES): Use -Wl,-z,relro if
1312         possible.  
1313         * configure: Regenerate.
1315 2006-01-10  Paolo Carlini  <pcarlini@suse.de>
1317         * include/tr1/complex: New file, hosts the additions to header
1318         <complex> described in TR1, Chapter 8 [tr.c99].
1319         * include/Makefile.am: Add.
1320         * include/Makefile.in: Regenerate.
1321         * testsuite/tr1/8_c_compatibility/complex/functions.cc: New.
1323 2006-01-09  Paolo Carlini  <pcarlini@suse.de>
1325         PR libstdc++/25658
1326         * testsuite/23_containers/deque/cons/assign/1.cc: Divide
1327         sizes by 10.
1329 2006-01-08  Paolo Carlini  <pcarlini@suse.de>
1331         PR libstdc++/22102 (insert as close to hint as possible)
1332         * include/bits/stl_tree.h (_Rb_tree<>::_M_insert_lower,
1333         _M_insert_equal_lower): New.
1334         (_M_insert_equal(iterator, const _Val&),
1335         _M_insert_equal(const_iterator, const _Val&)): Use the above.
1336         * docs/html/ext/howto.html: Add an entry for DR 233.
1337         * testsuite/23_containers/multiset/modifiers/insert/22102.cc: New.
1338         * testsuite/23_containers/multimap/modifiers/insert/22102.cc: New.
1340         * testsuite/23_containers/set/insert/: Move...
1341         * testsuite/23_containers/set/modifiers/insert/: ...here.
1342         * testsuite/23_containers/map/insert/: Move...
1343         * testsuite/23_containers/map/modifiers/insert/: ...here.
1344         * testsuite/23_containers/multiset/insert/: Move...
1345         * testsuite/23_containers/multiset/modifiers/insert/: ...here.
1347 2006-01-06  Paolo Carlini  <pcarlini@suse.de>
1349         * include/bits/stl_tree.h (_Rb_tree<>::insert_unique): Rename
1350         to _M_insert_unique.
1351         (_Rb_tree<>::insert_equal): Rename to _M_insert_equal.
1352         * include/bits/stl_map.h (class map<>): Update callers.
1353         * include/bits/stl_set.h (class set<>): Likewise.
1354         * include/bits/stl_multimap.h (class multimap<>): Likewise.
1355         * include/bits/stl_multiset.h (class multiset<>): Likewise.
1357 2006-01-06  Paolo Carlini  <pcarlini@suse.de>
1359         * include/bits/stl_bvector.h (vector<bool>::erase(iterator,
1360         iterator)): Just use _M_erase_at_end.
1362 2006-01-06  Paolo Carlini  <pcarlini@suse.de>
1364         * include/bits/stl_bvector.h (class vector<bool>): Move all the
1365         helpers under protected access mode, consistently with the primary
1366         vector template.
1367         (vector<bool>::_M_erase_at_end): Add.
1368         (erase(iterator, iterator), clear, resize, _M_fill_assign,
1369         _M_assign_aux): Use it.
1370         * testsuite/23_containers/vector/bool/modifiers/erase/1.cc: New.
1372 2006-01-06  Paolo Carlini  <pcarlini@suse.de>
1374         Implement Option 3 of DR 431 for vector<bool>.
1375         * include/bits/stl_bvector.h (class _Bvector_base): Change to
1376         a struct, consistently with the primary vector template.
1377         (class vector<bool>): Adjust to protected inheritance, tidy
1378         typedefs.
1379         (_Bvector_base<>::_M_get_Bit_allocator): Add.
1380         (vector<bool>::vector(const vector&)): Use it.
1381         (_Bvector_base<>::get_allocator): Tidy.
1382         (vector<bool>::swap): Use __alloc_swap.
1383         * testsuite/23_containers/vector/bool/modifiers/swap/1.cc: New.
1384         * testsuite/23_containers/vector/bool/modifiers/swap/2.cc: New.
1386 2006-01-05  Paolo Carlini  <pcarlini@suse.de>
1387         
1388         * testsuite/testsuite_hooks.h (test_tm(unsigned)): Change to
1389         take all the tm members.
1390         * testsuite/testsuite_hooks.cc (test_tm): Adjust.
1391         * testsuite/22_locale/time_put/put/wchar_t/10.cc: Update.
1392         * testsuite/22_locale/time_put/put/wchar_t/1.cc: Likewise.
1393         * testsuite/22_locale/time_put/put/wchar_t/2.cc: Likewise.
1394         * testsuite/22_locale/time_put/put/wchar_t/3.cc: Likewise.
1395         * testsuite/22_locale/time_put/put/wchar_t/4.cc: Likewise.
1396         * testsuite/22_locale/time_put/put/wchar_t/5.cc: Likewise.
1397         * testsuite/22_locale/time_put/put/wchar_t/6.cc: Likewise.
1398         * testsuite/22_locale/time_put/put/wchar_t/7.cc: Likewise.
1399         * testsuite/22_locale/time_put/put/wchar_t/8.cc: Likewise.
1400         * testsuite/22_locale/time_put/put/wchar_t/9.cc: Likewise.
1401         * testsuite/22_locale/time_put/put/wchar_t/17038.cc: Likewise.
1402         * testsuite/22_locale/time_put/put/char/10.cc: Likewise.
1403         * testsuite/22_locale/time_put/put/char/1.cc: Likewise.
1404         * testsuite/22_locale/time_put/put/char/2.cc: Likewise.
1405         * testsuite/22_locale/time_put/put/char/3.cc: Likewise.
1406         * testsuite/22_locale/time_put/put/char/4.cc: Likewise.
1407         * testsuite/22_locale/time_put/put/char/5.cc: Likewise.
1408         * testsuite/22_locale/time_put/put/char/6.cc: Likewise.
1409         * testsuite/22_locale/time_put/put/char/7.cc: Likewise.
1410         * testsuite/22_locale/time_put/put/char/8.cc: Likewise.
1411         * testsuite/22_locale/time_put/put/char/9.cc: Likewise.
1412         * testsuite/22_locale/time_put/put/char/17038.cc: Likewise.
1413         * testsuite/22_locale/time_get/get_year/wchar_t/1.cc: Likewise.
1414         * testsuite/22_locale/time_get/get_year/wchar_t/3.cc: Likewise.
1415         * testsuite/22_locale/time_get/get_year/char/1.cc: Likewise.
1416         * testsuite/22_locale/time_get/get_year/char/3.cc: Likewise.
1417         * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Likewise.
1418         * testsuite/22_locale/time_get/get_monthname/wchar_t/2.cc: Likewise.
1419         * testsuite/22_locale/time_get/get_monthname/char/1.cc: Likewise.
1420         * testsuite/22_locale/time_get/get_monthname/char/2.cc: Likewise.
1421         * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Likewise.
1422         * testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc: Likewise.
1423         * testsuite/22_locale/time_get/get_weekday/wchar_t/3.cc: Likewise.
1424         * testsuite/22_locale/time_get/get_weekday/char/1.cc: Likewise.
1425         * testsuite/22_locale/time_get/get_weekday/char/2.cc: Likewise.
1426         * testsuite/22_locale/time_get/get_weekday/char/3.cc: Likewise.
1427         * testsuite/22_locale/time_get/get_date/wchar_t/12750.cc: Likewise.
1428         * testsuite/22_locale/time_get/get_date/wchar_t/12750.cc: Likewise.
1429         * testsuite/22_locale/time_get/get_date/wchar_t/1.cc: Likewise.
1430         * testsuite/22_locale/time_get/get_date/wchar_t/2.cc: Likewise.
1431         * testsuite/22_locale/time_get/get_date/wchar_t/3.cc: Likewise.
1432         * testsuite/22_locale/time_get/get_date/char/12750.cc: Likewise.
1433         * testsuite/22_locale/time_get/get_date/char/12750.cc: Likewise.
1434         * testsuite/22_locale/time_get/get_date/char/1.cc: Likewise.
1435         * testsuite/22_locale/time_get/get_date/char/2.cc: Likewise.
1436         * testsuite/22_locale/time_get/get_date/char/3.cc: Likewise.
1437         * testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Likewise.
1438         * testsuite/22_locale/time_get/get_time/wchar_t/2.cc: Likewise.
1439         * testsuite/22_locale/time_get/get_time/wchar_t/3.cc: Likewise.
1440         * testsuite/22_locale/time_get/get_time/wchar_t/4.cc: Likewise.
1441         * testsuite/22_locale/time_get/get_time/char/1.cc: Likewise.
1442         * testsuite/22_locale/time_get/get_time/char/2.cc: Likewise.
1443         * testsuite/22_locale/time_get/get_time/char/3.cc: Likewise.
1444         * testsuite/22_locale/time_get/get_time/char/4.cc: Likewise.
1446 2006-01-05  Paolo Carlini  <pcarlini@suse.de>
1447         
1448         * testsuite/testsuite_hooks.h (test_tm(unsigned)): New.
1449         * testsuite/testsuite_hooks.cc (test_tm(unsigned)): Define.
1450         * testsuite/22_locale/time_put/put/wchar_t/10.cc: Use it.
1451         * testsuite/22_locale/time_put/put/wchar_t/1.cc: Likewise.
1452         * testsuite/22_locale/time_put/put/wchar_t/2.cc: Likewise.
1453         * testsuite/22_locale/time_put/put/wchar_t/3.cc: Likewise.
1454         * testsuite/22_locale/time_put/put/wchar_t/4.cc: Likewise.
1455         * testsuite/22_locale/time_put/put/wchar_t/5.cc: Likewise.
1456         * testsuite/22_locale/time_put/put/wchar_t/6.cc: Likewise.
1457         * testsuite/22_locale/time_put/put/wchar_t/7.cc: Likewise.
1458         * testsuite/22_locale/time_put/put/wchar_t/8.cc: Likewise.
1459         * testsuite/22_locale/time_put/put/wchar_t/9.cc: Likewise.
1460         * testsuite/22_locale/time_put/put/wchar_t/17038.cc: Likewise.
1461         * testsuite/22_locale/time_put/put/char/10.cc: Likewise.
1462         * testsuite/22_locale/time_put/put/char/1.cc: Likewise.
1463         * testsuite/22_locale/time_put/put/char/2.cc: Likewise.
1464         * testsuite/22_locale/time_put/put/char/3.cc: Likewise.
1465         * testsuite/22_locale/time_put/put/char/4.cc: Likewise.
1466         * testsuite/22_locale/time_put/put/char/5.cc: Likewise.
1467         * testsuite/22_locale/time_put/put/char/6.cc: Likewise.
1468         * testsuite/22_locale/time_put/put/char/7.cc: Likewise.
1469         * testsuite/22_locale/time_put/put/char/8.cc: Likewise.
1470         * testsuite/22_locale/time_put/put/char/9.cc: Likewise.
1471         * testsuite/22_locale/time_put/put/char/17038.cc: Likewise.
1472         * testsuite/22_locale/time_get/get_year/wchar_t/1.cc: Likewise.
1473         * testsuite/22_locale/time_get/get_year/wchar_t/3.cc: Likewise.
1474         * testsuite/22_locale/time_get/get_year/char/1.cc: Likewise.
1475         * testsuite/22_locale/time_get/get_year/char/3.cc: Likewise.
1476         * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Likewise.
1477         * testsuite/22_locale/time_get/get_monthname/wchar_t/2.cc: Likewise.
1478         * testsuite/22_locale/time_get/get_monthname/char/1.cc: Likewise.
1479         * testsuite/22_locale/time_get/get_monthname/char/2.cc: Likewise.
1480         * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Likewise.
1481         * testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc: Likewise.
1482         * testsuite/22_locale/time_get/get_weekday/wchar_t/3.cc: Likewise.
1483         * testsuite/22_locale/time_get/get_weekday/char/1.cc: Likewise.
1484         * testsuite/22_locale/time_get/get_weekday/char/2.cc: Likewise.
1485         * testsuite/22_locale/time_get/get_weekday/char/3.cc: Likewise.
1486         * testsuite/22_locale/time_get/get_date/wchar_t/12750.cc: Likewise.
1487         * testsuite/22_locale/time_get/get_date/wchar_t/12750.cc: Likewise.
1488         * testsuite/22_locale/time_get/get_date/wchar_t/1.cc: Likewise.
1489         * testsuite/22_locale/time_get/get_date/wchar_t/2.cc: Likewise.
1490         * testsuite/22_locale/time_get/get_date/wchar_t/3.cc: Likewise.
1491         * testsuite/22_locale/time_get/get_date/char/12750.cc: Likewise.
1492         * testsuite/22_locale/time_get/get_date/char/12750.cc: Likewise.
1493         * testsuite/22_locale/time_get/get_date/char/1.cc: Likewise.
1494         * testsuite/22_locale/time_get/get_date/char/2.cc: Likewise.
1495         * testsuite/22_locale/time_get/get_date/char/3.cc: Likewise.
1496         * testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Likewise.
1497         * testsuite/22_locale/time_get/get_time/wchar_t/2.cc: Likewise.
1498         * testsuite/22_locale/time_get/get_time/wchar_t/3.cc: Likewise.
1499         * testsuite/22_locale/time_get/get_time/wchar_t/4.cc: Likewise.
1500         * testsuite/22_locale/time_get/get_time/char/1.cc: Likewise.
1501         * testsuite/22_locale/time_get/get_time/char/2.cc: Likewise.
1502         * testsuite/22_locale/time_get/get_time/char/3.cc: Likewise.
1503         * testsuite/22_locale/time_get/get_time/char/4.cc: Likewise.
1505 2006-01-04  Paolo Carlini  <pcarlini@suse.de>
1507         * include/ext/sso_string_base.h (__sso_string_base<>::_M_dataplus):
1508         Use _CharT_alloc_type as base class.
1509         (_M_get_allocator, _M_swap, _M_create, _M_destroy): Adjust.
1510         * include/ext/vstring.h (get_allocator): Tidy.
1512 2006-01-04  Paolo Carlini  <pcarlini@suse.de>
1514         Implement Option 3 of DR 431 for all the containers.
1515         * include/bits/allocator.h (struct __alloc_swap): Add, swaps
1516         allocators, optimized to nothing in case they are empty.
1517         * include/bits/stl_deque.h (deque<>::swap): Use it.
1518         * include/bits/stl_list.h (list<>::swap): Likewise.
1519         * include/bits/stl_tree.h (_Rb_tree<>::swap): Likewise.
1520         * include/bits/stl_vector.h (vector<>::swap): Likewise.
1521         * include/tr1/hashtable (hashtable<>::swap): Likewise.
1522         * include/ext/rc_string_base.h (__rc_string_base<>::_M_swap):
1523         Likewise.
1524         * include/ext/sso_string_base.h (__sso_string_base<>::_M_swap):
1525         Likewise.
1526         * include/ext/vstring_util.h (__vstring_utility<>::_Alloc_hider):
1527         Clean-up (now vstring uses the generic __alloc_swap facility).
1528         * include/tr1/unordered_map: Adjust includes.
1529         * include/tr1/unordered_set: Likewise.
1530         * docs/html/ext/howto.html: Add an entry for DR 431.
1531         * testsuite/23_containers/deque/modifiers/swap.cc: Move to...
1532         * testsuite/23_containers/deque/modifiers/swap/1.cc: ... here.          
1533         * testsuite/23_containers/deque/modifiers/swap/2.cc: New.
1534         * testsuite/23_containers/deque/modifiers/swap/3.cc: New.
1535         * testsuite/23_containers/list/modifiers/swap.cc: Move to...
1536         * testsuite/23_containers/list/modifiers/swap/1.cc: ... here.           
1537         * testsuite/23_containers/list/modifiers/swap/2.cc: New.
1538         * testsuite/23_containers/list/modifiers/swap/3.cc: New.
1539         * testsuite/23_containers/vector/modifiers/swap.cc: Move to...
1540         * testsuite/23_containers/vector/modifiers/swap/1.cc: ... here.         
1541         * testsuite/23_containers/vector/modifiers/swap/2.cc: New.
1542         * testsuite/23_containers/vector/modifiers/swap/3.cc: New.
1543         * testsuite/23_containers/set/modifiers/swap.cc: Move to...
1544         * testsuite/23_containers/set/modifiers/swap/1.cc: ... here.            
1545         * testsuite/23_containers/set/modifiers/swap/2.cc: New.
1546         * testsuite/23_containers/set/modifiers/swap/3.cc: New.
1547         * testsuite/23_containers/map/modifiers/swap.cc: Move to...
1548         * testsuite/23_containers/map/modifiers/swap/1.cc: ... here.            
1549         * testsuite/23_containers/map/modifiers/swap/2.cc: New.
1550         * testsuite/23_containers/map/modifiers/swap/3.cc: New.
1551         * testsuite/23_containers/multiset/modifiers/swap.cc: Move to...
1552         * testsuite/23_containers/multiset/modifiers/swap/1.cc: ... here.               
1553         * testsuite/23_containers/multiset/modifiers/swap/2.cc: New.
1554         * testsuite/23_containers/multiset/modifiers/swap/3.cc: New.
1555         * testsuite/23_containers/multimap/modifiers/swap.cc: Move to...
1556         * testsuite/23_containers/multimap/modifiers/swap/1.cc: ... here.               
1557         * testsuite/23_containers/multimap/modifiers/swap/2.cc: New.
1558         * testsuite/23_containers/multimap/modifiers/swap/3.cc: New.
1559         * testsuite/tr1/6_containers/unordered/swap/unordered_set/1.cc: New.    
1560         * testsuite/tr1/6_containers/unordered/swap/unordered_set/2.cc: New.
1561         * testsuite/tr1/6_containers/unordered/swap/unordered_map/1.cc: New.    
1562         * testsuite/tr1/6_containers/unordered/swap/unordered_map/2.cc: New.
1563         * testsuite/tr1/6_containers/unordered/swap/unordered_multiset/1.cc: New.       
1564         * testsuite/tr1/6_containers/unordered/swap/unordered_multiset/2.cc: New.
1565         * testsuite/tr1/6_containers/unordered/swap/unordered_multimap/1.cc: New.       
1566         * testsuite/tr1/6_containers/unordered/swap/unordered_multimap/2.cc: New.
1568 2006-01-03  Paolo Carlini  <pcarlini@suse.de>
1570         * include/bits/stl_list.h (_List_base<>::_M_get_Node_allocator): Add.
1571         (_M_get_Tp_allocator, get_allocator): Tidy.
1572         (list<>::list(const list&), insert(iterator, size_type, const
1573         value_type&), insert(iterator, _InputIterator, _InputIterator)):
1574         Use _M_get_Node_allocator.
1575         * include/bits/stl_tree.h (_Rb_tree<>::_M_get_Node_allocator()): Add.
1576         (_Rb_tree(const _Rb_tree<>&): Use it.
1577         * include/bits/stl_deque.h (_Deque_base<>::_M_get_map_allocator,
1578         get_allocator): Tidy.
1579         * include/bits/stl_vector.h (_Vector_base<>::get_allocator): Tidy.
1580         * testsuite/23_containers/map/operators/1_neg.cc: Adjust dg-error
1581         line numbers.
1582         * testsuite/23_containers/set/operators/1_neg.cc: Likewise.
1583         
1584         * testsuite/testsuite_allocator.h (uneq_allocator<>::swap): Fix.
1586         * testsuite/testsuite_allocator.h (class uneq_allocator): A simple
1587         non-empty testing allocator which can be endowed of a "personality"
1588         at construction time.
1590 2006-01-03  Paolo Carlini  <pcarlini@suse.de>
1592         * testsuite/27_io/basic_stringstream/str/char/1.cc: Initialize vars.
1593         * testsuite/27_io/basic_stringstream/str/wchar_t/1.cc: Likewise.
1594         * testsuite/27_io/basic_istringstream/str/char/1.cc: Likewise, tidy.
1595         * testsuite/27_io/basic_istringstream/str/wchar_t/1.cc: Likewise.
1597 2006-01-02  Mark Mitchell  <mark@codesourcery.com>
1599         * src/Makefile.am (LTLDFLAGS): New variable. 
1600         (CXXLINK): Use LTLDFLAGS.
1601         * src/Makefile.in: Regenerated.
1602         * libsupc++/Makefile.am (LTLDFLAGS): New variable. 
1603         (CXXLINK): Use LTLDFLAGS.
1604         * libsupc++/Makefile.in: Regenerated.
1606 2006-01-02  Paolo Carlini  <pcarlini@suse.de>
1608         PR libstdc++/24645
1609         * include/std/std_istream.h (basic_istream<>::_M_extract): New.
1610         (operator>>(bool&), operator>>(short&), operator>>(unsigned short&),
1611         operator>>(int&), operator>>(unsigned int&), operator>>(long&),
1612         operator>>(unsigned long&), operator>>(long long&), operator>>
1613         (unsigned long long&), operator>>(float&), operator>>(double&),
1614         operator>>(long double&), operator>>(void*&)): Use it.
1615         * include/bits/istream.tcc (basic_istream<>::_M_extract): Define.
1616         * include/std/std_ostream.h (basic_ostream<>::_M_insert): New.
1617         (operator<<(long), operator<<(unsigned long), operator<<(bool),
1618         operator<<(short), operator<<(unsigned short), operator<<(int),
1619         operator<<(unsigned int), operator<<(long long), operator<<
1620         (unsigned long long), operator<<(double), operator<<(float),
1621         operator<<(long double), operator<<(const void*): Use it.
1622         * include/bits/ostream.tcc (basic_ostream<>::_M_insert): Define.
1623         * src/istream-inst.cc: Add _M_extract instantiations.
1624         * src/ostream-inst.cc: Add _M_insert instantiations.
1625         * config/abi/pre/gnu.ver: Export the new symbols @GLIBCXX_3.4.7;
1626         detail existing @GLIBCXX_3.4 exports of basic_ostream, num_put,
1627         money_put, etc., symbols to avoid exporting _M_insert symbols
1628         @GLIBCXX_3.4.