OSDN Git Service

2006-02-22 Paolo Carlini <pcarlini@suse.de>
[pf3gnuchains/gcc-fork.git] / libstdc++-v3 / ChangeLog
1 2006-02-22  Paolo Carlini  <pcarlini@suse.de>
2
3         * docs/html/ext/pb_assoc/basic_tree_assoc_cntnr_node_iterator.html:
4         Fix links.
5         * docs/html/ext/pb_assoc/hash_based_containers.html: Likewise.
6         * docs/html/ext/pb_assoc/hash_standard_resize_policy.html: Likewise.
7         * docs/html/ext/pb_assoc/interface.html: Likewise..
8         * docs/html/ext/pb_assoc/list_updates.html: Likewise.
9         * docs/html/ext/pb_assoc/resize_policies.html: Likewise.
10         * docs/html/ext/pb_assoc/sample_probe_fn.html: Likewise.
11         * docs/html/ext/pb_assoc/sample_range_hashing.html: Likewise.
12         * docs/html/ext/pb_assoc/sample_ranged_hash_fn.html: Likewise.
13         * docs/html/ext/pb_assoc/sample_ranged_probe_fn.html: Likewise.
14         * docs/html/ext/pb_assoc/sample_resize_policy.html: Likewise.
15         * docs/html/ext/pb_assoc/tree_assoc_cntnr_const_node_iterator.html:
16         Likewise.
17         * docs/html/ext/pb_assoc/tree_assoc_cntnr_node_iterator.html: Likewise.
18
19 2006-02-22  Paolo Carlini  <pcarlini@suse.de>
20
21         PR libstdc++/26132
22         * include/tr1/hashtable (hashtable<>::rehash): Define.
23         * testsuite/tr1/6_containers/unordered/hashtable/26132.cc: New.
24
25         * include/tr1/hashtable: Trivial formatting and stylistic fixes.
26
27         * testsuite/tr1/headers.cc: remove <tr1/hashtable>, not a tr1 header,
28         only an implementation detail.
29
30 2006-02-22  Paolo Carlini  <pcarlini@suse.de>
31
32         * include/debug/list (splice): Remove splice_alloc check, redundant
33         after implementing the splice bits of N1599.
34
35 2006-02-21  Benjamin Kosnik  <bkoz@redhat.com>
36
37         * include/c_std/cmath.tcc: Use _GLIBCXX_BEGIN_NAMESPACE,
38         _GLIBCXX_END_NAMESPACE.
39
40 2006-02-21  Benjamin Kosnik  <bkoz@redhat.com>
41
42         * include/bits/c++config: Simplify debug namespaces.
43         * include/ext/hash_set: Specialize insert_iterator after norm,
44         debug containers have been (optionally) declared. Use nested
45         namespaces.     
46         * include/ext/hash_map: Same.
47         * include/debug/hash_map.h (insert): Add specialization for value
48         pointer types.
49         * include/debug/hash_set.h (insert): Same.
50         * include/debug/hash_multimap.h: Change __gnu_debug_def to __debug.
51         * include/debug/set.h: Same.
52         * include/debug/bitset: Same.
53         * include/debug/multiset.h: Same.
54         * include/debug/hash_multiset.h: Same.
55         * include/debug/vector: Same.
56         * include/debug/map.h: Same.
57         * include/debug/deque: Same.
58         * include/debug/list: Same.
59         * include/debug/multimap.h. Same.
60         * include/debug/macros.h: Use __gnu_debug.
61         * include/debug/debug.h: Same.
62         * include/debug/formatter.h: Same.
63         * include/debug/safe_sequence.h: Same.
64         * include/debug/functions.h: Same.
65         * include/debug/safe_base.h: Same.
66         * include/debug/safe_iterator.h: Same.
67         * include/debug/safe_iterator.tcc: Same.
68         (_M_invalidate): Adjust compare order.
69         * include/debug/string: Change std::__gnu_debug to __gnu_debug.
70         * include/ext/hashtable.h: Formatting fixes.
71         * include/bits/stl_map.h: Formatting fixes.             
72         * src/compatibility.cc: Adjust compatibility symbols for old debug
73         mode model.     
74         * src/debug_list.cc: Tweak.
75         * src/debug.cc: Adjust namespaces.
76         * docs/html/debug_mode.html: Adjust namespace names.
77         * testsuite/25_algorithms/heap/heap.cc: Restore _GLIBCXX_DEBUG
78         macro guards, as count values differ when in debug mode.        
79         * testsuite/23_containers/vector/26412.cc: Move to...
80         * testsuite/23_containers/vector/26412-1.cc: ... here.
81         * testsuite/23_containers/vector/26412-2.cc: Add.
82
83         * include/ext/pb_assoc/detail/standard_policies.hpp
84         (PB_ASSOC_HASH_NAMESPACE): Remove, use __gnu_cxx::hash_map and
85         std::equal_to.
86
87         * configure.ac (libtool_VERSION): To 6:8:0.
88         * configure: Regenerate.
89         * config/abi/pre/gnu.ver: Revert to exporting __gnu_debug symbols.
90         (GLIBCXX_3.4.8): New.
91         * testsuite/testsuite_abi.cc: Add GLIBCXX_3.4.8 to known versions.
92         
93 2006-02-21  Paolo Carlini  <pcarlini@suse.de>
94
95         * include/tr1/hashtable: Trivial formatting fixes.
96
97 2006-02-20  Paolo Carlini  <pcarlini@suse.de>
98
99         Revert recent commit for libstdc++/26211, now suspended waiting for
100         DR 342 (reopened) to reach a new resolution.
101         * include/bits/istream.tcc (basic_istream<>::tellg, seekg(pos_type),
102         seekg(off_type, ios_base::seekdir)): Remove sentry.
103         * testsuite/27_io/basic_istream/seekg/char/26211.cc: Remove.
104         * testsuite/27_io/basic_istream/seekg/wchar_t/26211.cc: Likewise.
105         * testsuite/27_io/basic_istream/tellg/char/26211.cc: Likewise.
106         * testsuite/27_io/basic_istream/tellg/wchar_t/26211.cc: Likewise.
107         * testsuite/27_io/basic_istream/seekg/char/8348-1.cc: Revert changes.
108         * testsuite/27_io/basic_istream/seekg/wchar_t/8348-1.cc: Likewise.
109         * testsuite/27_io/basic_istream/seekg/char/8348-2.cc: Likewise.
110         * testsuite/27_io/basic_istream/seekg/wchar_t/8348-1.cc: Likewise.
111         * testsuite/27_io/basic_istream/tellg/char/8348.cc: Likewise.
112         * testsuite/27_io/basic_istream/tellg/wchar_t/8348.cc: Likewise.
113
114 2006-02-19  Paolo Carlini  <pcarlini@suse.de>
115
116         * include/std/std_sstream.h (basic_stringbuf<>::setbuf): Simply
117         clear the internal _M_string, adjust _M_sync call.
118         * include/bits/sstream.tcc (basic_stringbuf<>::_M_sync): Adjust
119         consistently for calls from setbuf.
120
121 2006-02-17  Paolo Carlini  <pcarlini@suse.de>
122             Howard Hinnant  <hhinnant@apple.com>
123
124         PR libstdc++/26250
125         * include/bits/sstream.tcc (basic_stringbuf<>::overflow): Tweak
126         to leave epgtr() just past the new write position, as per the
127         relevant bits of 27.7.1.3/8 (not changed by DR 432).
128         * testsuite/27_io/basic_stringbuf/overflow/char/26250.cc: New.
129         * testsuite/27_io/basic_stringbuf/overflow/wchar_t/26250.cc: Same.
130
131         * docs/html/ext/howto.html: Add entries for DR 169 and DR 432.
132
133         * include/std/std_sstream.h (basic_stringbuf<>::_M_sync): Move out
134         of line...
135         * include/bits/sstream.tcc: ... here.
136
137 2006-02-16  Joseph S. Myers  <joseph@codesourcery.com>
138
139         PR libstdc++/14939
140         * config/os/uclibc/ctype_base.h, config/os/uclibc/ctype_inline.h,
141         config/os/uclibc/ctype_noninline.h, config/os/uclibc/os_defines.h:
142         New.
143         * acinclude.m4 (GLIBCXX_CONFIGURE): Test whether using uClibc.
144         * configure.host: Use os/uclibc for uClibc.
145         * crossconfig.m4 (*-linux*): Use link tests.  Don't hardcode
146         presence of math functions.
147         * configure: Regenerate.
148
149 2006-02-12  Paolo Carlini  <pcarlini@suse.de>
150
151         PR libstdc++/26211
152         * include/bits/istream.tcc (basic_istream<>::tellg, seekg(pos_type),
153         seekg(off_type, ios_base::seekdir)): Construct a sentry, as per
154         27.6.1.3/1.
155         * testsuite/27_io/basic_istream/seekg/char/26211.cc: New.
156         * testsuite/27_io/basic_istream/seekg/wchar_t/26211.cc: Likewise.
157         * testsuite/27_io/basic_istream/tellg/char/26211.cc: Likewise.
158         * testsuite/27_io/basic_istream/tellg/wchar_t/26211.cc: Likewise.
159         * testsuite/27_io/basic_istream/seekg/char/8348-1.cc: Adjust.
160         * testsuite/27_io/basic_istream/seekg/wchar_t/8348-1.cc: Likewise.
161         * testsuite/27_io/basic_istream/seekg/char/8348-2.cc: Likewise.
162         * testsuite/27_io/basic_istream/seekg/wchar_t/8348-1.cc: Likewise.
163         * testsuite/27_io/basic_istream/tellg/char/8348.cc: Likewise.
164         * testsuite/27_io/basic_istream/tellg/wchar_t/8348.cc: Likewise.
165
166 2006-02-10  Paolo Carlini  <pcarlini@suse.de>
167
168         PR libstdc++/26181
169         * include/bits/streambuf.tcc (__copy_streambufs_eof): New, like
170         the existing __copy_streambufs but reporting eof in input.
171         (__copy_streambufs): Just use the latter.
172         * src/streambuf.cc (__copy_streambufs_eof): Adjust specializations
173         of __copy_streambufs.
174         * include/bits/istream.tcc (operator>>(__streambuf_type*)): Use
175         __copy_streambufs_eof instead.
176         * include/std/std_streambuf.h: Adjust.
177         * src/streambuf-inst.cc: Adjust.
178         * config/abi/pre/gnu.ver: Export the new symbols.
179         * testsuite/27_io/basic_istream/extractors_other/char/26181.cc: New.
180         * testsuite/27_io/basic_istream/extractors_other/wchar_t/26181.cc:
181         Likewise.
182         * testsuite/27_io/basic_istream/extractors_other/char/1.cc: Adjust.
183         * testsuite/27_io/basic_istream/extractors_other/wchar_t/1.cc:
184         Likewise.
185
186 2006-02-08  Benjamin Kosnik  <bkoz@redhat.com>
187
188         PR libstdc++/26142
189         * include/debug/debug.h: Move debug alias inside namespace std,
190         same with namespace __gnu_cxx. Add top-level __gnu_debug
191         namespace.      
192         * include/debug/hash_multimap.h: Nest within __gnu_cxx, not
193         std. Also, change nesting namespace name from __gnu_debug_def to
194         __gnu_debug.    
195         * include/debug/hash_map.h: Same.
196         * include/debug/hash_multiset.h: Same.
197         * include/debug/hash_set.h: Same.
198         * docs/html/debug.html: Same.
199         * testsuite/23_containers/vector/26412.cc: New.
200         * testsuite/23_containers/vector/invalidation/1.cc:  Correct
201         qualifications for debug namespace change.
202         * testsuite/23_containers/vector/invalidation/2.cc: Same.
203         * testsuite/23_containers/vector/invalidation/3.cc: Same.
204         * testsuite/23_containers/vector/invalidation/4.cc: Same.
205         * testsuite/23_containers/deque/invalidation/1.cc: Same.
206         * testsuite/23_containers/deque/invalidation/2.cc: Same.
207         * testsuite/23_containers/deque/invalidation/3.cc: Same.
208         * testsuite/23_containers/deque/invalidation/4.cc: Same.
209         * testsuite/23_containers/multiset/invalidation/1.cc: Same.
210         * testsuite/23_containers/multiset/invalidation/2.cc: Same.
211         * testsuite/23_containers/multimap/invalidation/1.cc: Same.
212         * testsuite/23_containers/multimap/invalidation/2.cc: Same.
213         * testsuite/23_containers/bitset/invalidation/1.cc: Same.
214         * testsuite/23_containers/bitset/cons/16020.cc: Same.
215         * testsuite/23_containers/bitset/operations/13838.cc: Same.
216         * testsuite/23_containers/list/invalidation/1.cc: Same.
217         * testsuite/23_containers/list/invalidation/2.cc: Same.
218         * testsuite/23_containers/list/invalidation/3.cc: Same.
219         * testsuite/23_containers/list/invalidation/4.cc: Same.
220         * testsuite/23_containers/set/invalidation/1.cc: Same.
221         * testsuite/23_containers/set/invalidation/2.cc: Same.
222         * testsuite/23_containers/map/invalidation/1.cc: Same.
223         * testsuite/23_containers/map/invalidation/2.cc: Same.
224         * testsuite/23_containers/map/modifiers/insert/16813.cc: Same.
225         * testsuite/21_strings/basic_string/2.cc: Same.
226
227 2006-02-08  Paolo Carlini  <pcarlini@suse.de>
228
229         PR libstdc++/26133  (DR 241, [WP])
230         * include/bits/stl_algo.h (__unique_copy(,,, forward_iterator_tag,
231         output_iterator_tag), __unique_copy(,,, input_iterator_tag,
232         output_iterator_tag), __unique_copy(,,, input_iterator_tag,
233         forward_iterator_tag), and predicated counterparts): Add.
234         (__unique_copy(,,, output_iterator_tag), __unique_copy(,,,
235         forward_iterator_tag), and predicated counterparts): Remove.
236         (unique_copy): Adjust, dispatch to the three helpers above.
237         * testsuite/25_algorithms/unique_copy/2.cc: New.
238         * testsuite/25_algorithms/unique_copy/26133.cc: Likewise.
239         * testsuite/25_algorithms/unique_copy/3.cc: Likewise.   
240         * docs/html/ext/howto.html: Add an entry for DR 241.
241
242         * testsuite/25_algorithms/unique_copy/1.cc: Minor cosmetic changes.
243
244 2006-02-07  Jakub Jelinek  <jakub@redhat.com>
245             Benjamin Kosnik  <bkoz@redhat.com>
246
247         * configure.ac (_GLIBCXX_LONG_DOUBLE_COMPAT): New check.
248         If true, set also port_specific_symbol_files and create
249         as_symver_specs.
250         (GLIBCXX_LDBL_COMPAT): New GLIBCXX_CONDITIONAL.
251         * configure: Rebuilt.
252         * config.h.in: Rebuilt.
253         * config/os/gnu-linux/ldbl-extra.ver: New file.
254         * config/abi/pre/gnu.ver: Make sure no __float128 symbols are
255         exported.
256         * include/bits/c++config (_GLIBCXX_LONG_DOUBLE_COMPAT,
257         _GLIBCXX_LDBL_NAMESPACE, _GLIBCXX_BEGIN_LDBL_NAMESPACE,
258         _GLIBCXX_END_LDBL_NAMESPACE): Define.
259         * include/bits/localefwd.h: Use them to conditionally scope facets.
260         * include/bits/locale_facets.h: Surround std::{money,num}_{get,put}
261         with _GLIBCXX_BEGIN_LDBL_NAMESPACE and _GLIBCXX_END_LDBL_NAMESPACE.
262         Surround std::{money,num}_{get,put}
263         with _GLIBCXX_BEGIN_LDBL_NAMESPACE and _GLIBCXX_END_LDBL_NAMESPACE.
264         [_GLIBCXX_LONG_DOUBLE_COMPAT] (std::money_get): Add __do_get method.
265         [_GLIBCXX_LONG_DOUBLE_COMPAT] (std::money_put): Add __do_put method.
266         [_GLIBCXX_LONG_DOUBLE_COMPAT] (std::num_get): Add __do_get method.
267         [_GLIBCXX_LONG_DOUBLE_COMPAT] (std::num_put): Add __do_put method.
268         * include/bits/locale_facets.tcc: Surround std::{money,num}_{get,put}
269         with _GLIBCXX_BEGIN_LDBL_NAMESPACE and _GLIBCXX_END_LDBL_NAMESPACE.
270         (std::money_get::__do_get, std::money_put::__do_put,
271         std::num_get::__do_get, std::num_put::__do_put): New
272         specializations.
273         * include/Makefile.am: Conditionally define
274         _GLIBCXX_LONG_DOUBLE_COMPAT in c++config.
275         * include/Makefile.in: Regenerate.
276         * src/locale.cc [_GLIBCXX_LONG_DOUBLE_COMPAT] (_GLIBCXX_LOC_ID,
277         _GLIBCXX_SYNC_ID): Define, use them.
278         * src/compatibility-ldbl.cc: New file.
279         * src/complex_io.cc [_GLIBCXX_LONG_DOUBLE_COMPAT]: Add compatibility
280         symbols.
281         * src/limits.cc [_GLIBCXX_LONG_DOUBLE_COMPAT]: Likewise.
282         * src/locale.cc [_GLIBCXX_LONG_DOUBLE_COMPAT]: Likewise.
283         * src/locale-inst.cc [_GLIBCXX_LONG_DOUBLE_COMPAT]: Likewise.   
284         * src/locale-misc-inst.cc [_GLIBCXX_LONG_DOUBLE_COMPAT]: Likewise.
285         * src/istream-inst.cc [_GLIBCXX_LONG_DOUBLE_COMPAT]: Likewise.
286         * src/ostream-inst.cc [_GLIBCXX_LONG_DOUBLE_COMPAT]: Likewise.
287         * src/locale.cc [_GLIBCXX_LONG_DOUBLE_COMPAT]: Likewise.
288         * src/wlocale-inst.cc [_GLIBCXX_LONG_DOUBLE_COMPAT]: Likewise.
289         * src/compatibility.cc [_GLIBCXX_LONG_DOUBLE_COMPAT]: Likewise.
290         * config/locale/generic/c_locale.cc [_GLIBCXX_LONG_DOUBLE_COMPAT]:
291         Likewise.
292         * config/locale/gnu/c_locale.cc [_GLIBCXX_LONG_DOUBLE_COMPAT]:
293         Likewise.
294         * src/Makefile.am (libstdc++-symbol.ver): Append instead of
295         insert in the middle if port specific symbol file requests it.
296         (ldbl_compat_sources): New variable.
297         (sources): Use it.
298         (compatibility-ldbl.lo, compatibility-ldbl.o): New rules.
299         * src/Makefile.in: Rebuilt.
300         * testsuite/testsuite_abi.cc: Recognize GLIBCXX_LDBL_3.4,
301         GLIBCXX_LDBL_3.4.7, CXXABI_LDBL_1.3.    
302
303 2006-02-07  Paolo Carlini  <pcarlini@suse.de>   
304
305         * include/tr1/hashtable: Trivial formatting fixes.
306
307 2006-02-07  Paolo Carlini  <pcarlini@suse.de>
308             Zak Kipling  <zak@transversal.com>
309
310         PR libstdc++/26127
311         * include/tr1/hashtable (hashtable<>::key_equal): Define.
312         (hashtable<>::bucket, rehash_base<>::max_load_factor): Fix.
313         * testsuite/tr1/6_containers/unordered/hashtable/26127.cc: New.
314
315 2006-02-07  Paolo Carlini  <pcarlini@suse.de>
316
317         * include/tr1/cmath: New.
318         * include/tr1/cstdlib: Likewise.
319         * include/tr1/ctime: Likewise.
320         * include/tr1/math.h: Likewise. 
321         * include/tr1/stdlib.h: Likewise.
322         * include/Makefile.am: Add.
323         * acinclude.m4 ([GLIBCXX_CHECK_C99_TR1]): Add <math.h> checks.
324         * testsuite/tr1/8_c_compatibility/cmath/functions.cc: New.
325         * testsuite/tr1/8_c_compatibility/cstdlib/functions.cc: Likewise.
326         * testsuite/tr1/8_c_compatibility/cstdlib/types.cc: Likewise.
327         * testsuite/tr1/headers.cc: Update.     
328
329         * include/tr1/cinttypes: Do not provide abs and div, conflicting
330         with the above overloads for _Longlong types.
331         * include/tr1/inttypes.h: Adjust.
332         * testsuite/tr1/8_c_compatibility/cinttypes/functions.cc: Adjust.
333
334         * docs/html/ext/tr1.html: Update.
335         
336         * testsuite/tr1/8_c_compatibility/cwchar/functions.cc: Tweak.
337
338         * include/Makefile.in: Regenerate.
339         * config.h.in: Likewise.
340         * configure: Likewise.
341
342 2006-02-07  Mark Mitchell  <mark@codesourcery.com>
343
344         * testsuite/testsuite_tr1.h (test_property): New function.
345         * testsuite/tr1/4_metaprogramming/type_properties/extent/extent.cc 
346         (test01) 
347
348 2006-02-05  Paolo Carlini  <pcarlini@suse.de>
349
350         * include/tr1/cstdio: New.
351         * include/tr1/stdio.h: Likewise.
352         * include/Makefile.am: Add.
353         * testsuite/tr1/8_c_compatibility/cstdio/functions.cc: New.
354         * testsuite/tr1/headers.cc: Update.     
355         * docs/html/ext/tr1.html: Update.
356
357         * include/tr1/cwchar: Simplify, use _GLIBCXX_USE_C99, consistently
358         with the facilities in std::.
359         * include/tr1/cwctype: Likewise.
360         * testsuite/tr1/8_c_compatibility/cwchar/functions.cc: Tweak.
361         * testsuite/tr1/8_c_compatibility/cwctype/functions.cc: Likewise.
362         * acinclude.m4 ([GLIBCXX_CHECK_C99_TR1]): Remove <wchar.h> and
363         <wctype.h> checks.
364
365         * include/Makefile.in: Regenerate.
366         * config.h.in: Likewise.
367         * configure: Likewise.
368
369 2006-02-04  Paolo Carlini  <pcarlini@suse.de>
370
371         * testsuite/tr1/8_c_compatibility/cwchar/functions.cc: Fix.
372
373 2006-02-04  Paolo Carlini  <pcarlini@suse.de>
374
375         * testsuite/27_io/basic_stringbuf/in_avail/char/21955.cc: Avoid
376         warning on string constant.
377
378 2006-02-03  Paolo Carlini  <pcarlini@suse.de>
379
380         * include/tr1/cwchar: New.
381         * include/tr1/cwctype: Likewise.
382         * include/tr1/wchar.h: Likewise.
383         * include/tr1/wctype.h: Likewise.
384         * include/Makefile.am: Add.
385         * testsuite/tr1/8_c_compatibility/cwchar/functions.cc: New.
386         * testsuite/tr1/8_c_compatibility/cwctype/functions.cc: Likewise.
387         * testsuite/tr1/headers.cc: Update.
388         * acinclude.m4 ([GLIBCXX_CHECK_C99_TR1]): Add <wchar.h> and
389         <wctype.h> checks.
390         * docs/html/ext/tr1.html: Update.
391         * include/Makefile.in: Regenerate.
392         * config.h.in: Likewise.
393         * configure: Likewise.
394
395         * testsuite/tr1/8_c_compatibility/cctype/functions.cc: Cosmetic tweak.
396
397 2006-02-02  Paolo Carlini  <pcarlini@suse.de>
398
399         * include/tr1/cfloat: New.
400         * include/tr1/climits: Likewise.                
401         * include/tr1/cstdarg: Likewise.
402         * include/tr1/ctype.h: Likewise.
403         * include/tr1/fenv.h: Likewise.
404         * include/tr1/float.h: Likewise.
405         * include/tr1/inttypes.h: Likewise.
406         * include/tr1/limits.h: Likewise.
407         * include/tr1/stdint.h: Likewise.
408         * include/tr1/stdarg.h: Likewise.
409         * include/Makefile.am: Add.
410         * include/Makefile.in: Regenerate.
411         * docs/html/ext/tr1.html: Update.
412         * testsuite/tr1/headers.cc: New.
413
414         * include/tr1/cctype: Include <cctype> instead.
415
416 2006-01-31  Paolo Carlini  <pcarlini@suse.de>
417
418         PR libstdc++/21554
419         * include/tr1/array (array<>::_M_instance): Maximally align.
420         * testsuite/ext/array_allocator/2.cc: Do not xfail for powerpc.
421
422 2006-01-31  Ed Smith-Rowland  <3dw4rd@verizon.net>
423
424         * docs/html/faq/index.html ([1.0]): Replace references to CVS
425         with appropriate references to SVN.
426         ([1.3]): Likewise.
427         ([1.4]): Likewise.
428         ([2.3]): Likewise.
429         * docs/html/faq/index.txt: Regenerated.
430
431 2006-01-30  Gabriel Dos Reis  <gdr@integrable-solutions.net>
432
433         * include/bits/valarray_array.h (__valarray_default_construct):
434         Replace use __is_fundamental with __is_pod.
435         (__valarray_fill_construct): Likewise.
436         (__valarray_copy_construct): Likewise.
437         (__valarray_destroy_elements): Likewise.
438         (__valarray_copy): Likewise.
439
440 2006-01-30  Paolo Carlini  <pcarlini@suse.de>
441
442         * acinclude.m4 ([GLIBCXX_CHECK_C99_TR1]): Do the <inttypes.h>
443         checks only if the <stdint.h> checks are successful.
444         * configure: Regenerate.
445
446 2006-01-30  Paolo Carlini  <pcarlini@suse.de>
447
448         * include/tr1/cinttypes: New.
449         * include/Makefile.am: Add.
450         * testsuite/tr1/8_c_compatibility/cinttypes/functions: New.     
451         * testsuite/tr1/8_c_compatibility/cinttypes/types: Likewise.
452         * acinclude.m4 ([GLIBCXX_CHECK_C99_TR1]): Add <inttypes.h> checks.
453         * docs/html/ext/tr1.html: Update.
454         * include/Makefile.in: Regenerate.
455         * config.h.in: Likewise.
456         * configure: Likewise.
457
458         * testsuite/tr1/8_c_compatibility/cfenv/functions.cc: Cosmetic tweak.
459         * testsuite/tr1/8_c_compatibility/cfenv/types.cc: Likewise.
460
461         * testsuite/tr1/8_c_compatibility/cstdint/types.cc: Fix, check in
462         std::tr1.
463
464 2006-01-29  Paolo Carlini  <pcarlini@suse.de>
465
466         * include/tr1/cstdint: New.
467         * include/Makefile.am: Add.
468         * testsuite/tr1/8_c_compatibility/cstdint/types: New.
469         * acinclude.m4 ([GLIBCXX_CHECK_C99_TR1]): Add <stdint.h> checks.
470         * docs/html/ext/tr1.html: Update.
471         * include/Makefile.in: Regenerate.
472         * config.h.in: Likewise.
473         * configure: Likewise.
474
475         * testsuite/tr1/8_c_compatibility/cfenv/types.cc: Cosmetic tweak.
476
477 2006-01-29  Paolo Carlini  <pcarlini@suse.de>
478
479         PR libstdc++/26006
480         * acinclude.m4 ([GLIBCXX_CHECK_C99_TR1]): Tighten <ctype.h> and
481         <fenv.h> checks.
482         * configure: Regenerate.
483
484 2006-01-26  Paolo Carlini  <pcarlini@suse.de>
485
486         * include/std/std_bitset.h (bitset<>::_M_copy_to_string):
487         Call the internal _Unchecked_set(size_t) instead of set.
488
489 2006-01-26  Paolo Carlini  <pcarlini@suse.de>
490
491         * docs/html/install.html ([Tools you will need beforehand]):
492         Clarify that the de_DE locale is used by configure; clarify
493         that missing localedata leads to skipped tests, not fails.
494
495 2006-01-26  Paolo Carlini  <pcarlini@suse.de>
496
497         * include/tr1/cfenv: New.
498         * include/Makefile.am: Add.
499         * testsuite/tr1/8_c_compatibility/cfenv/functions.cc: New.
500         * testsuite/tr1/8_c_compatibility/cfenv/types.cc: Likewise.
501         * acinclude.m4 ([GLIBCXX_CHECK_C99_TR1]): Add <fenv.h> checks.
502         * docs/html/ext/tr1.html: Update; add note.
503         * include/Makefile.in: Regenerate.
504         * config.h.in: Likewise.
505         * configure: Likewise.  
506
507         * testsuite/tr1/8_c_compatibility/complex/functions.cc: Tweak.
508         * testsuite/tr1/8_c_compatibility/cctype/functions.cc: Likewise.
509
510         * docs/html/faq/index.html: Fix link to tr1.html text; fix
511         formatting.
512
513 2006-01-25  Paolo Carlini  <pcarlini@suse.de>
514
515         * include/tr1/cctype: New.
516         * include/Makefile.am: Add.
517         * testsuite/tr1/8_c_compatibility/cctype/functions.cc: New.
518         * include/Makefile.in: Regenerate.
519
520         * acinclude.m4 ([GLIBCXX_CHECK_C99_TR1]): New, check for C99
521         support to TR1, Chapter 8.
522         * configure.ac: Use it.
523         * include/tr1/complex: Adjust.
524         * config.h.in: Regenerate.
525         * configure: Likewise.
526
527 2006-01-25  Benjamin Kosnik  <bkoz@redhat.com>
528
529         * docs/html/configopts.html: Tweak docs.
530
531         * libsupc++/eh_personality.cc: Fix typos.
532
533 2006-01-24  Paolo Carlini  <pcarlini@suse.de>
534
535         PR libstdc++/25649
536         * include/std/std_istream.h (operator>>(short&), operator>>(int&)):
537         Move out of line...
538         * include/bits/istream.tcc: ... here.
539         * include/std/std_ostream.h (operator<<(short), operator<<(int)):
540         Move out of line...
541         * include/bits/ostream.tcc: ... here.
542
543 2006-01-24  Ed Smith-Rowland  <3dw4rd@verizon.net>
544
545         * docs/html/faq/index.html ([5.2]): Mention TR1 and point to
546         paragraph [5.5], describing it.
547         ([5.5]): New.
548         * docs/html/ext/tr1.html: New.
549
550 2006-01-20  Benjamin Kosnik  <bkoz@redhat.com>
551
552         * acinclude.m4 (GLIBCXX_CHECK_LINKER_FEATURES): Verbose ld version
553         reporting.  Disable --gc-sections for old binutils, by version.
554         * configure: Regenerate.
555
556 2006-01-20  Joseph S. Myers  <joseph@codesourcery.com>
557
558         PR libstdc++/25524
559         * include/Makefile.am: Install host-specific headers in multilib
560         subdirectory.
561         * include/Makefile.in: Regenerate.
562
563 2006-01-19  Paolo Carlini  <pcarlini@suse.de>
564
565         Implement list::splice (and merge) bits of N1599
566         * include/bits/stl_list.h (list<>::_M_check_equal_allocators): New.
567         (list<>::splice(iterator, list&), splice(iterator, list&, iterator),
568         splice(iterator, list&, iterator, iterator)): Use it.
569         * include/bits/list.tcc (list<>::merge(list&), merge(list&,
570         _StrictWeakOrdering)): Likewise.
571         * testsuite/23_containers/list/operators/5.cc: New.
572
573 2006-01-19  H.J. Lu  <hongjiu.lu@intel.com>
574
575         PR libstdc++/25797
576         * acinclude.m4 (GLIBCXX_CHECK_LINKER_FEATURES): Remove -Werror
577         from CFLAGS.  Check if linker really supports --gc-sections.
578         * configure: Regenerated.
579
580 2006-01-18  Paul Brook  <paul@codesourcery.com>
581
582         * libsupc++/eh_personality.cc (PERSONALITY_FUNCTION): Use std::abort.
583
584 2006-01-18  Paolo Carlini  <pcarlini@suse.de>
585
586         * include/bits/allocator.h: Include <bits/cpp_type_traits.h>.
587
588 2006-01-18  Perry Smith  <pedz@easesoftware.net>
589
590         PR libstdc++/25823
591         PR libstdc++/25824
592         * libsupc++/eh_alloc.cc: Fix return type of memset declaration.
593         * libsupc++/eh_globals.cc: If !_GLIBCXX_HOSTED declare malloc and free.
594
595 2006-01-18  Paolo Carlini  <pcarlini@suse.de>
596
597         * include/ext/pb_assoc/detail/value_type_adapter/
598         value_type_adapter.hpp: Include <tr1/type_traits>.
599         * include/ext/pb_assoc/detail/value_type_adapter/
600         it_value_type_traits.hpp (it_value_type_traits_<>::value_type_holder):
601         Use tr1::aligned_storage and tr1::alignment_of.
602         (it_value_type_traits_<>::buf_t): Remove.
603         (it_value_type_traits_<>::make_valid, recast): Adjust.
604
605 2006-01-16  Benjamin Kosnik  <bkoz@redhat.com>
606
607         PR libstdc++/25797
608         * acinclude.m4 (GLIBCXX_CHECK_LINKER_FEATURES): Add -Werror to
609         CFLAGS for --gc-sections test.  Correct compile test.
610         * configure: Regenerated.
611         
612 2006-01-15  Paolo Carlini  <pcarlini@suse.de>
613             Gabriel Dos Reis  <gdr@integrable-solutions.net>
614
615         PR libstdc++/25626
616         * include/std/std_valarray.h (valarray(const slice_array<>&),
617         valarray(const gslice_array<>&), valarray(const mask_array<>&),
618         valarray(const indirect_array<>&), valarray(const _Expr<>&)):
619         Forward to __valarray_copy_construct, not __valarray_copy.
620         * include/bits/valarray_array.h
621         (__valarray_copy_construct(_Array<>, _Array<>, _Array<>, size_t),
622         __valarray_copy_construct(_Array<>, size_t, size_t, _Array<>)):
623         New.
624
625 2006-01-15  Paolo Carlini  <pcarlini@suse.de>
626
627         * testsuite/tr1/8_c_compatibility/complex/overloads_int.cc:
628         Fix norm test, use casts everywhere.
629
630 2006-01-14  Paolo Carlini  <pcarlini@suse.de>
631
632         * testsuite/testsuite_tr1.h: Add missing include; use std::__are_same.
633
634 2006-01-14  Paolo Carlini  <pcarlini@suse.de>
635
636         * testsuite/tr1/8_c_compatibility/complex/overloads_int.cc:
637         Fix wrong test (don't pick by mistake the (const complex<>&, int)
638         overload); add some.
639
640 2006-01-13  Paolo Carlini  <pcarlini@suse.de>
641             Howard Hinnant  <hhinnant@apple.com>
642
643         * include/tr1/complex (arg, conj, imag, norm, polar, pow, real):
644         Add, implementing TR1, 8.1.9.
645         (__promote_2): New.
646         * include/tr1/common.h: New, provides __promote, __promote_2.
647         * include/Makefile.am: Add.
648         * include/Makefile.in: Regenerate.
649         * testsuite/testsuite_tr1.h (check_ret_type): New.
650         * testsuite/tr1/8_c_compatibility/complex/overloads_int.cc: New.
651         * testsuite/tr1/8_c_compatibility/complex/overloads_float.cc: New.
652
653 2006-01-12  Benjamin Kosnik  <bkoz@redhat.com>
654
655         * acinclude.m4(GLIBCXX_CHECK_LINKER_FEATURES): Enable
656         --gc-sections in more cases.    
657         * configure: Regenerate.
658         * scripts/testsuite_flags.in: Remove SECTION_LDFLAGS.
659         * scripts/testsuite_flags.in (cxxldflags): New.
660         * testsuite/lib/libstdc++.exp (v3_target_compile): Add cxxldflags.
661         (libstdc++_init ): Same.
662                 
663 2006-01-12  Jan Beulich  <jbeulich@novell.com>
664
665         * crossconfig.m4: Add AC_DEFINE-s for HAVE_HYPOT, HAVE_ISINF, and
666         HAVE_ISNAN for *-*-netware*.
667         * configure: Refresh.
668
669 2006-01-11  Benjamin Kosnik  <bkoz@redhat.com>
670
671         * acinclude.m4(GLIBCXX_CHECK_LINKER_FEATURES): Use -Wl,-z,relro if
672         possible.  
673         * configure: Regenerate.
674
675 2006-01-10  Paolo Carlini  <pcarlini@suse.de>
676
677         * include/tr1/complex: New file, hosts the additions to header
678         <complex> described in TR1, Chapter 8 [tr.c99].
679         * include/Makefile.am: Add.
680         * include/Makefile.in: Regenerate.
681         * testsuite/tr1/8_c_compatibility/complex/functions.cc: New.
682
683 2006-01-09  Paolo Carlini  <pcarlini@suse.de>
684
685         PR libstdc++/25658
686         * testsuite/23_containers/deque/cons/assign/1.cc: Divide
687         sizes by 10.
688
689 2006-01-08  Paolo Carlini  <pcarlini@suse.de>
690
691         PR libstdc++/22102 (insert as close to hint as possible)
692         * include/bits/stl_tree.h (_Rb_tree<>::_M_insert_lower,
693         _M_insert_equal_lower): New.
694         (_M_insert_equal(iterator, const _Val&),
695         _M_insert_equal(const_iterator, const _Val&)): Use the above.
696         * docs/html/ext/howto.html: Add an entry for DR 233.
697         * testsuite/23_containers/multiset/modifiers/insert/22102.cc: New.
698         * testsuite/23_containers/multimap/modifiers/insert/22102.cc: New.
699
700         * testsuite/23_containers/set/insert/: Move...
701         * testsuite/23_containers/set/modifiers/insert/: ...here.
702         * testsuite/23_containers/map/insert/: Move...
703         * testsuite/23_containers/map/modifiers/insert/: ...here.
704         * testsuite/23_containers/multiset/insert/: Move...
705         * testsuite/23_containers/multiset/modifiers/insert/: ...here.
706
707 2006-01-06  Paolo Carlini  <pcarlini@suse.de>
708
709         * include/bits/stl_tree.h (_Rb_tree<>::insert_unique): Rename
710         to _M_insert_unique.
711         (_Rb_tree<>::insert_equal): Rename to _M_insert_equal.
712         * include/bits/stl_map.h (class map<>): Update callers.
713         * include/bits/stl_set.h (class set<>): Likewise.
714         * include/bits/stl_multimap.h (class multimap<>): Likewise.
715         * include/bits/stl_multiset.h (class multiset<>): Likewise.
716
717 2006-01-06  Paolo Carlini  <pcarlini@suse.de>
718
719         * include/bits/stl_bvector.h (vector<bool>::erase(iterator,
720         iterator)): Just use _M_erase_at_end.
721
722 2006-01-06  Paolo Carlini  <pcarlini@suse.de>
723
724         * include/bits/stl_bvector.h (class vector<bool>): Move all the
725         helpers under protected access mode, consistently with the primary
726         vector template.
727         (vector<bool>::_M_erase_at_end): Add.
728         (erase(iterator, iterator), clear, resize, _M_fill_assign,
729         _M_assign_aux): Use it.
730         * testsuite/23_containers/vector/bool/modifiers/erase/1.cc: New.
731
732 2006-01-06  Paolo Carlini  <pcarlini@suse.de>
733
734         Implement Option 3 of DR 431 for vector<bool>.
735         * include/bits/stl_bvector.h (class _Bvector_base): Change to
736         a struct, consistently with the primary vector template.
737         (class vector<bool>): Adjust to protected inheritance, tidy
738         typedefs.
739         (_Bvector_base<>::_M_get_Bit_allocator): Add.
740         (vector<bool>::vector(const vector&)): Use it.
741         (_Bvector_base<>::get_allocator): Tidy.
742         (vector<bool>::swap): Use __alloc_swap.
743         * testsuite/23_containers/vector/bool/modifiers/swap/1.cc: New.
744         * testsuite/23_containers/vector/bool/modifiers/swap/2.cc: New.
745
746 2006-01-05  Paolo Carlini  <pcarlini@suse.de>
747         
748         * testsuite/testsuite_hooks.h (test_tm(unsigned)): Change to
749         take all the tm members.
750         * testsuite/testsuite_hooks.cc (test_tm): Adjust.
751         * testsuite/22_locale/time_put/put/wchar_t/10.cc: Update.
752         * testsuite/22_locale/time_put/put/wchar_t/1.cc: Likewise.
753         * testsuite/22_locale/time_put/put/wchar_t/2.cc: Likewise.
754         * testsuite/22_locale/time_put/put/wchar_t/3.cc: Likewise.
755         * testsuite/22_locale/time_put/put/wchar_t/4.cc: Likewise.
756         * testsuite/22_locale/time_put/put/wchar_t/5.cc: Likewise.
757         * testsuite/22_locale/time_put/put/wchar_t/6.cc: Likewise.
758         * testsuite/22_locale/time_put/put/wchar_t/7.cc: Likewise.
759         * testsuite/22_locale/time_put/put/wchar_t/8.cc: Likewise.
760         * testsuite/22_locale/time_put/put/wchar_t/9.cc: Likewise.
761         * testsuite/22_locale/time_put/put/wchar_t/17038.cc: Likewise.
762         * testsuite/22_locale/time_put/put/char/10.cc: Likewise.
763         * testsuite/22_locale/time_put/put/char/1.cc: Likewise.
764         * testsuite/22_locale/time_put/put/char/2.cc: Likewise.
765         * testsuite/22_locale/time_put/put/char/3.cc: Likewise.
766         * testsuite/22_locale/time_put/put/char/4.cc: Likewise.
767         * testsuite/22_locale/time_put/put/char/5.cc: Likewise.
768         * testsuite/22_locale/time_put/put/char/6.cc: Likewise.
769         * testsuite/22_locale/time_put/put/char/7.cc: Likewise.
770         * testsuite/22_locale/time_put/put/char/8.cc: Likewise.
771         * testsuite/22_locale/time_put/put/char/9.cc: Likewise.
772         * testsuite/22_locale/time_put/put/char/17038.cc: Likewise.
773         * testsuite/22_locale/time_get/get_year/wchar_t/1.cc: Likewise.
774         * testsuite/22_locale/time_get/get_year/wchar_t/3.cc: Likewise.
775         * testsuite/22_locale/time_get/get_year/char/1.cc: Likewise.
776         * testsuite/22_locale/time_get/get_year/char/3.cc: Likewise.
777         * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Likewise.
778         * testsuite/22_locale/time_get/get_monthname/wchar_t/2.cc: Likewise.
779         * testsuite/22_locale/time_get/get_monthname/char/1.cc: Likewise.
780         * testsuite/22_locale/time_get/get_monthname/char/2.cc: Likewise.
781         * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Likewise.
782         * testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc: Likewise.
783         * testsuite/22_locale/time_get/get_weekday/wchar_t/3.cc: Likewise.
784         * testsuite/22_locale/time_get/get_weekday/char/1.cc: Likewise.
785         * testsuite/22_locale/time_get/get_weekday/char/2.cc: Likewise.
786         * testsuite/22_locale/time_get/get_weekday/char/3.cc: Likewise.
787         * testsuite/22_locale/time_get/get_date/wchar_t/12750.cc: Likewise.
788         * testsuite/22_locale/time_get/get_date/wchar_t/12750.cc: Likewise.
789         * testsuite/22_locale/time_get/get_date/wchar_t/1.cc: Likewise.
790         * testsuite/22_locale/time_get/get_date/wchar_t/2.cc: Likewise.
791         * testsuite/22_locale/time_get/get_date/wchar_t/3.cc: Likewise.
792         * testsuite/22_locale/time_get/get_date/char/12750.cc: Likewise.
793         * testsuite/22_locale/time_get/get_date/char/12750.cc: Likewise.
794         * testsuite/22_locale/time_get/get_date/char/1.cc: Likewise.
795         * testsuite/22_locale/time_get/get_date/char/2.cc: Likewise.
796         * testsuite/22_locale/time_get/get_date/char/3.cc: Likewise.
797         * testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Likewise.
798         * testsuite/22_locale/time_get/get_time/wchar_t/2.cc: Likewise.
799         * testsuite/22_locale/time_get/get_time/wchar_t/3.cc: Likewise.
800         * testsuite/22_locale/time_get/get_time/wchar_t/4.cc: Likewise.
801         * testsuite/22_locale/time_get/get_time/char/1.cc: Likewise.
802         * testsuite/22_locale/time_get/get_time/char/2.cc: Likewise.
803         * testsuite/22_locale/time_get/get_time/char/3.cc: Likewise.
804         * testsuite/22_locale/time_get/get_time/char/4.cc: Likewise.
805
806 2006-01-05  Paolo Carlini  <pcarlini@suse.de>
807         
808         * testsuite/testsuite_hooks.h (test_tm(unsigned)): New.
809         * testsuite/testsuite_hooks.cc (test_tm(unsigned)): Define.
810         * testsuite/22_locale/time_put/put/wchar_t/10.cc: Use it.
811         * testsuite/22_locale/time_put/put/wchar_t/1.cc: Likewise.
812         * testsuite/22_locale/time_put/put/wchar_t/2.cc: Likewise.
813         * testsuite/22_locale/time_put/put/wchar_t/3.cc: Likewise.
814         * testsuite/22_locale/time_put/put/wchar_t/4.cc: Likewise.
815         * testsuite/22_locale/time_put/put/wchar_t/5.cc: Likewise.
816         * testsuite/22_locale/time_put/put/wchar_t/6.cc: Likewise.
817         * testsuite/22_locale/time_put/put/wchar_t/7.cc: Likewise.
818         * testsuite/22_locale/time_put/put/wchar_t/8.cc: Likewise.
819         * testsuite/22_locale/time_put/put/wchar_t/9.cc: Likewise.
820         * testsuite/22_locale/time_put/put/wchar_t/17038.cc: Likewise.
821         * testsuite/22_locale/time_put/put/char/10.cc: Likewise.
822         * testsuite/22_locale/time_put/put/char/1.cc: Likewise.
823         * testsuite/22_locale/time_put/put/char/2.cc: Likewise.
824         * testsuite/22_locale/time_put/put/char/3.cc: Likewise.
825         * testsuite/22_locale/time_put/put/char/4.cc: Likewise.
826         * testsuite/22_locale/time_put/put/char/5.cc: Likewise.
827         * testsuite/22_locale/time_put/put/char/6.cc: Likewise.
828         * testsuite/22_locale/time_put/put/char/7.cc: Likewise.
829         * testsuite/22_locale/time_put/put/char/8.cc: Likewise.
830         * testsuite/22_locale/time_put/put/char/9.cc: Likewise.
831         * testsuite/22_locale/time_put/put/char/17038.cc: Likewise.
832         * testsuite/22_locale/time_get/get_year/wchar_t/1.cc: Likewise.
833         * testsuite/22_locale/time_get/get_year/wchar_t/3.cc: Likewise.
834         * testsuite/22_locale/time_get/get_year/char/1.cc: Likewise.
835         * testsuite/22_locale/time_get/get_year/char/3.cc: Likewise.
836         * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Likewise.
837         * testsuite/22_locale/time_get/get_monthname/wchar_t/2.cc: Likewise.
838         * testsuite/22_locale/time_get/get_monthname/char/1.cc: Likewise.
839         * testsuite/22_locale/time_get/get_monthname/char/2.cc: Likewise.
840         * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Likewise.
841         * testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc: Likewise.
842         * testsuite/22_locale/time_get/get_weekday/wchar_t/3.cc: Likewise.
843         * testsuite/22_locale/time_get/get_weekday/char/1.cc: Likewise.
844         * testsuite/22_locale/time_get/get_weekday/char/2.cc: Likewise.
845         * testsuite/22_locale/time_get/get_weekday/char/3.cc: Likewise.
846         * testsuite/22_locale/time_get/get_date/wchar_t/12750.cc: Likewise.
847         * testsuite/22_locale/time_get/get_date/wchar_t/12750.cc: Likewise.
848         * testsuite/22_locale/time_get/get_date/wchar_t/1.cc: Likewise.
849         * testsuite/22_locale/time_get/get_date/wchar_t/2.cc: Likewise.
850         * testsuite/22_locale/time_get/get_date/wchar_t/3.cc: Likewise.
851         * testsuite/22_locale/time_get/get_date/char/12750.cc: Likewise.
852         * testsuite/22_locale/time_get/get_date/char/12750.cc: Likewise.
853         * testsuite/22_locale/time_get/get_date/char/1.cc: Likewise.
854         * testsuite/22_locale/time_get/get_date/char/2.cc: Likewise.
855         * testsuite/22_locale/time_get/get_date/char/3.cc: Likewise.
856         * testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Likewise.
857         * testsuite/22_locale/time_get/get_time/wchar_t/2.cc: Likewise.
858         * testsuite/22_locale/time_get/get_time/wchar_t/3.cc: Likewise.
859         * testsuite/22_locale/time_get/get_time/wchar_t/4.cc: Likewise.
860         * testsuite/22_locale/time_get/get_time/char/1.cc: Likewise.
861         * testsuite/22_locale/time_get/get_time/char/2.cc: Likewise.
862         * testsuite/22_locale/time_get/get_time/char/3.cc: Likewise.
863         * testsuite/22_locale/time_get/get_time/char/4.cc: Likewise.
864
865 2006-01-04  Paolo Carlini  <pcarlini@suse.de>
866
867         * include/ext/sso_string_base.h (__sso_string_base<>::_M_dataplus):
868         Use _CharT_alloc_type as base class.
869         (_M_get_allocator, _M_swap, _M_create, _M_destroy): Adjust.
870         * include/ext/vstring.h (get_allocator): Tidy.
871
872 2006-01-04  Paolo Carlini  <pcarlini@suse.de>
873
874         Implement Option 3 of DR 431 for all the containers.
875         * include/bits/allocator.h (struct __alloc_swap): Add, swaps
876         allocators, optimized to nothing in case they are empty.
877         * include/bits/stl_deque.h (deque<>::swap): Use it.
878         * include/bits/stl_list.h (list<>::swap): Likewise.
879         * include/bits/stl_tree.h (_Rb_tree<>::swap): Likewise.
880         * include/bits/stl_vector.h (vector<>::swap): Likewise.
881         * include/tr1/hashtable (hashtable<>::swap): Likewise.
882         * include/ext/rc_string_base.h (__rc_string_base<>::_M_swap):
883         Likewise.
884         * include/ext/sso_string_base.h (__sso_string_base<>::_M_swap):
885         Likewise.
886         * include/ext/vstring_util.h (__vstring_utility<>::_Alloc_hider):
887         Clean-up (now vstring uses the generic __alloc_swap facility).
888         * include/tr1/unordered_map: Adjust includes.
889         * include/tr1/unordered_set: Likewise.
890         * docs/html/ext/howto.html: Add an entry for DR 431.
891         * testsuite/23_containers/deque/modifiers/swap.cc: Move to...
892         * testsuite/23_containers/deque/modifiers/swap/1.cc: ... here.          
893         * testsuite/23_containers/deque/modifiers/swap/2.cc: New.
894         * testsuite/23_containers/deque/modifiers/swap/3.cc: New.
895         * testsuite/23_containers/list/modifiers/swap.cc: Move to...
896         * testsuite/23_containers/list/modifiers/swap/1.cc: ... here.           
897         * testsuite/23_containers/list/modifiers/swap/2.cc: New.
898         * testsuite/23_containers/list/modifiers/swap/3.cc: New.
899         * testsuite/23_containers/vector/modifiers/swap.cc: Move to...
900         * testsuite/23_containers/vector/modifiers/swap/1.cc: ... here.         
901         * testsuite/23_containers/vector/modifiers/swap/2.cc: New.
902         * testsuite/23_containers/vector/modifiers/swap/3.cc: New.
903         * testsuite/23_containers/set/modifiers/swap.cc: Move to...
904         * testsuite/23_containers/set/modifiers/swap/1.cc: ... here.            
905         * testsuite/23_containers/set/modifiers/swap/2.cc: New.
906         * testsuite/23_containers/set/modifiers/swap/3.cc: New.
907         * testsuite/23_containers/map/modifiers/swap.cc: Move to...
908         * testsuite/23_containers/map/modifiers/swap/1.cc: ... here.            
909         * testsuite/23_containers/map/modifiers/swap/2.cc: New.
910         * testsuite/23_containers/map/modifiers/swap/3.cc: New.
911         * testsuite/23_containers/multiset/modifiers/swap.cc: Move to...
912         * testsuite/23_containers/multiset/modifiers/swap/1.cc: ... here.               
913         * testsuite/23_containers/multiset/modifiers/swap/2.cc: New.
914         * testsuite/23_containers/multiset/modifiers/swap/3.cc: New.
915         * testsuite/23_containers/multimap/modifiers/swap.cc: Move to...
916         * testsuite/23_containers/multimap/modifiers/swap/1.cc: ... here.               
917         * testsuite/23_containers/multimap/modifiers/swap/2.cc: New.
918         * testsuite/23_containers/multimap/modifiers/swap/3.cc: New.
919         * testsuite/tr1/6_containers/unordered/swap/unordered_set/1.cc: New.    
920         * testsuite/tr1/6_containers/unordered/swap/unordered_set/2.cc: New.
921         * testsuite/tr1/6_containers/unordered/swap/unordered_map/1.cc: New.    
922         * testsuite/tr1/6_containers/unordered/swap/unordered_map/2.cc: New.
923         * testsuite/tr1/6_containers/unordered/swap/unordered_multiset/1.cc: New.       
924         * testsuite/tr1/6_containers/unordered/swap/unordered_multiset/2.cc: New.
925         * testsuite/tr1/6_containers/unordered/swap/unordered_multimap/1.cc: New.       
926         * testsuite/tr1/6_containers/unordered/swap/unordered_multimap/2.cc: New.
927
928 2006-01-03  Paolo Carlini  <pcarlini@suse.de>
929
930         * include/bits/stl_list.h (_List_base<>::_M_get_Node_allocator): Add.
931         (_M_get_Tp_allocator, get_allocator): Tidy.
932         (list<>::list(const list&), insert(iterator, size_type, const
933         value_type&), insert(iterator, _InputIterator, _InputIterator)):
934         Use _M_get_Node_allocator.
935         * include/bits/stl_tree.h (_Rb_tree<>::_M_get_Node_allocator()): Add.
936         (_Rb_tree(const _Rb_tree<>&): Use it.
937         * include/bits/stl_deque.h (_Deque_base<>::_M_get_map_allocator,
938         get_allocator): Tidy.
939         * include/bits/stl_vector.h (_Vector_base<>::get_allocator): Tidy.
940         * testsuite/23_containers/map/operators/1_neg.cc: Adjust dg-error
941         line numbers.
942         * testsuite/23_containers/set/operators/1_neg.cc: Likewise.
943         
944         * testsuite/testsuite_allocator.h (uneq_allocator<>::swap): Fix.
945
946         * testsuite/testsuite_allocator.h (class uneq_allocator): A simple
947         non-empty testing allocator which can be endowed of a "personality"
948         at construction time.
949
950 2006-01-03  Paolo Carlini  <pcarlini@suse.de>
951
952         * testsuite/27_io/basic_stringstream/str/char/1.cc: Initialize vars.
953         * testsuite/27_io/basic_stringstream/str/wchar_t/1.cc: Likewise.
954         * testsuite/27_io/basic_istringstream/str/char/1.cc: Likewise, tidy.
955         * testsuite/27_io/basic_istringstream/str/wchar_t/1.cc: Likewise.
956
957 2006-01-02  Mark Mitchell  <mark@codesourcery.com>
958
959         * src/Makefile.am (LTLDFLAGS): New variable. 
960         (CXXLINK): Use LTLDFLAGS.
961         * src/Makefile.in: Regenerated.
962         * libsupc++/Makefile.am (LTLDFLAGS): New variable. 
963         (CXXLINK): Use LTLDFLAGS.
964         * libsupc++/Makefile.in: Regenerated.
965
966 2006-01-02  Paolo Carlini  <pcarlini@suse.de>
967
968         PR libstdc++/24645
969         * include/std/std_istream.h (basic_istream<>::_M_extract): New.
970         (operator>>(bool&), operator>>(short&), operator>>(unsigned short&),
971         operator>>(int&), operator>>(unsigned int&), operator>>(long&),
972         operator>>(unsigned long&), operator>>(long long&), operator>>
973         (unsigned long long&), operator>>(float&), operator>>(double&),
974         operator>>(long double&), operator>>(void*&)): Use it.
975         * include/bits/istream.tcc (basic_istream<>::_M_extract): Define.
976         * include/std/std_ostream.h (basic_ostream<>::_M_insert): New.
977         (operator<<(long), operator<<(unsigned long), operator<<(bool),
978         operator<<(short), operator<<(unsigned short), operator<<(int),
979         operator<<(unsigned int), operator<<(long long), operator<<
980         (unsigned long long), operator<<(double), operator<<(float),
981         operator<<(long double), operator<<(const void*): Use it.
982         * include/bits/ostream.tcc (basic_ostream<>::_M_insert): Define.
983         * src/istream-inst.cc: Add _M_extract instantiations.
984         * src/ostream-inst.cc: Add _M_insert instantiations.
985         * config/abi/pre/gnu.ver: Export the new symbols @GLIBCXX_3.4.7;
986         detail existing @GLIBCXX_3.4 exports of basic_ostream, num_put,
987         money_put, etc., symbols to avoid exporting _M_insert symbols
988         @GLIBCXX_3.4.