OSDN Git Service

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