* tree.c (tree_not_class_check_failed): New function.
[official-gcc.git] / libstdc++-v3 / ChangeLog
blobca1b988e423003859a8658b0275fc9ae99fbd283
1 2006-01-13  Paolo Carlini  <pcarlini@suse.de>
2             Howard Hinnant  <hhinnant@apple.com>
4         * include/tr1/complex (arg, conj, imag, norm, polar, pow, real):
5         Add, implementing TR1, 8.1.9.
6         (__promote_2): New.
7         * include/tr1/common.h: New, provides __promote, __promote_2.
8         * include/Makefile.am: Add.
9         * include/Makefile.in: Regenerate.
10         * testsuite/testsuite_tr1.h (check_ret_type): New.
11         * testsuite/tr1/8_c_compatibility/complex/overloads_int.cc: New.
12         * testsuite/tr1/8_c_compatibility/complex/overloads_float.cc: New.
14 2006-01-12  Benjamin Kosnik  <bkoz@redhat.com>
16         * acinclude.m4(GLIBCXX_CHECK_LINKER_FEATURES): Enable
17         --gc-sections in more cases.    
18         * configure: Regenerate.
19         * scripts/testsuite_flags.in: Remove SECTION_LDFLAGS.
20         * scripts/testsuite_flags.in (cxxldflags): New.
21         * testsuite/lib/libstdc++.exp (v3_target_compile): Add cxxldflags.
22         (libstdc++_init ): Same.
23                 
24 2006-01-12  Jan Beulich  <jbeulich@novell.com>
26         * crossconfig.m4: Add AC_DEFINE-s for HAVE_HYPOT, HAVE_ISINF, and
27         HAVE_ISNAN for *-*-netware*.
28         * configure: Refresh.
30 2006-01-11  Benjamin Kosnik  <bkoz@redhat.com>
32         * acinclude.m4(GLIBCXX_CHECK_LINKER_FEATURES): Use -Wl,-z,relro if
33         possible.  
34         * configure: Regenerate.
36 2006-01-10  Paolo Carlini  <pcarlini@suse.de>
38         * include/tr1/complex: New file, hosts the additions to header
39         <complex> described in TR1, Chapter 8 [tr.c99].
40         * include/Makefile.am: Add.
41         * include/Makefile.in: Regenerate.
42         * testsuite/tr1/8_c_compatibility/complex/functions.cc: New.
44 2006-01-09  Paolo Carlini  <pcarlini@suse.de>
46         PR libstdc++/25658
47         * testsuite/23_containers/deque/cons/assign/1.cc: Divide
48         sizes by 10.
50 2006-01-08  Paolo Carlini  <pcarlini@suse.de>
52         PR libstdc++/22102 (insert as close to hint as possible)
53         * include/bits/stl_tree.h (_Rb_tree<>::_M_insert_lower,
54         _M_insert_equal_lower): New.
55         (_M_insert_equal(iterator, const _Val&),
56         _M_insert_equal(const_iterator, const _Val&)): Use the above.
57         * docs/html/ext/howto.html: Add an entry for DR 233.
58         * testsuite/23_containers/multiset/modifiers/insert/22102.cc: New.
59         * testsuite/23_containers/multimap/modifiers/insert/22102.cc: New.
61         * testsuite/23_containers/set/insert/: Move...
62         * testsuite/23_containers/set/modifiers/insert/: ...here.
63         * testsuite/23_containers/map/insert/: Move...
64         * testsuite/23_containers/map/modifiers/insert/: ...here.
65         * testsuite/23_containers/multiset/insert/: Move...
66         * testsuite/23_containers/multiset/modifiers/insert/: ...here.
68 2006-01-06  Paolo Carlini  <pcarlini@suse.de>
70         * include/bits/stl_tree.h (_Rb_tree<>::insert_unique): Rename
71         to _M_insert_unique.
72         (_Rb_tree<>::insert_equal): Rename to _M_insert_equal.
73         * include/bits/stl_map.h (class map<>): Update callers.
74         * include/bits/stl_set.h (class set<>): Likewise.
75         * include/bits/stl_multimap.h (class multimap<>): Likewise.
76         * include/bits/stl_multiset.h (class multiset<>): Likewise.
78 2006-01-06  Paolo Carlini  <pcarlini@suse.de>
80         * include/bits/stl_bvector.h (vector<bool>::erase(iterator,
81         iterator)): Just use _M_erase_at_end.
83 2006-01-06  Paolo Carlini  <pcarlini@suse.de>
85         * include/bits/stl_bvector.h (class vector<bool>): Move all the
86         helpers under protected access mode, consistently with the primary
87         vector template.
88         (vector<bool>::_M_erase_at_end): Add.
89         (erase(iterator, iterator), clear, resize, _M_fill_assign,
90         _M_assign_aux): Use it.
91         * testsuite/23_containers/vector/bool/modifiers/erase/1.cc: New.
93 2006-01-06  Paolo Carlini  <pcarlini@suse.de>
95         Implement Option 3 of DR 431 for vector<bool>.
96         * include/bits/stl_bvector.h (class _Bvector_base): Change to
97         a struct, consistently with the primary vector template.
98         (class vector<bool>): Adjust to protected inheritance, tidy
99         typedefs.
100         (_Bvector_base<>::_M_get_Bit_allocator): Add.
101         (vector<bool>::vector(const vector&)): Use it.
102         (_Bvector_base<>::get_allocator): Tidy.
103         (vector<bool>::swap): Use __alloc_swap.
104         * testsuite/23_containers/vector/bool/modifiers/swap/1.cc: New.
105         * testsuite/23_containers/vector/bool/modifiers/swap/2.cc: New.
107 2006-01-05  Paolo Carlini  <pcarlini@suse.de>
108         
109         * testsuite/testsuite_hooks.h (test_tm(unsigned)): Change to
110         take all the tm members.
111         * testsuite/testsuite_hooks.cc (test_tm): Adjust.
112         * testsuite/22_locale/time_put/put/wchar_t/10.cc: Update.
113         * testsuite/22_locale/time_put/put/wchar_t/1.cc: Likewise.
114         * testsuite/22_locale/time_put/put/wchar_t/2.cc: Likewise.
115         * testsuite/22_locale/time_put/put/wchar_t/3.cc: Likewise.
116         * testsuite/22_locale/time_put/put/wchar_t/4.cc: Likewise.
117         * testsuite/22_locale/time_put/put/wchar_t/5.cc: Likewise.
118         * testsuite/22_locale/time_put/put/wchar_t/6.cc: Likewise.
119         * testsuite/22_locale/time_put/put/wchar_t/7.cc: Likewise.
120         * testsuite/22_locale/time_put/put/wchar_t/8.cc: Likewise.
121         * testsuite/22_locale/time_put/put/wchar_t/9.cc: Likewise.
122         * testsuite/22_locale/time_put/put/wchar_t/17038.cc: Likewise.
123         * testsuite/22_locale/time_put/put/char/10.cc: Likewise.
124         * testsuite/22_locale/time_put/put/char/1.cc: Likewise.
125         * testsuite/22_locale/time_put/put/char/2.cc: Likewise.
126         * testsuite/22_locale/time_put/put/char/3.cc: Likewise.
127         * testsuite/22_locale/time_put/put/char/4.cc: Likewise.
128         * testsuite/22_locale/time_put/put/char/5.cc: Likewise.
129         * testsuite/22_locale/time_put/put/char/6.cc: Likewise.
130         * testsuite/22_locale/time_put/put/char/7.cc: Likewise.
131         * testsuite/22_locale/time_put/put/char/8.cc: Likewise.
132         * testsuite/22_locale/time_put/put/char/9.cc: Likewise.
133         * testsuite/22_locale/time_put/put/char/17038.cc: Likewise.
134         * testsuite/22_locale/time_get/get_year/wchar_t/1.cc: Likewise.
135         * testsuite/22_locale/time_get/get_year/wchar_t/3.cc: Likewise.
136         * testsuite/22_locale/time_get/get_year/char/1.cc: Likewise.
137         * testsuite/22_locale/time_get/get_year/char/3.cc: Likewise.
138         * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Likewise.
139         * testsuite/22_locale/time_get/get_monthname/wchar_t/2.cc: Likewise.
140         * testsuite/22_locale/time_get/get_monthname/char/1.cc: Likewise.
141         * testsuite/22_locale/time_get/get_monthname/char/2.cc: Likewise.
142         * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Likewise.
143         * testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc: Likewise.
144         * testsuite/22_locale/time_get/get_weekday/wchar_t/3.cc: Likewise.
145         * testsuite/22_locale/time_get/get_weekday/char/1.cc: Likewise.
146         * testsuite/22_locale/time_get/get_weekday/char/2.cc: Likewise.
147         * testsuite/22_locale/time_get/get_weekday/char/3.cc: Likewise.
148         * testsuite/22_locale/time_get/get_date/wchar_t/12750.cc: Likewise.
149         * testsuite/22_locale/time_get/get_date/wchar_t/12750.cc: Likewise.
150         * testsuite/22_locale/time_get/get_date/wchar_t/1.cc: Likewise.
151         * testsuite/22_locale/time_get/get_date/wchar_t/2.cc: Likewise.
152         * testsuite/22_locale/time_get/get_date/wchar_t/3.cc: Likewise.
153         * testsuite/22_locale/time_get/get_date/char/12750.cc: Likewise.
154         * testsuite/22_locale/time_get/get_date/char/12750.cc: Likewise.
155         * testsuite/22_locale/time_get/get_date/char/1.cc: Likewise.
156         * testsuite/22_locale/time_get/get_date/char/2.cc: Likewise.
157         * testsuite/22_locale/time_get/get_date/char/3.cc: Likewise.
158         * testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Likewise.
159         * testsuite/22_locale/time_get/get_time/wchar_t/2.cc: Likewise.
160         * testsuite/22_locale/time_get/get_time/wchar_t/3.cc: Likewise.
161         * testsuite/22_locale/time_get/get_time/wchar_t/4.cc: Likewise.
162         * testsuite/22_locale/time_get/get_time/char/1.cc: Likewise.
163         * testsuite/22_locale/time_get/get_time/char/2.cc: Likewise.
164         * testsuite/22_locale/time_get/get_time/char/3.cc: Likewise.
165         * testsuite/22_locale/time_get/get_time/char/4.cc: Likewise.
167 2006-01-05  Paolo Carlini  <pcarlini@suse.de>
168         
169         * testsuite/testsuite_hooks.h (test_tm(unsigned)): New.
170         * testsuite/testsuite_hooks.cc (test_tm(unsigned)): Define.
171         * testsuite/22_locale/time_put/put/wchar_t/10.cc: Use it.
172         * testsuite/22_locale/time_put/put/wchar_t/1.cc: Likewise.
173         * testsuite/22_locale/time_put/put/wchar_t/2.cc: Likewise.
174         * testsuite/22_locale/time_put/put/wchar_t/3.cc: Likewise.
175         * testsuite/22_locale/time_put/put/wchar_t/4.cc: Likewise.
176         * testsuite/22_locale/time_put/put/wchar_t/5.cc: Likewise.
177         * testsuite/22_locale/time_put/put/wchar_t/6.cc: Likewise.
178         * testsuite/22_locale/time_put/put/wchar_t/7.cc: Likewise.
179         * testsuite/22_locale/time_put/put/wchar_t/8.cc: Likewise.
180         * testsuite/22_locale/time_put/put/wchar_t/9.cc: Likewise.
181         * testsuite/22_locale/time_put/put/wchar_t/17038.cc: Likewise.
182         * testsuite/22_locale/time_put/put/char/10.cc: Likewise.
183         * testsuite/22_locale/time_put/put/char/1.cc: Likewise.
184         * testsuite/22_locale/time_put/put/char/2.cc: Likewise.
185         * testsuite/22_locale/time_put/put/char/3.cc: Likewise.
186         * testsuite/22_locale/time_put/put/char/4.cc: Likewise.
187         * testsuite/22_locale/time_put/put/char/5.cc: Likewise.
188         * testsuite/22_locale/time_put/put/char/6.cc: Likewise.
189         * testsuite/22_locale/time_put/put/char/7.cc: Likewise.
190         * testsuite/22_locale/time_put/put/char/8.cc: Likewise.
191         * testsuite/22_locale/time_put/put/char/9.cc: Likewise.
192         * testsuite/22_locale/time_put/put/char/17038.cc: Likewise.
193         * testsuite/22_locale/time_get/get_year/wchar_t/1.cc: Likewise.
194         * testsuite/22_locale/time_get/get_year/wchar_t/3.cc: Likewise.
195         * testsuite/22_locale/time_get/get_year/char/1.cc: Likewise.
196         * testsuite/22_locale/time_get/get_year/char/3.cc: Likewise.
197         * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Likewise.
198         * testsuite/22_locale/time_get/get_monthname/wchar_t/2.cc: Likewise.
199         * testsuite/22_locale/time_get/get_monthname/char/1.cc: Likewise.
200         * testsuite/22_locale/time_get/get_monthname/char/2.cc: Likewise.
201         * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Likewise.
202         * testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc: Likewise.
203         * testsuite/22_locale/time_get/get_weekday/wchar_t/3.cc: Likewise.
204         * testsuite/22_locale/time_get/get_weekday/char/1.cc: Likewise.
205         * testsuite/22_locale/time_get/get_weekday/char/2.cc: Likewise.
206         * testsuite/22_locale/time_get/get_weekday/char/3.cc: Likewise.
207         * testsuite/22_locale/time_get/get_date/wchar_t/12750.cc: Likewise.
208         * testsuite/22_locale/time_get/get_date/wchar_t/12750.cc: Likewise.
209         * testsuite/22_locale/time_get/get_date/wchar_t/1.cc: Likewise.
210         * testsuite/22_locale/time_get/get_date/wchar_t/2.cc: Likewise.
211         * testsuite/22_locale/time_get/get_date/wchar_t/3.cc: Likewise.
212         * testsuite/22_locale/time_get/get_date/char/12750.cc: Likewise.
213         * testsuite/22_locale/time_get/get_date/char/12750.cc: Likewise.
214         * testsuite/22_locale/time_get/get_date/char/1.cc: Likewise.
215         * testsuite/22_locale/time_get/get_date/char/2.cc: Likewise.
216         * testsuite/22_locale/time_get/get_date/char/3.cc: Likewise.
217         * testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Likewise.
218         * testsuite/22_locale/time_get/get_time/wchar_t/2.cc: Likewise.
219         * testsuite/22_locale/time_get/get_time/wchar_t/3.cc: Likewise.
220         * testsuite/22_locale/time_get/get_time/wchar_t/4.cc: Likewise.
221         * testsuite/22_locale/time_get/get_time/char/1.cc: Likewise.
222         * testsuite/22_locale/time_get/get_time/char/2.cc: Likewise.
223         * testsuite/22_locale/time_get/get_time/char/3.cc: Likewise.
224         * testsuite/22_locale/time_get/get_time/char/4.cc: Likewise.
226 2006-01-04  Paolo Carlini  <pcarlini@suse.de>
228         * include/ext/sso_string_base.h (__sso_string_base<>::_M_dataplus):
229         Use _CharT_alloc_type as base class.
230         (_M_get_allocator, _M_swap, _M_create, _M_destroy): Adjust.
231         * include/ext/vstring.h (get_allocator): Tidy.
233 2006-01-04  Paolo Carlini  <pcarlini@suse.de>
235         Implement Option 3 of DR 431 for all the containers.
236         * include/bits/allocator.h (struct __alloc_swap): Add, swaps
237         allocators, optimized to nothing in case they are empty.
238         * include/bits/stl_deque.h (deque<>::swap): Use it.
239         * include/bits/stl_list.h (list<>::swap): Likewise.
240         * include/bits/stl_tree.h (_Rb_tree<>::swap): Likewise.
241         * include/bits/stl_vector.h (vector<>::swap): Likewise.
242         * include/tr1/hashtable (hashtable<>::swap): Likewise.
243         * include/ext/rc_string_base.h (__rc_string_base<>::_M_swap):
244         Likewise.
245         * include/ext/sso_string_base.h (__sso_string_base<>::_M_swap):
246         Likewise.
247         * include/ext/vstring_util.h (__vstring_utility<>::_Alloc_hider):
248         Clean-up (now vstring uses the generic __alloc_swap facility).
249         * include/tr1/unordered_map: Adjust includes.
250         * include/tr1/unordered_set: Likewise.
251         * docs/html/ext/howto.html: Add an entry for DR 431.
252         * testsuite/23_containers/deque/modifiers/swap.cc: Move to...
253         * testsuite/23_containers/deque/modifiers/swap/1.cc: ... here.          
254         * testsuite/23_containers/deque/modifiers/swap/2.cc: New.
255         * testsuite/23_containers/deque/modifiers/swap/3.cc: New.
256         * testsuite/23_containers/list/modifiers/swap.cc: Move to...
257         * testsuite/23_containers/list/modifiers/swap/1.cc: ... here.           
258         * testsuite/23_containers/list/modifiers/swap/2.cc: New.
259         * testsuite/23_containers/list/modifiers/swap/3.cc: New.
260         * testsuite/23_containers/vector/modifiers/swap.cc: Move to...
261         * testsuite/23_containers/vector/modifiers/swap/1.cc: ... here.         
262         * testsuite/23_containers/vector/modifiers/swap/2.cc: New.
263         * testsuite/23_containers/vector/modifiers/swap/3.cc: New.
264         * testsuite/23_containers/set/modifiers/swap.cc: Move to...
265         * testsuite/23_containers/set/modifiers/swap/1.cc: ... here.            
266         * testsuite/23_containers/set/modifiers/swap/2.cc: New.
267         * testsuite/23_containers/set/modifiers/swap/3.cc: New.
268         * testsuite/23_containers/map/modifiers/swap.cc: Move to...
269         * testsuite/23_containers/map/modifiers/swap/1.cc: ... here.            
270         * testsuite/23_containers/map/modifiers/swap/2.cc: New.
271         * testsuite/23_containers/map/modifiers/swap/3.cc: New.
272         * testsuite/23_containers/multiset/modifiers/swap.cc: Move to...
273         * testsuite/23_containers/multiset/modifiers/swap/1.cc: ... here.               
274         * testsuite/23_containers/multiset/modifiers/swap/2.cc: New.
275         * testsuite/23_containers/multiset/modifiers/swap/3.cc: New.
276         * testsuite/23_containers/multimap/modifiers/swap.cc: Move to...
277         * testsuite/23_containers/multimap/modifiers/swap/1.cc: ... here.               
278         * testsuite/23_containers/multimap/modifiers/swap/2.cc: New.
279         * testsuite/23_containers/multimap/modifiers/swap/3.cc: New.
280         * testsuite/tr1/6_containers/unordered/swap/unordered_set/1.cc: New.    
281         * testsuite/tr1/6_containers/unordered/swap/unordered_set/2.cc: New.
282         * testsuite/tr1/6_containers/unordered/swap/unordered_map/1.cc: New.    
283         * testsuite/tr1/6_containers/unordered/swap/unordered_map/2.cc: New.
284         * testsuite/tr1/6_containers/unordered/swap/unordered_multiset/1.cc: New.       
285         * testsuite/tr1/6_containers/unordered/swap/unordered_multiset/2.cc: New.
286         * testsuite/tr1/6_containers/unordered/swap/unordered_multimap/1.cc: New.       
287         * testsuite/tr1/6_containers/unordered/swap/unordered_multimap/2.cc: New.
289 2006-01-03  Paolo Carlini  <pcarlini@suse.de>
291         * include/bits/stl_list.h (_List_base<>::_M_get_Node_allocator): Add.
292         (_M_get_Tp_allocator, get_allocator): Tidy.
293         (list<>::list(const list&), insert(iterator, size_type, const
294         value_type&), insert(iterator, _InputIterator, _InputIterator)):
295         Use _M_get_Node_allocator.
296         * include/bits/stl_tree.h (_Rb_tree<>::_M_get_Node_allocator()): Add.
297         (_Rb_tree(const _Rb_tree<>&): Use it.
298         * include/bits/stl_deque.h (_Deque_base<>::_M_get_map_allocator,
299         get_allocator): Tidy.
300         * include/bits/stl_vector.h (_Vector_base<>::get_allocator): Tidy.
301         * testsuite/23_containers/map/operators/1_neg.cc: Adjust dg-error
302         line numbers.
303         * testsuite/23_containers/set/operators/1_neg.cc: Likewise.
304         
305         * testsuite/testsuite_allocator.h (uneq_allocator<>::swap): Fix.
307         * testsuite/testsuite_allocator.h (class uneq_allocator): A simple
308         non-empty testing allocator which can be endowed of a "personality"
309         at construction time.
311 2006-01-03  Paolo Carlini  <pcarlini@suse.de>
313         * testsuite/27_io/basic_stringstream/str/char/1.cc: Initialize vars.
314         * testsuite/27_io/basic_stringstream/str/wchar_t/1.cc: Likewise.
315         * testsuite/27_io/basic_istringstream/str/char/1.cc: Likewise, tidy.
316         * testsuite/27_io/basic_istringstream/str/wchar_t/1.cc: Likewise.
318 2006-01-02  Mark Mitchell  <mark@codesourcery.com>
320         * src/Makefile.am (LTLDFLAGS): New variable. 
321         (CXXLINK): Use LTLDFLAGS.
322         * src/Makefile.in: Regenerated.
323         * libsupc++/Makefile.am (LTLDFLAGS): New variable. 
324         (CXXLINK): Use LTLDFLAGS.
325         * libsupc++/Makefile.in: Regenerated.
327 2006-01-02  Paolo Carlini  <pcarlini@suse.de>
329         PR libstdc++/24645
330         * include/std/std_istream.h (basic_istream<>::_M_extract): New.
331         (operator>>(bool&), operator>>(short&), operator>>(unsigned short&),
332         operator>>(int&), operator>>(unsigned int&), operator>>(long&),
333         operator>>(unsigned long&), operator>>(long long&), operator>>
334         (unsigned long long&), operator>>(float&), operator>>(double&),
335         operator>>(long double&), operator>>(void*&)): Use it.
336         * include/bits/istream.tcc (basic_istream<>::_M_extract): Define.
337         * include/std/std_ostream.h (basic_ostream<>::_M_insert): New.
338         (operator<<(long), operator<<(unsigned long), operator<<(bool),
339         operator<<(short), operator<<(unsigned short), operator<<(int),
340         operator<<(unsigned int), operator<<(long long), operator<<
341         (unsigned long long), operator<<(double), operator<<(float),
342         operator<<(long double), operator<<(const void*): Use it.
343         * include/bits/ostream.tcc (basic_ostream<>::_M_insert): Define.
344         * src/istream-inst.cc: Add _M_extract instantiations.
345         * src/ostream-inst.cc: Add _M_insert instantiations.
346         * config/abi/pre/gnu.ver: Export the new symbols @GLIBCXX_3.4.7;
347         detail existing @GLIBCXX_3.4 exports of basic_ostream, num_put,
348         money_put, etc., symbols to avoid exporting _M_insert symbols
349         @GLIBCXX_3.4.
351 2005-12-28  Paolo Carlini  <pcarlini@suse.de>
353         * docs/html/ext/lwg-active.html, lwg-defects.html: Import Revision 40.
355 2005-12-28  Chris Jefferson  <chris@bubblescope.net>
357         * testsuite/testsuite_allocator.h (check_deallocate_null): Return true.
359 2005-12-28  Paolo Carlini  <pcarlini@suse.de>
361         * include/std/std_bitset.h (bitset<>::_M_copy_from_string,
362         bitset<>::_M_copy_to_string, bitset<>::operator>>): Reverse loop.
364         * testsuite/25_algorithms/heap/heap.cc (test01): Always enable
365         complexity checks.
366         * testsuite/18_support/numeric_limits/specialization.cc: Avoid
367         unused parameter warning.
368         * testsuite/18_support/numeric_limits/traps.cc: Acoid unused variable
369         warning.
370         * testsuite/ext/malloc_allocator/deallocate_global.cc: Fix format
371         string.
372         * testsuite/ext/malloc_allocator/deallocate_local.cc: Likewise.
373         * testsuite/ext/array_allocator/2.cc: Remove unused variable.
374         * testsuite/tr1/3_function_objects/mem_fn.cc: Avoid unused variable
375         warnings.
376         * testsuite/tr1/6_containers/unordered/instantiate/set.cc: Just
377         instantiate.
378         * testsuite/tr1/6_containers/unordered/instantiate/map.cc: Likewise.
379         * testsuite/tr1/6_containers/unordered/instantiate/hash.cc: Likewise.
380         * testsuite/tr1/6_containers/unordered/instantiate/multiset.cc:
381         Likewise.
382         * testsuite/tr1/6_containers/unordered/instantiate/multimap.cc:
383         Likewise.
384         * testsuite/tr1/6_containers/array/cons/aggregate_initialization.cc:
385         Avoid unused variable warnings.
386         * testsuite/tr1/6_containers/array/requirements/zero_sized_arrays.cc:
387         Likewise.
388         * testsuite/thread/18185.cc: Likewise.
389         * testsuite/27_io/ios_base/storage/11584.cc: Likewise; avoid comparison
390         between signed and unsigned warning.
391         * testsuite/27_io/types/1.cc: Avoid unused variable warnings.
392         * testsuite/testsuite_allocator.h (check_new): Likewise.
393         (check_deallocate_null): Adjust return type.
394         * testsuite/testsuite_hooks.h (bitmask_operators): Avoid unused
395         variable warnings.
396         * testsuite/21_strings/c_strings/wchar_t/24559.cc: Avoid unused
397         variable warning.
399 2005-12-28  Chris Jefferson  <chris@bubblescope.net>
401         * include/std/std_bitset.h (bitset<0>::set, bitset<0>::reset,
402         bitset<0>::flip, bitset<0>::test): Add inline specializations for
403         bitset<0>.
405         * testsuite/tr1/6_containers/unordered/insert/multiset_range.cc
406         (test01): Add static cast.
407         * testsuite/tr1/6_containers/unordered/insert/set_range.cc
408         (test01): Likewise.
409         * testsuite/testsuite_hooks.h (operator==(NonDefaultConstructible,
410         NonDefaultConstructible), operator<(NonDefaultConstructible,
411         NonDefaultConstrictible)): Avoid unused parameter warning.
413 2005-12-26  Chris Jefferson  <chris@bubblescope.net>
415         * include/ext/mt_allocator.h (__mt_alloc::__mt_alloc): Remove
416         name of unused parameter.
417         * include/bits/stream_iterator.h (istream_iterator::istream_iterator):
418         Construct _M_value.
419         * include/debug/functions.h (__check_valid_range): Add
420         __attribute__((unused)).
421         * include/tr1/hashtable (hashtable::end): Remove name of unused
422         parameter.
423         * include/tr1/tuple_iterate.h (tuple::tuple): Likewise.
424         (tuple::operator=): Add __attribute__((unused)).
425         * include/tr1/functional (Fnv_hash<4>::hash): Add static_cast.
426         (Fnv_hash<8>::hash): Likewise.
428         * testsuite/25_algorithms/iter_swap/20577.cc (swap): Remove name of
429         unused parameter.
430         * testsuite/25_algorithms/unique_copy/check_type.cc (S2::S2,X2::X2):
431         Likewise.
432         * testsuite/22_locale/ctype/narrow/char/19955.cc (do_narrow): Likewise.
433         * testsuite/22_locale/ctype/is/char/9858.cc (Derived::do_is, 
434         Derived::do_scan_is, Derived::do_scan_not, Derived2::do_is,
435         Derived2::do_scan_is, Derived2::do_scan_not): Likewise.
436         * testsuite/22_locale/time_put/put/wchar_t/12439_1.cc (TP::do_put):
437         Likewise.
438         * testsuite/22_locale/time_put/put/wchar_t/12439_3.cc (TP::do_put):
439         Likewise.
440         * testsuite/22_locale/time_put/put/char/12439_1.cc (TP::do_put):
441         Likewise.
442         * testsuite/22_locale/time_put/put/char/12439_3.cc (TP::do_put):
443         Likewise.
444         * testsuite/testsuite_io.h (fail_num_get::do_get, fail_num_put::do_put):
445         Likewise.
446         * testsuite/25_algorithms/find/17441.cc (find): Likewise.
447         * testsuite/23_containers/vector/cons/clear_allocator.cc
448         (clear_alloc::clear_alloc): Likewise.
449         * testsuite/23_containers/vector/bool/clear_allocator.cc
450         (clear_alloc::clear_alloc): Likewise.
451         * testsuite/23_containers/list/cons/clear_allocator.cc
452         (clear_alloc::clear_alloc): Likewise.
453         * testsuite/23_containers/set/modifiers/16728.cc (test_container):
454         Likewise.
455         * testsuite/27_io/basic_ios/cons/char/3.cc (char_traits::to_char_type,
456         to_int_type): Likewise.
457         * testsuite/27_io/basic_filebuf/imbue/12206.cc (codecvt::do_out, do_in,
458         do_unshift, do_length): Likewise.
459         * testsuite/21_strings/basic_string/capacity/1.cc 
460         (operator==(A<T>,A<T>), operator<(A<T>,A<T>),
461         char_traits::to_char_type, char_traits::to_int_type): Likewise
462         * testsuite/testsuite_character.h (ctype::do_is, ctype::do_scan_is,
463         ctype::do_scan_not, do_toupper, do_tolower): Likewise.
464         * testsuite/25_algorithms/replace_copy/check_type.cc (Z::operator=):
465         Add missing return statement.
466         * testsuite/25_algorithms/replace_copy_if/check_type.cc (Z::operator=):
467         Likewise.
468         * testsuite/testsuite_iterators.h (output_iterator_wrapper::operator=,
469         random_access_iterator_wrapper::operator==): Likewise.
470         * testsuite/20_util/functional/binders/1.cc (s::f_int_int_const,
471         s::f_int_int, s::f_int_void_const, s::f_int_void): Likewise.
472         * testsuite/27_io/types/1.cc (test01): Likewise.
473         * testsuite/27_io/basic_ostream/write/wchar_t/1.cc (test01): Likewise.
474         * testsuite/27_io/basic_ostream/write/char/1.cc (test01): Likewise.
475         * testsuite/21_strings/c_strings/wchar_t/24559.cc (main): Likewise.
476         * testsuite/27_io/basic_istream/ignore/wchar_t/2.cc (check): Add static
477         cast.
478         * testsuite/27_io/basic_istream/ignore/char/2.cc (check): Likewise.
479         * testsuite/27_io/basic_istream/getline/wchar_t/5.cc (check): Likewise.
480         * testsuite/27_io/basic_istream/getline/char/5.cc (check): Likewise.
481         * testsuite/testsuite_allocator.h (check_new): Likewise.
482         (check_deallocate_null): Add missing return value.
483         * testsuite/ext/pool_allocator/allocate_chunk.cc (test01):
484         Make variable unsigned.
485         * testsuite/23_containers/vector/modifiers/erase/1.cc (N,N1,N2,N3,N4,
486         N5,test01): Likewise.
487         * testsuite/26_numerics/valarray/valarray_subset_assignment.cc
488         (check_array): Likewise.
489         (main): Removed unused variable.
490         * testsuite/27_io/basic_streambuf/in_avail/wchar_t/1.cc (test05):
491         Removed unused variable.
492         * testsuite/27_io/basic_ostream/flush/wchar_t/1.cc (test01): Likewise.
493         * testsuite/27_io/basic_ostream/flush/char/1.cc (test01): Likewise.
494         * testsuite/27_io/basic_ostream/endl/wchar_t/1.cc (test01): Likewise.
495         * testsuite/27_io/basic_ostream/endl/char/1.cc (test01): Likewise.
496         * testsuite/27_io/basic_ostream/ends/wchar_t/1.cc (test01): Likewise.
497         * testsuite/27_io/basic_ostream/ends/char/1.cc (test01): Likewise.
498         * testsuite/tr1/2_general_utilities/memory/shared_ptr/
499         assign/shared_ptr.cc (test01): Correct return type.     
500         * testsuite/27_io/basic_filebuf/close/char/2.cc (test_02):
501         Add default value to close_num.
503 2005-12-24  Paolo Carlini  <pcarlini@suse.de>
505         * include/bits/stl_algobase.h (fill(const _Deque_iterator&,
506         const _Deque_iterator&, const _Tp&)): Deal, correctly, only
507         with iterators (leave const_iterators alone).
509 2005-12-24  Paolo Carlini  <pcarlini@suse.de>
511         * include/bits/stl_algobase.h (fill(const _Deque_iterator<>&,
512         const _Deque_iterator<>&, const _Tp&)): Add.
514         * testsuite/23_containers/deque/cons/assign/1.cc: New.
516 2005-12-19  Paolo Carlini  <pcarlini@suse.de>
518         * include/bits/stl_deque.h (deque<>::resize, _M_fill_assign):
519         Avoid troubles with ADL, user defined operators and _Deque_iterator.
520         (operator-(const _Deque_iterator<>&, const _Deque_iterator<>&):
521         Add overload for left and right iterators of the same type.
522         * include/bits/deque.tcc (erase(iterator)): Avoid troubles with ADL,
523         user defined operators and _Deque_iterator.
524         * testsuite/23_containers/deque/types/1.cc: Add.
525         
526         * include/bits/deque.tcc (_M_insert_aux(iterator, size_type,
527         const value_type&)): Qualify with std:: fill call.
529 2005-12-18  Benjamin Kosnik  <bkoz@redhat.com>
530         
531         * include/bits/c++config: Add in revised namespace associations.
532         _GLIBCXX_BEGIN_NAMESPACE: New macro.
533         _GLIBCXX_END_NAMESPACE: Same.
534         _GLIBCXX_BEGIN_NESTED_NAMESPACE: Same.
535         _GLIBCXX_END_NESTED_NAMESPACE: Same.
536         * acinclude.m4 (GLIBCXX_ENABLE_SYMVERS]): Add gnu-versioned-namespace.
537         * configure: Regenerated.
538         * config.h.in: Same.
539         * config/abi/pre/gnu-versioned-namespace.ver: New.
540         * config/abi/pre/gnu.ver (GLIBCXX_3.4.7): Add exports for nested
541         debug mode items. 
542         * include/Makefile.am (${host_builddir}/c++config.h): Fill in
543         values for __GLIBCXX__ and _GLIBCXX_NAMESPACE_ASSOCIATION_VERSION.
544         * include/Makefile.in: Regnerate.
545         * src/compatibility.cc: Alias new, nested definitions to exported
546         symbols from non-nested __gnu_debug.
547         * src/Makefile.am:  Add in ENABLE_SYMVERS_GNU_NAMESPACE.
548         * src/Makefile.in: Regenerate.
549         
550         * docs/html/debug_mode.html: Revise for nested design.
551         * docs/html/debug.html: Use debug qualifications instead of
552         __gnu_debug.
553         * docs/html/configopts.html: Revise documentation for
554         --enable-symvers.
555         
556         * include/debug/formatter: Simplify namespace qualifications for
557         current, nested-only reality. Add top-level namespace alias,
558         namespace debug, for debug-mode containers.
559         * include/debug/safe_iterator.h: Same.  
560         * include/debug/set.h: Same.
561         * include/debug/hash_multimap.h: Same.
562         * include/debug/hash_set.h: Same.
563         * include/debug/bitset
564         * include/debug/safe_sequence.h: Same.
565         * include/debug/multiset.h: Same.
566         * include/debug/safe_base.h: Same.
567         * include/debug/functions.h: Same.
568         * include/debug/safe_iterator.tcc
569         * include/debug/hash_multiset.h: Same.
570         * include/debug/vector
571         * include/debug/map.h: Same.
572         * include/debug/deque
573         * include/debug/hash_map.h: Same.
574         * include/debug/string
575         * include/debug/macros.h: Same.
576         * include/debug/list
577         * include/debug/debug.h: Same.
578         * include/debug/multimap.h: Same.       
579         * src/debug.cc: Same.
580         * testsuite/23_containers/vector/invalidation/1.cc: Cleanups.
581         * testsuite/23_containers/vector/invalidation/2.cc: Same.
582         * testsuite/23_containers/vector/invalidation/3.cc: Same.
583         * testsuite/23_containers/vector/invalidation/4.cc: Same.
584         * testsuite/23_containers/deque/invalidation/1.cc: Same.
585         * testsuite/23_containers/deque/invalidation/2.cc: Same.
586         * testsuite/23_containers/deque/invalidation/3.cc: Same.
587         * testsuite/23_containers/deque/invalidation/4.cc: Same.
588         * testsuite/23_containers/multiset/invalidation/1.cc: Same.
589         * testsuite/23_containers/multiset/invalidation/2.cc: Same.
590         * testsuite/23_containers/multimap/invalidation/1.cc: Same.
591         * testsuite/23_containers/multimap/invalidation/2.cc: Same.
592         * testsuite/23_containers/bitset/invalidation/1.cc: Same.
593         * testsuite/23_containers/bitset/cons/16020.cc: Same.
594         * testsuite/23_containers/bitset/operations/13838.cc: Same.
595         * testsuite/23_containers/list/invalidation/1.cc: Same.
596         * testsuite/23_containers/list/invalidation/2.cc: Same.
597         * testsuite/23_containers/list/invalidation/3.cc: Same.
598         * testsuite/23_containers/list/invalidation/4.cc: Same.
599         * testsuite/23_containers/set/invalidation/1.cc: Same.
600         * testsuite/23_containers/set/invalidation/2.cc: Same.
601         * testsuite/23_containers/map/invalidation/1.cc: Same.
602         * testsuite/23_containers/map/invalidation/2.cc: Same.
603         * testsuite/23_containers/map/insert/16813.cc: Same.
604         
605         * include/bits/basic_ios.h: Use _GLIBCXX_BEGIN_NAMESPACE(std) and
606         friends.        
607         * include/bits/stl_list.h: Same.
608         * include/bits/stl_map.h: Same.
609         * include/bits/stl_algobase.h: Same.
610         * include/bits/localefwd.h: Same.
611         * include/bits/valarray_array.tcc: Same.
612         * include/bits/valarray_after.h: Same.
613         * include/bits/gslice_array.h: Same.
614         * include/bits/stl_queue.h: Same.
615         * include/bits/gslice.h: Same.
616         * include/bits/locale_facets.tcc: Same.
617         * include/bits/locale_classes.h: Same.
618         * include/bits/stl_set.h: Same.
619         * include/bits/locale_facets.h: Same.
620         * include/bits/stl_stack.h: Same.
621         * include/bits/stl_iterator_base_types.h: Same.
622         * include/bits/stl_heap.h: Same.
623         * include/bits/indirect_array.h: Same.
624         * include/bits/atomicity.h: Same.
625         * include/bits/stream_iterator.h: Same.
626         * include/bits/concurrence.h: Same.
627         * include/bits/basic_string.h: Same.
628         * include/bits/stl_multimap.h: Same.
629         * include/bits/stl_pair.h: Same.
630         * include/bits/basic_ios.tcc: Same.
631         * include/bits/stl_raw_storage_iter.h: Same.
632         * include/bits/stl_vector.h: Same.
633         * include/bits/stl_numeric.h: Same.
634         * include/bits/ios_base.h: Same.
635         * include/bits/stl_deque.h: Same.
636         * include/bits/istream.tcc: Same.
637         * include/bits/postypes.h: Same.
638         * include/bits/stl_multiset.h: Same.
639         * include/bits/mask_array.h: Same.
640         * include/bits/stl_uninitialized.h: Same.
641         * include/bits/ostream.tcc: Same.
642         * include/bits/slice_array.h: Same.
643         * include/bits/boost_concept_check.h: Same.
644         * include/bits/sstream.tcc: Same.
645         * include/bits/stl_iterator_base_funcs.h: Same.
646         * include/bits/char_traits.h: Same.
647         * include/bits/stl_algo.h: Same.
648         * include/bits/stringfwd.h: Same.
649         * include/bits/c++config
650         * include/bits/stl_iterator.h: Same.
651         * include/bits/valarray_array.h: Same.
652         * include/bits/stl_tempbuf.h: Same.
653         * include/bits/vector.tcc: Same.
654         * include/bits/deque.tcc: Same.
655         * include/bits/stl_bvector.h: Same.
656         * include/bits/basic_string.tcc: Same.
657         * include/bits/list.tcc: Same.
658         * include/bits/streambuf_iterator.h: Same.
659         * include/bits/valarray_before.h: Same.
660         * include/bits/stl_construct.h: Same.
661         * include/bits/stl_function.h: Same.
662         * include/bits/cpp_type_traits.h: Same.
663         * include/bits/streambuf.tcc: Same.
664         * include/bits/allocator.h: Same.
665         * include/bits/stl_tree.h: Same.
666         * include/bits/fstream.tcc: Same.
667         * include/bits/stl_relops.h: Same.
668         * include/bits/functexcept.h: Same.
669         * include/std/std_valarray.h: Same.
670         * include/std/std_iostream.h: Same.
671         * include/std/std_streambuf.h: Same.
672         * include/std/std_bitset.h: Same.
673         * include/std/std_iosfwd.h: Same.
674         * include/std/std_iomanip.h: Same.
675         * include/std/std_fstream.h: Same.
676         * include/std/std_limits.h: Same.
677         * include/std/std_stdexcept.h: Same.
678         * include/std/std_istream.h: Same.
679         * include/std/std_complex.h: Same.
680         * include/std/std_memory.h: Same.
681         * include/std/std_ostream.h: Same.
682         * include/std/std_sstream.h: Same.
683         * include/c_std/std_csignal.h: Same.
684         * include/c_std/std_cstdlib.h: Same.
685         * include/c_std/std_cstdio.h: Same.
686         * include/c_std/std_cstdarg.h: Same.
687         * include/c_std/std_cctype.h: Same.
688         * include/c_std/std_cmath.h: Same.
689         * include/c_std/std_ctime.h: Same.
690         * include/c_std/std_clocale.h: Same.
691         * include/c_std/std_csetjmp.h: Same.
692         * include/c_std/std_cwchar.h: Same.
693         * include/c_std/std_cstring.h: Same.
694         * include/c_std/std_cstddef.h: Same.
695         * include/c_std/std_cwctype.h: Same.
696         * include/backward/iterator.h: Same.
697         * include/backward/set.h: Same.
698         * include/backward/hashtable.h: Same.
699         * include/backward/fstream.h: Same.
700         * include/backward/tempbuf.h: Same.
701         * include/backward/istream.h: Same.
702         * include/backward/bvector.h: Same.
703         * include/backward/stack.h: Same.
704         * include/backward/rope.h: Same.
705         * include/backward/complex.h: Same.
706         * include/backward/ostream.h: Same.
707         * include/backward/heap.h: Same.
708         * include/backward/iostream.h: Same.
709         * include/backward/function.h: Same.
710         * include/backward/multimap.h: Same.
711         * include/backward/pair.h: Same.
712         * include/backward/stream.h: Same.
713         * include/backward/iomanip.h: Same.
714         * include/backward/strstream
715         * include/backward/slist.h: Same.
716         * include/backward/tree.h: Same.
717         * include/backward/vector.h: Same.
718         * include/backward/deque.h: Same.
719         * include/backward/multiset.h: Same.
720         * include/backward/list.h: Same.
721         * include/backward/map.h: Same.
722         * include/backward/algobase.h: Same.
723         * include/backward/hash_map.h: Same.
724         * include/backward/algo.h: Same.
725         * include/backward/queue.h: Same.
726         * include/backward/streambuf.h: Same.
727         * src/allocator-inst.cc: Same.
728         * src/complex_io.cc: Same.
729         * src/localename.cc: Same.
730         * src/limits.cc: Same.
731         * src/ios_failure.cc: Same.
732         * src/locale-misc-inst.cc: Same.
733         * src/streambuf-inst.cc: Same.
734         * src/misc-inst.cc: Same.
735         * src/concept-inst.cc: Same.
736         * src/ios_locale.cc: Same.
737         * src/pool_allocator.cc: Same.
738         * src/fstream-inst.cc: Same.
739         * src/istream-inst.cc: Same.
740         * src/string-inst.cc: Same.
741         * src/locale_init.cc: Same.
742         * src/ctype.cc: Same.
743         * src/strstream.cc: Same.
744         * src/ostream-inst.cc: Same.
745         * src/functexcept.cc: Same.
746         * src/streambuf.cc: Same.
747         * src/sstream-inst.cc: Same.
748         * src/ios.cc: Same.
749         * src/valarray-inst.cc: Same.
750         * src/locale.cc: Same.
751         * src/tree.cc: Same.
752         * src/stdexcept.cc: Same.
753         * src/istream.cc: Same.
754         * src/compatibility.cc: Same.
755         * src/locale-inst.cc: Same.
756         * src/globals_io.cc: Same.
757         * src/list.cc: Same.
758         * src/ios_init.cc: Same.
759         * src/locale_facets.cc: Same.
760         * src/codecvt.cc: Same.
762         * include/tr1/unordered_map: Use _GLIBCXX_BEGIN_NAMESPACE(tr1).
763         * include/tr1/boost_shared_ptr.h: Same.
764         * include/tr1/tuple
765         * include/tr1/hashtable
766         * include/tr1/type_traits_fwd.h: Same.
767         * include/tr1/unordered_set
768         * include/tr1/functional
769         * include/tr1/ref_fwd.h: Same.
770         * include/tr1/utility
771         * include/tr1/type_traits
772         * include/tr1/array
774         * include/ext/hashtable.h: Use _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx).
775         * include/ext/typelist.h: Same.
776         * include/ext/hash_map: Same.
777         * include/ext/rc_string_base.h: Same.
778         * include/ext/pool_allocator.h: Same.
779         * include/ext/iterator: Same.
780         * include/ext/rb_tree: Same.
781         * include/ext/numeric: Same.
782         * include/ext/vstring.tcc: Same.
783         * include/ext/sso_string_base.h: Same.
784         * include/ext/stdio_filebuf.h: Same.
785         * include/ext/algorithm: Same.
786         * include/ext/codecvt_specializations.h: Same.
787         * include/ext/new_allocator.h: Same.
788         * include/ext/array_allocator.h: Same.
789         * include/ext/vstring_util.h: Same.
790         * include/ext/vstring_fwd.h: Same.
791         * include/ext/mt_allocator.h: Same.
792         * include/ext/debug_allocator.h: Same.
793         * include/ext/slist: Same.
794         * include/ext/stdio_sync_filebuf.h: Same.
795         * include/ext/hash_fun.h: Same.
796         * include/ext/malloc_allocator.h: Same.
797         * include/ext/functional: Same.
798         * include/ext/bitmap_allocator.h: Same.
799         * include/ext/pod_char_traits.h: Same.
800         * include/ext/vstring.h: Same.
801         * include/ext/ropeimpl.h: Same.
802         * include/ext/hash_set: Same.
803         * include/ext/memory: Same.
804         * include/ext/rope: Same.
805         * include/bits/boost_concept_check.h: Same.
806         * include/bits/stl_iterator.h: Same.
807         * include/bits/char_traits.h: Same.
808         * include/bits/cpp_type_traits.h: Same.
809         * include/bits/concurrence.h: Same.
810         * include/bits/atomicity.h: Same.
811         * config/locale/gnu/numeric_members.cc: Same.
812         * config/locale/gnu/collate_members.cc: Same.
813         * config/locale/gnu/ctype_members.cc: Same.
814         * config/locale/gnu/c_locale.cc: Same.
815         * config/locale/gnu/codecvt_members.cc: Same.
816         * config/locale/gnu/messages_members.cc: Same.
817         * config/locale/gnu/c_locale.h: Same.
818         * config/locale/gnu/monetary_members.cc: Same.
819         * config/locale/gnu/time_members.cc: Same.
820         * config/locale/ieee_1003.1-2001/c_locale.h: Same.
821         * config/locale/generic/numeric_members.cc: Same.
822         * config/locale/generic/collate_members.cc: Same.
823         * config/locale/generic/ctype_members.cc: Same.
824         * config/locale/generic/c_locale.cc: Same.
825         * config/locale/generic/codecvt_members.cc: Same.
826         * config/locale/generic/messages_members.cc: Same.
827         * config/locale/generic/c_locale.h: Same.
828         * config/locale/generic/monetary_members.cc: Same.
829         * config/locale/generic/time_members.cc: Same.
830         * config/os/aix/atomicity.h: Same.
831         * config/os/irix/atomicity.h: Same.
832         * config/cpu/powerpc/atomicity.h: Same.
833         * config/cpu/cris/atomicity.h: Same.
834         * config/cpu/ia64/atomicity.h: Same.
835         * config/cpu/alpha/atomicity.h: Same.
836         * config/cpu/m68k/atomicity.h: Same.
837         * config/cpu/hppa/atomicity.h: Same.
838         * config/cpu/mips/atomicity.h: Same.
839         * config/cpu/sparc/atomicity.h: Same.
840         * config/cpu/i386/atomicity.h: Same.
841         * config/cpu/i486/atomicity.h: Same.
842         * config/cpu/sh/atomicity.h: Same.
843         * config/cpu/generic/atomicity.h: Same.
844         * config/cpu/s390/atomicity.h: Same.
845         * config/io/c_io_stdio.h: Same.
846         * config/io/basic_file_stdio.cc: Same.
847         * config/io/basic_file_stdio.h: Same.   
848         * src/misc-inst.cc: Same.
849         * src/concept-inst.cc: Same.
850         * src/ext-inst.cc: Same.
851         * src/string-inst.cc: Same.
852         * src/pool_allocator.cc: Same.
853         * src/bitmap_allocator.cc: Same.
854         * src/mt_allocator.cc: Same.
855         * libsupc++/exception: Same.
856         * libsupc++/vterminate.cc: Same.
857         * testsuite/ext/hash_map/1.cc: Explicitly qualify __gnu_cxx::hash_map.
858         * testsuite/ext/hash_map/14648.cc: Same.        
860         * libsupc++/eh_alloc.cc: Correct comment line spacing.
861                 
862 2005-12-18  Paolo Carlini  <pcarlini@suse.de>
864         * include/bits/stl_algobase.h (__copy_normal::copy_n): Uglify
865         to __copy_n.
866         (__copy_backward::copy_b): Likewise to __copy_b.
867         (__copy_backward_normal::copy_b_n): Likewise to __copy_b_n.
868         (copy, __copy_backward_aux, copy_backward): Adjust.
870 2005-12-18  Paolo Carlini  <pcarlini@suse.de>
872         * include/bits/stl_algo.h (partial_sort_copy): Add
873         _BinaryPredicateConcept<_Compare, _InputValueType, _OutputValueType>
874         (merge, set_union, set_symmetric_difference): Add
875         _OutputIteratorConcept<_OutputIterator, _ValueType2>.
876         (binary_search): Remove redundant _BinaryPredicateConcept<_Compare,
877         _ValueType, _Tp>, taken care by lower_bound.
878         * include/bits/stl_algo.h: Cosmetic changes.
880 2005-12-18  Paolo Carlini  <pcarlini@suse.de>
881             Howard Hinnant  <hhinnant@apple.com>
883         * include/bits/stl_algo.h (merge, includes, set_union,
884         set_intersection, set_difference, set_symmetric_difference):
885         Fix concept checks.
887 2005-12-18  Paolo Carlini  <pcarlini@suse.de>
889         * include/bits/stl_algo.h (partial_sort_copy, lower_bound,
890         upper_bound, equal_range, binary_search): Fix concept checks.
892 2005-12-18  Benjamin Kosnik  <bkoz@redhat.com>
894         * config/abi/post: New.
895         * config/abi/*-linux-gnu: Move to..
896         * config/abi/post/*-linux-gnu: ... here.        
897         * config/abi/pre: New.
898         * config/linker-map.gnu: Move to ..
899         * config/abi/pre/gnu.ver: ... here.     
900         * config/linker-map.dummy: Move to..
901         * config/abi/pre/none.ver: ... here.
902         * src/Makefile.am: Use ENABLE_SYMVERS_GNU,
903         ENABLE_SYMVERS_DARWIN, ENABLE_SYMVERS_GNU_NAMESPACE.
904         Use libstdc++-symbols.ver instead of libstdc++-symbol.ver.
905         * src/Makefile.in: Regnerate.
906         * acinclude.m4 (GLIBCXX_CONFIGURE_TESTSUITE): Adjust paths for new
907         placement of abi baseline files.
908         (GLIBCXX_ENABLE_SYMVERS): Add ENABLE_SYMVERS, ENABLE_SYMVERS_GNU,
909         ENABLE_SYMVERS_DARWIN.  SYMVER_MAP to SYMVER_FILE.
910         * configure: Regnerate.
911         * config.h.in: Regnerate.
912         * src/compatibility.cc: Adjust macro usage.
913         
914 2005-12-17  Benjamin Kosnik  <bkoz@redhat.com>
916         * src/io-inst.cc: Separate instantiations into...
917         * src/ios-inst.cc: .. this.
918         * src/iostream-inst.cc: ... and this.
919         * src/Makefile.am (sources): Update.
920         * src/Makefile.in: Regenerate.  
922 2005-12-17  Benjamin Kosnik  <bkoz@redhat.com>
923         
924         PR libstdc++/25472
925         * include/c_std/std_cstdlib.h: Fix for freestanding.
927 2005-12-17  Benjamin Kosnik  <bkoz@redhat.com>
929         * testsuite/libstdc++-dg/normal.exp: Rename to..
930         * testsuite/libstdc++-dg/conformance.exp: ... this.
932 2005-12-17  Paolo Carlini  <pcarlini@suse.de>
934         * include/bits/stl_vector.h (vector(const vector&)): Use
935         _M_get_Tp_allocator.
936         * include/bits/stl_deque.h (deque(const deque&)): Likewise.
937         (_M_destroy_data): Adjust.
939 2005-12-17  Paolo Carlini  <pcarlini@suse.de>
941         * include/bits/stl_deque.h (deque<>::_M_erase_at_end,
942         _M_erase_at_begin, _M_destroy_data, _M_destroy_data_dispatch,
943         _M_destroy_data_aux): New, optimize erase at begin() / end() and
944         consistently use the "segmented iterator" optimization.
945         (deque<>::~deque(), resize, clear, _M_assign_aux, _M_fill_assign):
946         Use the above.
947         * include/bits/deque.tcc (deque<>::operator=, _M_assign_aux): Same.
948         (erase(iterator, iterator)): Likewise, clean-up.
949         (erase(iterator)): Tweak, don't call copy unnecessarily. 
950         (_M_destroy_data_aux): Define.
951         * testsuite/23_containers/deque/modifiers/erase/1.cc: New.
952         * testsuite/23_containers/deque/modifiers/erase/2.cc: Likewise.
954 2005-12-17  Gabriel Dos Reis  <gdr@integrable-solutions.net>
956         * include/bits/valarray_after.h (_Expr<>::operator[](slice)): 
957         Don't assume the closure implements general indexing, as a matter
958         of fact, most of them don't.
959         (_Expr<>::operator[](const gslice&)): Likewise.
960         (_Expr<>::operator[](const valarray<bool>&)): Likewise.
961         (_Expr<>::operator[](const valarray<size_t>&)): Likewise.
962         (_Expr<>::shift): Fix thinko.
963         (_Expr<>::cshift): Likewise.
964         (_Expr<>::apply): Likewise.
966 2005-12-16  Paolo Carlini  <pcarlini@suse.de>
968         * testsuite/tr1/4_metaprogramming/type_properties/is_empty/is_empty.cc:
969         Fix class NonEmptyClassTwo.
971 2005-12-15  Paolo Carlini  <pcarlini@suse.de>
973         * include/bits/stl_vector.h (vector<>::_M_get_Tp_allocator): Change
974         to return by ref and add non const version.
975         * include/bits/stl_deque.h (deque<>::_M_get_Tp_allocator): Likewise.
977 2005-12-15  Paolo Carlini  <pcarlini@suse.de>
979         PR libstdc++/25421
980         * config/locale/gnu/c_locale.cc (_S_destroy_c_locale): Check
981         for null argument.
982         * testsuite/22_locale/facet/25421.cc: New.
984 2005-12-13  Carlos O'Donell <carlos@codesourcery.com>
986         * include/std/std_limits.h (struct numeric_limits):
987         Use __DBL_HAS_DENORM__, __FLT_HAS_DENORM__, __LDBL_HAS_DENORM__.
989 2005-12-10  Paolo Carlini  <pcarlini@suse.de>
991         * include/ext/sso_string_base.h (__sso_string_base<>::_M_compare):
992         Add, specialized for char and wchar_t to immediately return true
993         when a string is compared to itself.
994         * include/ext/rc_string_base.h (__rc_string_base<>::_M_compare):
995         Likewise, for the same _Rep.
996         * include/ext/vstring.h (compare(const string&)): Use it.
998         * include/ext/sso_string_base.h (__sso_string_base<>::_M_destroy):
999         Deallocate passed size + 1.
1000         (_M_dispose, _M_reserve): Adjust.
1002 2005-12-09  Paolo Carlini  <pcarlini@suse.de>
1003             Howard Hinnant  <hhinnant@apple.com>
1005         PR libstdc++/25288
1006         * include/bits/stl_list.h (list<>::_M_insert_dispatch, _M_fill_insert):
1007         Remove.
1008         (_M_initialize_dispatch, _M_fill_initialize): Add.
1009         (list(size_type, const value_type&, const allocator_type&),
1010         list(const list&), list(_InputIterator, _InputIterator,
1011         const allocator_type&): Use the latter.
1012         (insert(iterator, size_type, const value_type&), insert(iterator,
1013         _InputIterator, _InputIterator)): Use construction & splice.
1014         * testsuite/23_containers/list/modifiers/insert/25288.cc: New.
1015         * testsuite/testsuite_allocator.h (class throw_allocator): Add.
1017         * include/bits/stl_list.h (list<>::insert, erase): Fix wrong comments.
1019 2005-12-08  Paolo Carlini  <pcarlini@suse.de>
1021         * include/bits/stl_vector.h (vector<>::size, resize, capacity,
1022         operator[]): Avoid troubles with ADL, user defined operators
1023         and __normal_iterator.
1024         (_M_erase_at_end): Fix to take a pointer.
1025         (clear): Adjust call.
1026         * include/bits/vector.tcc (vector<>::insert(iterator, const
1027         value_type&), erase(iterator, iterator), operator=(const
1028         vector<>&), _M_assign_aux(input_iterator_tag), _M_insert_aux,
1029         _M_fill_insert, _M_range_insert): Likewise.
1030         (_M_fill_assign, _M_assign_aux(forward_iterator_tag)): Adjust
1031         _M_erase_at_end call.
1032         * testsuite/23_containers/vector/types/1.cc: New.
1034 2005-12-08  Paolo Carlini  <pcarlini@suse.de>
1036         PR libstdc++/24617
1037         * include/bits/stl_vector.h (vector<>::_M_erase_at_end): New.
1038         (vector<>::clear, resize): Use it.
1039         * include/bits/vector.tcc (vector<>::erase(iterator, iterator),
1040         _M_fill_assign, _M_assign_aux): Likewise.
1042         * testsuite/23_containers/vector/modifiers/erase/1.cc: New.
1044 2005-12-07  Paolo Carlini  <pcarlini@suse.de>
1046         * docs/html/configopts.html ([--enable-libstdcxx-allocator]):
1047         Mention the SGI pooled allocator.
1049 2005-12-06  Paolo Carlini  <pcarlini@suse.de>
1051         * include/bits/basic_string.h (insert(iterator, _CharT),
1052         erase(iterator), erase(iterator, iterator)): Avoid troubles
1053         with ADL, user defined operators and __normal_iterator.
1054         * include/bits/stl_iterator.h (operator-(const __normal_iterator
1055         <_Iterator, _Container>&, const __normal_iterator<_Iterator,
1056         _Container>&)): Add overload for left and right iterators of
1057         the same type.
1058         * include/debug/safe_iterator.h (operator-(const _Safe_iterator
1059         <_Iterator, _Sequence>&, const _Safe_iterator<_Iterator,
1060         _Sequence>&)): Likewise.
1061         * testsuite/21_strings/basic_string/types/1.cc: New.
1063 2005-12-05  Paolo Carlini  <pcarlini@suse.de>
1065         * include/ext/sso_string_base.h (__sso_string_base<>::_M_assign):
1066         Simplify, avoid pointless reallocations.
1068 2005-12-04  Paolo Carlini  <pcarlini@suse.de>
1070         * include/ext/sso_string_base.h (__sso_string_base<>::_M_reserve):
1071         Simplify.
1073 2005-12-04  Paolo Carlini  <pcarlini@suse.de>
1075         * include/ext/vstring.h (__versa_string<>::operator+, all
1076         versions): Move out of line...
1077         * include/ext/vstring.tcc (__versa_string<>::operator+): ...
1078         here; consistently use reserve for the benefit of sso_string_base;
1079         prefer push_back to single-char append when appropriate.
1081         * include/ext/vstring.h (__versa_string<>::push_back): Don't
1082         call _M_reserve, _M_mutate instead.
1083         (reserve): Just forward to _M_reserve.
1084         * include/ext/vstring.tcc (__versa_string<>::_M_reserve): Remove.
1085         * include/ext/rc_string_base.h (__rc_string_base<>::_M_reserve): Also
1086         do the initial checks (first on length, in case __res == capacity).
1087         * include/ext/sso_string_base.h (__sso_string_base<>::_M_reserve:
1088         Likewise; don't call _M_set_length unnecessarily.
1090 2005-12-04  Paolo Carlini  <pcarlini@suse.de>
1092         * include/ext/vstring.h (__versa_string<>::_M_append): New.
1093         (append(const __versa_string&), append(const __versa_string&,
1094         size_type, size_type), append(const _CharT*, size_type),
1095         append(const _CharT*)): Use it.
1096         (append(size_type, _CharT)): Delegate to _M_replace_aux.
1097         (assign(const __versa_string&, size_type, size_type),
1098         assign(const _CharT*), replace(size_type, size_type,
1099         const _CharT*, size_type)): Forward to _M_replace.
1100         * include/ext/vstring.tcc (__versa_string<>::_M_append):
1101         Define, core append functionality.
1102         (_M_replace): Simplify, move __s == 0 case to _M_replace_aux.
1103         (_M_replace_aux): Reorganize, don't call _M_replace.
1105 2005-12-04  Paolo Carlini  <pcarlini@suse.de>
1107         * include/ext/vstring.tcc (__versa_string<>::_M_replace):
1108         Perform _M_check_length at the beginning and remove it from ...
1109         (replace, _M_replace_dispatch, _M_replace_aux, assign): ... here.
1110         (assign): Now move inline.
1111         (resize): Don't call _M_check_length redundantly, append does.
1113 2005-12-04  Paolo Carlini  <pcarlini@suse.de>
1115         * include/ext/sso_string_base.h (__sso_string_base<>::_M_get_allocator):
1116         Add non const version.
1117         * include/ext/rc_string_base.h (__rc_string_base<>::_M_get_allocator):
1118         Likewise.
1119         
1120         * include/ext/sso_string_base.h (__sso_string_base<>::_M_erase): Add.
1121         * include/ext/rc_string_base.h (__rc_string_base<>::_M_erase): Likewise.
1122         (_M_leak_hard): Use it.
1123         * include/ext/vstring.h (__versa_string<>::clear, erase, all
1124         versions): Use it.
1125         * include/ext/vstring.tcc (__versa_string<>::resize): Likewise.
1127         * include/ext/vstring.h (__versa_string<>::_M_replace_safe):
1128         Remove.
1129         * include/ext/vstring.h (__versa_string<>::_M_replace): New, does
1130         the in-place work or delegates to _M_mutate in case of reallocation.
1131         * include/ext/vstring.tcc (__versa_string<>::_M_replace_safe):
1132         Remove.
1133         * include/ext/vstring.tcc (__versa_string<>::_M_replace): Define.
1134         (assign, replace, _M_replace_dispatch, _M_replace_aux): Use it.
1135         * include/ext/sso_string_base.h (__sso_string_base<>::_M_mutate):
1136         Change to manage only reallocations.
1137         * include/ext/rc_string_base.h (__rc_string_base<>::_M_mutate):
1138         Likewise.
1140         * include/ext/vstring.h (__versa_string<>::insert(size_type,
1141         const __versa_string&), insert(size_type, const __versa_string&,
1142         size_type, size_type), insert(size_type, const _CharT*, size_type),
1143         insert(size_type, const _CharT*)): Delegate to replace.
1145         * include/ext/vstring.h (__versa_string<>::reserve): Move out of
1146         line.
1147         * include/ext/vstring.tcc (__versa_string<>::reserve): Do the
1148         checks and call _M_reserve.
1149         * include/ext/vstring.h (__versa_string<>::append): Call _M_reserve
1150         instead of reserve.
1151         * include/ext/vstring.tcc (__versa_string<>::append, all versions):
1152         Likewise.
1153         * include/ext/sso_string_base.h (__sso_string_base<>::_M_reserve):
1154         Adjust.
1155         * include/ext/rc_string_base.h (__rc_string_base<>::_M_reserve):
1156         Likewise.
1158 2005-12-02  David Billinghurst (David.Billinghurst@riotinto.com)
1160         PR testsuite/25193
1161         * testsuite/lib/libstdc++.exp (libstdc++-dg-test): Catch
1162         error if file cannot be deleted.
1164 2005-11-23  Paolo Carlini  <pcarlini@suse.de>
1166         PR libstdc++/24975 (basic_string)
1167         * include/bits/basic_string.h (_Rep::_S_empty_rep): Avoid
1168         strict-aliasing warnings.
1170 2005-11-22  Paolo Carlini  <pcarlini@suse.de>
1172         PR libstdc++/24975
1173         * include/bits/stl_set.h (insert(iterator, const value_type&),
1174         erase(iterator), erase(iterator, iterator)): Don't break aliasing
1175         rules casting to _Rep_iterator&, forward to _Rb_tree facilities.
1176         * include/bits/stl_multiset.h (insert(iterator, const value_type&),
1177         erase(iterator), erase(iterator, iterator)): Likewise.
1178         * include/bits/stl_tree.h (_Rb_tree<>::_M_insert(_Const_Base_ptr,
1179         _Const_Base_ptr, const value_type&), insert_unique(const_iterator,
1180         const value_type&), insert_equal(const_iterator, const value_type&),
1181         erase(const_iterator), erase(const_iterator, const_iterator)): New,
1182         _Rb_tree<>::const_iterator counterparts of existing facilities.
1184 2005-11-21  Benjamin Kosnik  <bkoz@redhat.com>
1185             Ulrich Drepper  <drepper@redhat.com>
1187         PR libstdc++/23591
1188         * scripts/create_testsuite_files: Support for "C" test files.
1189         * testsuite/lib/libstdc++.exp: Same.
1190         * testsuite/libstdc++-dg/normal.exp: Same.
1191         * testsuite/ext/mt_allocator/22309_thread.cc: Update names.
1192         * testsuite/19_diagnostics/23591_thread-1.c: New.
1193         * testsuite/testsuite_shared.cc: Add tests, rename existing functions.
1194         * libsupc++/eh_globals.cc: Make global thread local if possible.
1195         * configure.ac: Use GCC_CHECK_TLS.
1196         * acinclude.m4: Include tls.m4.
1197         * configure: Regenerate.
1198         * config.h.in: Same.
1199         
1200 2005-11-21  Benjamin Kosnik  <bkoz@redhat.com>
1202         * libsupc++/del_op.cc: Include c++config.h first.
1203         * libsupc++/eh_alloc.cc: Same.
1204         * libsupc++/new_opv.cc: Same.
1205         * libsupc++/eh_throw.cc: Same.
1206         * libsupc++/new_op.cc: Same.
1207         * libsupc++/del_opv.cc: Same.
1208         * libsupc++/eh_catch.cc: Same.
1209         * libsupc++/guard.cc: Same.
1210         * libsupc++/del_opnt.cc: Same.
1211         * libsupc++/eh_exception.cc: Same.
1212         * libsupc++/new_opvnt.cc: Same.
1213         * libsupc++/eh_term_handler.cc: Same.
1214         * libsupc++/eh_personality.cc: Same.
1215         * libsupc++/eh_call.cc: Same.
1216         * libsupc++/new_opnt.cc: Same.
1217         * libsupc++/del_opvnt.cc: Same.
1219 2005-11-21  Benjamin Kosnik  <bkoz@redhat.com>
1221         * src/Makefile.am (LTCXXCOMPILE): CXXFLAGS last.
1222         * libsupc++/Makefile.am: Same.
1223         * src/Makefile.in: Regenerate.
1224         * libsupc++/Makefile.in: Same.
1226 2005-11-21  Paolo Carlini  <pcarlini@suse.de>
1228         * include/ext/sso_string_base.h: Minor formatting and stylistic fixes.
1229         (__sso_string_base<>::_M_get_allocator): Return by const ref.
1230         * include/ext/rc_string_base.h: Likewise.
1231         (__rc_string_base<>::_M_get_allocator): Return by const ref.
1232         (__rc_string_base<>::_M_dispose): Take void, use _M_get_allocator.
1233         (__rc_string_base<>::_M_grab): Take one alloc, use _M_get_allocator.
1234         (__rc_string_base<>::~__rc_string_base,
1235         __rc_string_base(const __rc_string_base&), _M_assign, _M_reserve,
1236         _M_mutate): Adjust.
1237         * include/ext/vstring_util.h: Minor stylistic fixes.
1239 2005-11-18  Paolo Carlini  <pcarlini@suse.de>
1241         * include/ext/rc_string_base.h (__rc_string_base<>::_Rep): Avoid the
1242         anonymous struct extension, adjust everywhere.
1244         * include/ext/rc_string_base.h (__rc_string_base<>::_S_empty_rep()):
1245         Just use a static member.
1246         (__rc_string_base<>::__rc_string_base(), _S_construct): Adjust.
1248         * include/ext/rc_string_base.h (__rc_string_base<>::_Rep): Use
1249         anonymous union together with _CharT to fix alignment issues,
1250         rebind to _Rep and rename _Raw_alloc to _Rep_alloc_type.        
1251         (__rc_string_base<>::_Rep::_S_create, _M_destroy): Adjust consistently.
1253         * include/ext/vstring_util.h (__is_null_p): Move inside struct
1254         __vstring_utility as static _S_is_null_pointer.
1255         * include/ext/sso_string.h
1256         (__sso_string_base<>::_M_construct(std::forward_iterator_tag): Adjust.
1257         * include/ext/rc_string_base.h
1258         (__rc_string_base<>::_S_construct(std::forward_iterator_tag): Likewise.
1260         Implement Option 3 of DR 431 for ext/vstring - both available bases.
1261         * include/bits/cpp_type_traits.h (struct __is_empty): Add.
1262         * include/ext/vstring.h (__versa_string<>::swap): Delegate to
1263         this->_M_swap.
1264         * include/ext/vstring.tcc (__versa_string<>::swap): Remove.
1265         * include/ext/vstring_util.h (struct __vstring_utility<>): Add struct
1266         _Alloc_hider<>, augmented of allocator swapping facility, specialized
1267         to nop for empty allocators.
1268         * include/ext/rc_string_base.h (__rc_string_base<>::_M_swap): Use it.
1269         (__rc_string_base<>::_M_is_leaked, _M_set_sharable): Change to private.
1270         * include/ext/sso_string_base.h (__sso_string_base<>::_M_swap):
1271         Likewise.
1272         (__sso_string_base<>::_M_is_leaked, _M_set_sharable): Remove, unused.
1273         * include/ext/rc_string_base.h (__rc_string_base<>::_M_data(_CharT*):
1274         Return void.
1275         * include/ext/sso_string_base.h (__sso_string_base<>::_M_data(_CharT*):
1276         Likewise.
1278 2005-11-17  Geoffrey Keating  <geoffk@apple.com>
1280         * config/os/bsd/darwin/ppc-extra.ver: New.
1281         * src/Makefile.am (libstdc++-symbol.ver): Move outside conditionals,
1282         and make dependent on port symbol files.
1283         (libstdc++-symbol.explist): Use the generated .ver file, not
1284         the template.
1285         * src/compatibility.cc [APPLE] (__eprintf): New.
1286         * src/Makefile.in: Regenerate.
1287         * configure.host (powerpc*-*-darwin*): Define
1288         port_specific_symbol_files.
1290 2005-11-16  Nathan Sidwell  <nathan@codesourcery.com>
1292         * libsupc++/eh_arm.cc (__cxa_begin_cleanup): Remember a
1293         foreign exception too.
1294         (__gnu_end_cleanup): Recover a foreign exception too.
1295         * libsupc++/eh_personality.cc (PERSONALITY_FUNCTION): Cope
1296         with forced unwinding.
1297         * libsupc++/eh_throw.cc (__cxxabiv1::__cxa_rethrow): Use
1298         _Unwind_Resume_or_Rethrow for ARM EABI.
1300 2005-11-14  Geoffrey Keating  <geoffk@apple.com>
1302         * acinclude.m4 (GLIBCXX_CHECK_LINKER_FEATURES): Don't check for
1303         shared libgcc for darwin exports.
1304         * configure: Regenerate.
1306 2005-11-13  Jonathan Wakely  <redi@gcc.gnu.org>
1308         * include/tr1/boost_shared_ptr.h (get_deleter):
1309         Declare before shared_ptr.
1310         (shared_ptr<>): Declare get_deleter as friend.
1311         (shared_ptr<>:_M_get_deleter): Private.
1313 2005-11-13  Douglas Gregor  <doug.gregor@gmail.com>
1315         PR libstdc++/24818
1316         * include/tr1/ref_wrap_iterate.h
1317         (reference_wrapper::operator()()): Don't dereferene the result of
1318         get() before calling it; it's already a reference.
1319         * testsuite/tr1/3_function_objects/reference_wrapper/invoke.cc:
1320         Test nullary calls to reference_wrappers.
1322 2005-11-11  Paolo Carlini  <pcarlini@suse.de>
1324         PR libstdc++/24808
1325         * include/tr1/type_traits (__is_abstract_helper): Rename to __in_array
1326         (with complemented logic).
1327         (is_function): Use it, don't use __conv_helper.
1328         (is_abstract): Adjust.
1329         (__conv_helper): Rename to __is_convertible_simple.
1330         (is_convertible): Adjust.
1331         * testsuite/testsuite_tr1.h (class IncompleteClass): Add.
1332         * testsuite/tr1/4_metaprogramming/composite_type_traits/is_object/
1333         24808.cc: New.
1334         * testsuite/tr1/4_metaprogramming/primary_type_categories/is_enum/
1335         24808.cc: Likewise.
1336         * testsuite/tr1/4_metaprogramming/primary_type_categories/is_function/
1337         24808.cc: Likewise.
1339 2005-11-11  Paolo Carlini  <pcarlini@suse.de>
1341         PR libstdc++/24799
1342         * include/tr1/functional (hash): Inherit from std::unary_function.
1343         * testsuite/tr1/6_containers/unordered/hash/24799.cc: New.
1345         PR libstdc++/24805
1346         * include/tr1/boost_shared_ptr.h (swap(shared_ptr<>&, shared_ptr<>&),
1347         swap(weak_ptr<>&, weak_ptr<>&)): Move inside namespace tr1.
1348         * testsuite/tr1/2_general_utilities/memory/shared_ptr/modifiers/
1349         24805.cc: New.
1351         PR libstdc++/24809
1352         * include/tr1/type_traits (__is_polymorhpic_helper): Adjust destructor.
1353         * testsuite/tr1/4_metaprogramming/type_properties/is_polymorphic/
1354         24809.cc: New.
1356 2005-11-10  Paolo Carlini  <pcarlini@suse.de>
1358         * testsuite/tr1/2_general_utilities/memory/
1359         enable_shared_from_this/not_shared.cc: Adjust, remove xfail.
1360         * testsuite/tr1/2_general_utilities/memory/
1361         enable_shared_from_this/not_shared2.cc: Likewise.
1362         * testsuite/tr1/2_general_utilities/memory/
1363         enable_shared_from_this/not_shared3.cc: Likewise.
1365 2005-11-10  Paolo Carlini  <pcarlini@suse.de>
1367         * include/tr1/boost_shared_ptr.h (_Sp_counted_base::release,
1368         weak_release): Protect barriers with __GTHREADS.
1370 2005-11-10  Paolo Carlini  <pcarlini@suse.de>
1371             Peter Dimov  <pdimov@mmltd.net>
1373         * include/tr1/boost_shared_ptr.h (_Sp_counted_base::release):
1374         Optimize by manually inlining weak_release.
1376         * include/tr1/boost_shared_ptr.h (_Sp_counted_base::release,
1377         weak_release): Use explicit memory barriers.
1379 2005-11-09  Benjamin Kosnik  <bkoz@redhat.com>
1380             Paolo Carlini  <pcarlini@suse.de>
1381             Gabriel Dos Reis  <gdr@integrable-solutions.net>
1383         PR libstdc++/22203
1384         * numeric_limits.cc: Split into...
1385         * numeric_limits/specialization.cc: ..this.
1386         * numeric_limits/is_iec559.cc: Same.
1387         * numeric_limits/sign.cc: Same.
1388         * numeric_limits/quiet_NaN.cc: Same.
1389         * numeric_limits/digits10.cc: Same.
1390         * numeric_limits/denorm_min.cc: Same.
1391         * numeric_limits/min_max.cc: Same.
1392         * numeric_limits/epsilon.cc: Same.
1393         * numeric_limits/infinity.cc: Same.
1394         * numeric_limits/traps.cc: New.
1396 2005-11-09  Paolo Carlini  <pcarlini@suse.de>
1398         * include/tr1/boost_shared_ptr.h: Trivial formatting fixes.
1400 2005-11-08  Benjamin Kosnik  <bkoz@redhat.com>
1402         * testsuite/lib/libstdc++.exp (check_v3_target_debug_mode): Use
1403         exe as the executable extension.
1405         * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Change gnu defaults to
1406         new.
1407         (GLIBCXX_ENABLE_PCH): Adjust message order.
1408         * configure: Regenerate.
1409         
1410         * scripts/testsuite_flags.in (query): Correct print_usagex typo.
1412         * include/bits/functexcept.h: Remove argument names.
1414         * src/mt_allocator.cc: Adjust comment.
1415         
1416 2005-11-06  Paolo Carlini  <pcarlini@suse.de>
1418         PR libstdc++/18174
1419         * include/bits/stl_queue.h (priority_queue): Tweak a bit the
1420         comment describing the container.
1422 2005-11-05  Paolo Carlini  <pcarlini@suse.de>
1424         * configure.host: Add | rs6000 to the cpu_defines_dir switch,
1425         consistently with the try_cpu one.
1427 2005-11-05  Paolo Carlini  <pcarlini@suse.de>
1429         PR libstdc++/22203
1430         * include/bits/c++config: Include cpu_defines.h.
1431         * include/Makefile.am: Add cpu_defines.h to host_headers.
1432         * configure.host: Add cpu_defines_dir.
1433         * configure.ac: Use it.
1434         * config/cpu/powerpc/cpu_defines.h: New.
1435         * config/cpu/generic/cpu_defines.h: Likewise.
1436         * configure: Regenerate.
1437         * Makefile.in: Likewise.
1438         * include/Makefile.in: Likewise.
1439         * libmath/Makefile.in: Likewise.
1440         * libsupc++/Makefile.in: Likewise.
1441         * po/Makefile.in: Likewise.
1442         * src/Makefile.in: Likewise.    
1443         * testsuite/Makefile.in: Likewise.
1445 2005-11-03  Paolo Carlini  <pcarlini@suse.de>
1447         * include/ext/sso_string_base.h (__sso_string_base<>::_M_swap):
1448         Change the various traits_type::copy call to always copy the
1449         entire local buffer; return early and don't do a full swap on
1450         the lengths for two common cases; change two _S_copy to plain
1451         traits_type::copy.
1453 2005-11-02  Thomas Kho  <tkho@ucla.edu>
1455         PR libstdc++/23425
1456         * include/bits/stl_vector.h (vector<>::clear): Open code
1457         in terms of _Destroy.
1459 2005-11-02  Paolo Carlini  <pcarlini@suse.de>
1461         * include/bits/vector.tcc (vector<>::_M_fill_assign): Qualify fill_n.
1463 2005-11-01  Paolo Carlini  <pcarlini@suse.de>
1465         PR libstdc++/24595
1466         * include/tr1/boost_shared_ptr.h (shared_ptr<>::get_deleter):
1467         Move out of shared_ptr.
1468         * testsuite/tr1/2_general_utilities/memory/shared_ptr/misc/24595.cc:
1469         New.
1471 2005-10-30  Paolo Carlini  <pcarlini@suse.de>
1473         PR libstdc++/20213
1474         * include/c_std/std_csignal.h: Adjust comment as per 17.4.1.2/4.
1475         * include/c_std/std_cstdlib.h: Likewise.
1476         * include/c_std/std_cstdio.h: Likewise.
1477         * include/c_std/std_cstdarg.h: Likewise.
1478         * include/c_std/std_cctype.h: Likewise.
1479         * include/c_std/std_cerrno.h: Likewise.
1480         * include/c_std/std_cmath.h: Likewise.
1481         * include/c_std/std_ciso646.h: Likewise.
1482         * include/c_std/std_ctime.h: Likewise.
1483         * include/c_std/std_clocale.h: Likewise.
1484         * include/c_std/std_climits.h: Likewise.
1485         * include/c_std/std_cassert.h: Likewise.
1486         * include/c_std/std_csetjmp.h: Likewise.
1487         * include/c_std/std_cwchar.h: Likewise.
1488         * include/c_std/std_cfloat.h: Likewise.
1489         * include/c_std/std_cstring.h: Likewise.
1490         * include/c_std/std_cstddef.h: Likewise.
1491         * include/c_std/std_cwctype.h: Likewise.
1493 2005-10-29  Carey Evans  <carey.evans@gmail.com>
1495         PR libstdc++/22087
1496         * config/os/djgpp/ctype_inline.h: Fix.
1497         * config/os/djgpp/ctype_noninline.h: Likewise.
1499 2005-10-28  Paolo Carlini  <pcarlini@suse.de>
1501         PR libstdc++/24559
1502         * include/c_std/std_cwchar.h (wcspbrk): Adjust signature.
1503         * testsuite/21_strings/c_strings/wchar_t/24559.cc: New.
1505 2005-10-25  Paolo Carlini  <pcarlini@suse.de>
1507         * docs/html/ext/lwg-active.html, lwg-defects.html: Import Revision 39.
1508         * docs/html/ext/howto.html: Adjust.
1510 2005-10-21  Paolo Carlini  <pcarlini@suse.de>
1512         PR libstdc++/24450
1513         * config/locale/generic/time_members.h (__timepunct<>::
1514         __timepunct(__c_locale, const char*, size_t)): Avoid leaking
1515         memory if new throws inside _M_initialize_timepunct.
1516         * config/locale/gnu/time_members.h (__timepunct<>::
1517         __timepunct(__c_locale, const char*, size_t)): Likewise.
1518         * config/locale/gnu/message_members.h (messages<>::
1519         messages(__c_locale, const char*, size_t)): Rearrange to
1520         avoid memory leaks.
1522 2005-10-19  Paolo Carlini  <pcarlini@suse.de>
1524         * include/ext/sso_string_base.h (_M_swap): Rewrite.
1526 2005-10-19  Paolo Carlini  <pcarlini@suse.de>
1528         * include/ext/rc_string_base.h (_S_terminal): Remove.
1529         (_M_set_length): Adjust.
1530         (_S_max_size): Change to anonymous enum.
1531         (_M_max_size()): Add, returns the latter.
1532         * include/ext/sso_string_base.h: Likewise.
1533         * include/ext/vstring.h (max_size): Adjust.
1535 2005-10-17  Jonathan Wakely  <redi@gcc.gnu.org>
1537         PR libstdc++/24244
1538         * include/tr1/boost_shared_ptr.h
1539         (_Sp_counted_base::_Sp_counted_base()): When __GTHREAD_MUTEX_INIT
1540         is defined, initialize the mutex.
1542 2005-10-15  Paolo Carlini  <pcarlini@suse.de>
1544         * include/tr1/functional: Add missing #pragma GCC system_header.
1546 2005-10-14  Paolo Carlini  <pcarlini@suse.de>
1548         * include/tr1/hashtable (hashtable::m_erase): Rename to erase_node.
1549         (hashtable::erase(iterator), erase(const_iterator)): Adjust.
1551 2005-10-13  Richard Earnshaw  <richard.earnsahw@arm.com>
1553         PR libstdc++/23926
1554         * acinclude.m4 (port_specific_symbol_files): More symbol versioning
1555         fixes.
1556         * configure: Regenerate.
1558 2005-10-13  Hans-Peter Nilsson  <hp@axis.com>
1560         * testsuite/lib/libstdc++.exp (libstdc++_init): Require
1561         native testing before setting v3-sharedlib to 1.
1563 2005-10-12  Joe Buck  <Joe.Buck@synopsys.com>
1565         * docs/html/27_io/howto.html: Use reference to ifstream when
1566         including iosfwd.
1568 2005-10-11  Andrew Pinski  <pinskia@physics.uc.edu>
1570         PR libstdc++/23926
1571         * acinclude.m4 (GLIBCXX_ENABLE_SYMVERS): Fix typo in check
1572         for GNU LD.
1573         * configure: Regenerate.
1575 2005-10-10  Benjamin Kosnik  <bkoz@redhat.com>
1577         * configure.ac (libtool_VERSION): To 6:7:0.
1578         * configure: Regenerate.
1579         * testsuite/testsuite_abi.cc (check_version): Add GLIBCXX_3.4.7.
1580         * config/linker-map.gnu: Export locale::_Impl::_M_install_cache.
1582 2005-10-10  Ian Lance Taylor  <ian@airs.com>
1584         PR libstdc++/13583
1585         * include/bits/locale_classes.h (locale::_Impl::_M_install_cache):
1586         Move out of line.
1587         * src/locale.cc: Define here, add mutex.
1589 2005-10-09  Paolo Carlini  <pcarlini@suse.de>
1591         PR libstdc++/24061 (issue 6.19)
1592         * include/tr1/hashtable (struct node_const_iterator, struct
1593         hashtable_const_iterator): New, add const variants to enable separate
1594         overloadings for iterator and const_iterator in unordered_set and
1595         unordered_multiset (as required by issue 6.19).
1596         (class hashtable): Change the mutable_iterators template parameter
1597         to constant_iterators and adjust throughout the logic.
1598         (hashtable::insert(iterator, const value_type&), erase(iterator)
1599         erase(iterator, iterator)): New, as per issue 6.19.
1600         (hashtable::m_erase(node*, node**)): New, called by erase(iterator)
1601         and erase(const_iterator).
1602         (hashtable::Insert_Conv_Type): New, used by insert(iterator,
1603         const value_type&) and insert(const_iterator, const value_type&)
1604         to delegate the work to insert(const value_type&).
1605         * include/tr1/unordered_map (class unordered_map, unordered_multimap):
1606         Adjust typedefs.
1607         * include/tr1/unordered_set (class unordered_set, unordered_multiset):
1608         Likewise.
1609         * testsuite/tr1/6_containers/unordered/erase/24061-map.cc: New.
1610         * testsuite/tr1/6_containers/unordered/erase/24061-multimap.cc: New.
1611         * testsuite/tr1/6_containers/unordered/erase/24061-multiset.cc: New.
1612         * testsuite/tr1/6_containers/unordered/erase/24061-set.cc: New.
1613         * testsuite/tr1/6_containers/unordered/insert/24061-map.cc: New.
1614         * testsuite/tr1/6_containers/unordered/insert/24061-multimap.cc: New.
1615         * testsuite/tr1/6_containers/unordered/insert/24061-multiset.cc: New.
1616         * testsuite/tr1/6_containers/unordered/insert/24061-set.cc: New.
1618 2005-10-08  Kazu Hirata  <kazu@codesourcery.com>
1620         Merge from csl-arm-branch:
1621         2004-12-15  Daniel Jacobowitz  <dan@codesourcery.com>
1622         * libstdc++-v3/config/linker-map.gnu: Add ARM EABI symbols.
1624 2005-10-07  Paolo Carlini  <pcarlini@suse.de>
1626         Fix libstdc++/24196 for ext/vstring/rc by returning to the behavior
1627         of basic_string pre-2003-06-13; remove fully-dynamic-string stuff.
1628         * include/ext/rc_string_base.h (_M_refcopy): Move inside the
1629         _Rep class and remove code in macro.
1630         (__rc_string_base()): Construct with _S_empty_rep()._M_refcopy().
1631         (_M_dispose, _M_leak_hard): Remove code in macro.
1632         (_S_construct): Return _S_empty_rep()._M_refcopy() for empty string.
1633         (_M_grab): Adjust.
1635         * include/ext/rc_string_base.h (_Rep::_M_refdata()): Minor tweak,
1636         mark throw().
1638 2005-10-07  Benjamin Kosnik  <bkoz@redhat.com>
1640         * docs/doxygen/user.cfg.in: Update to Doyxygen 1.4.4.
1642 2005-10-05  Paolo Carlini  <pcarlini@suse.de>
1644         * include/ext/sso_string_base.h (struct __sso_string_local):
1645         Remove, actually POD types cannot have user defined constructors
1646         (being aggregates) and therefore can always be members of unions.
1647         (class __sso_string_base): Adjust consistently.
1649 2005-10-05  Paolo Carlini  <pcarlini@suse.de>
1651         PR libstdc++/24198
1652         * testsuite/27_io/basic_filebuf/3.cc: Use __gnu_test::pod_ushort
1653         instead.
1654         * testsuite/27_io/basic_filebuf/seekoff/10132-2.cc: Likewise.
1655         * testsuite/27_io/basic_filebuf/seekpos/10132-3.cc: Likewise.
1656         * testsuite/27_io/basic_fstream/3.cc: Likewise; run the test.
1657         * testsuite/27_io/basic_ifstream/3.cc: Likewise; run the test.
1658         * testsuite/27_io/basic_ios/3.cc: Likewise.
1659         * testsuite/27_io/basic_iostream/3.cc: Likewise; run the test.
1660         * testsuite/27_io/basic_istream/3.cc: Likewise; run the test.
1661         * testsuite/27_io/basic_istringstream/3.cc: Likewise; run the test.
1662         * testsuite/27_io/basic_ofstream/3.cc: Likewise; run the test.
1663         * testsuite/27_io/basic_ostream/3.cc: Likewise; run the test.
1664         * testsuite/27_io/basic_ostringstream/3.cc: Likewise; run the test.
1665         * testsuite/27_io/basic_streambuf/3.cc: Likewise.
1666         * testsuite/27_io/basic_stringbuf/3.cc: Likewise.
1667         * testsuite/27_io/basic_stringstream/3.cc: Likewise; run the test.
1669 2005-10-05  Paolo Carlini  <pcarlini@suse.de>
1671         PR libstdc++/11729 (DR 280, [Ready])
1672         * include/bits/stl_iterator.h: Add reverse_iterator global
1673         functions with two template parameters (operator==, !=, <,
1674         >, <=, >=, -).
1675         * testsuite/24_iterators/reverse_iterator/11729.cc: New.
1676         * docs/html/ext/howto.html: Add an entry for issue 280.
1678 2005-10-03  Paolo Carlini  <pcarlini@suse.de>
1680         * include/tr1/hashtable
1681         (node_iterator::node_iterator(const node_iterator<,true,>&)): Fix to
1682         take a "false" (i.e., is_const == false) node_iterator.
1683         (hashtable_iterator::hashtable_iterator(const hashtable_iterator<,
1684         true,>&)): Likewise for hashtable_iterator.
1685         (hashtable::const_local_iterator): Fix typedef (is_const == true).
1686         (hashtable::const_iterator): Likewise.
1687         * testsuite/tr1/6_containers/unordered/types/map_iterator.cc: New.
1688         * testsuite/tr1/6_containers/unordered/types/multimap_iterator.cc: New.
1689         * testsuite/tr1/6_containers/unordered/types/set_iterator.cc: New.
1690         * testsuite/tr1/6_containers/unordered/types/multiset_iterator.cc: New.
1692 2005-10-02  Paolo Carlini  <pcarlini@suse.de>
1694         PR libstdc++/24054
1695         * include/tr1/hashtable (erase(const key_type&)): Return the
1696         number of elements erased.
1697         * testsuite/tr1/6_containers/unordered/hashtable/24054.cc: New.
1699 2005-10-01  Kenny Simpson  <theonetruekenny@yahoo.com>
1701         * include/tr1/tuple_iterate.h (tuple::operator=(const std::pair<>&)):
1702         Add missing return.
1704 2005-09-30  Paolo Carlini  <pcarlini@suse.de>
1706         PR libstdc++/24064
1707         * include/tr1/hashtable (hash_code_base<>::store_code): Add.
1708         (hashtable<>::insert(const value_type&)): Use it.
1709         * testsuite/tr1/6_containers/unordered/hashtable/24064.cc: New.
1711 2005-09-30  Paolo Carlini  <pcarlini@suse.de>
1713         PR libstdc++/23953
1714         * include/bits/locale_facets.tcc (__numpunct_cache<>::_M_cache,
1715         __moneypunct_cache<>::_M_cache): Check that grouping()[0] > 0.
1716         (__verify_grouping): Do the last check only if __grouping[__min] > 0.
1717         (__add_grouping<>): End recursion if *__gbeg <= 0.
1718         * testsuite/22_locale/num_get/get/char/23953.cc: New.
1719         * testsuite/22_locale/num_get/get/wchar_t/23953.cc: Likewise.
1720         * testsuite/22_locale/num_put/put/char/23953.cc: Likewise.
1721         * testsuite/22_locale/num_put/put/wchar_t/23953.cc: Likewise.
1723 2005-09-29  Chris Jefferson <chris@bubblescope.net>
1725         PR libstdc++/23978
1726         * include/tr1/tuple_iterate.h (tuple): Add operator=(std::pair).
1727         * testsuite/tr1/6_containers/tuple/creation_functions/23978.cc: New.
1728         
1729         * include/tr1/functional (ref, cref): Make inline.
1730         * include/tr1/tuple_iterate.h (tie): Correct formatting.
1731         (make_tuple): Make inline.
1733 2005-09-25  Benjamin Kosnik  <bkoz@redhat.com>
1734             Eric Botcazou  <ebotcazou@libertysurf.fr>
1736         * include/ext/mt_allocator.h
1737         (__per_type_pool<...true>::_S_initialize_once): Always call
1738         _M_initialize_once.
1739         (__common_pool<...true>::_S_initialize_once): Same.
1741 2005-09-23  Benjamin Kosnik  <bkoz@redhat.com>
1743         * testsuite/ext/mt_allocator/tune-1.cc: Clarify for single-thread.
1744         * testsuite/ext/mt_allocator/tune-2.cc: Same.
1745         * testsuite/ext/mt_allocator/tune-3.cc: Same.
1746         * testsuite/ext/mt_allocator/tune-4.cc: Same.
1748 2005-09-21  Guillaume Melquiond  <guillaume.melquiond@ens-lyon.fr>
1750         PR libstdc++/23956
1751         * include/ext/mt_allocator.h: Remove excess
1752         policy_type::_S_get_pool calls in constructors.
1753         
1754 2005-09-18  Paolo Carlini  <pcarlini@suse.de>
1756         PR libstdc++/23417 (cont)
1757         * include/bits/stl_tree.h (_Rb_tree_impl<true>): Use member
1758         initialization list for -Weffc++.
1760 2005-09-16  Janis Johnson  <janis187@us.ibm.com>
1762         * testsuite/27_io/basic_ostream/inserters_arithmetic/char/23871.cc:
1763         New.
1765 2005-09-15  Benjamin Kosnik  <bkoz@redhat.com>
1767         PR libstdc++/21674
1768         PR libstdc++/22205
1769         PR libstdc++/22222
1770         * include/bits/c++config: Set _GLIBCXX_STD regardless of __GXX_WEAK__.
1771         Add in check for __NO_INLINE__ for warning.
1772         * testsuite/lib/dg-options.exp (dg-require-debug-mode): New.
1773         * testsuite/lib/libstdc++.exp (check_v3_target_debug_mode): New.
1774         * testsuite/21_strings/basic_string/element_access/char/21674.cc:
1775         Use it.
1776         * testsuite/21_strings/basic_string/element_access/wchar_t/21674.cc:
1777         Use it.
1779 2005-09-15  Paolo Carlini  <pcarlini@suse.de>
1781         PR libstdc++/23875
1782         * include/std/std_ostream.h (operator<<(short), operator<<(unsigned
1783         short), operator<<(int), operator<<(unsigned int), operator<<(float)):
1784         Don't call operator<<(long), operator<<(unsigned long), or
1785         operator<<(double), do the work mandated by the resolution of DR117...
1786         * include/bits/ostream.tcc (operator<<(short), operator<<(unsigned
1787         short), operator<<(int), operator<<(unsigned int), operator<<(float)):
1788         ... here.
1789         * testsuite/27_io/basic_ostream/inserters_arithmetic/pod/23875.cc: New.
1791 2005-09-15  Mark Mitchell  <mark@codesourcery.com>
1793         * testsuite/testsuite_character.h: Specialize character<>
1794         templates in __gnu_cxx, not in __gnu_test.
1796 2005-09-13  Jonathan Wakely  <cow@compsoc.man.ac.uk>
1797             Benjamin Kosnik  <bkoz@redhat.com>
1799         PR libstdc++/21674
1800         * testsuite/21_strings/basic_string/element_access/char/21674.cc: New.
1801         * testsuite/21_strings/basic_string/element_access/wchar_t/21674.cc: 
1802         New.
1804 2005-09-12  David Edelsohn  <dje@gcc.gnu.org>
1806         PR libstdc++/22554
1807         PR libstdc++/23734
1808         * include/Makefile.am (stamp-assoc): Install each subgroup
1809         of headers separately.
1810         * include/Makefile.in: Regenerate.
1811         
1812 2005-09-12  Benjamin Kosnik  <bkoz@redhat.com>
1814         * testsuite/ext/mt_allocator/22309_thread.cc: Remove dg-do run.
1815         * testsuite/lib/libstdc++.exp ( proc libstdc++_init): Enable
1816         shared only for linux.
1817         
1818 2005-09-12  Benjamin Kosnik  <bkoz@redhat.com>
1819             David Edelsohn  <dje@gcc.gnu.org>
1821         PR libstdc++/22554
1822         PR libstdc++/23734
1823         * include/Makefile.am (assoc_headers): Break into five sub values.
1824         (install-headers): Use them.
1825         (stamp-assoc): Same.
1826         * include/Makefile.in: Regenerate.
1827         
1828 2005-09-12  Chris Jefferson  <chris@bubblescope.net>
1830         * include/bits/stl_algo.h (search_n): Delegate to specializations.
1831         (search_n(,,,,binary_predicate)): Likewise.
1832         (__search_n(forward_iterator_tag)): Original search_n, tweak to
1833         remove an unnecessary comparison.
1834         (__search_n(,,,,binary_predicate,forward_iterator_tag)): Likewise.
1836 2005-09-12  Jim Xochellis  <jimxoch@yahoo.gr>
1838         * include/bits/stl_algo.h
1839         (__search_n(std::random_access_iterator_tag)): Add specialization.
1840         (__search_n(,,,,binary_predicate,std::random_access_iterator_tag)):
1841         Likewise.
1843 2005-09-12  Benjamin Kosnik  <bkoz@redhat.com>
1845         PR libstdc++/23417
1846         * include/bits/stl_list.h (_List_impl): Use member initialization
1847         list for -Weffc++.
1848         * include/bits/stl_tree.h (_Rb_tree_impl): Same.
1850 2005-09-12  Paolo Carlini  <pcarlini@suse.de>
1852         PR libstdc++/23767
1853         * include/bits/stl_iterator.h (__normal_iterator::
1854         __normal_iterator<>(const __normal_iterator<_Iter, _Container>&)):
1855         Enable only when _Iter is equal to _Container::pointer.
1856         * testsuite/21_strings/basic_string/types/23767.cc: New.
1857         * testsuite/23_containers/vector/types/23767.cc: Likewise.
1858         * testsuite/ext/vstring/types/23767.cc: Likewise.
1860 2005-09-11  Benjamin Kosnik  <bkoz@redhat.com>
1862         PR libstdc++/19265
1863         PR libstdc++/22309
1864         * include/ext/mt_allocator.h
1865         (__gnu_cxx::__create_handler): Remove.
1866         (__pool<true>::_M_destroy_thread_key): Compatibility only.
1867         (__pool<true>::_M_initialize(__destroy): Same.
1868         (__pool<true>::_M_initialize): New.
1869         (__pool<true>::_M_initialize_once): Nothing fancy.
1870         (__pool<true>::_M_once): Remove.
1871         (__common_pool): New.
1872         (__common_pool_base): New.      
1873         (__per_type_pool): New.
1874         (__per_type_pool_base): New.
1875         * src/mt_allocator.cc: Same.
1876         * config/linker-map.gnu (__pool<true>::_M_initialize()): Add.
1877         
1878 2005-09-11  Jakub Jelinek  <jakub@redhat.com>
1880         PR libstdc++/19265
1881         PR libstdc++/22309
1882         * src/mt_allocator.cc (__gnu_internal::freelist_mutex): Make static.
1883         (__gnu_internal::__freelist): New type.
1884         (__gnu_internal::freelist): New variable.
1885         (__gnu_internal::_M_destroy_thread_key): New function.
1886         (__gnu_cxx::__pool<true>::_M_destroy): Don't delete
1887         _M_thread_freelist_initial.
1888         (__gnu_cxx::__pool<true>::_M_initialize): Make argument nameless.
1889         Don't use _M_thread_freelist and _M_thread_freelist_initial
1890         __pool<true> fields, instead use __gnu_internal::freelist fields, call
1891         gthread_key_create just once.  Use
1892         __gnu_internal::_M_destroy_thread_key as key destructor.        
1893         (__gnu_cxx::__pool<true>::_M_get_thread_id): Store size_t id
1894         rather than _Thread_record* in the thread specific value.  Don't
1895         use _M_thread_freelist __pool<true> field, instead use
1896         __gnu_internal::freelist fields.
1897         (__gnu_cxx::__pool<true>::_M_destroy_thread_key): Do nothing.
1899 2005-09-11  Benjamin Kosnik  <bkoz@redhat.com>
1900             Jakub Jelinek  <jakub@redhat.com>
1902         PR libstdc++/19265
1903         PR libstdc++/22309      
1904         * testsuite/testsuite_shared.cc: New.
1905         * testsuite/lib/dg-options.exp (dg-require-sharedlib): New.
1906         * testsuite/lib/libstdc++.exp (libstdc++_init): Look for shared
1907         library, and set v3-sharedlib based on this.
1908         (check_v3_target_sharedlib): New.
1909         (proc v3-build_support): Build shared objects.
1910         * testsuite/ext/mt_allocator/22309_thread.cc: New, use above.
1912 2005-09-11  Paolo Carlini  <pcarlini@suse.de>
1914         PR libstdc++/23781
1915         * include/bits/stl_list.h (_List_iterator<>::
1916         _List_iterator(_List_node_base*), _List_const_iterator<>::
1917         _List_const_iterator(const _List_node_base*)): Make explicit.
1918         (list<>::begin(), list<>::end(), list<>::pop_back()): Adjust
1919         consistently.
1920         * include/bits/list.tcc (list<>::insert, list<>::erase): Adjust
1921         consistently.
1922         * include/bits/stl_tree.h (_Rb_tree_iterator<>::
1923         _Rb_tree_iterator(_Link_type), _Rb_tree_const_iterator<>::
1924         _Rb_tree_const_iterator(_Link_type)): Make explicit.
1925         (_Rb_tree<>::begin(), _Rb_tree<>::end()): Adjust consistently.
1926         * include/ext/slist (_Slist_iterator<>::_Slist_iterator(_Node*)):
1927         Make explicit.
1928         (slist<>::erase(iterator), slist<>::erase(iterator, iterator)):
1929         Adjust consistently.
1930         * include/tr1/hashtable (hashtable_iterator<>::
1931         hashtable_iterator(hash_node<>**)): Make explicit.
1932         * testsuite/23_containers/list/23781.cc: New.
1933         * testsuite/23_containers/map/23781.cc: Likewise.
1934         * testsuite/23_containers/multimap/23781.cc: Likewise.
1935         * testsuite/23_containers/multiset/23781.cc: Likewise.
1936         * testsuite/23_containers/set/23781.cc: Likewise.
1937         * testsuite/ext/slist/23781.cc: Likewise.
1938         * testsuite/tr1/6_containers/unordered/23781.cc: Likewise.
1939         * testsuite/23_containers/map/operators/1_neg.cc: Adjust dg-error
1940         line numbers.
1941         * testsuite/23_containers/set/operators/1_neg.cc: Likewise.
1943         * include/tr1/array (array<>::begin(), array<>::end()): Adjust
1944         stylistically for consistency with the other containers.
1946 2005-09-10  Joseph S. Myers  <joseph@codesourcery.com>
1948         * testsuite/26_numerics/cmath/c99_classification_macros_c.cc:
1949         XFAIL on *-*-linux*, not *-*-linux-gnu.
1951 2005-09-09  Benjamin Kosnik  <bkoz@redhat.com>
1952             Jakub Jelinek  <jakub@redhat.com>
1954         * src/debug.cc (iterator_base_mutex): Make static for internal
1955         linkage.
1956         * src/locale_init.cc (locale_mutex): Same.
1957         * src/mt_allocator.cc (freelist_mutex): Same.
1958         * src/pool_allocator.cc (palloc_init_mutex): Same.
1959         
1960 2005-09-02  Paolo Carlini  <pcarlini@suse.de>
1962         * testsuite/tr1/6_containers/unordered/hashtable/23465.cc:
1963         Reduce maximum size and lf.
1965 2005-09-01  Benjamin Kosnik  <bkoz@redhat.com>
1967         * include/c_std/std_cmath.h: Declare C99 functions and helper
1968         functions as inline.
1970 2005-09-01  Benjamin Kosnik  <bkoz@redhat.com>
1971             Paolo Carlini  <pcarlini@suse.de>
1972         
1973         * testsuite/lib/libstdc++.exp (check_v3_target_cxa_atexit): Fix
1974         comment.
1976 2005-09-01  Benjamin Kosnik  <bkoz@redhat.com>
1978         * testsuite/lib/libstdc++.exp (check_v3_target_cxa_atexit): New.
1979         * testsuite/lib/dg-options.exp (dg-require-cxa-atexit): New.
1980         * testsuite/ext/mt_allocator/deallocate_local-6.cc: New.
1981         * testsuite/ext/mt_allocator/deallocate_local-8.cc: New.
1982         * testsuite/ext/mt_allocator/deallocate_local_thread-5.cc: New.
1983         * testsuite/ext/mt_allocator/deallocate_local_thread-7.cc: New.
1984         * docs/html/ext/mt_allocator.html: Add link to examples.
1985         * testsuite/testsuite_allocator.h: Tweak.
1986         * testsuite/ext/mt_allocator/deallocate_global-2.cc: Same.
1987         * testsuite/ext/mt_allocator/deallocate_global-4.cc: Same.
1988         * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: Same.
1989         * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: Same.
1990         * testsuite/ext/mt_allocator/deallocate_local-2.cc: Same.
1991         * testsuite/ext/mt_allocator/deallocate_local-4.cc: Same.
1992         * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: Same.
1993         * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: Same.
1994         * testsuite/ext/new_allocator/deallocate_global.cc: Same.
1995         * testsuite/ext/new_allocator/deallocate_local.cc: Same.
1997 2005-08-31  Paolo Carlini  <pcarlini@suse.de>
1998             Kaspar Fischer <fischerk@inf.ethz.ch> 
2000         PR libstdc++/23632
2001         * include/bits/stl_bvector.h (_Bit_iterator::operator[],
2002         _Bit_const_iterator::operator[]): Const-ify.
2003         * testsuite/23_containers/vector/bool/23632.cc: New.
2005 2005-08-30  Paolo Carlini  <pcarlini@suse.de>
2007         PR libstdc++/23578 (cont)
2008         * include/bits/stl_bvector.h (class vector<bool>): Add
2009         a dummy data() to avoid problems in debug-mode.
2011 2005-08-30  Paolo Carlini  <pcarlini@suse.de>
2013         * testsuite/ext/hash_map/23528.cc: New.
2015 2005-08-29  Paolo Carlini  <pcarlini@suse.de>
2017         * include/bits/stl_map.h (class map): ... and a missing @a.
2019 2005-08-29  Paolo Carlini  <pcarlini@suse.de>
2021         * include/bits/stl_map.h (class map): Add missing % in comment.
2023 2005-08-29  Paolo Carlini  <pcarlini@suse.de>
2025         PR libstdc++/23578 (DR 464 [Ready])
2026         * include/bits/stl_map.h (class map): Add at(const key_type&)
2027         member functions.
2028         * include/bits/stl_vector.h (class vector): Add data() member
2029         functions.
2030         * include/debug/map.h (class map): Adjust consistently.
2031         * include/debug/vector (class vector): Likewise.
2032         * testsuite/23_containers/map/element_access/1.cc: New.
2033         * testsuite/23_containers/vector/data_access/1.cc: Likewise.
2034         * docs/html/ext/howto.html: Add an entry for DR 464.
2036 2005-08-26  Benjamin Kosnik  <bkoz@redhat.com>
2038         PR libstdc++/20534 (contd)
2039         * src/debug.cc (__gnu_debug): Remove __fancy_abort definition.
2040         Remove cstdio and cstdlib includes.
2041         * include/debug/debug.h: Define inline here. Remove
2042         _GLIBCXX_DEBUG_ABORT.
2043         * include/debug/macros.h: Remove __fancy_abort declaration,
2044         _GLIBXX_DEBUG_ABORT definition.
2045         * config/linker-map.gnu: Remove export.
2046         
2047 2005-08-26  Benjamin Kosnik  <bkoz@redhat.com>
2049         * scripts/check_compile (UNIQUE_ID): New. Use to name output files.
2051 2005-08-26  Paolo Carlini  <pcarlini@suse.de>
2053         PR libstdc++/23081
2054         * include/tr1/array: Implement members back(), front(), data(),
2055         and the tuple interface; tidy.
2056         * testsuite/tr1/6_containers/array/element_access/back.cc: New.
2057         * testsuite/tr1/6_containers/array/element_access/data.cc: Likewise.
2058         * testsuite/tr1/6_containers/array/element_access/front.cc: Likewise.
2059         * testsuite/tr1/6_containers/array/tuple_interface/get.cc: Likewise.
2060         * testsuite/tr1/6_containers/array/tuple_interface/tuple_element.cc:
2061         Likewise.
2062         * testsuite/tr1/6_containers/array/tuple_interface/tuple_size.cc:
2063         Likewise.
2065 2005-08-25  Paolo Carlini  <pcarlini@suse.de>
2067         * include/tr1/hashtable: Use __throw_exception_again,
2068         not naked throw, in the catch clauses.
2070 2005-08-24  Lawrence Lim  <llim@redhat.com>
2071             Jakub Jelinek  <jakub@redhat.com>
2072             Benjamin Kosnik  <bkoz@redhat.com>
2074         PR libstdc++/23550
2075         * testsuite/21_strings/char_traits/requirements/char/1.cc
2076         (test01): Simplify counting.
2077         * testsuite/21_strings/char_traits/requirements/wchar_t/1.cc
2078         (test02): Same.
2080 2005-08-24  Paolo Carlini  <pcarlini@suse.de>
2081             Chris Jefferson  <chris@bubblescope.net>
2083         PR libstdc++/23465
2084         * include/tr1/hashtable (hash_code_base::m_swap): Use
2085         std::swap.
2086         (hashtable<>::hashtable(const hashtable&)): Use copy_code;
2087         fix m_allocate_node call.
2088         * testsuite/tr1/6_containers/unordered/hashtable/23465.cc: New.
2090 2005-08-23  Kelley Cook  <kcook@gcc.gnu.org>
2092         PR libstdc++/23462
2093         * testsuite/data/sgetn.txt: Revert to previous FSF address.
2095 2005-08-23  Thomas Kho  <tkho@ucla.edu>
2097         PR libstdc++/23358
2098         * include/bits/stl_construct.h (_Destroy(_ForwardIterator,
2099         _ForwardIterator, allocator<_Tp>)): Removed unused template parameter.
2101 2005-08-22  Geoffrey Keating  <geoffk@apple.com>
2103         * testsuite/23_containers/vector/resize/1.cc: XFAIL on darwin8.
2104         * testsuite/27_io/ios_base/storage/2.cc: Likewise.
2106 2005-08-19  J"orn Rennecke <joern.rennecke@st.com>
2108         * config/cpu/sh/atomicity.h: Replace broken generic code with current
2109         copy of generic/atomicity.h .
2111 2005-08-17  Kelley Cook  <kcook@gcc.gnu.org>
2113         * All files: Update FSF address.
2115 2005-08-09  Andrew Pinski  <pinskia@physics.uc.edu>
2117         * testsuite/26_numerics/cmath/c99_classification_macros_c.cc:
2118         xfail on *-*-darwin*.
2120 2005-08-03  Geoffrey Keating  <geoffk@apple.com>
2122         * configure.ac: Don't use GCC_NO_EXECUTABLES or clear
2123         GLIBCXX_IS_NATIVE on Darwin crosses.
2124         * acinclude.m4 (GLIBCXX_CONFIGURE_TESTSUITE): Don't skip configuring
2125         the testsuite just because there's no symbol versioning.
2126         * configure: Regenerate.
2128         * acinclude.m4 (GLIBCXX_CHECK_SETRLIMIT_ancilliary): Print
2129         status messages.
2130         (GLIBCXX_CHECK_S_ISREG_OR_S_IFREG): Likewise.
2131         (GLIBCXX_CHECK_POLL): Likewise.
2132         (GLIBCXX_CHECK_WRITEV): Likewise.
2133         (GLIBCXX_CHECK_INT64_T): Likewise.
2134         (GLIBCXX_CHECK_LFS): Likewise.
2135         * configure: Regenerate.
2137 2005-07-30  Andrew Pinski  <pinskia@physics.uc.edu>
2139         * scripts/make_exports.pl: Pass --strip-underscores to c++filt.
2141 2005-07-29  H.J. Lu  <hongjiu.lu@intel.com>
2143         PR libstdc++/22284
2144         * libsupc++/eh_personality.cc (PERSONALITY_FUNCTION): Revert
2145         the change to info.ttype_base.
2146         
2147 2005-07-28  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
2149         * include/std/std_valarray.h: Fix grammar in comments.
2151 2005-07-25  Geoffrey Keating  <geoffk@apple.com>
2153         * acinclude.m4 (GLIBCXX_ENABLE_SYMVERS): Handle darwin-export,
2154         and make it the default for Darwin.
2155         * scripts/make-exports.pl: New.
2156         * src/Makefile.am: Update for changes to GLIBCXX_ENABLE_SYMVERS.
2157         Handle darwin-export.
2158         * configure: Regenerate.
2159         * include/Makefile.in: Regenerate.
2160         * libmath/Makefile.in: Regenerate.
2161         * libsupc++/Makefile.in: Regenerate.
2162         * po/Makefile.in: Regenerate.
2163         * src/Makefile.in: Regenerate.
2164         * testsuite/Makefile.in: Regenerate.
2166 2005-07-25  Dave Odell  <evilalias@hotmail.com>
2168         PR libstdc++/23053
2169         * include/tr1/hashtable (hashtable<>::find_node): Const-ify.
2170         * testsuite/tr1/6_containers/unordered/hashtable/23053.cc: New.
2172 2005-07-25  Paolo Carlini  <pcarlini@suse.de>
2174         PR libstdc++/22515
2175         * include/bits/basic_string.h: Declare the specialization
2176         operator>>(basic_istream<char>&, basic_string<char>&).
2177         * include/std/std_istream.h: Declate the specialization
2178         operator>>(basic_istream<char>&, char*).
2179         * include/std/std_streambuf.h (basic_streambuf): Add friend
2180         declarations for the above.
2181         * src/istream.cc: Define the above.
2182         * testsuite/27_io/basic_istream/extractors_character/char/4.cc: New.
2183         * testsuite/27_io/basic_istream/extractors_character/wchar_t/4.cc:
2184         Likewise.
2185         * testsuite/performance/27_io/ifstream_extract_chars.cc: Likewise.
2187 2005-07-20  Paolo Carlini  <pcarlini@suse.de>
2189         * include/bits/streambuf.tcc (xsgetn, xsputn): Use streamsize
2190         instead of size_t.
2191         * src/streambuf.cc (__copy_streambufs): Likewise.
2193 2005-07-18  Paolo Carlini  <pcarlini@suse.de>
2195         * config/locale/gnu/ctype_members.cc (do_is(mask, wchar_t)):
2196         Speed-up for the common case of mask == ctype_base::space;
2197         otherwise, exit the loop earlier if the mask is one of the
2198         elementary ones.
2200 2005-07-14  Paolo Carlini  <pcarlini@suse.de>
2202         PR libstdc++/21193 (float, double, long double)
2203         * include/tr1/functional (hash<float>, hash<double>):
2204         Reimplement exploiting the Fnv_hash<>::hash helper.
2205         (hash<long double>): Reimplement using frexp (in this
2206         case, due to random padding bits, the former approach
2207         is not generally viable).
2209 2005-07-13  Paolo Carlini  <pcarlini@suse.de>
2211         PR libstdc++/21193 (string & wstring)
2212         * include/tr1/functional (hash<string>, hash<wstring>):
2213         Reimplement using the FNV hash.
2215         * include/tr1/functional: Trivial formatting fixes.
2217 2005-07-11  Paolo Carlini  <pcarlini@suse.de>
2219         * include/bits/ostream.tcc (basic_ostream<>::operator<<(long),
2220         basic_ostream<>::operator<<(long long)): Don't deal with oct
2221         and hex and casts to unsigned here...
2222         * include/bits/locale_facets.tcc (__int_to_char(_CharT*, long,
2223         const _CharT*, ios_base::fmtflags), __int_to_char(_CharT*, long
2224         long, const _CharT*, ios_base::fmtflags)): ... do that here,
2225         instead, as per Table 57.
2226         (num_put<>::_M_insert_int): Tidy treatment of numeric base and
2227         sign.
2228         * include/std/std_ostream.h (operator<<(short), operator<<(int)):
2229         Adjust logic, as per the letter of the resolution of DR117 [WP].
2230         * testsuite/22_locale/num_put/put/char/10.cc: New.
2231         * testsuite/22_locale/num_put/put/wchar_t/10.cc: Likewise.
2232         * testsuite/27_io/basic_ostream/inserters_arithmetic/char/7.cc:
2233         Likewise.
2234         * testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/7.cc:
2235         Likewise.
2237 2005-07-07  David Edelsohn  <edelsohn@gnu.org>
2239         * testsuite/ext/pb_assoc/example/tree_order_statistics_join.cc:
2240         Change map_t to map_type.
2242 2005-07-05  Paolo Carlini  <pcarlini@suse.de>
2244         Add class __versa_string, a versatile "basic_string-type" class:
2245         an additional, non-standard, template parameter allows to specify
2246         the preferred base class. Two are provided: __rc_string_base,
2247         which implements a behavior very similar to our standard string,
2248         and __sso_string_base, not reference-counted and optimized for
2249         short strings. 
2250         * include/ext/rc_string_base.h: New.
2251         * include/ext/sso_string_base.h: Likewise.
2252         * include/ext/vstring.h: Likewise.
2253         * include/ext/vstring.tcc: Likewise.
2254         * include/ext/vstring_fwd.h: Likewise.
2255         * include/ext/vstring_util.h: Likewise.
2256         * include/Makefile.am: Add.
2257         * include/Makefile.in: Regenerate.
2258         * testsuite/ext/vstring/explicit_instantiation/1.cc: New.
2259         * testsuite/ext/vstring/explicit_instantiation/2.cc: Likewise.
2260         * testsuite/ext/vstring/explicit_instantiation/char/1.cc: Likewise.
2261         * testsuite/ext/vstring/explicit_instantiation/wchar_t/1.cc: Likewise.
2263         * Makefile.in: Regenerate with autotools 1.9.3 (to date, the version
2264         officially used by v3).
2265         * aclocal.m4: Likewise.
2266         * libmath/Makefile.in: Likewise.
2267         * libsupc++/Makefile.in: Likewise.
2268         * po/Makefile.in: Likewise.
2269         * src/Makefile.in: Likewise.
2270         * testsuite/Makefile.in: Likewise.
2272 2005-07-01  Paolo Carlini  <pcarlini@suse.de>
2274         Port from libstdcxx_so_7-branch:
2275         2004-10-28  Chris Jefferson  <chris@bubblescope.net>
2277         PR libstdc++/17441
2278         * include/bit/stl_algo.h (find(,,,input_iterator_tag),
2279         find(,,,random_access_interator_tag),
2280         find_if(,,,input_iterator_tag),
2281         find_if(,,,random_access_iterator_tag)): Uglify function name.
2282         (find, find_if): Use new uglified specialisation names.
2283         * testsuite/25_algorithms/find/17441.cc: New.
2285 2005-06-30  Ulrich Weigand  <uweigand@de.ibm.com>
2287         * include/ext/pb_assoc/detail/hash_fn/mask_based_range_hashing.hpp
2288         (PB_ASSOC_CLASS_C_DEC::s_highest_bit_1): Cast constant 1 to target
2289         type before shifting.
2291 2005-06-29  Paolo Carlini  <pcarlini@suse.de>
2292             
2293         PR libstdc++/21244 (cont^2)
2294         * include/ext/bitmap_allocator.h: Convert everywhere
2295         bits_per_block to size_t.       
2297 2005-06-29  Jonathan Wakely  <redi@gcc.gnu.org>
2299         * include/bits/basic_string.h, include/bits/locale_facets.h: Fix
2300         Doxygen comments that use wrong parameter and function names.
2302 2005-06-29  Paolo Carlini  <pcarlini@suse.de>
2304         * docs/html/ext/lwg-active.html, lwg-defects.html: Import Revision 37.
2305         * docs/html/ext/howto.html: Adjust.
2307 2005-06-29  Paolo Carlini  <pcarlini@suse.de>
2309         PR libstdc++/22131
2310         * include/bits/locale_facets.tcc (num_get<>::_M_extract_int,
2311         num_get<>::_M_extract_float, money_get<>::_M_extract):
2312         Adjust to assign the result also when digit grouping is
2313         wrong (but the grammar is correct), as per 22.2.2.1.2, p11-12
2314         (NB: consistently for money_get too).
2315         * config/locale/generic/c_locale.cc (__convert_to_v): Do
2316         not check ios_base::failbit at the outset.
2317         * config/locale/gnu/c_locale.cc: Likewise.
2318         * testsuite/22_locale/money_get/get/char/22131.cc: New.
2319         * testsuite/22_locale/money_get/get/wchar_t/22131.cc: Likewise.
2320         * testsuite/22_locale/num_get/get/char/22131.cc: Likewise.
2321         * testsuite/22_locale/num_get/get/wchar_t/22131.cc: Likewise.
2322         * testsuite/22_locale/num_get/get/char/12.cc: Adjust.
2323         * testsuite/22_locale/num_get/get/wchar_t/12.cc: Likewise.
2324         * testsuite/27_io/basic_istream/extractors_arithmetic/char/07.cc:
2325         Likewise.
2326         * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/07.cc:
2327         Likewise.
2329 2005-06-28  Paul Brook  <paul@codesourcery.com>
2331         * acinclude.m4 (GLIBCXX_ENABLE_SJLJ_EXCEPTIONS): Check for
2332         __cxa_end_cleanup.
2333         * libsupc++/Makefile.am (sources): Add eh_call.c and eh_arm.c.
2334         * libsupc++/eh_arm.cc: New file.
2335         * libsupc++/eh_call.cc: New file.
2336         * libsupc++/eh_catch.cc (__cxa_get_exception_ptr): Use
2337         __gxx_caught_object.
2338         (__cxa_begin_catch): Ditto. Use __is_gxx_exception_class. Call
2339         _Unwind_Complete when using the ARM EABI.
2340         (__cxa_end_catch): Use __is_gxx_exception_class.
2341         * libsupc++/eh_personality.cc: Define NO_SIZE_OF_ENCODED_VALUE when
2342         using the ARM EABI.
2343         (save_caught_exception, restore_caught_exception): New functions.
2344         (_throw_typet): New typedef.
2345         (get_ttype_entry, get_adjusted_ptr, check_exception_spec): Add ARM
2346         EABI implementations.
2347         (PERSONALITY_FUNCTION): Use new functions.  Addd support for ARM EABI
2348         unwinding libary.
2349         (__cxa_unexpected): Disable when using the ARM EABI.
2350         * libsupc++/eh_throw.cc (__cxa_throw): Use __GXX_INIT_EXCEPTION_CLASS.
2351         (__cxa_rethrow): Use __is_gxx_exception_class.  Call
2352         _Unwind_RaiseException when using the ARM EABI.
2353         * libsupc++/unwind-cxx.h (struct __cxa_exception): Add fields for ARM
2354         EABI semantics.
2355         (struct __cxa_eh_globals): Ditto.
2356         (__cxa_call_terminate): Add prototype.
2357         (__cxa_type_match, __cxa_begin_cleanup, __cxa_end_cleanup): Add
2358         prototypes.
2359         (__get_exception_header_from_obj, __get_exception_header_from_ue):
2360         Move earlier in file.
2361         (__is_gxx_exception_class, __GXX_INIT_EXCEPTION_CLASS,
2362         __gxx_caught_object): New functions.
2363         * aclocal.m4: Regenerate.
2364         * configure: Regenerate.
2365         * Makefile.in: Regenerate.
2366         * include/Makefile.in: Regenerate.
2367         * libmath/Makefile.in: Regenerate.
2368         * libsupc++/Makefile.in: Regenerate.
2369         * po/Makefile.in: Regenerate.
2370         * src/Makefie.in: Regenerate.
2371         * testsuite/makefile.in: Regenerate.
2373 2005-06-27  Paolo Carlini  <pcarlini@suse.de>
2375         PR libstdc++/22102
2376         * include/bits/stl_tree.h (insert_unique(iterator, const _Val&),
2377         insert_equal((iterator, const _Val&)): Reimplement to check both
2378         before and after, as per the algorithm "ignore hint if wrong" of
2379         ISO paper N1780.
2381 2005-06-27  Benjamin Kosnik  <bkoz@redhat.com>
2382             Ami Tavory  <pbassoc@gmail.com>
2383         
2384         * docs/html/documentation.html: Add link for policy based
2385         associative containers docs.
2386         * docs/html/ext/pb_assoc/Std_hash_set_impl.jpg: New.
2387         * docs/html/ext/pb_assoc/acks.html: New.
2388         * docs/html/ext/pb_assoc/balls_and_bins.jpg: New.
2389         * docs/html/ext/pb_assoc/basic_assoc_cntnr.html: New.
2390         * docs/html/ext/pb_assoc/basic_assoc_cntnr_compound_data.html: New.
2391         * docs/html/ext/pb_assoc/basic_assoc_cntnr_no_data.html: New.
2392         * docs/html/ext/pb_assoc/basic_ds_tag.html: New.
2393         * docs/html/ext/pb_assoc/basic_hash_assoc_cntnr.html: New.
2394         * docs/html/ext/pb_assoc/basic_hash_ds_tag.html: New.
2395         * docs/html/ext/pb_assoc/basic_invalidation_guarantee.html: New.
2396         * docs/html/ext/pb_assoc/basic_ms_tag.html: New.
2397         * docs/html/ext/pb_assoc/basic_tree_assoc_cntnr.html: New.
2398         * docs/html/ext/pb_assoc/
2399           basic_tree_assoc_cntnr_const_node_iterator.html: New.
2400         * docs/html/ext/pb_assoc/
2401           basic_tree_assoc_cntnr_node_iterator.html: New.
2402         * docs/html/ext/pb_assoc/basic_tree_assoc_cntnr_rev.html: New.
2403         * docs/html/ext/pb_assoc/basic_tree_assoc_cntnr_rev_it.html: New.
2404         * docs/html/ext/pb_assoc/basic_tree_ds_tag.html: New.
2405         * docs/html/ext/pb_assoc/cc_hash_assoc_cntnr.html: New.
2406         * docs/html/ext/pb_assoc/cc_hash_ds_tag.html: New.
2407         * docs/html/ext/pb_assoc/
2408           cc_hash_max_collision_check_resize_trigger.html: New.
2409         * docs/html/ext/pb_assoc/cc_hash_policy_cd.jpg: New.
2410         * docs/html/ext/pb_assoc/cd.jpg: New.
2411         * docs/html/ext/pb_assoc/component_requirements.html: New.
2412         * docs/html/ext/pb_assoc/compound_data_enabled_ms_tag.html: New.
2413         * docs/html/ext/pb_assoc/compound_data_type.html: New.
2414         * docs/html/ext/pb_assoc/compound_ds_tag.html: New.
2415         * docs/html/ext/pb_assoc/concepts.html: New.
2416         * docs/html/ext/pb_assoc/contact.html: New.
2417         * docs/html/ext/pb_assoc/counter_update_metadata.html: New.
2418         * docs/html/ext/pb_assoc/counter_update_policy.html: New.
2419         * docs/html/ext/pb_assoc/data_enabled_ms_tag.html: New.
2420         * docs/html/ext/pb_assoc/design.html: New.
2421         * docs/html/ext/pb_assoc/different_underlying_dss.jpg: New.
2422         * docs/html/ext/pb_assoc/direct_mask_range_hashing.html: New.
2423         * docs/html/ext/pb_assoc/direct_mod_range_hashing.html: New.
2424         * docs/html/ext/pb_assoc/disclaimer.html: New.
2425         * docs/html/ext/pb_assoc/ds_gen.html: New.
2426         * docs/html/ext/pb_assoc/ds_tag_cd.jpg: New.
2427         * docs/html/ext/pb_assoc/ds_traits.html: New.
2428         * docs/html/ext/pb_assoc/embedded_lists_1.jpg: New.
2429         * docs/html/ext/pb_assoc/embedded_lists_2.jpg: New.
2430         * docs/html/ext/pb_assoc/examples.html: New.
2431         * docs/html/ext/pb_assoc/exception_guarantees_specifics.html: New.
2432         * docs/html/ext/pb_assoc/find_invalidation_guarantee.html: New.
2433         * docs/html/ext/pb_assoc/find_iterators_cd.jpg: New.
2434         * docs/html/ext/pb_assoc/find_iterators_range_ops_1.jpg: New.
2435         * docs/html/ext/pb_assoc/find_iterators_range_ops_2.jpg: New.
2436         * docs/html/ext/pb_assoc/generics.html: New.
2437         * docs/html/ext/pb_assoc/gp_hash_assoc_cntnr.html: New.
2438         * docs/html/ext/pb_assoc/gp_hash_ds_tag.html: New.
2439         * docs/html/ext/pb_assoc/gp_hash_policy_cd.jpg: New.
2440         * docs/html/ext/pb_assoc/hash_and_probe_general.html: New.
2441         * docs/html/ext/pb_assoc/hash_based_containers.html: New.
2442         * docs/html/ext/pb_assoc/hash_cd.jpg: New.
2443         * docs/html/ext/pb_assoc/hash_exponential_size_policy.html: New.
2444         * docs/html/ext/pb_assoc/hash_fn.html: New.
2445         * docs/html/ext/pb_assoc/hash_load_check_resize_trigger.html: New.
2446         * docs/html/ext/pb_assoc/hash_policies.html: New.
2447         * docs/html/ext/pb_assoc/hash_policy_cd.jpg: New.
2448         * docs/html/ext/pb_assoc/hash_prime_size_policy.html: New.
2449         * docs/html/ext/pb_assoc/hash_range_hashing_seq_diagram.jpg: New.
2450         * docs/html/ext/pb_assoc/hash_range_hashing_seq_diagram2.jpg: New.
2451         * docs/html/ext/pb_assoc/hash_ranged_hash_range_hashing_fns.jpg: New.
2452         * docs/html/ext/pb_assoc/hash_standard_resize_policy.html: New.
2453         * docs/html/ext/pb_assoc/home.html: New.
2454         * docs/html/ext/pb_assoc/index.html: New.
2455         * docs/html/ext/pb_assoc/insert_resize_sequence_diagram1.jpg: New.
2456         * docs/html/ext/pb_assoc/insert_resize_sequence_diagram2.jpg: New.
2457         * docs/html/ext/pb_assoc/insert_resize_sequence_diagram3.jpg: New.
2458         * docs/html/ext/pb_assoc/insert_type_methods.html: New.
2459         * docs/html/ext/pb_assoc/interface.html: New.
2460         * docs/html/ext/pb_assoc/interval_node_invariants.jpg: New.
2461         * docs/html/ext/pb_assoc/introduction.html: New.
2462         * docs/html/ext/pb_assoc/invalidation_guarantee_cd.jpg: New.
2463         * docs/html/ext/pb_assoc/invalidation_guarantee_erase.jpg: New.
2464         * docs/html/ext/pb_assoc/lib_download.html: New.
2465         * docs/html/ext/pb_assoc/linear_probe_fn.html: New.
2466         * docs/html/ext/pb_assoc/list_updates.html: New.
2467         * docs/html/ext/pb_assoc/lu_assoc_cntnr.html: New.
2468         * docs/html/ext/pb_assoc/lu_based_containers.html: New.
2469         * docs/html/ext/pb_assoc/lu_cd.jpg: New.
2470         * docs/html/ext/pb_assoc/lu_ds_tag.html: New.
2471         * docs/html/ext/pb_assoc/lu_ops.jpg: New.
2472         * docs/html/ext/pb_assoc/mmap_value_utils.html: New.
2473         * docs/html/ext/pb_assoc/motivation.html: New.
2474         * docs/html/ext/pb_assoc/move_to_front_update_metadata.html: New.
2475         * docs/html/ext/pb_assoc/move_to_front_update_policy.html: New.
2476         * docs/html/ext/pb_assoc/ms_cd.jpg: New.
2477         * docs/html/ext/pb_assoc/ms_gen.html: New.
2478         * docs/html/ext/pb_assoc/ms_tag_cd.jpg: New.
2479         * docs/html/ext/pb_assoc/ms_traits.html: New.
2480         * docs/html/ext/pb_assoc/node_invariant_invalidations.jpg: New.
2481         * docs/html/ext/pb_assoc/node_invariants.html: New.
2482         * docs/html/ext/pb_assoc/node_invariants.jpg: New.
2483         * docs/html/ext/pb_assoc/non_unique_mapping.html: New.
2484         * docs/html/ext/pb_assoc/non_unique_mapping_containers.jpg: New.
2485         * docs/html/ext/pb_assoc/null_data_type.html: New.
2486         * docs/html/ext/pb_assoc/null_hash_fn.html: New.
2487         * docs/html/ext/pb_assoc/null_probe_fn.html: New.
2488         * docs/html/ext/pb_assoc/order_by_key.html: New.
2489         * docs/html/ext/pb_assoc/order_statistics_key.html: New.
2490         * docs/html/ext/pb_assoc/order_statistics_key_cmp.html: New.
2491         * docs/html/ext/pb_assoc/order_statistics_node_updator.html: New.
2492         * docs/html/ext/pb_assoc/ov_tree_ds_tag.html: New.
2493         * docs/html/ext/pb_assoc/overview.html: New.
2494         * docs/html/ext/pb_assoc/pb_assoc_ex.html: New.
2495         * docs/html/ext/pb_assoc/portability.html: New.
2496         * docs/html/ext/pb_assoc/quadratic_probe_fn.html: New.
2497         * docs/html/ext/pb_assoc/range_invalidation_guarantee.html: New.
2498         * docs/html/ext/pb_assoc/rank_node_invariants.jpg: New.
2499         * docs/html/ext/pb_assoc/rationale_null_node_updator.jpg: New.
2500         * docs/html/ext/pb_assoc/rb_tree_ds_tag.html: New.
2501         * docs/html/ext/pb_assoc/reference_iterator.jpg: New.
2502         * docs/html/ext/pb_assoc/references.html: New.
2503         * docs/html/ext/pb_assoc/regression_tests.html: New.
2504         * docs/html/ext/pb_assoc/resize_general.html: New.
2505         * docs/html/ext/pb_assoc/resize_policies.html: New.
2506         * docs/html/ext/pb_assoc/resize_policy_cd.jpg: New.
2507         * docs/html/ext/pb_assoc/restoring_node_invariants.jpg: New.
2508         * docs/html/ext/pb_assoc/sample_node_updator.hpp: New.
2509         * docs/html/ext/pb_assoc/sample_probe_fn.hpp: New.
2510         * docs/html/ext/pb_assoc/sample_probe_fn.html: New.
2511         * docs/html/ext/pb_assoc/sample_range_hashing.hpp: New.
2512         * docs/html/ext/pb_assoc/sample_range_hashing.html: New.
2513         * docs/html/ext/pb_assoc/sample_ranged_hash_fn.hpp: New.
2514         * docs/html/ext/pb_assoc/sample_ranged_hash_fn.html: New.
2515         * docs/html/ext/pb_assoc/sample_ranged_probe_fn.hpp: New.
2516         * docs/html/ext/pb_assoc/sample_ranged_probe_fn.html: New.
2517         * docs/html/ext/pb_assoc/sample_resize_policy.hpp: New.
2518         * docs/html/ext/pb_assoc/sample_resize_policy.html: New.
2519         * docs/html/ext/pb_assoc/sample_resize_trigger.hpp: New.
2520         * docs/html/ext/pb_assoc/sample_size_policy.hpp: New.
2521         * docs/html/ext/pb_assoc/sample_update_policy.hpp: New.
2522         * docs/html/ext/pb_assoc/size_policies_general.html: New.
2523         * docs/html/ext/pb_assoc/splay_tree_ds_tag.html: New.
2524         * docs/html/ext/pb_assoc/timing_tests.html: New.
2525         * docs/html/ext/pb_assoc/toc.html: New.
2526         * docs/html/ext/pb_assoc/tree_assoc_cntnr.html: New.
2527         * docs/html/ext/pb_assoc/
2528           tree_assoc_cntnr_const_node_iterator.html: New.
2529         * docs/html/ext/pb_assoc/tree_assoc_cntnr_node_iterator.html: New.
2530         * docs/html/ext/pb_assoc/tree_based_containers.html: New.
2531         * docs/html/ext/pb_assoc/tree_cd.jpg: New.
2532         * docs/html/ext/pb_assoc/trigger_policies_general.html: New.
2533         * docs/html/ext/pb_assoc/tutorial.html: New.
2534         * docs/html/ext/pb_assoc/update_seq_diagram.jpg: New.
2535         * include/Makefile.am: Add assoc_srcdir, assoc_builddir, assoc_subdir,
2536         assoc_headers.
2537         * include/Makefile.in: Regenerate.
2538         * include/ext/typelist.h: New.
2539         * include/ext/pb_assoc/assoc_cntnr.hpp: New.
2540         * include/ext/pb_assoc/data_type.hpp: New.
2541         * include/ext/pb_assoc/ds_trait.hpp: New.
2542         * include/ext/pb_assoc/exception.hpp: New.
2543         * include/ext/pb_assoc/hash_policy.hpp: New.
2544         * include/ext/pb_assoc/lu_policy.hpp: New.
2545         * include/ext/pb_assoc/ms_trait.hpp: New.
2546         * include/ext/pb_assoc/tree_policy.hpp: New.
2547         * include/ext/pb_assoc/trivial_iterator_def.hpp: New.
2548         * include/ext/pb_assoc/detail/assoc_cntnr_base.hpp: New.
2549         * include/ext/pb_assoc/detail/cond_dealtor.hpp: New.
2550         * include/ext/pb_assoc/detail/constructors_destructor_fn_imps.hpp: New.
2551         * include/ext/pb_assoc/detail/ds_trait_imp.hpp: New.
2552         * include/ext/pb_assoc/detail/hash_types_traits.hpp: New.
2553         * include/ext/pb_assoc/detail/map_debug_base.hpp: New.
2554         * include/ext/pb_assoc/detail/mapping_level_imp.hpp: New.
2555         * include/ext/pb_assoc/detail/ms_category_imp.hpp: New.
2556         * include/ext/pb_assoc/detail/ms_trait_imp.hpp: New.
2557         * include/ext/pb_assoc/detail/order_statistics_imp.hpp: New.
2558         * include/ext/pb_assoc/detail/standard_policies.hpp: New.
2559         * include/ext/pb_assoc/detail/standard_sizes.hpp: New.
2560         * include/ext/pb_assoc/detail/type_utils.hpp: New.
2561         * include/ext/pb_assoc/detail/typelist.hpp: New.
2562         * include/ext/pb_assoc/detail/types_traits.hpp: New.
2563         * include/ext/pb_assoc/detail/basic_assoc_cntnr/
2564           constructor_destructor_fn_imps.hpp: New.
2565         * include/ext/pb_assoc/detail/basic_assoc_cntnr/
2566           constructors_destructor_fn_imps.hpp: New.
2567         * include/ext/pb_assoc/detail/basic_assoc_cntnr/d_extract_key.hpp: New.
2568         * include/ext/pb_assoc/detail/basic_assoc_cntnr/
2569           d_find_fn_imps.hpp: New.
2570         * include/ext/pb_assoc/detail/basic_assoc_cntnr/
2571           d_insert_fn_imps.hpp: New.
2572         * include/ext/pb_assoc/detail/basic_assoc_cntnr/erase_fn_imps.hpp: New.
2573         * include/ext/pb_assoc/detail/basic_assoc_cntnr/extract_key.hpp: New.
2574         * include/ext/pb_assoc/detail/basic_assoc_cntnr/info_fn_imps.hpp: New.
2575         * include/ext/pb_assoc/detail/basic_assoc_cntnr/
2576           insert_fn_imps.hpp: New.
2577         * include/ext/pb_assoc/detail/basic_assoc_cntnr/
2578           iterators_fn_imps.hpp: New.
2579         * include/ext/pb_assoc/detail/basic_hash_assoc_cntnr/
2580           constructor_destructor_fn_imps.hpp: New.
2581         * include/ext/pb_assoc/detail/basic_hash_assoc_cntnr/
2582           constructors_destructor_fn_imps.hpp: New.
2583         * include/ext/pb_assoc/detail/basic_hash_assoc_cntnr/
2584           resize_fn_imps.hpp: New.
2585         * include/ext/pb_assoc/detail/basic_tree_assoc_cntnr/
2586           constructor_destructor_fn_imps.hpp: New.
2587         * include/ext/pb_assoc/detail/basic_tree_assoc_cntnr/
2588           constructors_destructor_fn_imps.hpp: New.
2589         * include/ext/pb_assoc/detail/basic_tree_assoc_cntnr/
2590           erase_fn_imps.hpp: New.
2591         * include/ext/pb_assoc/detail/basic_tree_assoc_cntnr/
2592           node_iteration_fn_imps.hpp: New.
2593         * include/ext/pb_assoc/detail/basic_tree_assoc_cntnr/
2594           policy_access_fn_imps.hpp: New.
2595         * include/ext/pb_assoc/detail/basic_tree_assoc_cntnr/
2596           r_erase_fn_imps.hpp: New.
2597         * include/ext/pb_assoc/detail/basic_tree_assoc_cntnr/
2598           r_range_iteration_fn_imps.hpp: New.
2599         * include/ext/pb_assoc/detail/basic_tree_assoc_cntnr/
2600           range_iteration_fn_imps.hpp: New.     
2601         * include/ext/pb_assoc/detail/basic_tree_assoc_cntnr/
2602           split_join_fn_imps.hpp: New.
2603         * include/ext/pb_assoc/detail/bin_search_tree_/
2604           bin_search_tree_.hpp: New.
2605         * include/ext/pb_assoc/detail/bin_search_tree_/
2606           cond_dtor_entry_dealtor.hpp: New.
2607         * include/ext/pb_assoc/detail/bin_search_tree_/
2608           cond_key_dtor_entry_dealtor.hpp: New.
2609         * include/ext/pb_assoc/detail/bin_search_tree_/
2610           constructors_destructor_fn_imps.hpp: New.
2611         * include/ext/pb_assoc/detail/bin_search_tree_/debug_fn_imps.hpp: New.
2612         * include/ext/pb_assoc/detail/bin_search_tree_/erase_fn_imps.hpp: New.
2613         * include/ext/pb_assoc/detail/bin_search_tree_/find_fn_imps.hpp: New.
2614         * include/ext/pb_assoc/detail/bin_search_tree_/find_iterators.hpp: New.
2615         * include/ext/pb_assoc/detail/bin_search_tree_/info_fn_imps.hpp: New.
2616         * include/ext/pb_assoc/detail/bin_search_tree_/insert_fn_imps.hpp: New.
2617         * include/ext/pb_assoc/detail/bin_search_tree_/
2618           iterators_fn_imps.hpp: New.
2619         * include/ext/pb_assoc/detail/bin_search_tree_/node_iterators.hpp: New.
2620         * include/ext/pb_assoc/detail/bin_search_tree_/
2621           r_erase_fn_imps.hpp: New.
2622         * include/ext/pb_assoc/detail/bin_search_tree_/rotate_fn_imps.hpp: New.
2623         * include/ext/pb_assoc/detail/bin_search_tree_/
2624           split_join_fn_imps.hpp: New.
2625         * include/ext/pb_assoc/detail/cc_hash_assoc_cntnr/
2626           constructor_destructor_fn_imps.hpp: New.
2627         * include/ext/pb_assoc/detail/cc_ht_map_/cc_ht_map_.hpp: New.
2628         * include/ext/pb_assoc/detail/cc_ht_map_/cmp_fn_imps.hpp: New.
2629         * include/ext/pb_assoc/detail/cc_ht_map_/
2630           cond_key_dtor_entry_dealtor.hpp: New.
2631         * include/ext/pb_assoc/detail/cc_ht_map_/
2632           constructor_destructor_fn_imps.hpp: New.
2633         * include/ext/pb_assoc/detail/cc_ht_map_/
2634           constructor_destructor_no_store_hash_fn_imps.hpp: New.
2635         * include/ext/pb_assoc/detail/cc_ht_map_/
2636           constructor_destructor_store_hash_fn_imps.hpp: New.
2637         * include/ext/pb_assoc/detail/cc_ht_map_/debug_fn_imps.hpp: New.
2638         * include/ext/pb_assoc/detail/cc_ht_map_/
2639           debug_no_store_hash_fn_imps.hpp: New.
2640         * include/ext/pb_assoc/detail/cc_ht_map_/
2641           debug_store_hash_fn_imps.hpp: New.
2642         * include/ext/pb_assoc/detail/cc_ht_map_/entry_list_fn_imps.hpp: New.
2643         * include/ext/pb_assoc/detail/cc_ht_map_/erase_fn_imps.hpp: New.
2644         * include/ext/pb_assoc/detail/cc_ht_map_/
2645           erase_no_store_hash_fn_imps.hpp: New.
2646         * include/ext/pb_assoc/detail/cc_ht_map_/
2647           erase_store_hash_fn_imps.hpp: New.
2648         * include/ext/pb_assoc/detail/cc_ht_map_/
2649           find_fn_imps.hpp: New.
2650         * include/ext/pb_assoc/detail/cc_ht_map_/
2651           find_no_store_hash_fn_imps.hpp: New.
2652         * include/ext/pb_assoc/detail/cc_ht_map_/
2653           find_store_hash_fn_imps.hpp: New.
2654         * include/ext/pb_assoc/detail/cc_ht_map_/info_fn_imps.hpp: New.
2655         * include/ext/pb_assoc/detail/cc_ht_map_/insert_fn_imps.hpp: New.
2656         * include/ext/pb_assoc/detail/cc_ht_map_/
2657           insert_no_store_hash_fn_imps.hpp: New.
2658         * include/ext/pb_assoc/detail/cc_ht_map_/
2659           insert_store_hash_fn_imps.hpp: New.
2660         * include/ext/pb_assoc/detail/cc_ht_map_/iterators_fn_imps.hpp: New.
2661         * include/ext/pb_assoc/detail/cc_ht_map_/
2662           policy_access_fn_imps.hpp: New.
2663         * include/ext/pb_assoc/detail/cc_ht_map_/resize_fn_imps.hpp: New.
2664         * include/ext/pb_assoc/detail/cc_ht_map_/
2665           resize_no_store_hash_fn_imps.hpp: New.
2666         * include/ext/pb_assoc/detail/cc_ht_map_/
2667           resize_store_hash_fn_imps.hpp: New.
2668         * include/ext/pb_assoc/detail/cc_ht_map_/size_fn_imps.hpp: New.
2669         * include/ext/pb_assoc/detail/cc_ht_map_/standard_policies.hpp: New.
2670         * include/ext/pb_assoc/detail/eq_fn/eq_by_less.hpp: New.
2671         * include/ext/pb_assoc/detail/eq_fn/hash_eq_fn.hpp: New.
2672         * include/ext/pb_assoc/detail/gp_hash_assoc_cntnr/
2673           constructor_destructor_fn_imps.hpp: New.
2674         * include/ext/pb_assoc/detail/gp_ht_map_/
2675           constructor_destructor_fn_imps.hpp: New.
2676         * include/ext/pb_assoc/detail/gp_ht_map_/
2677           constructor_destructor_no_store_hash_fn_imps.hpp: New.
2678         * include/ext/pb_assoc/detail/gp_ht_map_/
2679           constructor_destructor_store_hash_fn_imps.hpp: New.
2680         * include/ext/pb_assoc/detail/gp_ht_map_/debug_fn_imps.hpp: New.
2681         * include/ext/pb_assoc/detail/gp_ht_map_/
2682           debug_no_store_hash_fn_imps.hpp: New.
2683         * include/ext/pb_assoc/detail/gp_ht_map_/
2684           debug_store_hash_fn_imps.hpp: New.
2685         * include/ext/pb_assoc/detail/gp_ht_map_/erase_fn_imps.hpp: New.
2686         * include/ext/pb_assoc/detail/gp_ht_map_/
2687           erase_no_store_hash_fn_imps.hpp: New.
2688         * include/ext/pb_assoc/detail/gp_ht_map_/
2689           erase_store_hash_fn_imps.hpp: New.
2690         * include/ext/pb_assoc/detail/gp_ht_map_/find_fn_imps.hpp: New.
2691         * include/ext/pb_assoc/detail/gp_ht_map_/
2692           find_no_store_hash_fn_imps.hpp: New.
2693         * include/ext/pb_assoc/detail/gp_ht_map_/
2694           find_store_hash_fn_imps.hpp: New.
2695         * include/ext/pb_assoc/detail/gp_ht_map_/gp_ht_map_.hpp: New.
2696         * include/ext/pb_assoc/detail/gp_ht_map_/info_fn_imps.hpp: New.
2697         * include/ext/pb_assoc/detail/gp_ht_map_/insert_fn_imps.hpp: New.
2698         * include/ext/pb_assoc/detail/gp_ht_map_/
2699           insert_no_store_hash_fn_imps.hpp: New.
2700         * include/ext/pb_assoc/detail/gp_ht_map_/
2701           insert_store_hash_fn_imps.hpp: New.
2702         * include/ext/pb_assoc/detail/gp_ht_map_/iterator_fn_imps.hpp: New.
2703         * include/ext/pb_assoc/detail/gp_ht_map_/
2704           policy_access_fn_imps.hpp: New.
2705         * include/ext/pb_assoc/detail/gp_ht_map_/resize_fn_imps.hpp: New.
2706         * include/ext/pb_assoc/detail/gp_ht_map_/
2707           resize_no_store_hash_fn_imps.hpp: New.
2708         * include/ext/pb_assoc/detail/gp_ht_map_/
2709           resize_store_hash_fn_imps.hpp: New.
2710         * include/ext/pb_assoc/detail/hash_fn/
2711           direct_mask_range_hashing_imp.hpp: New.
2712         * include/ext/pb_assoc/detail/hash_fn/
2713           direct_mod_range_hashing_imp.hpp: New.
2714         * include/ext/pb_assoc/detail/hash_fn/linear_probe_fn_imp.hpp: New.
2715         * include/ext/pb_assoc/detail/hash_fn/
2716           mask_based_range_hashing.hpp: New.
2717         * include/ext/pb_assoc/detail/hash_fn/mod_based_range_hashing.hpp: New.
2718         * include/ext/pb_assoc/detail/hash_fn/probe_fn_base.hpp: New.
2719         * include/ext/pb_assoc/detail/hash_fn/quadratic_probe_fn_imp.hpp: New.
2720         * include/ext/pb_assoc/detail/hash_fn/ranged_hash_fn.hpp: New.
2721         * include/ext/pb_assoc/detail/hash_fn/ranged_probe_fn.hpp: New.
2722         * include/ext/pb_assoc/detail/lu_assoc_cntnr/
2723           constructor_destructor_fn_imps.hpp: New.
2724         * include/ext/pb_assoc/detail/lu_assoc_cntnr/
2725           policy_access_fn_imps.hpp: New.
2726         * include/ext/pb_assoc/detail/lu_map_/
2727           constructor_destructor_fn_imps.hpp: New.
2728         * include/ext/pb_assoc/detail/lu_map_/debug_fn_imps.hpp: New.
2729         * include/ext/pb_assoc/detail/lu_map_/erase_fn_imps.hpp: New.
2730         * include/ext/pb_assoc/detail/lu_map_/find_fn_imps.hpp: New.
2731         * include/ext/pb_assoc/detail/lu_map_/info_fn_imps.hpp: New.
2732         * include/ext/pb_assoc/detail/lu_map_/insert_fn_imps.hpp: New.
2733         * include/ext/pb_assoc/detail/lu_map_/iterators_fn_imps.hpp: New.
2734         * include/ext/pb_assoc/detail/lu_map_/lu_map_.hpp: New.
2735         * include/ext/pb_assoc/detail/lu_map_/policy_access_fn_imps.hpp: New.
2736         * include/ext/pb_assoc/detail/lu_policy/
2737           counter_lu_metadata_imp.hpp: New.
2738         * include/ext/pb_assoc/detail/lu_policy/counter_lu_policy_imp.hpp: New.
2739         * include/ext/pb_assoc/detail/lu_policy/mtf_lu_policy_imp.hpp: New.
2740         * include/ext/pb_assoc/detail/ov_tree_map_/cond_dtor.hpp: New.
2741         * include/ext/pb_assoc/detail/ov_tree_map_/
2742           constructors_destructor_fn_imps.hpp: New.
2743         * include/ext/pb_assoc/detail/ov_tree_map_/debug_fn_imps.hpp: New.
2744         * include/ext/pb_assoc/detail/ov_tree_map_/erase_fn_imps.hpp: New.
2745         * include/ext/pb_assoc/detail/ov_tree_map_/find_fn_imps.hpp: New.
2746         * include/ext/pb_assoc/detail/ov_tree_map_/info_fn_imps.hpp: New.
2747         * include/ext/pb_assoc/detail/ov_tree_map_/insert_fn_imps.hpp: New.
2748         * include/ext/pb_assoc/detail/ov_tree_map_/iterators_fn_imps.hpp: New.
2749         * include/ext/pb_assoc/detail/ov_tree_map_/node_iterators.hpp: New.
2750         * include/ext/pb_assoc/detail/ov_tree_map_/ov_tree_map_.hpp: New.
2751         * include/ext/pb_assoc/detail/ov_tree_map_/split_join_fn_imps.hpp: New.
2752         * include/ext/pb_assoc/detail/rb_tree_map_/
2753           constructors_destructor_fn_imps.hpp: New.
2754         * include/ext/pb_assoc/detail/rb_tree_map_/debug_fn_imps.hpp: New.
2755         * include/ext/pb_assoc/detail/rb_tree_map_/erase_fn_imps.hpp: New.
2756         * include/ext/pb_assoc/detail/rb_tree_map_/find_fn_imps.hpp: New.
2757         * include/ext/pb_assoc/detail/rb_tree_map_/info_fn_imps.hpp: New.
2758         * include/ext/pb_assoc/detail/rb_tree_map_/insert_fn_imps.hpp: New.
2759         * include/ext/pb_assoc/detail/rb_tree_map_/node.hpp: New.
2760         * include/ext/pb_assoc/detail/rb_tree_map_/rb_tree_.hpp: New.
2761         * include/ext/pb_assoc/detail/rb_tree_map_/split_join_fn_imps.hpp: New.
2762         * include/ext/pb_assoc/detail/resize_policy/
2763           cc_hash_max_collision_resize_trigger_imp.hpp: New.
2764         * include/ext/pb_assoc/detail/resize_policy/
2765           hash_exponential_size_policy_imp.hpp: New.
2766         * include/ext/pb_assoc/detail/resize_policy/
2767           hash_load_check_resize_trigger_imp.hpp: New.
2768         * include/ext/pb_assoc/detail/resize_policy/
2769           hash_prime_size_policy_imp.hpp: New.
2770         * include/ext/pb_assoc/detail/resize_policy/
2771           hash_standard_resize_policy_imp.hpp: New.
2772         * include/ext/pb_assoc/detail/resize_policy/
2773           ht_prime_size_policy_imp.hpp: New.
2774         * include/ext/pb_assoc/detail/resize_policy/size_base.hpp: New.
2775         * include/ext/pb_assoc/detail/splay_tree_/
2776           constructors_destructor_fn_imps.hpp: New.
2777         * include/ext/pb_assoc/detail/splay_tree_/debug_fn_imps.hpp: New.
2778         * include/ext/pb_assoc/detail/splay_tree_/erase_fn_imps.hpp: New.
2779         * include/ext/pb_assoc/detail/splay_tree_/find_fn_imps.hpp: New.
2780         * include/ext/pb_assoc/detail/splay_tree_/info_fn_imps.hpp: New.
2781         * include/ext/pb_assoc/detail/splay_tree_/insert_fn_imps.hpp: New.
2782         * include/ext/pb_assoc/detail/splay_tree_/node.hpp: New.
2783         * include/ext/pb_assoc/detail/splay_tree_/splay_fn_imps.hpp: New.
2784         * include/ext/pb_assoc/detail/splay_tree_/splay_tree_.hpp: New.
2785         * include/ext/pb_assoc/detail/splay_tree_/split_join_fn_imps.hpp: New.
2786         * include/ext/pb_assoc/detail/tree_assoc_cntnr/
2787           constructor_destructor_fn_imps.hpp: New.
2788         * include/ext/pb_assoc/detail/tree_policy/
2789           null_node_updator_imp.hpp: New.
2790         * include/ext/pb_assoc/detail/tree_policy/
2791           order_statistics_imp.hpp: New.
2792         * include/ext/pb_assoc/detail/typelist/typelist_append.hpp: New.
2793         * include/ext/pb_assoc/detail/typelist/typelist_apply.hpp: New.
2794         * include/ext/pb_assoc/detail/typelist/typelist_at_index.hpp: New.
2795         * include/ext/pb_assoc/detail/typelist/typelist_contains.hpp: New.
2796         * include/ext/pb_assoc/detail/typelist/typelist_filter.hpp: New.
2797         * include/ext/pb_assoc/detail/typelist/typelist_transform.hpp: New.
2798         * include/ext/pb_assoc/detail/typelist/
2799           typelist_typelist_append.hpp: New.
2800         * include/ext/pb_assoc/detail/unordered_iterator/
2801           const_find_iterator.hpp: New.
2802         * include/ext/pb_assoc/detail/unordered_iterator/
2803           const_iterator.hpp: New.
2804         * include/ext/pb_assoc/detail/unordered_iterator/
2805           find_iterator.hpp: New.
2806         * include/ext/pb_assoc/detail/unordered_iterator/iterator.hpp: New.
2807         * include/ext/pb_assoc/detail/value_type_adapter/
2808           constructor_destructor_and_related.hpp: New.
2809         * include/ext/pb_assoc/detail/value_type_adapter/
2810           erase_fn_imps.hpp: New.
2811         * include/ext/pb_assoc/detail/value_type_adapter/
2812           erase_if_pred.hpp: New.
2813         * include/ext/pb_assoc/detail/value_type_adapter/find_fn_imps.hpp: New.
2814         * include/ext/pb_assoc/detail/value_type_adapter/info_fn_imps.hpp: New.
2815         * include/ext/pb_assoc/detail/value_type_adapter/
2816         insert_fn_imps.hpp: New.
2817         * include/ext/pb_assoc/detail/value_type_adapter/
2818         invalidation_guarantee_selector.hpp: New.
2819         * include/ext/pb_assoc/detail/value_type_adapter/
2820         it_value_type_traits.hpp: New.
2821         * include/ext/pb_assoc/detail/value_type_adapter/iterator.hpp: New.
2822         * include/ext/pb_assoc/detail/value_type_adapter/
2823         iterator_fn_imps.hpp: New.
2824         * include/ext/pb_assoc/detail/value_type_adapter/ref_pair.hpp: New.
2825         * include/ext/pb_assoc/detail/value_type_adapter/
2826         value_type_adapter.hpp: New.
2827         * include/ext/pb_assoc/detail/value_type_adapter/
2828         value_type_traits.hpp: New.
2829         * testsuite/Makefile.am (CLEANFILES): Add .o, .dat, .cc.
2830         * testsuite/Makefile.in: Regenerate.
2831         * testsuite/testsuite_common_types.h: New.
2832         * testsuite/testsuite_visualization.h: New.
2833         * testsuite/ext/pb_assoc/example/basic_map.cc: New.
2834         * testsuite/ext/pb_assoc/example/basic_multimap.cc: New.
2835         * testsuite/ext/pb_assoc/example/basic_set.cc: New.
2836         * testsuite/ext/pb_assoc/example/ds_traits.cc: New.
2837         * testsuite/ext/pb_assoc/example/erase_if.cc: New.
2838         * testsuite/ext/pb_assoc/example/extract_key.cc: New.
2839         * testsuite/ext/pb_assoc/example/hash_find_neg.cc: New.
2840         * testsuite/ext/pb_assoc/example/hash_illegal_resize.cc: New.
2841         * testsuite/ext/pb_assoc/example/hash_initial_size.cc: New.
2842         * testsuite/ext/pb_assoc/example/hash_load_set_change.cc: New.
2843         * testsuite/ext/pb_assoc/example/hash_mod.cc: New.
2844         * testsuite/ext/pb_assoc/example/hash_resize.cc: New.
2845         * testsuite/ext/pb_assoc/example/hash_resize_neg.cc: New.
2846         * testsuite/ext/pb_assoc/example/hash_shift_mask.cc: New.
2847         * testsuite/ext/pb_assoc/example/mapping_level.cc: New.
2848         * testsuite/ext/pb_assoc/example/mapping_level_neg.cc: New.
2849         * testsuite/ext/pb_assoc/example/ms_traits.cc: New.
2850         * testsuite/ext/pb_assoc/example/ranged_hash.cc: New.
2851         * testsuite/ext/pb_assoc/example/store_hash.cc: New.
2852         * testsuite/ext/pb_assoc/example/tree_intervals.cc: New.
2853         * testsuite/ext/pb_assoc/example/tree_join.cc: New.
2854         * testsuite/ext/pb_assoc/example/tree_order_statistics.cc: New.
2855         * testsuite/ext/pb_assoc/example/tree_order_statistics_join.cc: New.
2856         * testsuite/ext/pb_assoc/example/tree_split.cc: New.
2857         * testsuite/performance/20_util/allocator/(insert.cc,
2858           insert_insert.cc, list_sort_search.cc, map_mt_find.cc, map_thread.cc,
2859           producer_consumer.cc): Recast to use typelists and move to...
2860         * testsuite/performance/23_containers/find/map.cc: New.
2861         * testsuite/performance/23_containers/index/map.cc: New.
2862         * testsuite/performance/23_containers/insert/associative.cc: New.
2863         * testsuite/performance/23_containers/insert/sequence.cc: New.
2864         * testsuite/performance/23_containers/insert_erase/associative.cc: New.
2865         * testsuite/performance/23_containers/producer_consumer/
2866         (associative.cc, sequence.cc): New.
2867         * testsuite/performance/23_containers/sort_search/list.cc: New.
2868         * testsuite/performance/23_containers/container_benchmark.cc: Remove.
2869         * testsuite/performance/23_containers/map_create_fill.cc: Move...
2870         * testsuite/performance/23_containers/create/map.cc: ...here.
2871         * testsuite/performance/23_containers/set_create_from_sorted.cc: Move.
2872         * testsuite/performance/23_containers/create_from_sorted/set.cc: here.
2873         * testsuite/performance/23_containers/list_create_fill_sort.cc: Move...
2874         * testsuite/performance/23_containers/create_sort/list.cc: ...here.
2875         * testsuite/performance/23_containers/set_insert_from_sorted.cc: Move.
2876         * testsuite/performance/23_containers/insert_from_sorted/set.cc: here.
2877         
2878 2005-06-23  Jakub Jelinek  <jakub@redhat.com>
2880         PR libstdc++/22109
2881         * src/compatibility.cc (_GLIBCXX_SYMVER_COMPATIBILITY): Remove.
2882         (istreambuf_iterator, basic_fstream, basic_ifstream, basic_ofstream,
2883         _M_copy, _M_move, _M_assign, _M_disjunct, _M_check_length,
2884         _M_set_length_and_sharable, ignore, eq): Define to XX suffixed
2885         variants.
2886         (ignore (streamsize)): Remove _W prefixed aliases.
2887         (_GLIBCXX_3_4_SYMVER_SPECIAL, _GLIBCXX_3_4_5_SYMVER_SPECIAL,
2888         _GLIBCXX_APPLY_SYMVER_SPECIAL): Remove.
2889         (_GLIBCXX_3_4_SYMVER, _GLIBCXX_3_4_5_SYMVER): Add XXname argument.
2890         Use #XXname instead of #name as the alias argument.
2891         * config/abi/compatibility.h: Replace uses of
2892         _GLIBCXX_APPLY_SYMVER_SPECIAL with _GLIBCXX_APPLY_SYMVER.  Always
2893         pass 2 arguments to the _GLIBCXX_APPLY_SYMVER macro.
2894         * include/bits/char_traits.h (char_traits::eq): Revert 2005-06-15
2895         change.
2896         * acinclude.m4: Decrease glibcxx_min_gnu_ld_version back to 21400.
2897         * configure: Rebuilt.
2899 2005-06-19  Benjamin Kosnik  <bkoz@redhat.com>
2901         PR libstdc++/22111
2902         * acinclude.m4 (GLIBCXX_CONFIGURE_TESTSUITE): Remove
2903         GLIBCXX_TEST_ABI. Remove duplicate _GLIBCXX_ASM_SYMVER define.
2904         Don't enable abi testing unless versioned.
2905         * configure: Regenerate.
2906         * testsuite/Makefile.am (check-abi): Remove conditional.
2907         * testsuite/Makefile.in: Regenerate.
2908         * testsuite/libstdc++-abi/abi.exp: Call build_support, then check
2909         v3-symver before proceeding.
2910         * testsuite/lib/libstdc++.exp (libstdc++-dg-test): Set v3-symvers
2911         if _GLIBCXX_SYMVER.
2912         
2913 2005-06-17  Paolo Carlini  <pcarlini@suse.de>
2915         Port from libstdcxx_so_7-branch:
2916         2005-01-12  Christopher Jefferson <chris@bubblescope.net>
2918         * include/bits/stl_function.h (mem_fun_t, const_mem_fun_t,
2919         mem_fun_ref_t, const_mem_fun_ref_t, mem_fun1_t, const_mem_fun1_t,
2920         mem_fun1_ref_t, const_mem_fun1_ref_t): Remove overloads for void
2921         return type, just an old HP/SGI workaround.
2922         * testsuite/20_util/functional/binders.cc: Move to...
2923         * testsuite/20_util/functional/binders/3113.cc: ...here.
2924         * testsuite/20_util/functional/binders/1.cc: New.
2926 2005-06-17  Jonathan Wakely  <redi@gcc.gnu.org>
2928         * docs/html/21_strings/gotw29a.txt: Update code to corrected version.
2930 2005-06-17  Jakub Jelinek  <jakub@redhat.com>
2931             Benjamin Kosnik  <bkoz@redhat.com>
2933         * config/abi/alpha-linux-gnu/baseline_symbols.txt: Update.
2934         * config/abi/hppa-linux-gnu/baseline_symbols.txt: Same.
2935         * config/abi/mips-linux-gnu/baseline_symbols.txt: Same.
2936         * config/abi/sparc-linux-gnu/baseline_symbols.txt: Same.
2938         * config/abi/alpha-freebsd5/baseline_symbols.txt: Remove.
2939         * config/abi/i386-freebsd4/baseline_symbols.txt: Same.
2940         * config/abi/i386-freebsd5/baseline_symbols.txt: Same.
2941         * config/abi/sparc-freebsd5/baseline_symbols.txt: Same.
2943         * config/abi/arm-linux-gnu/baseline_symbols.txt: Remove.
2944         * config/abi/m68k-linux-gnu/baseline_symbols.txt: Same.
2946 2005-06-17  Jakub Jelinek  <jakub@redhat.com>
2948         * config/abi/ia64-linux-gnu/baseline_symbols.txt: Update.
2949         * config/abi/s390x-linux-gnu/baseline_symbols.txt: Update.
2950         * config/abi/s390-linux-gnu/baseline_symbols.txt: Update.
2951         * config/abi/x86_64-linux-gnu/baseline_symbols.txt: Update.
2952         * config/abi/x86_64-linux-gnu/32/baseline_symbols.txt: Update.
2953         * config/abi/powerpc-linux-gnu/baseline_symbols.txt: Update.
2954         * config/abi/i486-linux-gnu/baseline_symbols.txt: Update.
2955         * config/abi/i386-linux-gnu/baseline_symbols.txt: Update.
2956         * config/abi/powerpc64-linux-gnu/baseline_symbols.txt: New file.
2957         * config/abi/powerpc64-linux-gnu/32/baseline_symbols.txt: New file.
2959 2005-06-16  Jakub Jelinek  <jakub@redhat.com>
2961         * src/compatibility.cc: Include bits/c++config.h first.
2962         (_GLIBCXX_SYMVER_COMPATIBILITY): Define if _GLIBCXX_SYMVER
2963         and PIC are both defined.
2964         * include/bits/char_traits.h (char_traits::eq): Rename
2965         only if _GLIBCXX_SYMVER_COMPATIBILITY is defined.
2967 2005-06-16  Jakub Jelinek  <jakub@redhat.com>
2969         * acinclude.m4 ((GLIBCXX_ENABLE_SYMVERS): Rename _GLIBCXX_SIZE_T_IS_INT
2970         to _GLIBCXX_SIZE_T_IS_UINT.  Define _GLIBCXX_PTRDIFF_T_IS_INT.
2971         * configure: Regenerate.
2972         * config.h.in: Regenerate.
2973         * src/compatibility.cc (istream:ignore(streamsize)): Use
2974         _GLIBCXX_PTRDIFF_T_IS_INT instead of _GLIBCXX_SIZE_T_IS_INT.
2975         * config/abi/compatibility.h: Rename _GLIBCXX_SIZE_T_IS_INT
2976         to _GLIBCXX_SIZE_T_IS_UINT.  Use _GLIBCXX_PTRDIFF_T_IS_INT
2977         instead for symbols with streamsize arguments.
2979 2005-06-16  Jakub Jelinek  <jakub@redhat.com>
2981         * config/linker-map.gnu: Also export
2982         _ZNSt13basic_istreamIwSt11char_traitsIwEE6ignoreE[il][il].
2984 2005-06-15  Benjamin Kosnik  <bkoz@redhat.com>
2986         * configure.ac (libtool_VERSION): To 6:6:0.
2987         * configure: Regenerate.
2988         * config/linker-map.gnu: Edit.
2989         * src/istream.cc: Move istream::ignore(streamsize) specializations...
2990         * src/compatibility.cc: ...here. New.
2991         * include/bits/char_traits.h (char_traits::eq): Rename when
2992         appropriate.
2993         * acinclude.m4 (GLIBCXX_ENABLE_SYMVERS): Define _GLIBCXX_SIZE_T_IS_INT.
2994         Bump glibcxx_min_gnu_ld_version to 21590.
2995         * configure: Regenerate.
2996         * acconfig.h: Remove _GLIBCXX_ASM_SYMVER.
2997         * config.h.in: Regenerate.
2998         * src/Makefile.am (sources): Add compatibility.cc.
2999         * src/Makefile.in: Regenerate.
3000         * include/Makefile.am (host_headers_noinst): Add compatibility.h.
3001         * include/Makefile.in: Regenerate.
3002         * testsuite/testsuite_abi.h (symbol): Add data members.
3003         * testsuite/testsuite_abi.cc (check_version): Add GLIBCXX_3.4.5,
3004         GLIBCXX_3.4.6.  Remove deprecated versions. Do a better job
3005         version checking.
3007 2005-06-15  Paolo Carlini  <pcarlini@suse.de>
3009         * include/tr1/hashtable: Trivial formatting fixes.
3010         * include/tr1/unordered_map: Likewise.
3011         * include/tr1/unordered_set: Likewise.
3013 2005-06-14  Tom Tromey  <tromey@redhat.com>
3015         PR libgcj/19877:
3016         * configure, aclocal.m4: Rebuilt.
3017         * Makefile.in, include/Makefile.in, libmath/Makefile.in,
3018         libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in,
3019         testsuite/Makefile.in: Likewise.
3021 2005-06-08  Benjamin Kosnik  <bkoz@redhat.com>
3023         PR libstdc++/21955
3024         * include/std/std_sstream.h (basic_stringbuf::showmanyc): Add.
3025         Remove unnecessary this->_M_mode decoration.
3026         * include/bits/fstream.tcc: Adjust line spacing.        
3027         * testsuite/27_io/basic_streambuf/in_avail/char/1.cc: New, test
3028         base class behavior.
3029         * testsuite/27_io/basic_streambuf/in_avail/wchar_t/1.cc: Same.
3030         * testsuite/27_io/basic_stringbuf/in_avail/char/21955.cc: New.
3031         * testsuite/27_io/basic_stringbuf/in_avail/char/1.cc: Match
3032         filebuf behavior.
3033         * testsuite/27_io/basic_stringbuf/in_avail/wchar_t/1.cc: Same.
3034         * testsuite/27_io/basic_stringbuf/str/wchar_t/1.cc: Same.
3035         * testsuite/27_io/basic_stringbuf/str/char/1.cc: Same.
3036         * testsuite/27_io/basic_streambuf/in_avail/char/9701-3.cc: Move...
3037         * testsuite/27_io/basic_filebuf/in_avail/char/9701-3.cc: ...here.
3038         
3039 2005-06-07  Benjamin Kosnik  <bkoz@redhat.com>
3041         * acinclude.m4 (GLIBCXX_ENABLE_C99): Use C++ compiler for complex
3042         tests.
3043         * configure: Regenerated.
3045 2005-06-07  Adrian Straetling  <straetling@de.ibm.com>
3047         * config/cpu/s390/atomicity.h: (__exchange_and_add, 
3048         __atomic_add): Use the builtins for atomic memory operations.
3050 2005-06-06  Paolo Carlini  <pcarlini@suse.de>
3052         PR libstdc++/21770 (cont: __gnu_debug::string)
3053         * include/debug/string: Use _Base typedefs for pointer, const_pointer,
3054         reference, const_reference, size_type, difference_type.
3055         * testsuite/21_strings/basic_string/2.cc: New.
3057 2005-06-06  Paolo Carlini  <pcarlini@suse.de>
3059         PR libstdc++/21770 (cont: debug-mode)
3060         * include/debug/deque: Use _Base typedefs for pointer, const_pointer,
3061         reference, const_reference.
3062         * include/debug/list: Likewise.
3063         * include/debug/map.h: Likewise.
3064         * include/debug/multimap.h: Likewise.
3065         * include/debug/multiset.h: Likewise.
3066         * include/debug/set.h: Likewise.
3067         * include/debug/vector: Likewise.
3069 2005-06-06  Paolo Carlini  <pcarlini@suse.de>
3071         Port from libstdcxx_so_7-branch:
3072         2004-09-24  Paolo Carlini  <pcarlini@suse.de>
3073                     Jonathan Wakely  <redi@gcc.gnu.org>
3075         * include/bits/stl_list.h (list::list(size_type, value_type,
3076         const allocator_type&): Implement according to the letter of the
3077         standard, i.e., don't use two overloads, not equivalent in case
3078         of non default constructible T.
3079         (list::resize(size_type, const value_type&)): Fix the signature:
3080         according to the standard the second argument is by value; also,
3081         don't use two overloads.
3082         * include/bits/list.tcc (list::resize(size_type, const value_type&)):
3083         Adjust consistently the signature.
3084         * include/bits/stl_deque.h (deque::deque(size_type, value_type,
3085         const allocator_type&)): Likewise.
3086         (deque::resize(size_type, const value_type&)): Likewise.
3087         * include/bits/stl_vector.h (vector::vector(size_type, value_type,
3088         const allocator_type&)): Likewise.
3089         (vector::resize(size_type, const value_type&)): Likewise.
3090         * testsuite/testsuite_hooks.h: Add NonDefaultConstructible test type.
3091         * testsuite/23_containers/deque/explicit_instantiation/2.cc: New.
3092         * testsuite/23_containers/list/explicit_instantiation/2.cc: New.
3093         * testsuite/23_containers/map/explicit_instantiation/2.cc: New.
3094         * testsuite/23_containers/multimap/explicit_instantiation/2.cc: New.
3095         * testsuite/23_containers/multiset/explicit_instantiation/2.cc: New.
3096         * testsuite/23_containers/set/explicit_instantiation/2.cc: New.
3097         * testsuite/23_containers/vector/explicit_instantiation/2.cc: New.
3099         * include/bits/deque.tcc: Minor formatting fix.
3101 2005-06-06  Peter Doerfler  <doerfler@techinfo.rwth-aachen.de>
3103         * include/bits/stl_function.h: ... and another one.
3105 2005-06-06  Peter Doerfler  <doerfler@techinfo.rwth-aachen.de>
3107         * include/bits/stl_function.h: Fix typo in comment.
3109 2005-06-05  Paolo Carlini  <pcarlini@suse.de>
3111         * acinclude.m4 ([GLIBCXX_ENABLE_C99]): Check clog, clogf, clogl
3112         too for ac_c99_complex.
3113         * configure: Regenerate.
3115 2005-06-03  Paolo Carlini  <pcarlini@suse.de>
3117         PR libstdc++/21770
3118         * include/bits/stl_deque.h: Add concept-check. In class _Deque_base
3119         rebind _Alloc to  _Tp_alloc_type, change _Deque_impl to inherit from
3120         the latter and add _M_get_Tp_allocator() which returns it. Use
3121         everywhere _M_get_Tp_allocator() instead of get_allocator().
3122         * include/bits/deque.tcc: Likewise, use _M_get_Tp_allocator().
3123         * include/bits/stl_list.h: Add concept-check. In class _List_base
3124         rebind _Alloc to _Tp_alloc_type and add _M_get_Tp_allocator(), which
3125         returns the allocator (of type _Node_alloc_type) converted to
3126         _Tp_alloc_type. Use everywhere _M_get_Tp_allocator() instead of
3127         get_allocator().
3128         * include/bits/list.tcc: Likewise, use _M_get_Tp_allocator().
3129         * include/bits/stl_vector.h: Add concept-check. In class _Vector_base
3130         rebind _Alloc to _Tp_alloc_type, change _Vector_impl to inherit from
3131         the latter and add _M_get_Tp_allocator() which returns it. Use
3132         everywhere _M_get_Tp_allocator() instead of get_allocator().
3133         * include/bits/vector.tcc: Likewise, use _M_get_Tp_allocator().
3134         * include/bits/stl_map.h: Add concept-check. Rebind _Alloc to
3135         _Pair_alloc_type and use it for _Rb_tree.
3136         * include/bits/stl_multimap.h: Likewise.
3137         * include/bits/stl_multiset.h: Add concept-check. Rebind _Alloc to
3138         _Key_alloc_type and use it for _Rb_tree.
3139         * include/bits/stl_set.h: Likewise.
3140         * include/bits/basic_string.h: Rebind _Alloc to _CharT_alloc_type and
3141         use it for the allocator typedefs.
3142         * testsuite/21_strings/basic_string/1.cc: New.
3143         * testsuite/23_containers/deque/explicit_instantiation.cc: Move to...
3144         * testsuite/23_containers/deque/explicit_instantiation/1.cc: ... here.
3145         * testsuite/23_containers/deque/explicit_instantiation/3.cc: New.
3146         * testsuite/23_containers/list/explicit_instantiation.cc: Move to...
3147         * testsuite/23_containers/list/explicit_instantiation/1.cc: ... here.
3148         * testsuite/23_containers/list/explicit_instantiation/3.cc: New.
3149         * testsuite/23_containers/map/explicit_instantiation.cc: Move to...
3150         * testsuite/23_containers/map/explicit_instantiation/1.cc: ... here.
3151         * testsuite/23_containers/map/explicit_instantiation/3.cc: New.
3152         * testsuite/23_containers/multimap/explicit_instantiation.cc: Move to...
3153         * testsuite/23_containers/multimap/explicit_instantiation/1.cc: .. here.
3154         * testsuite/23_containers/multimap/explicit_instantiation/3.cc: New.
3155         * testsuite/23_containers/multiset/explicit_instantiation.cc: Move to...
3156         * testsuite/23_containers/multiset/explicit_instantiation/1.cc: .. here.
3157         * testsuite/23_containers/multiset/explicit_instantiation/3.cc: New.
3158         * testsuite/23_containers/set/explicit_instantiation.cc: Move to...
3159         * testsuite/23_containers/set/explicit_instantiation/1.cc: .. here.
3160         * testsuite/23_containers/set/explicit_instantiation/3.cc: New.
3161         * testsuite/23_containers/vector/explicit_instantiation.cc: Move to...
3162         * testsuite/23_containers/vector/explicit_instantiation/1.cc: ... here.
3163         * testsuite/23_containers/vector/explicit_instantiation/3.cc: New.
3165 2005-06-02  Nathan Sidwell  <nathan@codesourcery.com>
3167         PR c++/21280
3168         * testsuite/27_io/ios_base/cons/assign_neg.cc: Adjust expected errors.
3169         * testsuite/27_io/ios_base/cons/copy_neg.cc: Likewise.
3171 2005-05-31  Paolo Carlini  <pcarlini@suse.de>
3173         PR libstdc++/20534 (contd)
3174         * include/debug/macros.h: Add _GLIBCXX_DEBUG_ABORT, using
3175         __gnu_debug::__fancy_abort.
3176         * src/debug.cc: Define the latter.
3177         * include/debug/debug.h: Use _GLIBCXX_DEBUG_ABORT instead of
3178         assert.
3179         * config/linker-map.gnu (__gnu_debug::__fancy_abort): Add.
3181 2005-05-30  Paolo Carlini  <pcarlini@suse.de>
3183         * include/std/std_complex.h (log(const complex<_Tp>&)): When
3184         _GLIBCXX_USE_C99_COMPLEX, forward to __builtin_clog/clogf/clogl.
3186 2005-05-28  Paolo Carlini  <pcarlini@suse.de>
3188         Revert:
3189         2005-05-18  Paolo Carlini  <pcarlini@suse.de>
3190                     Nathan Myers  <ncm@cantrip.org>
3192         PR libstdc++/19495
3193         * include/bits/basic_string.h (_Raw_bytes_alloc): Rebind to
3194         size_type instead of char and rename to _Raw_alloc.
3195         * include/bits/basic_string.tcc (_Rep::_M_destroy, _Rep::_S_create):
3196         Use the above.
3197         * src/bitmap_allocator.cc: Add instantiation for size_type.
3198         * src/mt_allocator.cc: Likewise.
3199         * src/pool_allocator.cc: Likewise.
3200         * include/ext/array_allocator.h: Tweak slightly, avoid assuming
3201         the existence of an _Array::begin() and size() members.
3202         * testsuite/ext/array_allocator/2.cc: Tweak to use an allocator
3203         of size_type, instead of char, thus avoiding problems with
3204         rebinds, not treated correctly by array_allocator.
3206 2005-05-27  Paolo Carlini  <pcarlini@suse.de>
3208         * docs/html/abi.html: Mention 3.4.0 as the current baseline; add
3209         a notice about the configure options.
3211 2005-05-27  Mark Mitchell  <mark@codesourcery.com>
3213         * docs/html/test.html: Mention PCH_CXXFLAGS.
3214         * testsuite/lib/libstdc++.exp: Set PCH_CXXFLAGS by probing for an
3215         available stcd++.h PCH.
3216         * testsuite/libstdc++-dg/normal.exp: Use PCH_CXXFLAGS.
3218 2005-05-27  Theodore Papadopoulo  <Theodore.Papadopoulo@sophia.inria.fr>
3220         * src/misc-inst.cc: Remove unnecessary included files.
3222 2005-05-27  Benjamin Kosnik  <bkoz@redhat.com>
3224         PR libstdc++/21674
3225         * include/bits/c++config: Remove extern template use when in debug
3226         mode, disable for non-weak systems.
3227         
3228 2005-05-27  Benjamin Kosnik  <bkoz@redhat.com>
3230         PR libstdc++/20534 
3231         * include/debug/debug.h: Forwarding header, that pulls in details
3232         only if in debug mode.
3233         * include/debug/macros.h: ...transfer all the internal macros here.
3234         * include/debug/functions.h: ...transfer all the functions here.
3235         * include/debug/safe_iterator.h: Add functions.h, macros.h includes.
3236         * include/debug/safe_sequence.h: Same.
3237         * include/debug/vector: Tweak.
3238         * include/Makefile.am (debug_headers): Add new includes.
3239         * include/Makefile.in: Regenerate.
3240         * testsuite/17_intro/no_assert_neg.cc: Add.
3242         * include/ext/hash_set: Add debug mode include.
3243         * include/ext/hash_map: Same.
3244         * include/debug/hash_map: Fix included files to match actual files.
3245         * include/debug/hash_set: Same.
3246                 
3247 2005-05-26  Paolo Carlini  <pcarlini@suse.de>
3249         PR libstdc++/13943
3250         * include/c_std/std_cstdlib.h: Do not open code llabs and lldiv,
3251         available when _GLIBCXX_USE_C99 is defined.
3252         * testsuite/26_numerics/cstdlib/13943.cc: New.
3254         * acinclude.m4 ([GLIBCXX_ENABLE_C99]): For completeness, check
3255         also strtoll and strtoull for ac_c99_stdlib.
3256         * configure: Regenerate.
3258 2005-05-25  Benjamin Kosnik  <bkoz@redhat.com>
3260         * config/linker-map.gnu: Add linkage support for no extern templates.
3261         (std::ios_base::_M_call_callbacks): Add.
3262         (std::ios_base::_M_dispose_callbacks): Add.
3263         (std::locale::facet::_S_get_c_name): Add.
3264         (std::__copy_streambufs): Add.
3265         * configure.ac (libtool_VERSION): To 6:5:0.
3266         * configure: Regenerate.
3267         * testsuite/testsuite_abi.cc (check_version): Add GLIBCXX_3.4.5.
3268         
3269 2005-05-25  Paolo Carlini  <pcarlini@suse.de>
3271         * include/bits/basic_string.h (_Rep::_M_set_length_and_sharable):
3272         Use, consistently, traits_type::assign.
3274 2005-05-25  Paolo Carlini  <pcarlini@suse.de>
3276         * config/cpu/alpha/atomicity.h: Use the builtins for
3277         atomic memory operations.
3278         * config/cpu/powerpc/atomicity.h: Likewise.
3279         * config/cpu/ia64/atomicity.h: Do not include ia64intrin.h.
3281 2005-05-24  Paolo Carlini  <pcarlini@suse.de>
3283         * testsuite/25_algorithms/equal.cc: Move to...
3284         * testsuite/25_algorithms/equal: ... here.
3285         * testsuite/25_algorithms/lower_bound.cc: Move to...
3286         * testsuite/25_algorithms/lower_bound: ... here.
3288 2005-05-24  Paolo Carlini  <pcarlini@suse.de>
3290         Port from libstdcxx_so_7-branch:
3291         2005-20-05  Chris Jefferson  <chris@bubblescope.net>
3293         * testsuite/25_algorithms/heap.cc: Move to...
3294         * testsuite/25_algorithms/heap/heap.cc: ...here.
3295         * testsuite/25_algorithms/partition.cc: Move to...
3296         * testsuite/25_algorithms/partition/partition.cc: ...here.
3298         2005-03-29  Christopher Jefferson  <chris@bubblescope.net>
3300         * testsuite/25_algorithms/includes/1.cc: Add tests.
3301         * testsuite/25_algorithms/search/1.cc: Likewise.
3302         * testsuite/25_algorithms/unique_copy/1.cc: Likewise.
3303         * testsuite/25_algorithms/swap_ranges/1.cc: New.
3304         * testsuite/25_algorithms/swap_ranges/check_type.cc: New.
3305         * testsuite/25_algorithms/rotate.cc: Move to...
3306         * testsuite/25_algorithms/rotate/rotate.cc: ... here.
3307         * testsuite/25_algorithms/rotate/1.cc: New.
3308         * testsuite/25_algorithms/rotate/check_type.cc: New.
3309         * testsuite/25_algorithms/search_n/iterator.cc: Fix typo.
3311         2005-03-14  Christopher Jefferson  <chris@bubblescope.net>
3313         * include/bits/stl_algo.h (replace_copy, replace_copy_if):
3314         Don't assume that __new_value and *__first are convertible to
3315         each other.     
3317         * testsuite/25_algorithms/find/1.cc: New.
3318         * testsuite/25_algorithms/find/check_type.cc: New.
3319         * testsuite/25_algorithms/find_if/1.cc: New.
3320         * testsuite/25_algorithms/find_if/check_type.cc: New.
3321         * testsuite/25_algorithms/replace/1.cc: New.
3322         * testsuite/25_algorithms/replace/check_type.cc: New.
3323         * testsuite/25_algorithms/replace_if/1.cc: New.
3324         * testsuite/25_algorithms/replace_if/check_type.cc: New.
3325         * testsuite/25_algorithms/replace_copy/1.cc: New.
3326         * testsuite/25_algorithms/replace_copy/check_type.cc: New.
3327         * testsuite/25_algorithms/replace_copy_if/1.cc: New.
3328         * testsuite/25_algorithms/replace_copy_if/check_type.cc: New.
3329         * testsuite/25_algorithms/remove/1.cc: New.
3330         * testsuite/25_algorithms/remove/check_type.cc: New.
3331         * testsuite/25_algorithms/remove_if/1.cc: New.
3332         * testsuite/25_algorithms/remove_if/check_type.cc: New.
3333         * testsuite/25_algorithms/count/1.cc: New.
3334         * testsuite/25_algorithms/count/check_type.cc: New.
3335         * testsuite/25_algorithms/count_if/1.cc: New.
3336         * testsuite/25_algorithms/count_if/check_type.cc: New.
3338         2005-02-27  Christopher Jefferson  <chris@bubblescope.net>
3339                     Paolo Carlini  <pcarlini@suse.de>
3341         * testsuite/ext/is_heap/check_type.cc: New.
3342         
3343         2005-02-27  Paolo Carlini  <pcarlini@suse.de>
3345         * testsuite/ext/is_heap/1.cc: New.
3347         2005-02-01  Christopher Jefferson  <chris@bubblescope.net>
3349         * testsuite/ext/median.cc: New.
3350         * testsuite/25_algorithms/adjacent_find/1.cc: New.
3351         * testsuite/25_algorithms/adjacent_find/check_type.cc: New.
3352         * testsuite/25_algorithms/search/1.cc: New.
3353         * testsuite/25_algorithms/search/check_type.cc: New.
3354         * testsuite/25_algorithms/unique_copy/1.cc: New.
3355         * testsuite/25_algorithms/unique_copy/check_type.cc: New.
3356         * testsuite/25_algorithms/partial_sort/1.cc: New.
3357         * testsuite/25_algorithms/partial_sort/check_type.cc: New.
3358         * testsuite/25_algorithms/partial_sort_copy/1.cc: New.
3359         * testsuite/25_algorithms/partial_sort_copy/check_type.cc: New.
3360         * testsuite/25_algorithms/lower_bound/1.cc: New.
3361         * testsuite/25_algorithms/lower_bound/check_type.cc: New.
3362         * testsuite/25_algorithms/upper_bound/1.cc: New.
3363         * testsuite/25_algorithms/upper_bound/check_type.cc: New.
3364         * testsuite/25_algorithms/merge/1.cc: New.
3365         * testsuite/25_algorithms/merge/check_type.cc: New.
3366         * testsuite/25_algorithms/inplace_merge/1.cc: New.
3367         * testsuite/25_algorithms/inplace_merge/check_type.cc: New.
3368         * testsuite/25_algorithms/stable_sort/1.cc: New.
3369         * testsuite/25_algorithms/stable_sort/check_type.cc: New.
3370         * testsuite/25_algorithms/nth_element/1.cc: New.
3371         * testsuite/25_algorithms/nth_element/check_type.cc: New.
3372         * testsuite/25_algorithms/equal_range/1.cc: New.
3373         * testsuite/25_algorithms/equal_range/check_type.cc: New.
3374         * testsuite/25_algorithms/binary_search/1.cc: New.
3375         * testsuite/25_algorithms/binary_search/check_type.cc: New.
3376         * testsuite/25_algorithms/includes/1.cc: New.
3377         * testsuite/25_algorithms/includes/check_type.cc: New.
3378         * testsuite/25_algorithms/set_union/1.cc: New.
3379         * testsuite/25_algorithms/set_union/check_type.cc: New.
3380         * testsuite/25_algorithms/set_intersection/1.cc: New.
3381         * testsuite/25_algorithms/set_intersection/check_type.cc: New.
3382         * testsuite/25_algorithms/set_difference/1.cc: New.
3383         * testsuite/25_algorithms/set_difference/check_type.cc: New.
3384         * testsuite/25_algorithms/set_symmetric_difference/1.cc: New.
3385         * testsuite/25_algorithms/set_symmetric_difference/check_type.cc: New.  
3386         * testsuite/25_algorithms/min_element/1.cc: New.
3387         * testsuite/25_algorithms/min_element/check_type.cc: New.
3388         * testsuite/25_algorithms/max_element/1.cc: New.
3389         * testsuite/25_algorithms/max_element/check_type.cc: New.
3390         * testsuite/25_algorithms/prev_permutation/1.cc: New.
3391         * testsuite/25_algorithms/prev_permutation/check_type.cc: New.
3392         * testsuite/25_algorithms/next_permutation/1.cc: New.
3393         * testsuite/25_algorithms/next_permutation/check_type.cc: New.
3394         * testsuite/25_algorithms/find_first_of/1.cc: New.
3395         * testsuite/25_algorithms/find_first_of/check_type.cc: New.
3396         * testsuite/25_algorithms/find_end/1.cc: New.
3397         * testsuite/25_algorithms/find_end/check_type.cc: New.
3398         * testsuite/25_algorithms/equal/check_type.cc: Insert iterator type.
3399         * testsuite/25_algorithms/lexicographical_compare/check_type.cc:
3400         Likewise.
3402         2005-01-10  Christopher Jefferson <chris@bubblescope.net>
3404         * testsuite/25_algorithms/lexicographical_compare/check_type.cc: New.
3405         * testsuite/25_algorithms/lexicographical_compare/1.cc: Likewise.
3406         * testsuite/25_algorithms/mismatch/check_type.cc: Likewise.
3407         * testsuite/25_algorithms/mismatch/1.cc: Likewise.
3408         * testsuite/25_algorithms/equal/check_type.cc: New.
3409         * testsuite/25_algorithms/equal/1.cc: New.
3411 2005-05-24  Benjamin Kosnik  <bkoz@redhat.com>
3413         * include/bits/allocator.h: Change ___glibcxx_base_allocator to
3414         __glibcxx_base_allocator.
3415         * config/allocator/bitmap_allocator_base.h: Same.
3416         * config/allocator/malloc_allocator_base.h: Same.
3417         * config/allocator/mt_allocator_base.h: Same.
3418         * config/allocator/new_allocator_base.h: Same.
3419         * config/allocator/pool_allocator_base.h: Same.
3421 2005-05-24  Jonathan Wakely  <redi@gcc.gnu.org>
3423         * include/debug/string (class basic_string): Add missing
3424         default template arguments; provide typedefs for char
3425         and wchar_t.
3426         (operator[]): Allow s[s.size()] in debug mode, but not
3427         pedantic mode.
3429 2005-05-24  Paolo Carlini  <pcarlini@suse.de>
3431         Port from libstdcxx_so_7-branch:
3432         2005-04-25  Christopher Jefferson  <chris@bubblescope.net>
3434         * include/bits/stl_algo.h (count): Correct concept checks.
3435         (search_n) : Likewise.
3436         * testsuite/25_algorithms/search_n/check_type.cc: New.
3438         * testsuite/testsuite_iterators.h
3439         (random_access_iterator_wrapper::operator+): Move out of
3440         class to external function, and add symmetric version.
3442         2005-03-14  Christopher Jefferson  <chris@bubblescope.net>
3444         * testsuite/testsuite_iterators.h (WritableObject::WritableObject):
3445         Add const.
3446         
3447         2005-02-01  Christopher Jefferson  <chris@bubblescope.net>
3449         * testsuite/testsuite_iterators.h (random_access_iterator_wrapper::
3450         operator--): Fix typo.
3451         (OutputContainer::OutputContainer): Correct zeroing array.
3452         (WritableObject::operator==): Fix typo.
3453         (WritableObject::operator=): make operator= templated 
3454         to allow differing types to be assigned.
3455         (WritableObject::operator++): Fix checking if iterator is
3456         written to multiple times.
3457         (random_access_iterator_wrapper::operator+): Add const.
3458         (random_access_iterator_wrapper::operator-): Likewise.
3459         (random_access_iterator_wrapper::operator[]): Add dereference.
3461 2005-05-23  Jonathan Wakely  <redi@gcc.gnu.org>
3463         * docs/html/debug.html: Explain that _GLIBXX_DEBUG_PEDANTIC
3464         had to be defined for pedantic mode in 3.4 and 4.0.0.
3466 2005-05-20  Jan Beulich  <jbeulich@novell.com>
3468         * libmath/stubs.c: Also implement fabsf/fabsl if not present in the
3469         system libraries.
3471 2005-05-20  Paolo Carlini  <pcarlini@suse.de>
3473         * include/bits/stl_algo.h (__rotate<_RandomAccessIterator>):
3474         Don't qualify __tmp as const, _ValueType is not necessarily
3475         Assignable.
3476         * include/bits/stl_algobase.h (swap, __iter_swap<false>):
3477         Likewise, as an harmless extension.
3479 2005-05-19  Richard Henderson  <rth@redhat.com>
3481         * libsupc++/unwind-cxx.h: Revert gcc_unreachable change.
3483 2005-05-19  Jonathan Wakely  <redi@gcc.gnu.org>
3485         * include/bits/basic_string.h (operator[]): Allow s[s.size()] in
3486         debug mode, but not pedantic mode.
3488 2005-05-19  Jan Beulich  <jbeulich@novell.com>
3490         * libsupc++/unwind-cxx.h: Include cstdlib.
3491         (gcc_unreachable): #define.
3492         * libsupc++/eh_personality.cc (gcc_unreachable): Remove #define.
3494 2005-05-18  Paolo Carlini  <pcarlini@suse.de>
3495             Nathan Myers  <ncm@cantrip.org>
3497         PR libstdc++/19495
3498         * include/bits/basic_string.h (_Raw_bytes_alloc): Rebind to
3499         size_type instead of char and rename to _Raw_alloc.
3500         * include/bits/basic_string.tcc (_Rep::_M_destroy, _Rep::_S_create):
3501         Use the above.
3502         * src/bitmap_allocator.cc: Add instantiation for size_type.
3503         * src/mt_allocator.cc: Likewise.
3504         * src/pool_allocator.cc: Likewise.
3505         * include/ext/array_allocator.h: Tweak slightly, avoid assuming
3506         the existence of an _Array::begin() and size() members.
3507         * testsuite/ext/array_allocator/2.cc: Tweak to use an allocator
3508         of size_type, instead of char, thus avoiding problems with
3509         rebinds, not treated correctly by array_allocator.
3511 2005-05-18  Paolo Carlini  <pcarlini@suse.de>
3513         * testsuite/22_locale/ctype/is/char/2.cc: Adjust dg-require-namedlocale.
3514         * testsuite/22_locale/ctype/is/wchar_t/2.cc: Likewise.
3515         * testsuite/22_locale/time_get/get_year/char/wrapped_env.cc: Add
3516         missing dg-require-namedlocale.
3517         * testsuite/22_locale/time_get/get_year/char/wrapped_locale.cc:
3518         Likewise.
3519         * testsuite/22_locale/time_get/get_year/wchar_t/wrapped_env.cc:
3520         Likewise.
3521         * testsuite/22_locale/time_get/get_year/wchar_t/wrapped_locale.cc:
3522         Likewise.
3524 2005-05-18  Paolo Carlini  <pcarlini@suse.de>
3526         * testsuite/testsuite_hooks.cc: Remove try_named_locale.
3527         * testsuite/testsuite_hooks.h: Remove try_named_locale.
3528         * testsuite/lib/libstdc++.exp (check_v3_target_namedlocale): New.
3529         * testsuite/lib/dg-options.exp (dg-require-namedlocale): New, uses
3530         the above.
3531         * testsuite/22_locale/codecvt/always_noconv/char/wrapped_env.cc: Use
3532         dg-require-namedlocale.
3533         * testsuite/22_locale/codecvt/always_noconv/char/wrapped_locale.cc:
3534         Likewise.
3535         * testsuite/22_locale/codecvt/always_noconv/wchar_t/2.cc: Likewise.
3536         * testsuite/22_locale/codecvt/always_noconv/wchar_t/3.cc: Likewise.
3537         * testsuite/22_locale/codecvt/always_noconv/wchar_t/4.cc: Likewise.
3538         * testsuite/22_locale/codecvt/always_noconv/wchar_t/wrapped_env.cc: 
3539         Likewise.
3540         * testsuite/22_locale/codecvt/always_noconv/wchar_t/wrapped_locale.cc:
3541         Likewise.
3542         * testsuite/22_locale/codecvt/encoding/char/wrapped_env.cc: Likewise.
3543         * testsuite/22_locale/codecvt/encoding/char/wrapped_locale.cc: Likewise.
3544         * testsuite/22_locale/codecvt/encoding/wchar_t/2.cc: Likewise.
3545         * testsuite/22_locale/codecvt/encoding/wchar_t/3.cc: Likewise.
3546         * testsuite/22_locale/codecvt/encoding/wchar_t/4.cc: Likewise.
3547         * testsuite/22_locale/codecvt/encoding/wchar_t/wrapped_env.cc: Likewise.
3548         * testsuite/22_locale/codecvt/encoding/wchar_t/wrapped_locale.cc:
3549         Likewise.
3550         * testsuite/22_locale/codecvt/in/char/wrapped_env.cc: Likewise.
3551         * testsuite/22_locale/codecvt/in/char/wrapped_locale.cc: Likewise.
3552         * testsuite/22_locale/codecvt/in/wchar_t/2.cc: Likewise.
3553         * testsuite/22_locale/codecvt/in/wchar_t/3.cc: Likewise.
3554         * testsuite/22_locale/codecvt/in/wchar_t/4.cc: Likewise.
3555         * testsuite/22_locale/codecvt/in/wchar_t/7.cc: Likewise. 
3556         * testsuite/22_locale/codecvt/in/wchar_t/8.cc: Likewise.
3557         * testsuite/22_locale/codecvt/in/wchar_t/9.cc: Likewise.
3558         * testsuite/22_locale/codecvt/in/wchar_t/wrapped_env.cc: Likewise. 
3559         * testsuite/22_locale/codecvt/in/wchar_t/wrapped_locale.cc: Likewise.    
3560         * testsuite/22_locale/codecvt/length/char/wrapped_env.cc: Likewise. 
3561         * testsuite/22_locale/codecvt/length/char/wrapped_locale.cc: Likewise.    
3562         * testsuite/22_locale/codecvt/length/wchar_t/2.cc: Likewise.   
3563         * testsuite/22_locale/codecvt/length/wchar_t/3.cc: Likewise.   
3564         * testsuite/22_locale/codecvt/length/wchar_t/4.cc: Likewise.   
3565         * testsuite/22_locale/codecvt/length/wchar_t/7.cc: Likewise.   
3566         * testsuite/22_locale/codecvt/length/wchar_t/wrapped_env.cc: Likewise.      
3567         * testsuite/22_locale/codecvt/length/wchar_t/wrapped_locale.cc:
3568         Likewise.
3569         * testsuite/22_locale/codecvt/max_length/char/wrapped_env.cc: Likewise.
3570         * testsuite/22_locale/codecvt/max_length/char/wrapped_locale.cc:
3571         Likewise.  
3572         * testsuite/22_locale/codecvt/max_length/wchar_t/2.cc: Likewise.    
3573         * testsuite/22_locale/codecvt/max_length/wchar_t/3.cc: Likewise.    
3574         * testsuite/22_locale/codecvt/max_length/wchar_t/4.cc: Likewise.    
3575         * testsuite/22_locale/codecvt/max_length/wchar_t/wrapped_env.cc:
3576         Likewise.  
3577         * testsuite/22_locale/codecvt/max_length/wchar_t/wrapped_locale.cc:
3578         Likewise.
3579         * testsuite/22_locale/codecvt/out/char/wrapped_env.cc: Likewise.    
3580         * testsuite/22_locale/codecvt/out/char/wrapped_locale.cc: Likewise. 
3581         * testsuite/22_locale/codecvt/out/wchar_t/2.cc: Likewise.  
3582         * testsuite/22_locale/codecvt/out/wchar_t/3.cc: Likewise.  
3583         * testsuite/22_locale/codecvt/out/wchar_t/4.cc: Likewise.  
3584         * testsuite/22_locale/codecvt/out/wchar_t/7.cc: Likewise.  
3585         * testsuite/22_locale/codecvt/out/wchar_t/wrapped_env.cc: Likewise. 
3586         * testsuite/22_locale/codecvt/out/wchar_t/wrapped_locale.cc: Likewise. 
3587         * testsuite/22_locale/codecvt/unshift/char/wrapped_env.cc: Likewise.   
3588         * testsuite/22_locale/codecvt/unshift/char/wrapped_locale.cc: Likewise.
3589         * testsuite/22_locale/codecvt/unshift/wchar_t/2.cc: Likewise.    
3590         * testsuite/22_locale/codecvt/unshift/wchar_t/3.cc: Likewise.    
3591         * testsuite/22_locale/codecvt/unshift/wchar_t/4.cc: Likewise.    
3592         * testsuite/22_locale/codecvt/unshift/wchar_t/wrapped_env.cc: Likewise.
3593         * testsuite/22_locale/codecvt/unshift/wchar_t/wrapped_locale.cc:
3594         Likewise.
3595         * testsuite/22_locale/collate/compare/char/1.cc: Likewise.  
3596         * testsuite/22_locale/collate/compare/char/2.cc: Likewise.  
3597         * testsuite/22_locale/collate/compare/char/3.cc: Likewise.  
3598         * testsuite/22_locale/collate/compare/char/wrapped_env.cc: Likewise.        
3599         * testsuite/22_locale/collate/compare/char/wrapped_locale.cc: Likewise.     
3600         * testsuite/22_locale/collate/compare/wchar_t/1.cc: Likewise.     
3601         * testsuite/22_locale/collate/compare/wchar_t/2.cc: Likewise.     
3602         * testsuite/22_locale/collate/compare/wchar_t/3.cc: Likewise.     
3603         * testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc: Likewise.
3604         * testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc:
3605         Likewise.  
3606         * testsuite/22_locale/collate/hash/char/2.cc: Likewise.     
3607         * testsuite/22_locale/collate/hash/char/wrapped_env.cc: Likewise.   
3608         * testsuite/22_locale/collate/hash/char/wrapped_locale.cc: Likewise.        
3609         * testsuite/22_locale/collate/hash/wchar_t/2.cc: Likewise.  
3610         * testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc: Likewise.
3611         * testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc: Likewise.     
3612         * testsuite/22_locale/collate/transform/char/2.cc: Likewise.     
3613         * testsuite/22_locale/collate/transform/char/3.cc: Likewise.     
3614         * testsuite/22_locale/collate/transform/char/wrapped_env.cc: Likewise.      
3615         * testsuite/22_locale/collate/transform/char/wrapped_locale.cc:
3616         Likewise.
3617         * testsuite/22_locale/collate/transform/wchar_t/2.cc: Likewise. 
3618         * testsuite/22_locale/collate/transform/wchar_t/3.cc: Likewise. 
3619         * testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc:
3620         Likewise.
3621         * testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
3622         Likewise.
3623         * testsuite/22_locale/collate_byname/named_equivalence.cc: Likewise.
3624         * testsuite/22_locale/ctype/cons/char/wrapped_env.cc: Likewise.    
3625         * testsuite/22_locale/ctype/cons/char/wrapped_locale.cc: Likewise. 
3626         * testsuite/22_locale/ctype/is/char/2.cc: Likewise. 
3627         * testsuite/22_locale/ctype/is/char/wrapped_env.cc: Likewise.      
3628         * testsuite/22_locale/ctype/is/char/wrapped_locale.cc: Likewise.  
3629         * testsuite/22_locale/ctype/is/wchar_t/2.cc: Likewise.   
3630         * testsuite/22_locale/ctype/is/wchar_t/wrapped_env.cc: Likewise.  
3631         * testsuite/22_locale/ctype/is/wchar_t/wrapped_locale.cc: Likewise.
3632         * testsuite/22_locale/ctype/narrow/char/wrapped_env.cc: Likewise.
3633         * testsuite/22_locale/ctype/narrow/char/wrapped_locale.cc: Likewise.        
3634         * testsuite/22_locale/ctype/narrow/wchar_t/3.cc: Likewise. 
3635         * testsuite/22_locale/ctype/narrow/wchar_t/wrapped_env.cc: Likewise.        
3636         * testsuite/22_locale/ctype/narrow/wchar_t/wrapped_locale.cc: Likewise.
3637         * testsuite/22_locale/ctype/scan/char/wrapped_env.cc: Likewise.   
3638         * testsuite/22_locale/ctype/scan/char/wrapped_locale.cc: Likewise. 
3639         * testsuite/22_locale/ctype/scan/wchar_t/wrapped_env.cc: Likewise. 
3640         * testsuite/22_locale/ctype/scan/wchar_t/wrapped_locale.cc: Likewise.       
3641         * testsuite/22_locale/ctype/to/char/wrapped_env.cc: Likewise.       
3642         * testsuite/22_locale/ctype/to/char/wrapped_locale.cc: Likewise.    
3643         * testsuite/22_locale/ctype/to/wchar_t/wrapped_env.cc: Likewise.    
3644         * testsuite/22_locale/ctype/to/wchar_t/wrapped_locale.cc: Likewise. 
3645         * testsuite/22_locale/ctype/widen/char/wrapped_env.cc: Likewise.    
3646         * testsuite/22_locale/ctype/widen/char/wrapped_locale.cc: Likewise. 
3647         * testsuite/22_locale/ctype/widen/wchar_t/2.cc: Likewise.   
3648         * testsuite/22_locale/ctype/widen/wchar_t/3.cc: Likewise.   
3649         * testsuite/22_locale/ctype/widen/wchar_t/wrapped_env.cc: Likewise.
3650         * testsuite/22_locale/ctype/widen/wchar_t/wrapped_locale.cc: Likewise.
3651         * testsuite/22_locale/facet/2.cc: Likewise.
3652         * testsuite/22_locale/locale/cons/12352.cc: Likewise.
3653         * testsuite/22_locale/locale/cons/12438.cc: Likewise.
3654         * testsuite/22_locale/locale/cons/12658_thread-1.cc: Likewise. 
3655         * testsuite/22_locale/locale/cons/12658_thread-2.cc: Likewise. 
3656         * testsuite/22_locale/locale/cons/2.cc: Likewise.
3657         * testsuite/22_locale/locale/cons/4.cc: Likewise.
3658         * testsuite/22_locale/locale/cons/5.cc: Likewise.
3659         * testsuite/22_locale/locale/cons/7.cc: Likewise.
3660         * testsuite/22_locale/locale/cons/7222-env.cc: Likewise.  
3661         * testsuite/22_locale/locale/global_locale_objects/14071.cc: Likewise.  
3662         * testsuite/22_locale/locale/global_locale_objects/2.cc: Likewise.
3663         * testsuite/22_locale/messages/members/char/1.cc: Likewise.
3664         * testsuite/22_locale/messages/members/char/2.cc: Likewise.
3665         * testsuite/22_locale/messages/members/char/3.cc: Likewise.
3666         * testsuite/22_locale/messages/members/char/wrapped_env.cc: Likewise.   
3667         * testsuite/22_locale/messages/members/char/wrapped_locale.cc: Likewise.
3668         * testsuite/22_locale/messages_byname/named_equivalence.cc: Likewise.   
3669         * testsuite/22_locale/money_get/get/char/1.cc: Likewise.    
3670         * testsuite/22_locale/money_get/get/char/10.cc: Likewise.   
3671         * testsuite/22_locale/money_get/get/char/11.cc: Likewise.   
3672         * testsuite/22_locale/money_get/get/char/11528.cc: Likewise.
3673         * testsuite/22_locale/money_get/get/char/12.cc: Likewise.   
3674         * testsuite/22_locale/money_get/get/char/13.cc: Likewise.   
3675         * testsuite/22_locale/money_get/get/char/15.cc: Likewise.   
3676         * testsuite/22_locale/money_get/get/char/16.cc: Likewise.   
3677         * testsuite/22_locale/money_get/get/char/17.cc: Likewise.   
3678         * testsuite/22_locale/money_get/get/char/18.cc: Likewise.   
3679         * testsuite/22_locale/money_get/get/char/2.cc: Likewise.    
3680         * testsuite/22_locale/money_get/get/char/3.cc: Likewise.    
3681         * testsuite/22_locale/money_get/get/char/4.cc: Likewise.    
3682         * testsuite/22_locale/money_get/get/char/wrapped_env.cc: Likewise. 
3683         * testsuite/22_locale/money_get/get/char/wrapped_locale.cc: Likewise.  
3684         * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise. 
3685         * testsuite/22_locale/money_get/get/wchar_t/10.cc: Likewise.      
3686         * testsuite/22_locale/money_get/get/wchar_t/11.cc: Likewise.      
3687         * testsuite/22_locale/money_get/get/wchar_t/11528.cc: Likewise.
3688         * testsuite/22_locale/money_get/get/wchar_t/12.cc: Likewise.      
3689         * testsuite/22_locale/money_get/get/wchar_t/13.cc: Likewise.      
3690         * testsuite/22_locale/money_get/get/wchar_t/15.cc: Likewise.      
3691         * testsuite/22_locale/money_get/get/wchar_t/16.cc: Likewise.      
3692         * testsuite/22_locale/money_get/get/wchar_t/17.cc: Likewise.      
3693         * testsuite/22_locale/money_get/get/wchar_t/18.cc: Likewise.      
3694         * testsuite/22_locale/money_get/get/wchar_t/2.cc: Likewise. 
3695         * testsuite/22_locale/money_get/get/wchar_t/3.cc: Likewise. 
3696         * testsuite/22_locale/money_get/get/wchar_t/4.cc: Likewise. 
3697         * testsuite/22_locale/money_get/get/wchar_t/wrapped_env.cc: Likewise.      
3698         * testsuite/22_locale/money_get/get/wchar_t/wrapped_locale.cc: Likewise.
3699         * testsuite/22_locale/money_put/put/char/1.cc: Likewise.  
3700         * testsuite/22_locale/money_put/put/char/2.cc: Likewise.  
3701         * testsuite/22_locale/money_put/put/char/3.cc: Likewise.  
3702         * testsuite/22_locale/money_put/put/char/9780-3.cc: Likewise.      
3703         * testsuite/22_locale/money_put/put/char/wrapped_env.cc: Likewise. 
3704         * testsuite/22_locale/money_put/put/char/wrapped_locale.cc: Likewise.  
3705         * testsuite/22_locale/money_put/put/wchar_t/1.cc: Likewise. 
3706         * testsuite/22_locale/money_put/put/wchar_t/2.cc: Likewise. 
3707         * testsuite/22_locale/money_put/put/wchar_t/3.cc: Likewise. 
3708         * testsuite/22_locale/money_put/put/wchar_t/wrapped_env.cc: Likewise.     
3709         * testsuite/22_locale/money_put/put/wchar_t/wrapped_locale.cc: Likewise.
3710         * testsuite/22_locale/moneypunct/members/char/2.cc: Likewise.
3711         * testsuite/22_locale/moneypunct/members/char/wrapped_env.cc: Likewise.    
3712         * testsuite/22_locale/moneypunct/members/char/wrapped_locale.cc:
3713         Likewise. 
3714         * testsuite/22_locale/moneypunct/members/wchar_t/2.cc: Likewise.   
3715         * testsuite/22_locale/moneypunct/members/wchar_t/wrapped_env.cc:
3716         Likewise.
3717         * testsuite/22_locale/moneypunct/members/wchar_t/wrapped_locale.cc:
3718         Likewise.
3719         * testsuite/22_locale/moneypunct_byname/named_equivalence.cc: Likewise.
3720         * testsuite/22_locale/num_get/get/char/1.cc: Likewise.   
3721         * testsuite/22_locale/num_get/get/char/3.cc: Likewise.   
3722         * testsuite/22_locale/num_get/get/char/5.cc: Likewise.   
3723         * testsuite/22_locale/num_get/get/char/6.cc: Likewise.   
3724         * testsuite/22_locale/num_get/get/char/9.cc: Likewise.   
3725         * testsuite/22_locale/num_get/get/char/wrapped_env.cc: Likewise.
3726         * testsuite/22_locale/num_get/get/char/wrapped_locale.cc: Likewise. 
3727         * testsuite/22_locale/num_get/get/wchar_t/1.cc: Likewise.  
3728         * testsuite/22_locale/num_get/get/wchar_t/3.cc: Likewise.  
3729         * testsuite/22_locale/num_get/get/wchar_t/5.cc: Likewise.  
3730         * testsuite/22_locale/num_get/get/wchar_t/6.cc: Likewise.  
3731         * testsuite/22_locale/num_get/get/wchar_t/9.cc: Likewise.  
3732         * testsuite/22_locale/num_get/get/wchar_t/wrapped_env.cc: Likewise. 
3733         * testsuite/22_locale/num_get/get/wchar_t/wrapped_locale.cc: Likewise. 
3734         * testsuite/22_locale/num_put/put/char/1.cc: Likewise.      
3735         * testsuite/22_locale/num_put/put/char/20909.cc: Likewise.  
3736         * testsuite/22_locale/num_put/put/char/20914.cc: Likewise.  
3737         * testsuite/22_locale/num_put/put/char/3.cc: Likewise.      
3738         * testsuite/22_locale/num_put/put/char/5.cc: Likewise.      
3739         * testsuite/22_locale/num_put/put/char/9780-2.cc: Likewise. 
3740         * testsuite/22_locale/num_put/put/char/wrapped_env.cc: Likewise.    
3741         * testsuite/22_locale/num_put/put/char/wrapped_locale.cc: Likewise. 
3742         * testsuite/22_locale/num_put/put/wchar_t/1.cc: Likewise. 
3743         * testsuite/22_locale/num_put/put/wchar_t/20909.cc: Likewise.   
3744         * testsuite/22_locale/num_put/put/wchar_t/20914.cc: Likewise.   
3745         * testsuite/22_locale/num_put/put/wchar_t/3.cc: Likewise. 
3746         * testsuite/22_locale/num_put/put/wchar_t/5.cc: Likewise.
3747         * testsuite/22_locale/num_put/put/wchar_t/wrapped_env.cc: Likewise.
3748         * testsuite/22_locale/num_put/put/wchar_t/wrapped_locale.cc: Likewise. 
3749         * testsuite/22_locale/numpunct/members/char/2.cc: Likewise.
3750         * testsuite/22_locale/numpunct/members/char/3.cc: Likewise.
3751         * testsuite/22_locale/numpunct/members/char/wrapped_env.cc: Likewise.    
3752         * testsuite/22_locale/numpunct/members/char/wrapped_locale.cc: Likewise.
3753         * testsuite/22_locale/numpunct/members/wchar_t/2.cc: Likewise.    
3754         * testsuite/22_locale/numpunct/members/wchar_t/wrapped_env.cc: Likewise.
3755         * testsuite/22_locale/numpunct/members/wchar_t/wrapped_locale.cc:
3756         Likewise. 
3757         * testsuite/22_locale/numpunct_byname/named_equivalence.cc: Likewise.       
3758         * testsuite/22_locale/time_get/date_order/char/wrapped_env.cc: Likewise.    
3759         * testsuite/22_locale/time_get/date_order/char/wrapped_locale.cc:
3760         Likewise. 
3761         * testsuite/22_locale/time_get/date_order/wchar_t/wrapped_env.cc:
3762         Likewise. 
3763         * testsuite/22_locale/time_get/date_order/wchar_t/wrapped_locale.cc:
3764         Likewise.
3765         * testsuite/22_locale/time_get/get_date/char/12750.cc: Likewise.
3766         * testsuite/22_locale/time_get/get_date/char/2.cc: Likewise.   
3767         * testsuite/22_locale/time_get/get_date/char/wrapped_env.cc: Likewise.      
3768         * testsuite/22_locale/time_get/get_date/char/wrapped_locale.cc:
3769         Likewise.
3770         * testsuite/22_locale/time_get/get_date/wchar_t/12750.cc: Likewise. 
3771         * testsuite/22_locale/time_get/get_date/wchar_t/2.cc: Likewise.     
3772         * testsuite/22_locale/time_get/get_date/wchar_t/4.cc: Likewise.     
3773         * testsuite/22_locale/time_get/get_date/wchar_t/wrapped_env.cc:
3774         Likewise.  
3775         * testsuite/22_locale/time_get/get_date/wchar_t/wrapped_locale.cc:
3776         Likewise.
3777         * testsuite/22_locale/time_get/get_monthname/char/2.cc: Likewise.  
3778         * testsuite/22_locale/time_get/get_monthname/char/wrapped_env.cc:
3779         Likewise.
3780         * testsuite/22_locale/time_get/get_monthname/char/wrapped_locale.cc:
3781         Likewise.
3782         * testsuite/22_locale/time_get/get_monthname/wchar_t/2.cc: Likewise.
3783         * testsuite/22_locale/time_get/get_monthname/wchar_t/wrapped_env.cc:
3784         Likewise.
3785         * testsuite/22_locale/time_get/get_monthname/wchar_t/wrapped_locale.cc:
3786         Likewise.
3787         * testsuite/22_locale/time_get/get_time/char/1.cc: Likewise.
3788         * testsuite/22_locale/time_get/get_time/char/2.cc: Likewise.
3789         * testsuite/22_locale/time_get/get_time/char/wrapped_env.cc: Likewise.
3790         * testsuite/22_locale/time_get/get_time/char/wrapped_locale.cc:
3791         Likewise.
3792         * testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Likewise.
3793         * testsuite/22_locale/time_get/get_time/wchar_t/2.cc: Likewise.
3794         * testsuite/22_locale/time_get/get_time/wchar_t/wrapped_env.cc:
3795         Likewise. 
3796         * testsuite/22_locale/time_get/get_time/wchar_t/wrapped_locale.cc:
3797         Likewise.
3798         * testsuite/22_locale/time_get/get_weekday/char/2.cc: Likewise.
3799         * testsuite/22_locale/time_get/get_weekday/char/wrapped_env.cc:
3800         Likewise.
3801         * testsuite/22_locale/time_get/get_weekday/char/wrapped_locale.cc:
3802         Likewise. 
3803         * testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc: Likewise.
3804         * testsuite/22_locale/time_get/get_weekday/wchar_t/wrapped_env.cc:
3805         Likewise.    
3806         * testsuite/22_locale/time_get/get_weekday/wchar_t/wrapped_locale.cc:
3807         Likewise. 
3808         * testsuite/22_locale/time_put/put/char/17038.cc: Likewise. 
3809         * testsuite/22_locale/time_put/put/char/2.cc: Likewise.     
3810         * testsuite/22_locale/time_put/put/char/3.cc: Likewise.     
3811         * testsuite/22_locale/time_put/put/char/4.cc: Likewise.     
3812         * testsuite/22_locale/time_put/put/char/6.cc: Likewise.     
3813         * testsuite/22_locale/time_put/put/char/7.cc: Likewise.     
3814         * testsuite/22_locale/time_put/put/char/8.cc: Likewise.     
3815         * testsuite/22_locale/time_put/put/char/9780-1.cc: Likewise.       
3816         * testsuite/22_locale/time_put/put/char/wrapped_env.cc: Likewise.
3817         * testsuite/22_locale/time_put/put/char/wrapped_locale.cc: Likewise.  
3818         * testsuite/22_locale/time_put/put/wchar_t/17038.cc: Likewise.   
3819         * testsuite/22_locale/time_put/put/wchar_t/2.cc: Likewise.
3820         * testsuite/22_locale/time_put/put/wchar_t/3.cc: Likewise.
3821         * testsuite/22_locale/time_put/put/wchar_t/4.cc: Likewise.
3822         * testsuite/22_locale/time_put/put/wchar_t/6.cc: Likewise.
3823         * testsuite/22_locale/time_put/put/wchar_t/7.cc: Likewise.
3824         * testsuite/22_locale/time_put/put/wchar_t/8.cc: Likewise.
3825         * testsuite/22_locale/time_put/put/wchar_t/wrapped_env.cc: Likewise.     
3826         * testsuite/22_locale/time_put/put/wchar_t/wrapped_locale.cc: Likewise.
3827         * testsuite/27_io/basic_filebuf/imbue/char/13007.cc: Likewise.  
3828         * testsuite/27_io/basic_filebuf/imbue/char/13171-1.cc: Likewise.
3829         * testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc: Likewise.
3830         * testsuite/27_io/basic_filebuf/imbue/char/13171-4.cc: Likewise.
3831         * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc: Likewise.
3832         * testsuite/27_io/basic_filebuf/imbue/char/14975-1.cc: Likewise.
3833         * testsuite/27_io/basic_filebuf/imbue/char/2.cc: Likewise. 
3834         * testsuite/27_io/basic_filebuf/imbue/char/9322.cc: Likewise.       
3835         * testsuite/27_io/basic_filebuf/imbue/wchar_t/12868.cc: Likewise.
3836         * testsuite/27_io/basic_filebuf/imbue/wchar_t/13007.cc: Likewise.   
3837         * testsuite/27_io/basic_filebuf/imbue/wchar_t/13171-3.cc: Likewise. 
3838         * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc: Likewise. 
3839         * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-3.cc: Likewise. 
3840         * testsuite/27_io/basic_filebuf/imbue/wchar_t/14975-2.cc: Likewise. 
3841         * testsuite/27_io/basic_filebuf/imbue/wchar_t/2.cc: Likewise.       
3842         * testsuite/27_io/basic_filebuf/imbue/wchar_t/9322.cc: Likewise.    
3843         * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-1.cc: Likewise.  
3844         * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-2.cc: Likewise.  
3845         * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-3.cc: Likewise.  
3846         * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-4.cc: Likewise.  
3847         * testsuite/27_io/basic_filebuf/seekoff/wchar_t/1.cc: Likewise.    
3848         * testsuite/27_io/basic_filebuf/seekoff/wchar_t/2.cc: Likewise.    
3849         * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9874.cc: Likewise. 
3850         * testsuite/27_io/basic_filebuf/underflow/wchar_t/1.cc: Likewise.  
3851         * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-1.cc: Likewise.  
3852         * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-2.cc: Likewise.  
3853         * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-3.cc: Likewise.  
3854         * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-4.cc: Likewise.  
3855         * testsuite/27_io/basic_filebuf/underflow/wchar_t/2.cc: Likewise.
3856         * testsuite/27_io/basic_filebuf/underflow/wchar_t/3.cc: Likewise.
3857         * testsuite/27_io/basic_filebuf/underflow/wchar_t/4.cc: Likewise.
3858         * testsuite/27_io/basic_filebuf/underflow/wchar_t/5.cc: Likewise.
3859         * testsuite/27_io/basic_filebuf/underflow/wchar_t/9520.cc: Likewise.        
3860         * testsuite/27_io/basic_ios/copyfmt/char/2.cc: Likewise.   
3861         * testsuite/27_io/basic_ostream/inserters_arithmetic/char/2.cc:
3862         Likewise.   
3863         * testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/2.cc:
3864         Likewise.
3865         * testsuite/27_io/basic_streambuf/imbue/char/13007-1.cc: Likewise.
3866         * testsuite/27_io/basic_streambuf/imbue/char/13007-2.cc: Likewise.
3867         * testsuite/27_io/basic_streambuf/imbue/char/9322.cc: Likewise.  
3868         * testsuite/27_io/basic_streambuf/imbue/wchar_t/13007-1.cc: Likewise.    
3869         * testsuite/27_io/basic_streambuf/imbue/wchar_t/13007-2.cc: Likewise.    
3870         * testsuite/27_io/basic_streambuf/imbue/wchar_t/9322.cc: Likewise. 
3871         * testsuite/27_io/basic_stringbuf/imbue/char/9322.cc: Likewise.    
3872         * testsuite/27_io/basic_stringbuf/imbue/wchar_t/9322.cc: Likewise.
3873         * testsuite/27_io/objects/wchar_t/10.cc: Likewise. 
3874         * testsuite/27_io/objects/wchar_t/11.cc: Likewise. 
3875         * testsuite/27_io/objects/wchar_t/12.cc: Likewise. 
3876         * testsuite/27_io/objects/wchar_t/13.cc: Likewise. 
3877         * testsuite/27_io/objects/wchar_t/9520.cc: Likewise.
3878         * testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc: Likewise.
3880 2005-05-17  Nathan Sidwell  <nathan@codesourcery.com>
3882         * libsupc++/eh_personality.cc (gcc_unreachable): Define.
3884 2005-05-16  Paolo Carlini  <pcarlini@suse.de>
3886         * docs/html/install.html: Update list of required named
3887         locales, add "es_ES".
3889 2005-05-13  Magnus Fromreide  <magfr@lysator.liu.se>
3891         * testsuite/27_io/basic_streambuf/sgetn/char/1.cc: Use
3892         initialization instead of copying as the string is used only once.
3893         * testsuite/27_io/basic_streambuf/sgetn/wchar_t/1.cc: Likewise.
3894         * testsuite/27_io/basic_streambuf/sputn/char/1.cc: Likewise.
3895         * testsuite/27_io/basic_streambuf/sputn/wchar_t/1.cc: Likewise.
3897 2005-05-12  Benjamin Kosnik  <bkoz@redhat.com>
3899         * scripts/create_testsuite_files: Fix.
3900         
3901 2005-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
3903         * testsuite/18_support/numeric_limits.cc (dg-options): Add
3904         -mieee to options on sh*-*-*.
3906 2005-05-10  Jonathan Wakely  <redi@gcc.gnu.org>
3908         * include/debug/debug.h: Fix typo in macro name.
3910 2005-05-09  Paolo Carlini  <pcarlini@suse.de>
3911             Giovanni Bajo  <giovannibajo@gcc.gnu.org>
3912             
3913         PR libstdc++/18604
3914         * include/bits/deque.tcc: Fully qualify names from namespace std.
3915         * include/bits/stl_bvector.h: Likewise.
3916         * include/bits/stl_deque.h: Likewise.
3917         * include/bits/stl_list.h: Likewise.
3918         * include/bits/stl_map.h: Likewise.
3919         * include/bits/stl_multimap.h: Likewise.
3920         * include/bits/stl_multiset.h: Likewise.
3921         * include/bits/stl_set.h: Likewise.
3922         * include/bits/stl_vector.h: Likewise.
3923         * include/bits/vector.tcc: Likewise.
3924         * include/std/std_bitset.h: Likewise.
3925         * testsuite/23_containers/bitset/18604.cc: New.
3926         * testsuite/23_containers/deque/18604.cc: Likewise.
3927         * testsuite/23_containers/list/18604.cc: Likewise.
3928         * testsuite/23_containers/map/18604.cc: Likewise.
3929         * testsuite/23_containers/set/18604.cc: Likewise.
3930         * testsuite/23_containers/vector/18604.cc: Likewise.    
3932 2005-05-09  Mike Stump  <mrs@apple.com>
3934         * configure: Regenerate.
3936 2005-05-09  Jonathan Wakely  <redi@gcc.gnu.org>
3938         DR 434. bitset::to_string() hard to use [Ready]
3939         * include/debug/bitset (to_string): Add three overloads, taking
3940         fewer template arguments.
3942 2005-05-06  Mark Mitchell  <mark@codesourcery.com>
3944         * testsuite/testsuite_hooks.cc (try_mkfifo): Remove.
3945         * testsuite/testsuite_hooks.h (try_mkfifo): Likewise.
3946         * testsuite/27_io/basic_filebuf/close/char/4879.cc: Use
3947         dg-require-fork and dg-require-mkfifo.  Replace try_mkfifo with
3948         mkfifo.
3949         * testsuite/27_io/basic_filebuf/close/char/9964.cc: Likewise.
3950         * testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc: Likewise.
3951         * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc: Likewise.
3952         * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc:
3953         Likewise.
3954         * testsuite/27_io/basic_filebuf/imbue/wchar_t/14975-2.cc:
3955         Likewise.
3956         * testsuite/27_io/basic_filebuf/open/char/9507.cc: Likewise.
3957         * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc:
3958         Likewise.
3959         * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
3960         * testsuite/27_io/objects/char/7.cc: Likewise.
3961         * testsuite/27_io/objects/char/9661-1.cc: Likewise.
3962         * testsuite/27_io/objects/wchar_t/7.cc: Likewise.
3963         * testsuite/27_io/objects/wchar_t/9661-1.cc: Likewise.
3965 2005-05-04  Benjamin Kosnik  <bkoz@redhat.com>
3967         * acinclude.m4: Remove testsuite_wchar_t and testsuite_thread.
3968         * testsuite/Makefile.am: Same.
3969         * scripts/create_testsuite_files: Same. 
3970         * Makefile.in: Regenerate.
3971         * configure: Same.
3972         * include/Makefile.in: Same.
3973         * libmath/Makefile.in: Same.
3974         * libsupc++/Makefile.in: Same.
3975         * po/Makefile.in: Same.
3976         * src/Makefile.in: Same.
3978 2005-05-04  Mark Mitchell  <mark@codesourcery.com>
3980         * testsuite/lib/libstdc++.exp (v3-build_support): Look for
3981         __GTHREADS, rather than _GLIBCXX_HAVE_GTHR_DEFAULT, to determine
3982         whether or not thread support is available.
3984         * docs/html/test.html: Explain how to run the testsuite on an
3985         installed directory. 
3987 2005-05-01  Paolo Carlini  <pcarlini@suse.de>
3989         * config/os/aix/os_defines.h: Remove obsolete __off_t,
3990         __off64_t, __ssize_t defines.
3991         * config/os/djgpp/os_defines.h: Likewise.
3992         * config/os/hpux/os_defines.h: Likewise.
3993         * config/os/irix/irix5.2/os_defines.h: Likewise.
3994         * config/os/irix/irix6.5/os_defines.h: Likewise.
3995         * config/os/solaris/solaris2.5/os_defines.h: Likewise.
3996         * config/os/solaris/solaris2.6/os_defines.h: Likewise.
3997         * config/os/solaris/solaris2.7/os_defines.h: Likewise.
3998         * docs/html/17_intro/porting.html: Don't discuss the defines.
3999         * docs/html/17_intro/porting.texi: Likewise.
4001 2005-04-29  Paolo Carlini  <pcarlini@suse.de>
4002             Nathan Myers  <ncm@cantrip.org>
4004         PR libstdc++/21286
4005         * include/bits/fstream.tcc (basic_filebuf<>::xsgetn):
4006         Loop on short reads; remove the work-around for
4007         libstdc++/20806, not needed anymore.
4009 2005-04-29  Paolo Carlini  <pcarlini@suse.de>
4011         PR libstdc++/21238
4012         * include/bits/locale_facets.tcc (num_get::_M_extract_float,
4013         num_get::_M_extract_int, num_get::do_get(bool&),
4014         num_put::_M_insert_int, num_put::_M_insert_float,
4015         num_put::do_put(bool), money_get::_M_extract,
4016         money_put::_M_insert): Adjust the __cache_type typedef not to
4017         forward to a numpunct/moneypunct typedef.
4018         * testsuite/testsuite_character.h: Add pod_uint and its numpunct
4019         and moneypunct specializations.
4020         * testsuite/testsuite_character.cc: Add numpunct<pod_uint>::id
4021         and moneypunct<pod_uint>::id.
4022         * testsuite/22_locale/num_get/3.cc: New.
4023         * testsuite/22_locale/num_put/3.cc: Likewise.
4024         * testsuite/22_locale/money_get/3.cc: Likewise.
4025         * testsuite/22_locale/money_put/3.cc: Likewise.
4027         * include/bits/locale_facets.tcc (money_put::_M_insert,
4028         time_get::_M_extract_name): Prefer operator== to operator!=
4029         on char_types.
4031 2005-04-29  Paolo Carlini  <pcarlini@suse.de>
4033         * include/tr1/type_traits (is_convertible): Adjust according
4034         to the resolution of TR1 issue 3.20.
4035         * testsuite/tr1/4_metaprogramming/relationships_between_types/
4036         is_convertible/is_convertible.cc: Add tests.
4038 2005-04-28  Paolo Carlini  <pcarlini@suse.de>
4039             Gabriel Dos Reis  <gdr@integrable-solutions.net>
4041         PR libstdc++/21244 (cont)
4042         * include/bits/cpp_type_traits.h (struct __traitor): Convert
4043         to bool the values.
4044         * include/bits/stl_algo.h: Convert _S_threshold to int.
4045         * include/bits/stl_bvector.h: Revert previous change, convert
4046         _S_word_bit to int.
4047         * include/debug/formatter.h: Convert __max_parameters to
4048         size_t.
4049         * include/ext/mt_allocator.h: Likewise for _S_chunk_size.
4050         * include/ext/pool_allocator.h: Likewise for _S_max_bytes and
4051         _S_align.
4052         * include/ext/rope: Likewise for _S_alloc_granularity; convert
4053         _S_max_rope_depth to int.
4054         * include/ext/ropeimpl.h: Convert _S_path_cache_len to int;
4055         _S_max_rope_depth to int; _S_copy_max to size_t.
4057 2005-04-27  Benjamin Kosnik  <bkoz@redhat.com>
4059         * docs/doxygen/user.cfg.in: Update to doxygen-1.4.2.
4060         * docs/doxygen/doxygroups.cc: Update namespace comments.
4062 2005-04-27  Dominik Strasser  <dominik.strasser@infineon.com>
4063             Paolo Carlini  <pcarlini@suse.de>
4065         PR libstdc++/21244
4066         * include/bits/stl_bvector.h: Change the anonymous enum
4067         at namespace scope to _S_word_bit_enum.
4068         * testsuite/23_containers/vector/bool/21244.cc: New.
4070 2005-04-27  Paolo Carlini  <pcarlini@suse.de>
4072         * include/tr1/type_traits (has_trivial_copy, has_trivial_assign,
4073         has_nothrow_copy, has_nothrow_assign): Adjust according to the
4074         resolution of TR1 issue 3.21.
4075         * testsuite/testsuite_tr1.h (test_copy_property,
4076         test_assign_property): Remove.
4077         * testsuite/tr1/4_metaprogramming/type_properties/
4078         has_nothrow_assign/has_nothrow_assign.cc: Adjust.
4079         * testsuite/tr1/4_metaprogramming/type_properties/
4080         has_nothrow_copy/has_nothrow_copy.cc: Likewise.
4081         * testsuite/tr1/4_metaprogramming/type_properties/
4082         has_trivial_assign/has_trivial_assign.cc: Likewise.
4083         * testsuite/tr1/4_metaprogramming/type_properties/
4084         has_trivial_copy/has_trivial_copy.cc: Likewise.
4086 2005-04-26  Jones Desougi  <jones@ingate.com>
4088         PR libstdc++/21131
4089         * linkage.m4: Fix comments.
4091 2005-04-26  Paolo Carlini  <pcarlini@suse.de>
4093         PR libstdc++/21209
4094         * include/bits/locale_facets.tcc (_M_extract_int): Avoid signed
4095         integer overflow, always use a suited unsigned type in the main
4096         parsing loop.
4097         (struct __to_unsigned_type): New.
4098         * testsuite/22_locale/num_get/get/char/16.cc: New.
4099         * testsuite/22_locale/num_get/get/wchar_t/16.cc: Likewise.
4101 2005-04-25  Paolo Carlini  <pcarlini@suse.de>
4103         PR libstdc++/21035
4104         * include/bits/basic_string.h (compare): Adjust the documentation
4105         to match the implementation and the standard.
4107 2005-04-24  Paolo Carlini  <pcarlini@suse.de>
4109         * docs/html/ext/lwg-active.html, lwg-defects.html: Import Revision 35.
4111 2005-04-20  Mark Mitchell  <mark@codesourcery.com>
4113         * testsuite/ext/bitmap_allocator/check_allocate_max_size.cpp: Add
4114         explicit instantiations for systems without weak symbols.
4115         * testsuite/ext/bitmap_allocator/check_deallocate_null.cc:
4116         Likewise. 
4118 2005-04-18  Jonathan Wakely  <redi@gcc.gnu.org>
4120         * include/bits/stl_algo.h (rotate_copy): Add missing std qualification.
4122 2005-04-17  Paolo Carlini  <pcarlini@suse.de>
4124         PR libstdc++/20914
4125         * include/bits/locale_facets.tcc (__int_to_char(_CharT*, _ValueT,
4126         const _CharT*, ios_base::fmtflags, bool)): Don't deal with numeric
4127         base or sign here, instead...
4128         (_M_insert_int(_OutIter, ios_base&, _CharT, _ValueT)): ... here,
4129         after adding the grouping. This fixes the bug and also allows to
4130         clean-up the code dealing with integer types.
4131         (_M_group_int(const char*, size_t, _CharT, ios_base&, _CharT*,
4132         _CharT*, int&)): Simplify, remove bits dealing with numeric base.
4133         (__int_to_char(_CharT*, unsigned long, const _CharT*,
4134         ios_base::fmtflags), __int_to_char(_CharT*, unsigned long long,
4135         const _CharT*, ios_base::fmtflags)): Remove hackish fix for
4136         libstdc++/15565.
4137         (__int_to_char(_CharT*, long, const _CharT*, ios_base::fmtflags),
4138         __int_to_char(_CharT*, long long, const _CharT*, ios_base::fmtflags)):
4139         Simplify, don't pass the sign.
4140         (_M_insert_float(_OutIter, ios_base&, _CharT, char, _ValueT)):
4141         Deal with a sign at the beginning of __cs; robustify the grouping
4142         check.
4143         * testsuite/22_locale/num_put/put/char/20914.cc: New.
4144         * testsuite/22_locale/num_put/put/wchar_t/20914.cc: Likewise.
4146 2005-04-14  Benjamin Kosnik  <bkoz@redhat.com>
4148         * include/ext/bitmap_allocator.h
4149         (__gnu_cxx::free_list::_M_get_mutex): New.
4150         (__gnu_cxx::free_list::_M_get_free_list): New.
4151         (__gnu_cxx::free_list::_S_bfl_mutex): Remove.
4152         (__gnu_cxx::free_list::_S_free_list): Remove.
4153         * src/bitmap_allocator.cc: Same.
4154         * config/linker-map.gnu: Remove free_list and mutex export.
4156 2005-04-14  Benjamin Kosnik  <bkoz@redhat.com>
4158         *  include/ext/pod_char_traits.h (__gnu_cxx::character): Add char_type.
4159         (character::to): New.
4160         (character::from): New.
4161         (operator==): Add state parameter.
4162         (operator<): Same.
4163         (char_traits::copy): Use std::copy.
4164         (char_traits::assign): Use std::fill_n.
4165         (char_traits::to_char_type): Use character::from.
4166         (char_traits::to_int_type): Use character::to.
4167         *  testsuite/testsuite_character.h (__gnu_test::character): Remove.
4168         (__gnu_test::conversion_state): Remove.
4169         (__gnu_test::pod_char): Remove.
4170         (pod_char): New typedef.
4171         (pod_uchar): New typedef.
4172         (pod_ushort): New typedef.
4173         *  testsuite/testsuite_character.cc: Fixups.
4174         *  testsuite/21_strings/basic_string/inserters_extractors/pod/
4175         10081-in.cc: Same.
4176         *  testsuite/21_strings/basic_string/inserters_extractors/pod/
4177         10081-out.cc: Same.
4178         *  testsuite/22_locale/numpunct/members/pod/1.cc: Same.
4179         *  testsuite/22_locale/numpunct/members/pod/2.cc: Same.
4180         *  testsuite/27_io/basic_filebuf/close/12790-1.cc: Same.
4181         *  testsuite/27_io/basic_filebuf/open/12790-1.cc: Same.
4182         *  testsuite/27_io/basic_filebuf/seekoff/12790-1.cc: Same.
4183         *  testsuite/27_io/basic_filebuf/seekoff/12790-2.cc: Same.
4184         *  testsuite/27_io/basic_filebuf/seekoff/12790-3.cc: Same.
4185         *  testsuite/27_io/basic_filebuf/seekoff/12790-4.cc: Same.
4186         *  testsuite/27_io/basic_filebuf/seekpos/12790-1.cc: Same.
4187         *  testsuite/27_io/basic_filebuf/seekpos/12790-2.cc: Same.
4188         *  testsuite/27_io/basic_filebuf/seekpos/12790-3.cc: Same.
4189         *  testsuite/27_io/basic_ios/imbue/14072.cc: Same.
4190         *  testsuite/27_io/basic_istream/extractors_arithmetic/pod/
4191         3983-1.cc: Same.
4192         *  testsuite/27_io/basic_istream/extractors_character/pod/
4193         3983-2.cc: Same.
4194         *  testsuite/27_io/basic_istream/extractors_other/pod/3983-3.cc: Same.
4195         *  testsuite/27_io/basic_istream/sentry/pod/1.cc: Same.
4196         *  testsuite/27_io/basic_ostream/sentry/pod/1.cc: Same.
4198 2005-04-12  Mike Stump  <mrs@apple.com>
4200         * configure: Regenerate.
4202 2005-04-08  Benjamin Kosnik  <bkoz@redhat.com>
4204         * testsuite/Makefile.am: Remove libv3test.a.
4205         * testsuite/Makefile.in: Regenerate.
4206         * testsuite/lib/libstdc++.exp (v3_target_compile): Fix comments.
4207         
4208 2005-04-08  Paolo Carlini  <pcarlini@suse.de>
4210         PR libstdc++/20909
4211         * include/bits/locale_facets.tcc (num_put<>::_M_insert_float):
4212         Don't even try to group numbers like 2e20, i.e., no decimal
4213         point, scientific notation.
4214         * testsuite/22_locale/num_put/put/char/20909.cc: New.
4215         * testsuite/22_locale/num_put/put/wchar_t/20909.cc: Likewise.
4217 2005-04-08  Kelley Cook  <kcook@gcc.gnu.org>
4219         * acinclude.m4 (GLIBCXX_ENABLE_SYMVERS): Define _GLIBCXX_ASM_SYMVER.
4220         * acconfig.h: Delete file.
4221         * Makefile.in, acinclude.m4, configure: Regenerate.
4223 2005-04-08  Kelley Cook  <kcook@gcc.gnu.org>
4225         * linkage.m4 (GLIBCXX_MAYBE_UNDERSCORED_FUNCS): New macro.
4226         (GLIBCXX_CHECK_MATH_DECL_AND_LINKAGE_1,
4227         GLIBCXX_CHECK_MATH_DECL_AND_LINKAGE_2,
4228         GLIBCXX_CHECK_MATH_DECL_AND_LINKAGE_3,
4229         GLIBCXX_CHECK_MATH_DECLS_AND_LINKAGES_1,
4230         GLIBCXX_CHECK_STDLIB_DECL_AND_LINKAGE_2): Use it.
4231         (GLIBCXX_CHECK_MATH_SUPPORT): Delete obsolete comment.
4232         * acconfig.h: Delete redundant macros.
4233         * config.h.in, configure: Regenerate.
4235 2005-04-08  Kelley Cook  <kcook@gcc.gnu.org>
4237         * linkage.m4 (GLIBCXX_CHECK_MATH_DECLS_AND_LINKAGES_1): Eliminate
4238         a subshell and if test fails, test for same functions with 
4239         leading underscore.
4240         (GLIBCXX_CHECK_MATH_SUPPORT): Eliminate seperate checks for _funcs.
4241         * configure: Regenerate.
4243 2005-04-08  Danny Smith  <dannysmith@users.sourceforge.net>
4244             Paolo Carlini  <pcarlini@suse.de>
4245                         
4246         PR libstdc++/20806
4247         * config/os/mingw32/os_defines.h: Define
4248         _GLIBCXX_HAVE_DOS_BASED_FILESYSTEM.
4249         * config/os/newlib/os_defines.h: Likewise, for __CYGWIN__.
4250         * include/bits/fstream.tcc (basic_filebuf<>::showmanyc()):
4251         Use it.
4252         (basic_filebuf<>::xsgetn(_CharT*, streamsize)): Likewise.
4254 2005-04-08  Kelley Cook  <kcook@gcc.gnu.org>
4256         * acconfig.h: Sort the bottom section.
4257         * config.h.in: Regenerate.
4259 2005-04-08  Kelley Cook  <kcook@gcc.gnu.org>
4261         * acconfig.h: Remove redundant HAVE_FLOAT_H.
4262         * config.h.in: Regenerate.
4264 2005-04-08  Kelley Cook  <kcook@gcc.gnu.org>
4266         * configure.ac: Create template for PACKAGE and VERSION.
4267         Update comment on how to regenerate file.  Update minimum
4268         automake version to 1.9.3.
4269         * acconfig.h: Remove PACKAGE and VERSION.
4270         * aclocal.m4, configure, Makefile.in, po/Makefile.in, 
4271         src/Makefile.in, include/Makefile.in, libmath/Makefile.in, 
4272         testsuite/Makefile.in, config.h.in: Regenerate.
4274 2005-04-06  Benjamin Kosnik  <bkoz@redhat.com>
4276         * docs/html/test.html: Update.
4277         * testsuite/printnow.c: Remove.
4278         * scripts/check_survey.in: Remove.
4280         * testsuite/abi_check.cc: To...
4281         * testuite/testsuite_abi_check.cc: ...here.
4282         * testsuite/libstdc++-abi/abi.exp: Change abi_check.cc to
4283         testsuite_abi_check.cc.
4285         * testsuite/testsuite_hooks.h: Move character related bits to...
4286         * testsuite/testsuite_character.h: ...here.
4287         * testsuite/testsuite_character.cc: ... and here.
4288         * testsuite/21_strings/basic_string/inserters_extractors/pod/
4289         10081-in.cc: Use testsuite_character.h.
4290         * testsuite/21_strings/basic_string/inserters_extractors/pod/
4291         10081-out.cc: Same.
4292         * testsuite/22_locale/numpunct/members/pod/1.cc: Same.
4293         * testsuite/22_locale/numpunct/members/pod/2.cc: Same.
4294         * testsuite/27_io/basic_filebuf/2.cc: Same.
4295         * testsuite/27_io/basic_fstream/2.cc: Same.
4296         * testsuite/27_io/basic_istream/2.cc: Same.
4297         * testsuite/27_io/basic_istream/extractors_arithmetic/pod/
4298         3983-1.cc: Same.
4299         * testsuite/27_io/basic_istream/extractors_character/char/
4300         9826.cc: Same.
4301         * testsuite/27_io/basic_istream/extractors_character/pod/
4302         3983-2.cc: Same.
4303         * testsuite/27_io/basic_istream/extractors_other/pod/3983-3.cc: Same.
4304         * testsuite/27_io/basic_istream/sentry/pod/1.cc: Same.
4305         * testsuite/27_io/basic_ostream/2.cc: Same.
4306         * testsuite/27_io/basic_ostream/sentry/pod/1.cc: Same.
4307         * testsuite/27_io/basic_streambuf/2.cc: Same.
4308         * testsuite/27_io/basic_stringbuf/2.cc: Same.
4309         * testsuite/27_io/basic_stringbuf/4.cc: Same.
4310         * testsuite/27_io/basic_stringstream/2.cc: Same.
4311         * testsuite/27_io/fpos/1.cc: Same.
4312         * testsuite/ext/mt_allocator/tune-1.cc: Same.
4313         * testsuite/ext/mt_allocator/tune-2.cc: Same.
4314         * testsuite/ext/stdio_filebuf/char/1.cc: Same.  
4315         * testsuite/lib/libstdc++.exp (v3-build_support): Add
4316         testsuite_character.cc.
4317         * testsuite/Makefile.am (libv3test_a_SOURCES): Add
4318         testsuite_character.cc.
4319         * testsuite/Makefile.in: Regenerate.
4320                 
4321         * configure.ac: Remove use of check_survey.
4322         * configure: Regenerate.
4323         * testsuite/Makefile.am: Remove check-script and
4324         check-script-install rules.
4325         * testsuite/Makefile.in: Regenerate.
4327 2005-04-06  Ulrich Weigand  <uweigand@de.ibm.com>
4329         * config/cpu/s390/atomicity.h (__exchange_and_add): Add "memory"
4330         clobber to inline assembly statement.
4332 2005-04-06  Kelley Cook  <kcook@gcc.gnu.org>
4334         * acinclude.m4 (_GLIBCXX_USE_LONG_LONG,
4335         _GLIBCXX_USE_WCHAR_T, _GLIBCXX_USE_C99, _GLIBCXX_USE_C99_MATH,
4336         _GLIBCXX_USE_C99_COMPLEX, _GLIBCXX_RES_LIMITS, _GLIBCXX_CONCEPT_CHECKS,
4337         _GLIBCXX_SYMVER, _GLIBCXX_USE_LFS, _GLIBCXX_FULLY_DYNAMIC_STRING,
4338         _GLIBCXX_USE_NLS, HAVE_GTHR_DEFAULT, HAVE_MBSTATE_T, HAVE_POLL,
4339         HAVE_S_ISREG, HAVE_S_IFREG, HAVE_WRITEV, HAVE_INT64_T,
4340         HAVE_LC_MESSAGES): Use long form of AC_DEFINE ...
4341         * acconfig.h: ... to eliminate them from here.
4342         (_GLIBCXX_ASM_SYMVER): Move definition below @BOTTOM@.
4343         * config.h.in, configure: Regenerate.
4344         
4345 2005-04-05  Kelley Cook  <kcook@gcc.gnu.org>
4347         * Makefile.am (ACLOCAL_AMFLAGS): Define.
4348         * crossconfig.m4: Wrap file into new GLIBCXX_CROSSCONFIG macro.
4349         * configure.ac: Use it.
4350         * acinclude.m4: Delete explicit m4_includes and sincludes.
4351         * aclocal.m4, configure, Makefile.in, po/Makefile.in, 
4352         src/Makefile.in, include/Makefile.in, libmath/Makefile.in, 
4353         testsuite/Makefile.in: Regenerate.
4355 2005-04-05  Jonathan Wakely  <redi@gcc.gnu.org>
4357         * include/tr1/memory, include/tr1/boost_shared_ptr.h: Use mutex
4358         to make _Sp_counted_base::add_ref_lock() thread-safe. Check whether
4359         to destroy resources by testing for equality, not inequality. Add
4360         empty critical sections to solve memory visibility issues.
4361         * testsuite/tr1/2_general_utilities/memory/
4362         shared_ptr/cons/auto_ptr_neg.cc: Use dg-excess-errors instead of
4363         explicitly listing line numbers which need to be kept in sync.
4364         * testsuite/tr1/2_general_utilities/memory/
4365         shared_ptr/assign/auto_ptr_neg.cc: Same.
4366         * testsuite/tr1/2_general_utilities/memory/
4367         shared_ptr/assign/auto_ptr_rvalue_neg.cc: Same.
4368         * testsuite/tr1/2_general_utilities/memory/
4369         shared_ptr/cons/weak_ptr_expired.cc: Make XFAIL for consistency when
4370         -fno-exceptions.
4371         * testsuite/tr1/2_general_utilities/memory/
4372         enable_shared_from_this/not_shared.cc: Add explanatory comments.
4373         * testsuite/tr1/2_general_utilities/memory/
4374         enable_shared_from_this/not_shared2.cc: Same.
4375         * testsuite/tr1/2_general_utilities/memory/
4376         enable_shared_from_this/not_shared3.cc: Same.
4378 2005-04-05  Kelley Cook  <kcook@gcc.gnu.org>
4380         * acconfig.h: Delete macros already AC_DEFINED.
4381         * config.h.in: Regenerate.
4383 2005-04-05  Kelley Cook  <kcook@gcc.gnu.org>
4385         * acconfig.h (HAVE_MODF): Remove.
4386         * linkage.m4: Check for modf.
4387         * config.h.in, configure: Regenerate.
4389 2005-04-05  Kelley Cook  <kcook@gcc.gnu.org>
4391         * acconfig.h (ENABLE_NLS, HAVE_CATGETS): Remove.
4392         (HAVE_GETTEXT, HAVE_STPCPY): Likewise.
4393         * config.h.in: Regenerate.
4394         
4395 2005-04-05  Kelley Cook  <kcook@gcc.gnu.org>
4397         * linkage.m4 (GLIBCXX_CHECK_BUILTIN_MATH_DEC): Use m4 translit macro 
4398         to convert to uppercase instead of shelling out to tr.
4399         * acconfig.h: Remove now redundant HAVE__BUILTINS_*.
4400         * configure, config.h.in: Regenerate.
4402 2005-04-05  Kelley Cook  <kcook@gcc.gnu.org>
4404         * acconfig.h (HAVE_TANL): Correct cut-and-paste typo.
4405         * config.h.in: Regenerate.
4407 2005-04-04  Mark Mitchell  <mark@codesourcery.com>
4409         * testsuite/Makefile.am (check-local): Remove.
4410         (curent_symbols.txt): Likewise.
4411         (check-abi): Do not depend on current_symbols.txt.
4412         * testsuite/Makefile.in: Regenerated.
4413         * testsuite/libstdc++-abi/abi.exp: Build current_symbols.txt.
4415 2005-04-02  Douglas Gregor  <doug.gregor@gmail.com>
4416         
4417         * include/tr1/tuple_iterate.h (tuple_element): Use new macro
4418         _GLIBCXX_T_NUM_ARGS_PLUS_1 because _T is a macro on Darwin.
4419         * include/tr1/repeat.h (_GLIBCXX_T_NUM_ARGS_PLUS_1): Define for
4420         each iteration.
4421         * scripts/gen_includers.h: Define _GLIBCXX_T_NUM_ARGS_PLUS_1 for
4422         each iteration.
4423         
4424 2005-04-01  Douglas Gregor  <doug.gregor@gmail.com>
4426         * include/tr1/functional (_Maybe_wrap_member_pointer): Wrap up
4427         member pointers in _Mem_fn but let other function objects pass
4428         through unchanged.
4429         * include/tr1/functional_iterator (bind): Reduce number of bind()
4430         overloads to two to eliminate ambiguities. Use
4431         _Maybe_wrap_member_pointer to handle member pointers gracefully.
4432         
4433 2005-04-01  Mark Mitchell  <mark@codesourcery.com>
4435         * testsuite/Makefile.am (noinst_PROGRAMS): Remove.
4436         (site.exp): Write out the path to the baseline file.
4437         (check-abi): Use DejaGNU.
4438         (check-abi-verbose): Remove.
4439         * testsuite/Makefile.in: Regenerated.
4440         * testsuite/abi_check.cc (main): Check the return value from
4441         compare_symbols.
4442         * testsuite/testsuite_abi.cc (compare_symbols): Return a value.
4443         * testsuite/testsuite_abi.h (compare_symbols): Adjust prototype.
4444         * testsuite/libstdc++-abi/abi.exp: New file.
4446 2005-03-31  Chris Jefferson  <chris@bubblescope.net>
4448         * include/tr1/tuple: Support iteration via tuple_iterate.h.
4449         * include/tr1/tuple_iterate.h: Iteration file for tuple.
4451 2005-03-31  Douglas Gregor  <doug.gregor@gmail.com>
4453         * include/Makefile.am (tr1_headers): Add bind and mu repetition
4454         headers and reference_wrapper<> forwarding header.
4455         * include/Makefile.in: Regenerate.
4456         * include/tr1/bind_iterate.h: Implementation of function call
4457         operators for the function object returned from tr1::bind().
4458         * include/tr1/bind_repeat.h: Bind-specific repetition header,
4459         akin to include/tr1/repeat.h.
4460         * include/tr1/functional (_Mem_fn): Bug fix: declare result member
4461         template for use with result_of.
4462         (is_bind_expression): New.
4463         (is_placeholder): New.
4464         (_Placeholder): New. Placeholder type for bind.
4465         (_Mu): New. Implementation detail of bind.
4466         (_Bind, _Bind_result): New. Function objects returned by bind.
4467         (_GLIBCXX_JOIN): New. Required to create bind placeholders.
4468         * include/tr1/functional_iterate.h (_Bind, _Bind_result, bind):
4469         New. Implementation of tr1::bind.
4470         * include/tr1/mu_iterate.h (_Mu): result template and operator()
4471         for the _Mu helper to bind.
4472         * include/tr1/ref_fwd.h (reference_wrapper): Forward declaration
4473         used by tuple header.
4474         (ref): Ditto.
4475         (cref): Ditto.
4476         * include/tr1/repeat.h: Add bind-specific repetition macros.
4477         * include/tr1/tuple: Use reference_wrapper forwarding header for
4478         initial definitions, then include <tr1/functional> at the end, to
4479         make the circular dependencies work.
4480         (tie): Support zero-argument tie() function.
4481         * testsuite/tr1/3_function_objects/bind/all_bound.cc: New test of
4482         bind() functionality with parameters bound.
4483         * testsuite/tr1/3_function_objects/bind/nested.cc: New test of
4484         nested bind() expressions.
4485         * testsuite/tr1/3_function_objects/bind/placeholders.cc: New test
4486         of bind() placeholders.
4487         * testsuite/tr1/3_function_objects/bind/ref.cc: New test of bind()
4488         with arguments bound via reference_wrapper<>.
4489         * scripts/gen_includers.pl: Generate the repetitive part of
4490         include/tr1/repeat.h.
4491         * scripts/gen_bind_includers.pl: Generate the repetitive part of
4492         include/tr1/bind_repeat.h. 
4493         
4494 2005-03-30  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
4496         * testsuite/Makefile.am (CXX): Use ${SHELL}.
4497         (GLIBCXX_INCLUDES): Same.
4498         (AM_CXXFLAGS): Same.
4499         * testsuite/Makefile.in: Regenerate.
4501 2005-03-25  Mark Mitchell  <mark@codesourcery.com>
4503         * testsuite/lib/libstdc++.exp (libstdc++_init): Define LOCALEDIR
4504         when testing an installed compiler.
4505         
4506         * testsuite/lib/libstdc++.exp (v3-build_support): Pass -w when
4507         compiling support objects.
4509 2005-03-24  Benjamin Kosnik  <bkoz@redhat.com>
4511         * include/tr1/memory: Forward to...
4512         * include/tr1/boost_shared_ptr.h: ...here. Add Boost Software License.
4513         * include/Makefile.am (tr1_headers): Add boost_shared_ptr.h.
4514         * include/Makefile.in: Regenerate.
4515         * testsuite/tr1/2_general_utilities/memory/shared_ptr/cons/
4516         auto_ptr_neg.cc: Adjust line numbers.
4518 2005-03-23  Mark Mitchell  <mark@codesourcery.com>
4520         * testsuite/Makefile.am (all-local): Do not build testsuite_files.
4521         * testsuite/Makefile.in: Regenerated. 
4523 2005-03-23  Benjamin Kosnik  <bkoz@redhat.com>
4525         * acinclude.m4: Adjust so that _GLIBCXX_USE_C99 implies
4526         using _GLIBCXX_USE_C99_COMPLEX, _GLIBCXX_USE_C99_MATH, and
4527         _GLIBCXX_USE_C99_WCHAR.
4528         Remove GLIBCXX_ENABLE_C_MBCHAR, consolidate in GLIBCXX_ENABLE_C99
4529         and GLIBCXX_ENABLE_WCHAR_T.
4530         Take C99 bits from GLIBCXX_CHECK_WCHAR_T_SUPPORT and put in 
4531         GLIBCXX_ENABLE_C99.
4532         Change remaining parts of GLIBCXX_CHECK_WCHAR_T_SUPPORT to
4533         GLIBCXX_CHECK_ICONV_SUPPORT.
4534         * configure.ac: Remove GLIBCXX_ENABLE_C_MBCHAR, use
4535         GLIBCXX_CHECK_ICONV_SUPPORT and GLIBCXX_ENABLE_WCHAR_T.
4536         * crossconfig.m4: Same.
4537         * acconfig.h: Same, adjust comments.
4538         * config.h.in: Regenerate.
4539         * configure: Regenerate.
4540         * docs/html/configopts.html: Change --enable-c-mbchar to
4541         --enable-wchar_t.
4543         * config/locale/gnu/c++locale_internal.h: Guard wide functions
4544         with _GLIBCXX_USE_WCHAR_T.
4545         * include/c_std/std_cwctype.h: Alphabetize, remove duplicates.
4546         * include/c_std/std_cstdio.h: Spacing.
4548         * config/locale/gnu/c_locale.h: Tweaks for unused warnings.
4549         * src/debug.cc: Same.
4551 2005-03-23  Mark Mitchell  <mark@codesourcery.com>
4553         * testsuite/libstdc++-dg/normal.exp: Read testsuite_files, if it
4554         exists.
4556         * testsuite/lib/libstdc++.exp (libstdc++_wchar_t): Rename to ...
4557         (v3-wchar_t): ... this.
4558         (libstdc++_threads): Rename to ...
4559         (v3-threads): ... this.
4560         (libstdc++_test_objs): Rename to ...
4561         (v3-test_objs): ... this.
4562         (libstdc++_build_support): Rename to ...
4563         (v3-build_support): ... this.
4564         * testsuite/libstdc++-dg/normal.exp: Adjust to use new names.
4566         * testsuite/lib/libstdc++.exp (libstdc++_init): Improve handling
4567         of compilers not in the build directory.
4568         (libstdc++_wchar_t): New variable.
4569         (libstdc++_threads): Likewise.
4570         (libstdc++_test_objs): Likewise.
4571         (v3_target_compile): Use libstdc++_test_objs.
4572         (v3-list-tests): Remove.
4573         (listdc++_build_support): New function.
4574         * testsuite/libstdc++-dg/normal.exp: Rework to dynamically
4575         generate list of tests.
4577 2005-03-21  Chris Jefferson  <chris@bubblescope.net>
4579         PR libstdc++/20577
4580         * include/bits/stl_algobase.h (iter_swap): Only delegate iter_swap
4581         to swap when the iterator's reference_type is a reference to its
4582         value_type.
4583         * testsuite/25_algorithms/iter_swap/20577.cc: New.
4585 2005-03-21  Zack Weinberg  <zack@codesourcery.com>
4587         * acinclude.m4 (GLIBCXX_CONFIGURE): Delete gcc_version logic.
4588         (GLIBCXX_EXPORT_INSTALL_INFO): Adjust quotation so ${gcc_version}
4589         is expanded by the Makefiles, not by configure.
4590         * fragment.am: Set gcc_version.
4591         * libmath/Makefile.am: Likewise.
4592         * configure, Makefile.in, include/Makefile.in, libmath/Makefile.in
4593         * libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in
4594         * testsuite/Makefile.in: Regenerate.
4596 2005-03-16  Paolo Carlini  <pcarlini@suse.de>
4598         * testsuite/20_util/functional/binders.cc: Remove explicit
4599         instantiations for non-weak systems.
4600         * testsuite/20_util/memory/allocator/1.cc: Likewise.
4601         * testsuite/20_util/memory/allocator/10378.cc: Likewise.
4602         * testsuite/20_util/memory/allocator/10416.cc: Likewise.
4603         * testsuite/20_util/memory/allocator/8230.cc: Likewise.
4604         * testsuite/20_util/utility/rel_ops.cc: Likewise.
4605         * testsuite/22_locale/ctype/is/char/2.cc: Likewise.
4606         * testsuite/22_locale/ctype/is/wchar_t/2.cc: Likewise.
4607         * testsuite/23_containers/deque/cons/1.cc: Likewise.
4608         * testsuite/23_containers/deque/cons/2.cc: Likewise.
4609         * testsuite/23_containers/deque/invalidation/1.cc: Likewise.
4610         * testsuite/23_containers/deque/invalidation/2.cc: Likewise.
4611         * testsuite/23_containers/deque/invalidation/3.cc: Likewise.
4612         * testsuite/23_containers/deque/invalidation/4.cc: Likewise.
4613         * testsuite/23_containers/deque/modifiers/swap.cc: Likewise.
4614         * testsuite/23_containers/deque/operators/1.cc: Likewise.
4615         * testsuite/23_containers/list/capacity/1.cc: Likewise.
4616         * testsuite/23_containers/list/cons/1.cc: Likewise.
4617         * testsuite/23_containers/list/cons/2.cc: Likewise.
4618         * testsuite/23_containers/list/cons/3.cc: Likewise.
4619         * testsuite/23_containers/list/cons/4.cc: Likewise.
4620         * testsuite/23_containers/list/cons/5.cc: Likewise.
4621         * testsuite/23_containers/list/cons/6.cc: Likewise.
4622         * testsuite/23_containers/list/cons/7.cc: Likewise.
4623         * testsuite/23_containers/list/cons/8.cc: Likewise.
4624         * testsuite/23_containers/list/cons/9.cc: Likewise.
4625         * testsuite/23_containers/list/invalidation/1.cc: Likewise.
4626         * testsuite/23_containers/list/invalidation/2.cc: Likewise.
4627         * testsuite/23_containers/list/invalidation/3.cc: Likewise.
4628         * testsuite/23_containers/list/invalidation/4.cc: Likewise.
4629         * testsuite/23_containers/list/modifiers/1.cc: Likewise.
4630         * testsuite/23_containers/list/modifiers/2.cc: Likewise.
4631         * testsuite/23_containers/list/modifiers/3.cc: Likewise.
4632         * testsuite/23_containers/list/operators/1.cc: Likewise.
4633         * testsuite/23_containers/list/operators/2.cc: Likewise.
4634         * testsuite/23_containers/list/operators/3.cc: Likewise.
4635         * testsuite/23_containers/list/operators/4.cc: Likewise.
4636         * testsuite/23_containers/map/insert/1.cc: Likewise.
4637         * testsuite/23_containers/map/invalidation/1.cc: Likewise.
4638         * testsuite/23_containers/map/invalidation/2.cc: Likewise.
4639         * testsuite/23_containers/map/modifiers/swap.cc: Likewise.
4640         * testsuite/23_containers/map/operators/1.cc: Likewise.
4641         * testsuite/23_containers/multimap/invalidation/1.cc: Likewise.
4642         * testsuite/23_containers/multimap/invalidation/2.cc: Likewise.
4643         * testsuite/23_containers/multimap/modifiers/swap.cc: Likewise.
4644         * testsuite/23_containers/multiset/insert/1.cc: Likewise.
4645         * testsuite/23_containers/multiset/insert/2.cc: Likewise.
4646         * testsuite/23_containers/multiset/invalidation/1.cc: Likewise.
4647         * testsuite/23_containers/multiset/invalidation/2.cc: Likewise.
4648         * testsuite/23_containers/multiset/modifiers/swap.cc: Likewise.
4649         * testsuite/23_containers/priority_queue/members/7161.cc: Likewise.
4650         * testsuite/23_containers/queue/members/7157.cc: Likewise.
4651         * testsuite/23_containers/set/insert/1.cc: Likewise.
4652         * testsuite/23_containers/set/invalidation/1.cc: Likewise.
4653         * testsuite/23_containers/set/invalidation/2.cc: Likewise.
4654         * testsuite/23_containers/set/modifiers/swap.cc: Likewise.
4655         * testsuite/23_containers/stack/members/7158.cc: Likewise.
4656         * testsuite/23_containers/vector/bool/6886.cc: Likewise.
4657         * testsuite/23_containers/vector/capacity/1.cc: Likewise.
4658         * testsuite/23_containers/vector/capacity/8230.cc: Likewise.
4659         * testsuite/23_containers/vector/cons/1.cc: Likewise.
4660         * testsuite/23_containers/vector/cons/2.cc: Likewise.
4661         * testsuite/23_containers/vector/cons/3.cc: Likewise.
4662         * testsuite/23_containers/vector/cons/6513.cc: Likewise.
4663         * testsuite/23_containers/vector/element_access/1.cc: Likewise.
4664         * testsuite/23_containers/vector/invalidation/1.cc: Likewise.
4665         * testsuite/23_containers/vector/invalidation/2.cc: Likewise.
4666         * testsuite/23_containers/vector/invalidation/3.cc: Likewise.
4667         * testsuite/23_containers/vector/invalidation/4.cc: Likewise.
4668         * testsuite/23_containers/vector/modifiers/1.cc: Likewise.
4669         * testsuite/23_containers/vector/modifiers/2.cc: Likewise.
4670         * testsuite/23_containers/vector/modifiers/swap.cc: Likewise.
4671         * testsuite/23_containers/vector/resize/1.cc: Likewise.
4672         * testsuite/24_iterators/back_insert_iterator.cc: Likewise.
4673         * testsuite/24_iterators/front_insert_iterator.cc: Likewise.
4674         * testsuite/24_iterators/insert_iterator.cc: Likewise.
4675         * testsuite/24_iterators/iterator.cc: Likewise.
4676         * testsuite/25_algorithms/copy/1.cc: Likewise.
4677         * testsuite/25_algorithms/copy/2.cc: Likewise.
4678         * testsuite/25_algorithms/copy/3.cc: Likewise.
4679         * testsuite/25_algorithms/copy/4.cc: Likewise.
4680         * testsuite/25_algorithms/equal.cc: Likewise.
4681         * testsuite/25_algorithms/fill/1.cc: Likewise.
4682         * testsuite/25_algorithms/fill/2.cc: Likewise.
4683         * testsuite/25_algorithms/min_max.cc: Likewise.
4684         * testsuite/25_algorithms/rotate.cc: Likewise.
4685         * testsuite/25_algorithms/unique/1.cc: Likewise.
4686         * testsuite/25_algorithms/unique/2.cc: Likewise.
4687         * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9874.cc: Likewise.
4688         * testsuite/ext/concept_checks.cc: Likewise.
4689         * testsuite/ext/hash_map/1.cc: Likewise.
4690         * testsuite/ext/hash_set/1.cc: Likewise.
4691         * testsuite/ext/rope/1.cc: Likewise.
4692         * testsuite/ext/rope/2.cc: Likewise.
4693         * testsuite/ext/rope/3.cc: Likewise.
4694         * testsuite/thread/pthread1.cc: Likewise.
4695         * testsuite/thread/pthread4.cc: Likewise.
4696         * testsuite/thread/pthread5.cc: Likewise.
4697         * testsuite/thread/pthread6.cc: Likewise.
4698         * testsuite/thread/pthread7-rope.cc: Likewise.
4700 2005-03-15  Zack Weinberg  <zack@codesourcery.com>
4702         * include/Makefile.am (c++config.h): Depend on DATESTAMP from gcc
4703         subdirectory.  Generate #define of __GLIBCXX__ from contents of
4704         that file.
4705         * include/Makefile.in: Regenerate.
4706         * include/bits/c++config: Do not define __GLIBCXX__.
4708 2005-03-15  Paolo Carlini  <pcarlini@suse.de>
4710         PR libstdc++/20352
4711         * include/std/std_complex.h (pow(const complex<_Tp>&,
4712         const _Tp&)): On non-c99 platforms, don't try to compute
4713         log of complex zero.
4715 2005-03-10  Ben Elliston  <bje@au.ibm.com>
4717         * testsuite/22_locale/locale/cons/12658_thread-1.cc: Don't XFAIL
4718         on GNU/Linux.
4720 2005-03-07  Paolo Carlini  <pcarlini@suse.de>
4722         * include/tr1/type_traits (is_polymorphic): Don't forget
4723         the virtual destructor, thus avoiding warnings.
4724         * testsuite/testsuite_tr1.h (class AbstractClass,
4725         class PolymorphicClass): Likewise.
4727 2005-03-07  Paolo Carlini  <pcarlini@suse.de>
4729         * include/std/std_complex.h (pow(const complex<_Tp>&,
4730         const complex<_Tp>&)): Dispatch to either __complex_pow(__x.__rep(),
4731         __y.__rep()) or __complex_pow(__x, __y) depending on the macro
4732         _GLIBCXX_USE_C99_COMPLEX.
4734 2005-03-07  Paolo Carlini  <pcarlini@suse.de>
4736         * include/std/std_fstream.h (basic_fstream<>::open,
4737         basic_ifstream<>::open, basic_ofstream<>::open): Implement the
4738         resolution of DR 409 [Ready], call clear() on success.
4739         * docs/html/ext/howto.html: Add an entry for DR 409.
4740         * docs/html/faq/index.html (4_4): Clarify the new behavior.
4741         * testsuite/27_io/basic_ifstream/open/char/1.cc: Adjust.
4742         * testsuite/27_io/basic_ofstream/open/char/1.cc: Likewise.
4744 2005-03-05  Joseph S. Myers  <joseph@codesourcery.com>
4746         * testsuite/22_locale/collate/compare/wchar_t/2.cc,
4747         testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc,
4748         testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc,
4749         testsuite/22_locale/collate/hash/wchar_t/2.cc,
4750         testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc,
4751         testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc,
4752         testsuite/22_locale/collate/transform/wchar_t/2.cc,
4753         testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc,
4754         testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
4755         XFAIL on *-*-hpux11.23.
4757 2005-03-04  Paolo Carlini  <pcarlini@suse.de>
4759         * include/tr1/type_traits: Add is_base_of.
4760         * testsuite/tr1/4_metaprogramming/relationships_between_types/
4761         is_base_of/is_base_of.cc: New.
4762         * testsuite/tr1/4_metaprogramming/relationships_between_types/
4763         is_base_of/typedefs.cc: Likewise.
4765 2005-03-03  Benjamin Kosnik  <bkoz@redhat.com>
4767         * include/tr1/functional: Convert relative path.
4769         * docs/doxygen/user.cfg.in: Add tr1 includes.
4771 2005-03-03  Paolo Carlini  <pcarlini@suse.de>
4773         * include/tr1/type_traits: Implemenet is_polymorphic.
4774         (is_empty): Minor tweaks.
4775         * testsuite/testsuite_tr1.h: Add test types.
4776         * testsuite/tr1/4_metaprogramming/type_properties/
4777         is_polymorphic/is_polymorphic.cc: New.
4778         * testsuite/tr1/4_metaprogramming/type_properties/
4779         is_polymorphic/typedefs.cc: Likewise.
4780         * testsuite/tr1/4_metaprogramming/composite_type_traits/
4781         is_union_or_class/is_union_or_class.cc: Add tests.
4783 2005-03-02  Douglas Gregor  <doug.gregor@gmail.com>
4785         * include/tr1/functional (_Has_result_type): Cleanup.
4786         (_Result_of_impl): Handle member data pointers correctly.
4787         (reference_wrapper): Support invocation.
4788         Move repetition code into new file include/tr1/repeat.h.
4789         * include/tr1/functional_iterate.h (reference_wrapper): Support
4790         invocation.  Cleanup long lines.
4791         * include/tr1/ref_wrap_iterate.h (reference_wrapper): Declare
4792         invocation operators.
4793         * include/tr1/repeat.h: Code repetition header.
4794         * include/Makefile.am: Add ref_wrap_iterate.h, repeat.h.
4795         * include/Makefile.in: Add ref_wrap_iterate.h, repeat.h.
4796         * testsuite/tr1/3_function_objects/reference_wrapper/invoke.cc:
4797         New test of reference_wrapper invocation.
4798         * testsuite/tr1/3_function_objects/reference_wrapper/typedefs.cc:
4799         New test of reference_wrapper typedefs and base classes.
4800         * testsuite/tr1/3_function_objects/result_of.cc: Trivial cleanup
4801         (e-mail address).
4803 2005-03-02  Douglas Gregor  <doug.gregor@gmail.com>
4805         * include/tr1/function (result_of): New class template.
4806         * include/tr1/functional/iterator.h: Implementation of TR1
4807         result_of.
4808         * testsuite/tr1/3_function_objects/result_of.cc: New test
4810 2005-03-01  Vladimir Merzliakov  <wanderer@rsu.ru>
4812         * testsuite/26_numerics/cmath/c99_classification_macros_c.cc: Tweak.
4814 2005-02-28  Benjamin Kosnik  <bkoz@redhat.com>
4816         * testsuite/tr1/2_general_utilities/memory/shared_ptr/
4817         cons/auto_ptr_neg.cc: Correct line numbers.
4819         * testsuite/testsuite_abi.cc: Add CXXABI_1.3.1.
4821 2005-02-28  Jonathan Wakely  <redi@gcc.gnu.org>
4823         * include/tr1/memory: Replace checked_deleter with (unchecked)
4824         _Sp_deleter as GCC warns about delete on incomplete types anyway.
4826 2005-02-28  Jonathan Wakely  <redi@gcc.gnu.org>
4828         * include/tr1/memory: Add missing "inline" to __throw_bad_weak_ptr.
4830 2005-02-28  Hans-Peter Nilsson  <hp@axis.com>
4832         PR target/19065
4833         * config/cpu/cris/atomicity.h (__exchange_and_add): In asm, use
4834         'Q' constraint, not 'm'.
4836 2005-02-26  Earl Chew  <earl_chew@agilent.com>
4837             Christopher Jefferson  <chris@bubblescope.net>
4839         * include/bits/stl_tree.h (_Rb_tree<>::_M_insert): Don't leak
4840         memory if _M_key_compare throws.
4842 2005-02-25  Paolo Carlini  <pcarlini@suse.de>
4844         * include/tr1/type_traits: Add the trivial is_union and is_class;
4845         add the __is_union_or_class extension.
4846         (is_enum, is_empty): Use the latter.
4847         * include/tr1/type_traits_fwd.h: Add __is_union_or_class.
4848         * testsuite/testsuite_tr1.h: Add UnionType; trivial formatting
4849         fixes.
4850         * testsuite/tr1/4_metaprogramming/composite_type_traits/
4851         is_union_or_class/is_union_or_class.cc: New.
4852         * testsuite/tr1/4_metaprogramming/composite_type_traits/
4853         is_union_or_class/typedefs.cc: Likewise.
4855 2005-02-24  Benjamin Kosnik  <bkoz@redhat.com>
4857         * testsuite/tr1/6_containers/unordered/instantiate/hash.cc: Guard
4858         wchar_t use with _GLIBCXX_USE_WCHAR_T.
4860 2005-02-24  Benjamin Kosnik  <bkoz@redhat.com>
4862         * include/std/std_complex.h: _GLIBCXX_USE_C99_COMPLEX_MATH to
4863         _GLIBCXX_USE_C99_COMPLEX.
4864         * acinclude.m4: Same.
4865         * acconfig.h: Same.
4866         * configure: Regenerate.
4867         * config.h.in: Same.
4869 2005-02-24  Paolo Carlini  <pcarlini@suse.de>
4871         * include/tr1/functional (mem_fn): Avoid _T, badname on
4872         Darwin.
4874 2005-02-23  Douglas Gregor  <doug.gregor@gmail.com>
4876         * include/tr1/functional (function): New class template.
4877         (mem_fn): New function template.
4878         Implementations of TR1 function and mem_fn facilities.
4879         * include/tr1/functional_iterate.h: Implementations of TR1
4880         function and mem_fn facilities.
4881         * testsuite/tr1/3_function_objects/function/1.cc: New
4882         test of std::tr1::function.
4883         * testsuite/tr1/3_function_objects/function/2.cc: New
4884         test of std::tr1::function.
4885         * testsuite/tr1/3_function_objects/function/3.cc: New
4886         test of std::tr1::function.
4887         * testsuite/tr1/3_function_objects/function/4.cc: New
4888         test of std::tr1::function.
4889         * testsuite/tr1/3_function_objects/function/5.cc: New
4890         test of std::tr1::function.
4891         * testsuite/tr1/3_function_objects/function/6.cc: New
4892         test of std::tr1::function.
4893         * testsuite/tr1/3_function_objects/function/7.cc: New
4894         test of std::tr1::function.
4895         * testsuite/tr1/3_function_objects/function/8.cc: New
4896         test of std::tr1::function.
4897         * testsuite/tr1/3_function_objects/function/9.cc: New
4898         test of std::tr1::function.
4899         * testsuite/tr1/3_function_objects/mem_fn.cc: New test of
4900         std::tr1::mem_fn.
4902 2005-02-23  Paolo Carlini  <pcarlini@suse.de>
4904         * include/tr1/type_traits: Implement is_convertible.
4905         * testsuite/tr1/4_metaprogramming/relationships_between_types/
4906         is_convertible/is_convertible.cc: New.
4907         * testsuite/tr1/4_metaprogramming/relationships_between_types/
4908         is_convertible/typedefs.cc: Likewise.
4909         * testsuite/testsuite_tr1.h: Add class DerivedType.
4911         * include/tr1/type_traits (is_function): Don't mistake references
4912         to function types for function types.
4913         * testsuite/tr1/4_metaprogramming/primary_type_categories/
4914         is_function/is_function.cc: Add testcase.
4916 2005-02-22  Benjamin Kosnik  <bkoz@redhat.com>
4918         * scripts/check_performance: Tweaks.
4920         * testsuite/27_io/basic_ostream/inserters_other/wchar_t/2.cc: Name
4921         output file with extension that clean rules can find.
4923 2005-02-22  Richard Henderson  <rth@redhat.com>
4925         PR libstdc++/20091
4926         * libsupc++/eh_catch.cc (__cxa_begin_catch): Don't special case
4927         decrement of uncaughtExceptions for rethrow.
4929 2005-02-22  Paolo Carlini  <pcarlini@suse.de>
4931         * include/tr1/functional: Fix License to GPL with exception.
4932         * include/tr1/hashtable: Likewise.
4933         * include/tr1/tuple: Likewise.
4934         * include/tr1/type_traits: Likewise.
4935         * include/tr1/type_traits_fwd.h: Likewise.
4936         * include/tr1/unordered_map: Likewise.
4937         * include/tr1/unordered_set: Likewise.
4938         * include/tr1/utility: Likewise.
4940 2005-02-22  Paolo Carlini  <pcarlini@suse.de>
4942         * testsuite/tr1/2_general_utilities/memory/shared_ptr/assign/
4943         auto_ptr_neg.cc: Add missing dg-do compile directive.
4944         * testsuite/tr1/2_general_utilities/memory/shared_ptr/assign/
4945         auto_ptr_rvalue_neg.cc: Likewise.
4946         * testsuite/tr1/2_general_utilities/memory/shared_ptr/assign/
4947         shared_ptr_neg.cc: Likewise.
4948         * testsuite/tr1/2_general_utilities/memory/shared_ptr/cons/
4949         auto_ptr_neg.cc: Likewise.
4950         * testsuite/tr1/2_general_utilities/memory/shared_ptr/modifiers/
4951         reset_neg.cc: Likewise.
4952         * testsuite/tr1/2_general_utilities/memory/shared_ptr/modifiers/
4953         swap_neg.cc: Likewise.
4955 2005-02-22  Jonathan Wakely  <redi@gcc.gnu.org>
4957         * include/Makefile.am, include/Makefile.in: Fix accidental extra
4958         change from previous commit.
4960 2005-02-21  Jonathan Wakely  <redi@gcc.gnu.org>
4962         * include/tr1/memory: New file.
4963         * include/Makefile.am, include/Makefile.in: Add new TR1 header.
4964         * testsuite/tr1/2_general_utilities/memory/
4965         enable_shared_from_this/not_shared.cc: New test.
4966         * testsuite/tr1/2_general_utilities/memory/
4967         enable_shared_from_this/not_shared2.cc: New test.
4968         * testsuite/tr1/2_general_utilities/memory/
4969         enable_shared_from_this/not_shared3.cc: New test.
4970         * testsuite/tr1/2_general_utilities/memory/
4971         enable_shared_from_this/shared.cc: New test.
4972         * testsuite/tr1/2_general_utilities/memory/
4973         enable_shared_from_this/still_shared.cc: New test.
4974         * testsuite/tr1/2_general_utilities/memory/
4975         shared_ptr/assign/assign.cc: New test.
4976         * testsuite/tr1/2_general_utilities/memory/
4977         shared_ptr/assign/auto_ptr.cc: New test.
4978         * testsuite/tr1/2_general_utilities/memory/
4979         shared_ptr/assign/auto_ptr_neg.cc: New test.
4980         * testsuite/tr1/2_general_utilities/memory/
4981         shared_ptr/assign/auto_ptr_rvalue_neg.cc: New test.
4982         * testsuite/tr1/2_general_utilities/memory/
4983         shared_ptr/assign/shared_ptr.cc: New test.
4984         * testsuite/tr1/2_general_utilities/memory/
4985         shared_ptr/assign/shared_ptr_neg.cc: New test.
4986         * testsuite/tr1/2_general_utilities/memory/
4987         shared_ptr/comparison/cmp.cc: New test.
4988         * testsuite/tr1/2_general_utilities/memory/
4989         shared_ptr/cons/auto_ptr.cc: New test.
4990         * testsuite/tr1/2_general_utilities/memory/
4991         shared_ptr/cons/auto_ptr_neg.cc: New test.
4992         * testsuite/tr1/2_general_utilities/memory/
4993         shared_ptr/cons/copy.cc: New test.
4994         * testsuite/tr1/2_general_utilities/memory/
4995         shared_ptr/cons/default.cc: New test.
4996         * testsuite/tr1/2_general_utilities/memory/
4997         shared_ptr/cons/pointer.cc: New test.
4998         * testsuite/tr1/2_general_utilities/memory/
4999         shared_ptr/cons/weak_ptr.cc: New test.
5000         * testsuite/tr1/2_general_utilities/memory/
5001         shared_ptr/cons/weak_ptr_expired.cc: New test.
5002         * testsuite/tr1/2_general_utilities/memory/
5003         shared_ptr/dest/dest.cc: New test.
5004         * testsuite/tr1/2_general_utilities/memory/
5005         shared_ptr/misc/io.cc: New test.
5006         * testsuite/tr1/2_general_utilities/memory/
5007         shared_ptr/misc/swap.cc: New test.
5008         * testsuite/tr1/2_general_utilities/memory/
5009         shared_ptr/modifiers/reset.cc: New test.
5010         * testsuite/tr1/2_general_utilities/memory/
5011         shared_ptr/modifiers/reset_neg.cc: New test.
5012         * testsuite/tr1/2_general_utilities/memory/
5013         shared_ptr/modifiers/swap.cc: New test.
5014         * testsuite/tr1/2_general_utilities/memory/
5015         shared_ptr/modifiers/swap_neg.cc: New test.
5016         * testsuite/tr1/2_general_utilities/memory/
5017         shared_ptr/observers/bool_conv.cc: New test.
5018         * testsuite/tr1/2_general_utilities/memory/
5019         shared_ptr/observers/get.cc: New test.
5020         * testsuite/tr1/2_general_utilities/memory/
5021         shared_ptr/observers/unique.cc: New test.
5022         * testsuite/tr1/2_general_utilities/memory/
5023         shared_ptr/observers/use_count.cc: New test.
5025 2005-02-21  Paolo Carlini  <pcarlini@suse.de>
5027         * include/tr1/type_traits (is_member_function_pointer):
5028         Remove ugly workaround for c++/19076.
5030 2005-02-21  Paolo Carlini  <pcarlini@suse.de>
5032         * include/bits/basic_string.tcc (_Rep::_M_destroy): Don't
5033         check for this == &_S_empty_rep, it's always false, here.
5035 2005-02-19  Matt Austern  <austern@gmail.com>
5037         * include/tr1/functional (tr1_hashtable_define_trivial_hash): Make
5038         hash<T>::operator() a const member function for T a fundamental type
5039         * include/tr1/hashtable (extract1st::operator()): Declare const.
5040         (hash_code_base): Declare all member functions const
5041         (hashtable::find): fix call to this->bucket_count()
5042         (hashtable::count): Likewise.
5043         (hashtable::equal_range): m_incr_bucket applies to iterator, not node.
5044         * testsuite/tr1/6_containers/unordered/find/set1.cc: New test.
5045         * testsuite/tr1/6_containers/unordered/find/map1.cc: New test.
5046         * testsuite/tr1/6_containers/unordered/find/multimap1.cc: New test.
5047         * testsuite/tr1/6_containers/unordered/find/multiset1.cc: New test.
5049 2005-02-19  Hans-Peter Nilsson  <hp@axis.com>
5051         PR libstdc++/20071
5052         * include/tr1/functional (hash<std::wstring>): Wrap in #ifdef
5053         _GLIBCXX_USE_WCHAR_T.
5055 2005-02-18  Richard Henderson  <rth@redhat.com>
5057         PR libstdc++/10606
5058         * config/linker-map.gnu (CXXABI_1.3.1): Add __cxa_get_exception_ptr.
5059         * libsupc++/eh_alloc.cc (__cxa_allocate_exception): Increment
5060         uncaughtExceptions here instead of ...
5061         * libsupc++/eh_throw.cc (__cxa_throw) ... here.
5062         (__cxa_rethrow): Increment uncaughtExceptions here instead of ...
5063         * libsupc++/eh_catch.cc (__cxa_end_catch): ... here.
5064         (__cxa_get_exception_ptr): New.
5065         * libsupc++/unwind-cxx.h (__cxa_get_exception_ptr): Declare.
5067 2005-02-18  Matt Austern  <austern@apple.com>
5069         * testsuite/tr1/6_containers/unordered/insert/array_syntax.cc: Fix
5070         test case to use assignment instead of ==
5071         * testsuite/tr1/6_containers/unordered/insert/map_range.cc: New test.
5072         * testsuite/tr1/6_containers/unordered/insert/multimap_range.cc: New test.
5073         * testsuite/tr1/6_containers/unordered/insert/multiset_range.cc: New test.
5074         * testsuite/tr1/6_containers/unordered/insert/set_range.cc: New test.
5076 2005-02-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
5078         * testsuite/thread/pthread1.cc: Do not invoke pthread_setconcurrency
5079         on Solaris 2.6 and below.
5080         * testsuite/thread/pthread2.cc: Likewise.
5081         * testsuite/thread/pthread3.cc: Likewise.
5082         * testsuite/thread/pthread4.cc: Likewise.
5083         * testsuite/thread/pthread5.cc: Likewise.
5084         * testsuite/thread/pthread6.cc: Likewise.
5085         * testsuite/thread/pthread7-rope.cc: Likewise.
5087 2005-02-17  Matt Austern  <austern@apple.com>
5089         * include/tr1/functional (hash): New function object.
5090         * include/tr1/hashtable: New file.
5091         * include/tr1/unordered_set: New file.
5092         * include/tr1/unordered_map: New file.
5093         * include/Makefile.am: Add three new TR1 headers.
5094         * include/Makefile.in: Likewise.
5095         * testsuite/tr1/6_containers/unordered/insert/array_syntax.cc: New test.
5096         * testsuite/tr1/6_containers/unordered/insert/map_single.cc: New test.
5097         * testsuite/tr1/6_containers/unordered/insert/multimap_single.cc: New test.
5098         * testsuite/tr1/6_containers/unordered/insert/multiset_single.cc: New test.
5099         * testsuite/tr1/6_containers/unordered/insert/set_single.cc: New test.
5100         * testsuite/tr1/6_containers/unordered/instantiate/hash.cc: New test.
5101         * testsuite/tr1/6_containers/unordered/instantiate/map.cc: New test.
5102         * testsuite/tr1/6_containers/unordered/instantiate/multimap.cc: New test.
5103         * testsuite/tr1/6_containers/unordered/instantiate/multiset.cc: New test.
5104         * testsuite/tr1/6_containers/unordered/instantiate/set.cc: New test.
5106 2005-02-16  Paolo Carlini  <pcarlini@suse.de>
5108         * testsuite/23_containers/set/modifiers/16728.cc:
5109         Remove redundant include <testsuite_performance.h>.
5111 2005-02-16  Paolo Carlini  <pcarlini@suse.de>
5113         PR libstdc++/19829
5114         * testsuite/21_strings/basic_string/find/char/3.cc: Fix the test
5115         at line #66 to not access str_lit01 beyond its end.
5116         * testsuite/21_strings/basic_string/find/wchar_t/3.cc: Likewise.
5118 2005-02-15  Paolo Carlini  <pcarlini@suse.de>
5119             Jon Grimm  <jgrimm2@us.ibm.com>
5121         PR libstdc++/19955
5122         * include/bits/locale_facets.h (ctype<char>::_M_narrow_init()):
5123         Fix the logic setting _M_narrow_ok: first check whether the
5124         transformation is trivial with a dflt == 0, then deal with the
5125         special case of zero.
5126         * testsuite/22_locale/ctype/narrow/char/19955.cc: New.
5128         * include/bits/locale_facets.h (ctype<char>::_M_widen_init()):
5129         Tweak consistently to use memcmp; minor formatting fixes.
5131 2005-02-15  Jakub Jelinek  <jakub@redhat.com>
5133         PR libstdc++/19946
5134         * testsuite/demangle/abi_examples/01.cc (main): Adjust for 2005-02-13
5135         demangler change.
5136         * testsuite/demangle/abi_examples/02.cc (main): Likewise.
5138 2005-02-13  Richard Guenther  <rguenth@gcc.gnu.org>
5139             Paolo Carlini  <pcarlini@suse.de>
5141         PR libstdc++/11706
5142         * include/c_std/std_cmath.h (pow): Use __builtin_powi[lf]
5143         for integer overloads.
5145         * testsuite/26_numerics/cmath/powi.cc: New.
5147 2005-02-11  Janis Johnson  <janis187@us.ibm.com>
5149         * testsuite/26_numerics/complex/13450.cc: Fix XFAIL selector.
5150         * testsuite/26_numerics/complex/complex_value.cc: Ditto.
5151         * testsuite/26_numerics/complex/pow.cc: Ditto.
5153         * testsuite/lib/libstdc++.exp: Load target-supports-dg.exp.
5154         * testsuite/26_numerics/complex/13450.cc: XFAIL for broken_cplxf_arg.
5155         * testsuite/26_numerics/complex/complex_value.cc: Ditto.
5156         * testsuite/26_numerics/complex/pow.cc: Ditto.
5158 2005-02-09  Mike Stump  <mrs@apple.com>
5160         * libsupc++/del_op.cc: Don't include cstdlib when !_GLIBCXX_HOSTED.
5162 2005-02-09  Janis Johnson  <janis187@us.ibm.com>
5164         * testsuite/ext/array_allocator/2.cc: XFAIL for powerpc*-*-linux*.
5166 2005-02-08  Mark Mitchell  <mark@codesourcery.com>
5168         * config/linker-map.gnu (GLIBCXX_3.4): Add _ZNSdC* and _ZNSdD*.
5170 2005-02-07  Loren J. Rittle  <ljrittle@acm.org>
5172         * testsuite/27_io/basic_istream/getline/wchar_t/5.cc: Make buf static.
5173         * testsuite/27_io/basic_stringbuf/setbuf/wchar_t/4.cc: Make ref and
5174         src static.
5176 2005-02-02  Brad Spencer  <spencer@infointeractive.com>
5178         * debug.html: Fix broken tags.
5179         * documentation.html: Same.
5181 2005-02-02  Andreas Jaeger  <aj@suse.de>
5183         * testsuite/lib/libstdc++.exp: Revert Geoffrey Keating's patch
5184         from 2005-01-28.
5185         * testsuite/Makefile.am: Likewise.
5186         * testsuite/Makefile.in: Likewise.
5188 2005-02-01  Paolo Carlini  <pcarlini@suse.de>
5190         * include/bits/cpp_type_traits.h: Rename _M_type fields to
5191         __value, except for __enable_if, _M_type -> __type, consistently
5192         with the other traits.
5193         * include/bits/stl_algobase.h: Tweak consistently.
5194         * include/bits/stl_tree.h: Likewise.
5195         * include/bits/valarray_array.h: Likewise.
5196         * include/c_std/std_cmath.h: Likewise.
5197         * include/debug/safe_iterator.h: Likewise.
5198         * include/std/std_complex.h: Likewise.
5200 2005-01-31  Brad Spencer  <spencer@infointeractive.com>
5202         * crossconfig.m4: Repair Solaris cross bits for strtold and strtof.
5203         * configure: Regenerated.
5205 2005-01-31  Mark Mitchell  <mark@codesourcery.com>
5207         * include/std/std_limits.h (numeric_limits<float>::has_denorm):
5208         Add required cast.
5209         (numeric_limits<double>::has_denorm): Likewise.
5210         (numeric_limits<long double>::has_denorm): Likewise.
5212 2005-01-31  Paolo Carlini  <pcarlini@suse.de>
5213             Gabriel Dos Reis  <gdr@integrable-solutions.net>
5215         * include/bits/cpp_type_traits.h: Add types to the structs thus
5216         making type_traits.h redundant; exploit new __truth_type and
5217         __traitor helpers.
5218         * include/bits/type_traits.h: Remove.
5219         * include/Makefile.am: Update.
5220         * include/Makefile.in: Regenerate.
5221         * include/backward/tempbuf.h: Include cpp_type_traits.h instead.
5222         * include/bits/basic_string.h (replace(iterator, iterator,
5223         _InputIterator, _InputIterator), _S_construct(_InIterator,
5224         _InIterator, const _Alloc&)): Use __is_integer instead.
5225         * include/bits/stl_bvector.h (vector(_InputIterator,
5226         _InputIterator, const allocator_type&), assign(_InputIterator,
5227         _InputIterator), insert(iterator, _InputIterator, _InputIterator)):
5228         Likewise.
5229         * include/bits/stl_construct.h (_Destroy(_ForwardIterator,
5230         _ForwardIterator)): Use __is_scalar.
5231         * include/bits/stl_deque.h (deque(_InputIterator, _InputIterator,
5232         const allocator_type&), assign(_InputIterator, _InputIterator),
5233         insert(iterator, _InputIterator, _InputIterator)): Use __is_integer.
5234         * include/bits/stl_list.h (assign(_InputIterator, _InputIterator),
5235         insert(iterator, _InputIterator, _InputIterator)): Likewise.
5236         * include/bits/stl_tempbuf.h (_Temporary_buffer(_ForwardIterator,
5237         _ForwardIterator)): Use __is_scalar.
5238         * include/bits/stl_uninitialized.h (uninitialized_copy(_InputIterator,
5239         _InputIterator, _ForwardIterator), uninitialized_fill(_ForwardIterator,
5240         _ForwardIterator, const _Tp&), uninitialized_fill_n(_ForwardIterator,
5241         _Size, const _Tp&)): Likewise.
5242         * include/bits/stl_vector.h (vector(_InputIterator, _InputIterator,
5243         const allocator_type&), assign(_InputIterator, _InputIterator),
5244         insert(iterator, _InputIterator, _InputIterator)): Use __is_integer.
5245         * include/debug/debug.h (__valid_range(const _InputIterator&,
5246         const _InputIterator&)): Use __is_integer.
5247         * include/ext/slist (assign(_InputIterator, _InputIterator)): Likewise.
5248         * include/std/std_string.h: Include cpp_type_traits.h instead.
5250 2005-01-30  Paolo Carlini  <pcarlini@suse.de>
5252         PR libstdc++/19642
5253         * config/locale/generic/c_locale.h (__convert_from_v): Switch only
5254         LC_NUMERIC, and only when actually != "C".
5256 2005-01-28  Paolo Carlini  <pcarlini@suse.de>
5258         * include/tr1/type_traits (is_function): Minor consistency tweaks.
5260 2005-01-28  Geoffrey Keating  <geoffk@apple.com>
5262         * testsuite/lib/libstdc++.exp (libstdc++_init): Search the path
5263         for the compiler.  Don't set cxxflags.
5264         (v3_target_compile): Search for libv3test.a relative to $objdir.
5265         (lsearch_all_inline): New.
5266         (lsearch_all_inline_not): New.
5267         (v3-list-tests): Rewrite to not need generated files.
5268         * testsuite/Makefile.am (IGNORE_WCHAR_T): New.
5269         (IGNORE_THREAD): New.
5270         (TESTS_TO_IGNORE): New.
5271         (site.exp): Set tests_to_ignore, cxxflags.
5272         * aclocal.m4: Regenerate.
5273         * Makefile.in: Regenerate.
5274         * libmath/Makefile.in: Likewise.
5275         * libsupc++/Makefile.in: Likewise.
5276         * po/Makefile.in: Likewise.
5277         * src/Makefile.in: Likewise.
5278         * testsuite/Makefile.in: Likewise.
5280 2005-01-28  Paolo Carlini  <pcarlini@suse.de>
5282         * include/tr1/type_traits: Implement is_empty.
5283         * testsuite/tr1/4_metaprogramming/type_properties/is_empty/
5284         is_empty.cc: New.
5285         * testsuite/tr1/4_metaprogramming/type_properties/is_empty/
5286         typedefs.cc: Likewise.
5288         * include/tr1/type_traits (__is_abstract_helper): Simplify a bit.
5290 2005-01-28  Paolo Carlini  <pcarlini@suse.de>
5292         * include/tr1/type_traits: Implement is_abstract, by exploiting the
5293         resolution of DR core/337.
5294         * testsuite/testsuite_tr1.h: Add AbstractClass.
5295         * testsuite/tr1/4_metaprogramming/type_properties/is_abstract/
5296         is_abstract.cc: New.
5297         * testsuite/tr1/4_metaprogramming/type_properties/is_abstract/
5298         typedefs.cc: Likewise.
5300         * include/tr1/type_traits (is_function): Rewrite, use the conversion
5301         F& -> F* instead, thus avoiding problems with abstract classes.
5302         * testsuite/tr1/4_metaprogramming/primary_type_categories/
5303         is_function/is_function.cc: Add a test for tricky AbstractClass.
5305 2005-01-26  Paolo Carlini  <pcarlini@suse.de>
5307         * include/ext/mt_allocator.h
5308         (struct __per_type_pool_policy<,, false>::_S_get_pool,
5309         struct __per_type_pool_policy<,, true>::_S_get_pool): Scale
5310         _M_chunk_size too with sizeof(_Tp), otherwise the allocator
5311         breaks down as soon as sizeof(_Tp) >~ _S_chunk_size / 128;
5312         reduce to 64 the multiplier for _M_max_bytes (safer wrt
5313         _Binmap_type being a short); trivial reformattings.
5314         * testsuite/ext/mt_allocator/check_allocate_big_per_type.cc: New.
5316 2005-01-26  Paolo Carlini  <pcarlini@suse.de>
5318         * acinclude.m4 ([GLIBCXX_ENABLE_C99]): Add ac_c99_complex
5319         to the final test for enable_c99, thus robustifying it; remove
5320         duplicate final test on ac_99_math.
5321         * configure: Regenerate.
5323         * include/std/std_complex.h: Remove usages of the dead
5324         _GLIBCXX_BUGGY_COMPLEX macro.
5326         * testsuite/26_numerics/cmath/19322.cc: Protect with
5327         _GLIBCXX_USE_C99_MATH instead of the stronger _GLIBCXX_USE_C99,
5328         since only C99 math facilities are involved.
5329         * testsuite/26_numerics/cmath/c99_classification_macros_c++.cc:
5330         Likewise.
5332 2005-01-25  Loren J. Rittle  <ljrittle@acm.org>
5334         * acinclude.m4 (GLIBCXX_ENABLE_CLOCALE): Map FreeBSD to darwin
5335         instead of generic.  Change autoconf report to "darwin or freebsd".
5336         * configure: Regenerate.
5337         * config/os/bsd/freebsd/ctype_inline.h (ctype<wchar_t>::do_is): Add.
5338         (ctype<wchar_t>::do_scan_is): Likewise.
5339         (ctype<wchar_t>::do_scan_not): Likewise.
5341 2005-01-25  Benjamin Kosnik  <bkoz@redhat.com>
5343         * acinclude.m4 (GLIBCXX_ENABLE_C99): Test for complex math
5344         functions, and enable _GLIBCXX_USE_C99_COMPLEX_MATH if they exist.
5345         * acconfig.h: Add _GLIBCXX_USE_C99_COMPLEX_MATH.
5346         * config.h.in: Regenerate.
5347         * configure: Regenerate.
5348         * include/std/std_complex.h: Protect complex builtins with
5349         _GLIBCXX_USE_C99_COMPLEX_MATH.
5351 2005-01-24  Paolo Carlini  <pcarlini@suse.de>
5353         * include/tr1/type_traits: Implement is_signed and is_unsigned.
5354         * testsuite/tr1/4_metaprogramming/type_properties/
5355         is_signed/is_signed.cc: New.
5356         * testsuite/tr1/4_metaprogramming/type_properties/
5357         is_signed/typedefs.cc: Likewise.
5358         * testsuite/tr1/4_metaprogramming/type_properties/
5359         is_unsigned/is_unsigned.cc: Likewise.
5360         * testsuite/tr1/4_metaprogramming/type_properties/
5361         is_unsigned/typedefs.cc: Likewise.
5363 2005-01-23  Paolo Carlini  <pcarlini@suse.de>
5365         * docs/html/ext/lwg-active.html, lwg-defects.html: Import Revision 34.
5367 2005-01-23  Paolo Carlini  <pcarlini@suse.de>
5369         * testsuite/27_io/basic_ostream/cons/wchar_t/9827.cc: New.
5370         * testsuite/27_io/basic_ostream/endl/wchar_t/1.cc: Likewise.
5371         * testsuite/27_io/basic_ostream/ends/wchar_t/1.cc: Likewise.
5372         * testsuite/27_io/basic_ostream/ends/wchar_t/2.cc: Likewise.
5373         * testsuite/27_io/basic_ostream/exceptions/wchar_t/9561.cc: Likewise.
5374         * testsuite/27_io/basic_ostream/flush/wchar_t/1.cc: Likewise.
5375         * testsuite/27_io/basic_ostream/flush/wchar_t/2.cc: Likewise.
5376         * testsuite/27_io/basic_ostream/flush/wchar_t/
5377         exceptions_badbit_throw.cc: Likewise.
5378         * testsuite/27_io/basic_ostream/inserters_arithmetic/
5379         wchar_t/2.cc: Likewise.
5380         * testsuite/27_io/basic_ostream/inserters_arithmetic/
5381         wchar_t/3.cc: Likewise.
5382         * testsuite/27_io/basic_ostream/inserters_arithmetic/
5383         wchar_t/4.cc: Likewise.
5384         * testsuite/27_io/basic_ostream/inserters_arithmetic/
5385         wchar_t/4402.cc: Likewise.
5386         * testsuite/27_io/basic_ostream/inserters_arithmetic/
5387         wchar_t/5.cc: Likewise.
5388         * testsuite/27_io/basic_ostream/inserters_arithmetic/
5389         wchar_t/6.cc: Likewise.
5390         * testsuite/27_io/basic_ostream/inserters_arithmetic/
5391         wchar_t/9555-oa.cc: Likewise.
5392         * testsuite/27_io/basic_ostream/inserters_arithmetic/
5393         wchar_t/exceptions_badbit_throw.cc: Likewise.
5394         * testsuite/27_io/basic_ostream/inserters_arithmetic/
5395         wchar_t/exceptions_failbit_throw.cc: Likewise.
5396         * testsuite/27_io/basic_ostream/inserters_character/
5397         wchar_t/1.cc: Likewise.
5398         * testsuite/27_io/basic_ostream/inserters_character/
5399         wchar_t/2.cc: Likewise.
5400         * testsuite/27_io/basic_ostream/inserters_character/
5401         wchar_t/3.cc: Likewise.
5402         * testsuite/27_io/basic_ostream/inserters_character/
5403         wchar_t/4.cc: Likewise.
5404         * testsuite/27_io/basic_ostream/inserters_character/
5405         wchar_t/5.cc: Likewise.
5406         * testsuite/27_io/basic_ostream/inserters_character/
5407         wchar_t/6.cc: Likewise.
5408         * testsuite/27_io/basic_ostream/inserters_character/
5409         wchar_t/9555-oc.cc: Likewise.
5410         * testsuite/27_io/basic_ostream/inserters_other/
5411         wchar_t/1.cc: Likewise.
5412         * testsuite/27_io/basic_ostream/inserters_other/
5413         wchar_t/2.cc: Likewise.
5414         * testsuite/27_io/basic_ostream/inserters_other/
5415         wchar_t/3.cc: Likewise.
5416         * testsuite/27_io/basic_ostream/inserters_other/
5417         wchar_t/4.cc: Likewise.
5418         * testsuite/27_io/basic_ostream/inserters_other/
5419         wchar_t/5.cc: Likewise.
5420         * testsuite/27_io/basic_ostream/inserters_other/
5421         wchar_t/9318-out.cc: Likewise.
5422         * testsuite/27_io/basic_ostream/inserters_other/
5423         wchar_t/9424-out.cc: Likewise.
5424         * testsuite/27_io/basic_ostream/inserters_other/
5425         wchar_t/9555-oo.cc: Likewise.
5426         * testsuite/27_io/basic_ostream/inserters_other/wchar_t/
5427         error_failbit.cc: Likewise.
5428         * testsuite/27_io/basic_ostream/inserters_other/wchar_t/
5429         exceptions_badbit_throw.cc: Likewise.
5430         * testsuite/27_io/basic_ostream/inserters_other/wchar_t/
5431         exceptions_failbit_throw.cc: Likewise.
5432         * testsuite/27_io/basic_ostream/inserters_other/wchar_t/
5433         exceptions_null.cc: Likewise.
5434         * testsuite/27_io/basic_ostream/put/char/1.cc: Likewise.
5435         * testsuite/27_io/basic_ostream/put/wchar_t/1.cc: Likewise.
5436         * testsuite/27_io/basic_ostream/seekp/char/
5437         exceptions_badbit_throw.cc: Likewise.
5438         * testsuite/27_io/basic_ostream/seekp/wchar_t/
5439         2346-fstream.cc: Likewise.
5440         * testsuite/27_io/basic_ostream/seekp/wchar_t/
5441         2346-sstream.cc: Likewise.
5442         * testsuite/27_io/basic_ostream/seekp/wchar_t/
5443         exceptions_badbit_throw.cc: Likewise.
5444         * testsuite/27_io/basic_ostream/sentry/wchar_t/1.cc: Likewise.
5445         * testsuite/27_io/basic_ostream/sentry/wchar_t/2.cc: Likewise.
5446         * testsuite/27_io/basic_ostream/tellp/wchar_t/1.cc: Likewise.
5447         * testsuite/27_io/basic_ostream/tellp/wchar_t/2.cc: Likewise.
5448         * testsuite/27_io/basic_ostream/tellp/wchar_t/
5449         exceptions_badbit_throw.cc: Likewise.
5450         * testsuite/27_io/basic_ostream/write/wchar_t/1.cc: Likewise.
5452         * testsuite/data/wostream_inserter_char-1.tst: Likewise.
5453         * testsuite/data/wostream_inserter_char-1.txt: Likewise.
5454         * testsuite/data/wostream_inserter_other-1.tst: Likewise.
5455         * testsuite/data/wostream_inserter_other-2.tst: Likewise.
5456         * testsuite/data/wostream_seeks-1.tst: Likewise.
5458         * testsuite/27_io/basic_ostream/endl/char/1.cc: Minor tweaks.
5459         * testsuite/27_io/basic_ostream/ends/char/1.cc: Likewise.
5460         * testsuite/27_io/basic_ostream/exceptions/char/9561.cc: Likewise.
5461         * testsuite/27_io/basic_ostream/flush/char/1.cc: Likewise.
5462         * testsuite/27_io/basic_ostream/flush/char/2.cc: Likewise.
5463         * testsuite/27_io/basic_ostream/flush/char/
5464         exceptions_badbit_throw.cc: Likewise.
5465         * testsuite/27_io/basic_ostream/inserters_arithmetic/
5466         char/2.cc: Likewise.
5467         * testsuite/27_io/basic_ostream/inserters_arithmetic/
5468         char/3.cc: Likewise.
5469         * testsuite/27_io/basic_ostream/inserters_arithmetic/
5470         char/4.cc: Likewise.
5471         * testsuite/27_io/basic_ostream/inserters_arithmetic/
5472         char/4402.cc: Likewise.
5473         * testsuite/27_io/basic_ostream/inserters_arithmetic/
5474         char/5.cc: Likewise.
5475         * testsuite/27_io/basic_ostream/inserters_arithmetic/
5476         char/6.cc: Likewise.
5477         * testsuite/27_io/basic_ostream/inserters_character/
5478         char/4.cc: Likewise.
5479         * testsuite/27_io/basic_ostream/inserters_other/char/
5480         2.cc: Likewise.
5481         * testsuite/27_io/basic_ostream/inserters_other/char/
5482         5.cc: Likewise.
5483         * testsuite/27_io/basic_ostream/inserters_other/char/
5484         error_failbit.cc: Likewise.
5485         * testsuite/27_io/basic_ostream/inserters_other/char/
5486         exceptions_badbit_throw.cc: Likewise.
5487         * testsuite/27_io/basic_ostream/inserters_other/char/
5488         exceptions_failbit_throw.cc: Likewise.
5489         * testsuite/27_io/basic_ostream/inserters_other/char/
5490         exceptions_null.cc: Likewise.
5491         * testsuite/27_io/basic_ostream/put/char/1.cc: Likewise.
5492         * testsuite/27_io/basic_ostream/seekp/char/
5493         exceptions_badbit_throw.cc: Likewise.
5494         * testsuite/27_io/basic_ostream/sentry/char/2.cc: Likewise.
5495         * testsuite/27_io/basic_ostream/write/char/1.cc: Likewise.
5497 2005-01-23  Paolo Carlini  <pcarlini@suse.de>
5499         * include/tr1/type_traits (aligned_storage): Use __aligned__ instead
5500         of aligned.
5502 2005-01-23  Paolo Carlini  <pcarlini@suse.de>
5503             Andreas Jaeger  <aj@suse.de>
5505         PR libstdc++/19343
5506         * include/bits/functexcept.h: Mark the helpers as 'noreturn'.
5508 2005-01-21  Loren J. Rittle  <ljrittle@acm.org>
5510         * testsuite/27_io/basic_filebuf/open/char/9507.cc: Allow
5511         lseek on fifo to succeed.  Thus, check for consistent report.
5513 2005-01-21  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
5515         PR libstdc++/19510
5516         * include/bits/stl_list.h (_List_iterator): Initialize _M_node
5517         in constructor.
5518         (_List_const_iterator): Likewise.
5519         * include/bits/stl_tree.h (_Rb_tree_iterator): Likewise.
5520         (_Rb_tree_const_iterator): Likewise.
5522         * testsuite/23_containers/map/operators/1_neg.cc: Adjust line numbers.
5523         * testsuite/23_containers/set/operators/1_neg.cc: Likewise.
5525 2005-01-20  Benjamin Kosnik  <bkoz@redhat.com>
5527         * testsuite/Makefile.am (check-compile): New.
5528         * testsuite/Makefile.in: Regenerate.
5529         * scripts/check_compile_time: New.
5530         * scripts/check_performance: Tweaks.
5532 2005-01-19  Paolo Carlini  <pcarlini@suse.de>
5534         PR libstdc++/19535
5535         * include/tr1/utility (struct __pair_get<1>::__get, __const_get):
5536         Fix typo in the return type.
5537         * testsuite/tr1/6_containers/utility/19535.cc: New.
5539 2005-01-19  Loren J. Rittle  <ljrittle@acm.org>
5541         * include/ext/array_allocator.h (array_allocator<>::allocate):
5542         Avoid __used.  Use __array_used instead.
5543         * docs/html/17_intro/BADNAMES: Add list for FreeBSD.
5545 2005-01-18  David Edelsohn  <edelsohn@gnu.org>
5547         * config/os/aix/os_defines.h (_XOPEN_SOURCE): Delete.
5548         (_XOPEN_SOURCE_EXTENDED): Delete.
5550 2005-01-18  Benjamin Kosnik  <bkoz@redhat.com>
5552         * testsuite/testsuite_performance.h (time_counter::start):
5553         Clear. Tweaks.
5554         (clear_counters): Inline.
5555         (start_counters): Inline.
5556         (stop_counters): Inline.
5557         * testsuite/performance/20_util/allocator/map_thread.cc: Return.
5558         * testsuite/performance/20_util/allocator/insert.cc: Remove bogus
5559         return, add return.
5560         * testsuite/performance/20_util/allocator/map_thread.cc: Same.
5562 2005-01-17  Paolo Carlini  <pcarlini@suse.de>
5564         PR libstdc++/19433
5565         * include/bits/stl_tree.h (_Rb_tree<>::insert_unique(iterator,
5566         const _Val&), _Rb_tree<>::insert_equal(iterator, const _Val&)):
5567         Obtain amortized constant complexity if t is inserted right after
5568         p - not before p - as per Table 69.
5569         * testsuite/performance/23_containers/set_insert_from_sorted.cc: New.
5571         * testsuite/23_containers/multiset/insert/2.cc: New.
5572         * testsuite/23_containers/set/insert/1.cc: Likewise.
5574         * testsuite/performance/23_containers/set_create_from_sorted.cc:
5575         Simplify.
5577         * include/bits/stl_tree.h: Add a few missing std:: qualifications.
5579 2005-01-16  Jonathan Wakely  <redi@gcc.gnu.org>
5581         * include/ext/rope: Qualify calls to std::copy() by sequence_buffer.
5582         * testsuite/ext/rope/4.cc: Add.
5584 2005-01-16  Lorenz Minder  <lminder@gmx.net>
5585             Paolo Carlini  <pcarlini@suse.de>
5587         PR libstdc++/19322
5588         * include/c_std/std_cmath.h: Define the C99 classification facilities
5589         directly inside namespace std:.
5590         * testsuite/26_numerics/cmath/19322.cc: New.
5592 2005-01-15  David Edelsohn  <edelsohn@gnu.org>
5594         * config/os/aix/os_defines.h (_G_USING_THUNKS): Delete.
5596 2005-01-14  Paolo Carlini  <pcarlini@suse.de>
5598         PR libstdc++/19422
5599         * include/bits/stl_tree.h (_Rb_tree<>::insert_equal(_II, _II),
5600         _Rb_tree<>::insert_unique(_II, _II)): Use insert_equal (insert_unique,
5601         respectively) with hint (end()).
5602         * testsuite/performance/23_containers/set_create_from_sorted.cc: New.
5604 2005-01-13  Geoffrey Keating  <geoffk@apple.com>
5606         * configure.host (darwin): On darwin8 or later, no need to build
5607         libstdc++ with -flat_namespace.
5609 2005-01-13  Jonathan Wakely  <redi@gcc.gnu.org>
5611         * docs/doxygen/user.cfg.in: Set HAVE_DOT back to YES.
5613 2005-01-13  Paolo Carlini  <pcarlini@suse.de>
5615         * testsuite/26_numerics/cmath/c99_classification_macros_c++.cc:
5616         Re-enable commented-out test for double type.
5618 2005-01-11  Paolo Carlini  <pcarlini@suse.de>
5619             Benjamin Kosnik  <bkoz@redhat.com>
5621         * src/istream.cc (basic_istream<char>::ignore(streamsize),
5622         basic_istream<char>::ignore(streamsize, int_type),
5623         basic_istream<wchar_t>::ignore(streamsize),
5624         basic_istream<wchar_t>::ignore(streamsize, int_type)): In case
5625         more than numeric_limits<streamsize>::max() chars are skipped,
5626         set _M_gcount = max().
5627         * include/bits/istream.tcc (ignore(streamsize), ignore(streamsize,
5628         int_type)): Likewise; keep simple, don't forward.
5630 2005-01-11  Paolo Carlini  <pcarlini@suse.de>
5632         * src/istream.cc (basic_istream<char>::ignore(streamsize),
5633         basic_istream<char>::ignore(streamsize, int_type),
5634         basic_istream<wchar_t>::ignore(streamsize),
5635         basic_istream<wchar_t>::ignore(streamsize, int_type)): Revert
5636         2005-01-05 change: actually, the previous behavior is conforming
5637         and consistent with that of get(char_type*, streamsize, char_type),
5638         albeit slightly different from that of 3.3/3.4 in a corner case
5639         due to the use of snextc.
5640         * include/bits/istream.tcc (ignore(streamsize), ignore(streamsize,
5641         int_type)): Likewise.
5642         * testsuite/27_io/basic_istream/ignore/char/4.cc: Remove.
5643         * testsuite/27_io/basic_istream/ignore/wchar_t/4.cc: Likewise.
5645 2005-01-11  Paolo Carlini  <pcarlini@suse.de>
5647         * include/tr1/type_traits: Implement alignment_of and aligned_storage.
5648         * testsuite/tr1/4_metaprogramming/other_transformations/
5649         aligned_storage/aligned_storage.cc: New.
5650         * testsuite/tr1/4_metaprogramming/other_transformations/
5651         aligned_storage/typedefs.cc: Likewise.
5652         * testsuite/tr1/4_metaprogramming/type_properties/
5653         alignment_of/alignment_of.cc: Likewise.
5654         * testsuite/tr1/4_metaprogramming/type_properties/
5655         alignment_of/typedefs.cc: Likewise.
5657 2005-01-10  Paolo Carlini  <pcarlini@suse.de>
5659         * Makefile.in: Regenerate.
5660         * libmath/Makefile.in: Likewise.
5661         * libsupc++/Makefile.in: Likewise.
5662         * po/Makefile.in: Likewise.
5663         * src/Makefile.in: Likewise.
5664         * testsuite/Makefile.in: Likewise.
5666 2005-01-10  Paolo Carlini  <pcarlini@suse.de>
5668         * include/bits/stl_algobase.h (lexicographical_compare):
5669         Fix concept check.
5671 2005-01-07  Benjamin Kosnik  <bkoz@redhat.com>
5673         * acinclude.m4: Remove CCODECVT_H.
5674         * configure: Regenerate.
5675         * include/Makefile.am (host_headers_extra): Move to...
5676         (ext_headers): ...here.
5677         * include/Makefile.in: Regenerate.
5678         * include/ext/enc_filebuf: Remove enc_filebuf, consolidate
5679         enc_traits to...
5680         * config/locale/ieee_1003.1-2001/codecvt_specializations.h: Move...
5681         * include/ext/codecvt_specializations.h: ...here. Remove
5682         _GLIBCXX_USE___ENC_TRAITS.
5683         (__enc_traits): To __encoding_state, put in __gnu_cxx namespace.
5684         (enc_char_traits): To __encoding_char_traits, put in __gnu_cxx
5685         namespace.
5686         * config/locale/generic/codecvt_specializations.h: Remove.
5687         * include/bits/codecvt.h: Remove codecvt_specializations.h include.
5688         * src/codecvt.cc: Remove __enc_traits::_S_max_size.
5690 2005-01-06  Benjamin Kosnik  <bkoz@redhat.com>
5692         * include/bits/fstream.tcc: Remove unnecessary qualifications for
5693         uglified data members of basic_filebuf, including _M_buf,
5694         _M_buf_size, _M_mode, _M_pback_init.
5695         * include/std/std_fstream.h: Same.
5697 2005-01-05  Benjamin Kosnik  <bkoz@redhat.com>
5699         * testsuite/testsuite_hooks.h:
5700         (copy_constructor::mark_call):  Use __throw_runtime_error.
5701         (assignment_operator::mark_call): Same.
5702         * testsuite/testsuite_hooks.cc (verify_demangle): Same.
5703         (locale_data): Remove, just use runtime_error directly.
5704         (environment_variable): Same.
5705         (not_found): Same.
5706         (run_tests_wrapped_locale): Use __throw_runtime_error.
5707         (run_tests_wrapped_env): Same.
5708         (semaphore::semaphore): Same.
5709         (semaphore::signal): Same.
5710         (semaphore::wait): Same.
5711         * testsuite/testsuite_abi.h (symbol_error): Remove, use logic_error.
5712         * testsuite/testsuite_abi.cc (get_symbol): Use __throw_logic_error.
5713         (create_symbols): Use __throw_runtime_error.
5714         * src/bitmap_allocator.cc: Use __throw_bad_alloc.
5716 2005-01-05  Mark Mitchell  <mark@codesourcery.com>
5718         * testsuite/27_io/basic_filebuf/open/char/9507.cc: Remove child
5719         process.
5721 2005-01-05  Paolo Carlini  <pcarlini@suse.de>
5723         * src/istream.cc (basic_istream<char>::ignore(streamsize),
5724         basic_istream<char>::ignore(streamsize, int_type),
5725         basic_istream<wchar_t>::ignore(streamsize),
5726         basic_istream<wchar_t>::ignore(streamsize, int_type)): At the end,
5727         first check _M_gcount vs __n.
5728         * include/bits/istream.tcc (ignore(streamsize), ignore(streamsize,
5729         int_type)): Likewise.
5730         * testsuite/27_io/basic_istream/ignore/char/4.cc: New.
5731         * testsuite/27_io/basic_istream/ignore/wchar_t/4.cc: Likewise.
5733 2005-01-03  Mark Mitchell  <mark@codesourcery.com>
5735         * testsuite/testsuite_hooks.cc: Use __throw_exception_again
5736         instead of just throw.
5738         * testsuite/testsuite_hooks.cc: Update coypright and follow style
5739         guidelines.
5740         * testsuite/testsuite_hooks.h: Likewise.
5741         * testsuite/27_io/basic_filebuf/close/char/4879.cc: Use
5742         semaphores, not sleep.
5743         * testsuite/27_io/basic_filebuf/close/char/9964.cc: Likewise.
5744         * testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc: Likewise.
5745         * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc: Likewise.
5746         * testsuite/27_io/basic_filebuf/imbue/wchar_t/14975-2.cc:
5747         Likewise.
5748         * testsuite/27_io/basic_filebuf/open/char/9507.cc: Likewise.
5749         * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
5750         * testsuite/27_io/objects/char/7.cc: Likewise.
5751         * testsuite/27_io/objects/char/9661-1.cc: Likewise.
5752         * testsuite/27_io/objects/wchar_t/7.cc: Likewise.
5753         * testsuite/27_io/objects/wchar_t/9661-1.cc: Likewise.
5755         * configure.ac: Check for sys/ipc.h and sys/sem.h.
5756         * config.h.in: Regenerated.
5757         * configure: Likewise.
5758         * testsuite/testsuite_hooks.cc (_GLIBCXX_SYSV_SEM): Conditionally
5759         define.
5760         (sys/types.h): Include.
5761         (sys/ipc.h): Likewise.
5762         (sys/sem.h): Likewise.
5763         (__gnu_test::semun): New type.
5764         (__gnu_test::semaphore::sempaphore): New function.
5765         (__gnu_test::semaphore::~semaphore): Likewise.
5766         (__gnu_test::semaphore::wait): Likewise.
5767         (__gnu_test::semaphore::signal): Likewise.
5768         * testsuite/testsuite_hooks.h (__gnu_test::semaphore): New class.
5769         * testsuite/27_io/basic_filebuf/close/char/4879.cc: Use
5770         semaphores, not sleep.
5771         * testsuite/27_io/basic_filebuf/close/char/9964.cc: Likewise.
5772         * testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc: Likewise.
5773         * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc: Likewise.
5774         * testsuite/27_io/basic_filebuf/imbue/wchar_t/14975-2.cc:
5775         Likewise.
5776         * testsuite/27_io/basic_filebuf/open/char/9507.cc: Likewise.
5777         * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
5778         * testsuite/27_io/objects/char/7.cc: Likewise.
5779         * testsuite/27_io/objects/char/9661-1.cc: Likewise.
5780         * testsuite/27_io/objects/wchar_t/7.cc: Likewise.
5781         * testsuite/27_io/objects/wchar_t/9661-1.cc: Likewise.
5783 2005-01-03  Paolo Carlini  <pcarlini@suse.de>
5785         * include/bits/istream.tcc (ignore(streamsize), ignore(streamsize,
5786         int_type)): Reset _M_gcount to numeric_limits<streamsize>::min().
5787         * src/istream.cc (basic_istream<char>::ignore(streamsize, int_type),
5788         basic_istream<wchar_t>::ignore(streamsize, int_type)): Likewise.
5789         * src/istream.cc (basic_istream<char>::ignore(streamsize),
5790         basic_istream<wchar_t>::ignore(streamsize)): Likewise; fix a typo.
5792 2005-01-02  Paolo Carlini  <pcarlini@suse.de>
5794         * src/istream.cc (basic_istream<char>::ignore(streamsize),
5795         basic_istream<char>::ignore(streamsize, int_type),
5796         basic_istream<wchar_t>::ignore(streamsize),
5797         basic_istream<wchar_t>::ignore(streamsize, int_type)): Avoid
5798         _M_gcount overflows.
5799         * include/bits/istream.tcc (ignore(streamsize), ignore(streamsize,
5800         int_type)): Likewise; use snextc in the main loop, consistently
5801         with the specializations above.
5803 2005-01-02  Chris Jefferson  <chris@bubblescope.net>
5805         * include/bits/stl_algobase.h (mismatch): Correct concept check.
5807 2005-01-01  Paolo Carlini  <pcarlini@suse.de>
5809         * testsuite/ext/enc_filebuf/char/13189.cc: Fix, first include
5810         testsuite_hooks.h, to know whether including ext/enc_filebuf.h.
5811         * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Likewise.
5813 2005-01-01  Paolo Carlini  <pcarlini@suse.de>
5815         * testsuite/27_io/basic_istream/extractors_character/char/1.cc: Fix,
5816         null-terminate array1 at the outset.
5817         * testsuite/27_io/basic_istream/extractors_character/wchar_t/1.cc:
5818         Likewise.