OSDN Git Service

PR libstdc++/24803
[pf3gnuchains/gcc-fork.git] / libstdc++-v3 / ChangeLog
1 2008-11-05  Jonathan Wakely  <jwakely.gcc@gmail.com>
2
3         PR libstdc++/24803
4         PR libstdc++/37351
5         * include/tr1_impl/functional (result_of,reference_wrapper): Update
6         to use C++0x features.
7         * testsuite/20_util/function_objects/return_types/result_of.cc: New.
8         * testsuite/20_util/function_objects/return_types/result_of_neg.cc:
9         New.
10         * testsuite/20_util/function_objects/return_types/result_of_ref.cc:
11         New.
12         * testsuite/20_util/reference_wrapper/24803.cc: Uncomment FIXMEs.
13
14 2008-11-03  Paolo Carlini  <paolo.carlini@oracle.com>
15
16         * include/bits/locale_facets.tcc (num_get<>::do_get(iter_type,
17         iter_type, ios_base&, ios_base::iostate&, bool&): Tidy.
18         * testsuite/22_locale/num_get/get/char/37958.cc: Extend.
19         * testsuite/22_locale/num_get/get/wchar_t/37958.cc: Likewise.
20
21 2008-11-01  Paolo Carlini  <paolo.carlini@oracle.com>
22
23         PR libstdc++/37958 (cont again)
24         * include/bits/locale_facets.tcc (num_get<>::do_get(iter_type,
25         iter_type, ios_base&, ios_base::iostate&, bool&): Fix again.
26         * testsuite/22_locale/num_get/get/char/37958.cc: Extend.
27         * testsuite/22_locale/num_get/get/wchar_t/37958.cc: Likewise.
28
29 2008-11-01  Paolo Carlini  <paolo.carlini@oracle.com>
30
31         * include/bits/locale_facets.tcc (num_get<>::do_get(, long&),
32         num_get<>::do_get(, unsigned short&),
33         num_get<>::do_get(, unsigned int&),
34         num_get<>::do_get(, unsigned long&),
35         num_get<>::do_get(, long long&),
36         num_get<>::do_get(, unsigned long long&),
37         num_put<>::do_put(, long), num_put<>::do_put(, unsigned long),
38         num_put<>::do_put(, long long),
39         num_put<>::do_put(, unsigned long long)): Move inline...
40         * include/bits/locale_facets.h: ... here.
41
42 2008-11-01  Paolo Carlini  <paolo.carlini@oracle.com>
43
44         PR libstdc++/37958 (cont)
45         * include/bits/locale_facets.tcc (num_get<>::do_get(iter_type,
46         iter_type, ios_base&, ios_base::iostate&, bool&): Fix again.
47
48 2008-11-01  Jonathan Wakely  <jwakely.gcc@gmail.com>
49
50         * include/bits/shared_ptr.h: Update comparisons to match WP.
51         (_Sp_counted_ptr): Make copy and assignment members deleted.
52         (_Sp_counted_deleter): Remove private copy and assignment members.
53         (__shared_count::_M_less,__weak_count::_M_less,operator<): Replace
54         friend operator< with overloaded _M_less member functions to allow
55         comparison with either shared_count or weak_count.
56         (__shared_ptr::_M_less,__weak_ptr::_M_less): Replace with...
57         (__shared_ptr::owner_before,__weak_ptr::owner_before): New overloads
58         for ownership-based ordering.
59         (operator<(__shared_ptr,__shared_ptr)): Compare stored pointers,
60         make non-friend.
61         (operator==(__shared_ptr,__shared_ptr)): Make non-friend.
62         (operator!=(__shared_ptr,__shared_ptr)): Likewise.
63         (less<__shared_ptr<>>,less<shared_ptr<>>,_Sp_less): Explicitly call
64         pointer specialization.
65         (__weak_ptr::operator<,weak_ptr::operator<=,weak_ptr::operator>,
66         weak_ptr::operator>=): Remove operator< and delete all comparisons.
67         (_Sp_owner_less,owner_less): Predicate for ownership-based ordering.
68         (operator<(shared_ptr,shared_ptr): Overload for derived shared_ptr.
69         (operator==(shared_ptr,shared_ptr): Likewise.
70         (operator!=(shared_ptr,shared_ptr): Likewise.
71         (swap(shared_ptr,shared_ptr)): Fix parameter types.
72         (swap(weak_ptr,weak_ptr)): Add missing overload.
73         * testsuite/20_util/owner_less/cmp.cc: New.
74         * testsuite/20_util/shared_ptr/comparison/cmp.cc: Test other ops.
75         * testsuite/20_util/shared_ptr/comparison/less.cc: New.
76         * testsuite/20_util/shared_ptr/observers/owner_before.cc: New.
77         * testsuite/20_util/weak_ptr/observers/owner_before.cc: New.
78         * testsuite/20_util/weak_ptr/comparison/cmp_neg.cc: New.
79
80 2008-10-31  Paolo Carlini  <paolo.carlini@oracle.com>
81
82         PR libstdc++/37958
83         * include/bits/locale_facets.tcc (num_get<>::do_get(iter_type,
84         iter_type, ios_base&, ios_base::iostate&, bool&): Fix.
85         * testsuite/22_locale/num_get/get/char/37958.cc: New.
86         * testsuite/22_locale/num_get/get/wchar_t/37958.cc: Likewise.
87
88 2008-10-27  Paolo Carlini  <paolo.carlini@oracle.com>
89
90         PR libstdc++/37919
91         Revert:
92         2008-10-18  Douglas Gregor  <doug.gregor@gmail.com>
93
94         * include/bits/stl_pair.h (__may_be_null_pointer_init): New.
95         (pair::pair): Eliminate the redundant pair(U1&&, U2&&) constructor.
96         Add lvalue pair<U1, U2> constructor to handle non-const pair lvalues.
97         Remove the old variadic constructor, and instead provide several
98         variadic constructors that avoid failing when attempting to
99         initialize a pointer from a null pointer constant.
100         * testsuite/20_util/pair/moveable.cc (test3): Add new tests with
101         initialization of pointers from the null pointer constant.
102
103 2008-10-27  Paolo Carlini  <paolo.carlini@oracle.com>
104
105         PR libstdc++/37522
106         * config/os/mingw32/os_defines.h: Define _GLIBCXX_HAVE_BROKEN_VSWPRINTF
107         * include/bits/basic_string.h: Guard string conversions with 
108         !defined(_GLIBCXX_HAVE_BROKEN_VSWPRINTF) too.
109         * testsuite/lib/libstdc++.exp (check_v3_target_string_conversions):
110         New.
111         * testsuite/lib/dg-options.exp (dg-require-string-conversions): New.
112         * testsuite/21_strings/basic_string/numeric_conversions/char/stof.cc:
113         Use the latter.
114         * testsuite/21_strings/basic_string/numeric_conversions/char/stoll.cc:
115         Likewise.
116         * testsuite/21_strings/basic_string/numeric_conversions/char/stoi.cc:
117         Likewise.
118         * testsuite/21_strings/basic_string/numeric_conversions/char/stol.cc:
119         Likewise.
120         * testsuite/21_strings/basic_string/numeric_conversions/char/
121         stoull.cc: Likewise.
122         * testsuite/21_strings/basic_string/numeric_conversions/char/stold.cc:
123         Likewise.
124         * testsuite/21_strings/basic_string/numeric_conversions/char/stoul.cc:
125         Likewise.
126         * testsuite/21_strings/basic_string/numeric_conversions/char/
127         to_string.cc: Likewise.
128         * testsuite/21_strings/basic_string/numeric_conversions/char/stod.cc:
129         Likewise.
130
131 2008-10-24  Paolo Carlini  <paolo.carlini@oracle.com>
132
133         * config/os/generic/error_constants.h (enum errc): Remove
134         no_posix_equivalent.
135         * config/os/mingw32/error_constants.h (enum errc): Likewise.
136         * testsuite/19_diagnostics/headers/system_error/errc_std_c++0x.cc:
137         Adjust.
138
139 2008-10-24  Jakub Jelinek  <jakub@redhat.com>
140
141         * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Remove dejagnu.
142         (RUNTESTDEFAULTFLAGS, EXPECT, check_DEJAGNU_normal_targets): New
143         variables.
144         (%/site.exp, check-DEJAGNU%): New targets.
145         (check-am): Run $(MAKE) check-DEJAGNU.
146         * testsuite/Makefile.in: Regenerated.
147
148 2008-10-23  Chris Fairles  <cfairles@gcc.gnu.org>
149
150         * config/os/generic/error_constants.h (errc): Use long type.
151         * config/os/mingw32/error_constants.h (errc): Likewise.
152
153 2008-10-22  Chris Fairles  <cfairles@gcc.gnu.org>
154
155         * include/std/system_error (is_error_code_enum): Specialize for errc.
156         (error_category::error_category): Defaulted and protected.
157         (error_category::~error_category): New, virtual.
158         (error_category::error_category(const error_category&), 
159         error_category::operator=(const error_category&)): Deleted.
160         (get_system_category, get_posix_category): Remove (DR 890).
161         (system_category): External linkage (DR 890).
162         (posix_category): Remove.
163         (generic_category): Add. External linkage (DR 890).
164         (error_code::error_code<>(_ErrorCodeEnum)): Use generic_category.
165         (error_code::clear, error_code::operator=<>(_ErrorCodeEnum)): Forward to
166         error_code::assign, use generic_category.
167         (error_condition::error_condition, 
168         error_condition::error_condition<>(_ErrorConditionEnum)): Use 
169         generic_category.
170         (error_condition::clear, 
171         error_condition::operator=<>(_ErrorConditionEnum)): Forward to 
172         error_code::assign, use generic_category.
173         (make_error_code, make_error_condition): Define in namespace std.
174         * include/std/mutex (unique_lock<>::lock, unique_lock<>::try_lock,
175         unique_lock<>::try_lock_until<>(duration),
176         unique_lock<>::try_lock_for<>(duration)): Replace posix_error with errc.
177         * src/system_error.cc (system_error_category, generic_error_category):
178         New.
179         (gnu_error_category): Remove.
180         (get_system_category, get_posix_category): Remove (DR 890).
181         (system_category, generic_category): Define.
182         * src/functexcept.cc (__throw_system_error): Use generic_category.
183         * config/abi/pre/gnu.ver: Export system_category and generic_category,
184         remove get_system_category and get_generic_category (DR 890).
185         * config/os/generic/error_constants.h (posix_errno): Rename to errc, use
186         enum class type. Fix spelling.
187         * config/os/mingw32/error_constants.h (posix_errno): Likewise.
188         * testsuite/19_diagnostics/error_code/cons/1.cc: Use errc and 
189         generic_category.
190         * testsuite/19_diagnostics/error_code/operators/bool.cc: Use errc.
191         * testsuite/19_diagnostics/error_code/operators/equal.cc: Likewise.
192         * testsuite/19_diagnostics/error_code/operators/not_equal.cc: Likewise.
193         * testsuite/19_diagnostics/error_category/cons/copy_neg.cc: Update 
194         dg-error line numbers.
195         * testsuite/19_diagnostics/error_condition/cons/1.cc: Use 
196         generic_category.
197         * testsuite/19_diagnostics/error_condition/operators/bool.cc: Use errc.
198         * testsuite/19_diagnostics/error_condition/operators/equal.cc: Likewise.
199         * testsuite/19_diagnostics/error_condition/operators/not_equal.cc: 
200         Likewise.
201         * testsuite/19_diagnostics/headers/system_error/errc_std_c++0x.cc: New.
202         * testsuite/19_diagnostics/headers/system_error/types_std_c++0x.cc: 
203         Remove using tests since errc is not a namespace.
204         * testsuite/19_diagnostics/system_error/cons-1.cc: Use errc.
205         * testsuite/19_diagnostics/system_error/what-4.cc: Likewise.
206         * testsuite/27_io/basic_ostream/inserters_other/wchar_t/error_code.cc:
207         Likewise.
208         * testsuite/27_io/basic_ostream/inserters_other/char/error_code.cc:
209         Likewise.
210         * testsuite/30_threads/unique_lock/locking/2.cc: Likewise.
211         
212 2008-10-20  Paolo Carlini  <paolo.carlini@oracle.com>
213
214         * include/tr1_impl/hashtable_policy.h (_Hash_node<>::_Hash_node<>
215         (_Args&&...)): Add in C++0x mode.
216         * include/tr1_impl/hashtable (_Hashtable<>::_M_allocate_node,
217         _Hashtable<>::_M_deallocate_node): Use _M_get_Node_allocator in
218         C++0x mode.
219
220         * include/tr1_impl/hashtable (_Hashtable<>::max_size): Use
221         Node_allocator for improved accuracy.
222         * testsuite/tr1/6_containers/unordered_multimap/capacity/
223         29134-multimap.cc: Adjust.
224         * testsuite/tr1/6_containers/unordered_multimap/capacity/
225         29134-map.cc: Likewise.
226         * testsuite/tr1/6_containers/unordered_multimap/capacity/
227         29134-multiset.cc: Adjust.
228         * testsuite/tr1/6_containers/unordered_multimap/capacity/
229         29134-set.cc: Likewise.
230
231 2008-10-19  Paolo Carlini  <paolo.carlini@oracle.com>
232
233         * include/bits/stl_tree.h (_Rb_tree_node<>::_Rb_tree_node<>
234         (_Args&&...)): Add in C++0x mode.
235         (_Rb_tree<>::_M_create_node<>(_Args&&...)): Add in C++0x mode,
236         use _M_get_Node_allocator.
237         (_Rb_tree<>::_M_destroy_node(_Link_type): Use _M_get_Node_allocator
238         in C++0x mode.
239         * testsuite/23_containers/set/operators/1_neg.cc: Adjust dg-error
240         line numbers.
241         * testsuite/23_containers/map/operators/1_neg.cc: Likewise.
242
243 2008-10-18  Douglas Gregor  <doug.gregor@gmail.com>
244
245         * include/bits/stl_pair.h (__may_be_null_pointer_init): New.
246         (pair::pair): Eliminate the redundant pair(U1&&, U2&&) constructor.
247         Add lvalue pair<U1, U2> constructor to handle non-const pair lvalues.
248         Remove the old variadic constructor, and instead provide several
249         variadic constructors that avoid failing when attempting to
250         initialize a pointer from a null pointer constant.
251         * testsuite/20_util/pair/moveable.cc (test3): Add new tests with
252         initialization of pointers from the null pointer constant.
253
254 2008-10-17  Paolo Carlini  <paolo.carlini@oracle.com>
255
256         * include/bits/forward_list.tcc (forward_list<>::
257         _M_initialize_dispatch(_InputIterator, _InputIterator, __false_type)):
258         Simplify.
259
260 2008-10-17  Paolo Carlini  <paolo.carlini@oracle.com>
261
262         * include/bits/forward_list.h (forward_list<>::
263         forward_list(size_type)): Tweak, use _Base default constructor.
264
265 2008-10-17  Paolo Carlini  <paolo.carlini@oracle.com>
266
267         * include/bits/forward_list.h (forward_list<>::insert_after): Minor
268         cosmetic changes.
269
270 2008-10-16  Edward Smith-Rowland  <3dw4rd@verizon.net>
271
272         * include/bits/forward_list.h: Factor list construction to dispatch
273         routines.
274         * include/bits/forward_list.tcc: Likewise.
275         * testsuite/23_containers/forward_list/modifiers/2.cc: 
276
277 2008-10-16  Paolo Carlini  <paolo.carlini@oracle.com>
278
279         * include/bits/forward_list.tcc (operator==): Use auto.
280
281 2008-10-16  Paolo Carlini  <paolo.carlini@oracle.com>
282
283         * include/bits/forward_list.h (_Fwd_list_base<>::_M_insert_after):
284         Move out of line, tweak to return _Fwd_list_node_base*.
285         (forward_list<>::insert_after(const_iterator, const _Tp&),
286         forward_list<>::insert_after(const_iterator, _Tp&&)): Use it.
287         * include/bits/forward_list.tcc (_Fwd_list_base<>::_M_insert_after):
288         Define.
289
290         * include/bits/forward_list.h (forward_list<>): Consistently qualify
291         calls of base class functions with this->.
292         * include/bits/forward_list.tcc (forward_list<>): Likewise.
293
294         * include/bits/forward_list.h: Move some functions out of line...
295         * include/bits/forward_list.tcc: ... here.
296
297         * include/bits/forward_list.h (forward_list<>::resize(size_type)): Fix.
298
299 2008-10-15  Paolo Carlini  <paolo.carlini@oracle.com>
300
301         * include/bits/forward_list.h: Remove pointless const qualifiers in
302         const_casts.
303         * include/bits/forward_list.tcc: Likewise.
304
305         * include/bits/forward_list.h (forward_list<>::pointer,
306         const_pointer, reference, const_reference): Fix, use _Tp_alloc_type.
307         * testsuite/23_containers/forward_list/requirements/
308         explicit_instantiation/1.cc: New.
309         * testsuite/23_containers/forward_list/requirements/
310         explicit_instantiation/1.cc: Likewise.
311
312 2008-10-15  Paolo Carlini  <paolo.carlini@oracle.com>
313
314         * include/bits/forward_list.h (forward_list<>::max_size): Use
315         Node_allocator; minor cosmetic changes.
316         * testsuite/23_containers/forward_list/capacity/1.cc: Adjust.
317
318 2008-10-15  Edward Smith-Rowland  <3dw4rd@verizon.net>
319
320         * include/std/forward_list: New.
321         * include/bits/forward_list.h: Likewise.
322         * include/bits/forward_list.tcc: Likewise.
323         * include/precompiled/stdc++.h: Modified to include forward_list.
324         * include/Makefile.am: Add forward_list, forward_list.h, and
325         forward_list.tcc.
326         * include/Makefile.in: Regenerate.
327         * testsuite/23_containers/forward_list/modifiers/1.cc: New.
328         * testsuite/23_containers/forward_list/modifiers/2.cc: Likewise.
329         * testsuite/23_containers/forward_list/modifiers/3.cc: Likewise.
330         * testsuite/23_containers/forward_list/modifiers/4.cc: Likewise.
331         * testsuite/23_containers/forward_list/modifiers/5.cc: Likewise.
332         * testsuite/23_containers/forward_list/cons/1.cc: Likewise.
333         * testsuite/23_containers/forward_list/cons/2.cc: Likewise.
334         * testsuite/23_containers/forward_list/cons/3.cc: Likewise.
335         * testsuite/23_containers/forward_list/cons/4.cc: Likewise.
336         * testsuite/23_containers/forward_list/cons/5.cc: Likewise.
337         * testsuite/23_containers/forward_list/cons/6.cc: Likewise.
338         * testsuite/23_containers/forward_list/cons/7.cc: Likewise.
339         * testsuite/23_containers/forward_list/cons/8.cc: Likewise.
340         * testsuite/23_containers/forward_list/cons/9.cc: Likewise.
341         * testsuite/23_containers/forward_list/requirements/1.cc: Likewise.
342         * testsuite/23_containers/forward_list/operations/1.cc: Likewise.
343         * testsuite/23_containers/forward_list/operations/2.cc: Likewise.
344         * testsuite/23_containers/forward_list/operations/3.cc: Likewise.
345         * testsuite/23_containers/forward_list/operations/4.cc: Likewise.
346         * testsuite/23_containers/forward_list/operations/5.cc: Likewise.
347         * testsuite/23_containers/forward_list/operations/6.cc: Likewise.
348         * testsuite/23_containers/forward_list/operations/7.cc: Likewise.
349         * testsuite/23_containers/forward_list/capacity/1.cc: Likewise.
350         * testsuite/23_containers/forward_list/comparable.cc: Likewise.
351         * testsuite/23_containers/forward_list/moveable.cc: Likewise.
352         * testsuite/23_containers/headers/forward_list/synopsis.cc: Likewise.
353         * testsuite/17_intro/headers/c++200x/all_multiple_inclusion.cc: Update.
354         * testsuite/17_intro/headers/c++200x/all: Likewise.
355
356 2008-10-14  Paolo Carlini  <paolo.carlini@oracle.com>
357
358         * include/bits/stl_list.h (_List_node<>::_List_node<>(_Args&&...)):
359         Add in C++0x mode.
360         (list<>::_M_create_node<>(_Args&&...)): Use _M_get_Node_allocator.
361         (list<>::_M_erase(iterator): Likewise, in C++0x mode.
362         * include/bits/list.tcc (_List_base<>::_M_clear): Likewise.
363         * testsuite/23_containers/list/requirements/dr438/assign_neg.cc:
364         Adjust dg-error line number.
365         * testsuite/23_containers/list/requirements/dr438/insert_neg.cc:
366         Likewise.
367         * testsuite/23_containers/list/requirements/dr438/
368         constructor_1_neg.cc: Likewise.
369         * testsuite/23_containers/list/requirements/dr438/
370         constructor_2_neg.cc: Likewise.
371
372 2008-10-14  Paolo Carlini  <paolo.carlini@oracle.com>
373
374         * include/bits/stl_tree.h (_Rb_tree<>::max_size): Use Node_allocator
375         for improved accuracy.
376         * include/bits/stl_list.h (list<>::max_size): Likewise.
377         * testsuite/23_containers/multimap/capacity/29134.cc: Adjust.
378         * testsuite/23_containers/set/capacity/29134.cc: Likewise.
379         * testsuite/23_containers/multiset/capacity/29134.cc: Likewise.
380         * testsuite/23_containers/list/capacity/29134.cc: Likewise.
381         * testsuite/23_containers/map/capacity/29134.cc: Likewise.
382
383 2008-10-10  Paolo Carlini  <paolo.carlini@oracle.com>
384
385         * testsuite/20_util/reference_wrapper/24803.cc: Avoid uninitialized
386         warnings.
387
388 2008-10-10  Paolo Carlini  <paolo.carlini@oracle.com>
389
390         * include/std/system_error (native_category): Remove.
391         (posix_category): Add.
392         (error_code::error_code(_ErrorCodeEnum, typename enable_if<>:type*):
393         Fix _M_cat initialization.
394         (error_code::operator=(_ErrorCodeEnum)): Assign _M_cat too.
395         (error_condition::_M_cat, error_condtion::operator=
396         (_ErrorConditionEnum)): Implement resolution of DR 804.
397         (error_condition::error_condition(_ErrorConditionEnum, typename
398         enable_if<>:type*): Fix.
399         (error_condition::clear, error_condition::assign): Implement.
400         (operator==, operator!=): Fix uglification of parameters.
401         (make_error_code, make_error_condition): Define in namespace
402         posix_error.
403         (operator<<(basic_ostream<>&, const error_code&)): Define here.
404         * include/std/ostream (operator<<(basic_ostream<>&,
405         const error_code&)): Do not define here.
406         * testsuite/19_diagnostics/error_condition/cons/1.cc: New.      
407         * testsuite/19_diagnostics/error_condition/operators/bool.cc: Likewise.
408         * testsuite/19_diagnostics/error_condition/operators/bool_neg.cc:
409         Likewise.
410         * testsuite/19_diagnostics/error_condition/operators/equal.cc:
411         Likewise.
412         * testsuite/19_diagnostics/error_condition/operators/not_equal.cc:
413         Likewise.
414         * testsuite/19_diagnostics/error_code/cons/1.cc: Tweak.
415         * testsuite/19_diagnostics/error_category/cons/copy_neg.cc: Adjust
416         dg-error line numbers.
417         * testsuite/30_threads/unique_lock/locking/2.cc: Tweak.
418
419         * testsuite/util/testsuite_error.h: Minor tweaks.
420         * testsuite/util/testsuite_hooks.cc: Avoid uninitialized warning.
421
422 2008-10-10  Chris Fairles  <cfairles@gcc.gnu.org>
423   
424         * testsuite/20_util/duration/cons/1.cc: Remove invalid check of 
425         uninitialized duration.
426         
427 2008-10-08  Bob Walters  <bob.s.walters@gmail.com>
428
429         * include/bits/stl_vector.h (_Vector_base<>::_Vector_impl::_M_start,
430         _M_finish, _M_end_of_storage, _Vector_base<>::_M_allocate,
431         _M_deallocate): Use _Tp_alloc_type::pointer.
432
433 2008-10-07  Jason Merrill  <jason@redhat.com>
434
435         PR libstdc++/37761
436         * testsuite/abi/demangle/abi_examples/20.cc: Adjust expected spacing.
437         * testsuite/abi/demangle/abi_text/02.cc: Likewise.
438         * testsuite/abi/demangle/regression/cw-16.cc: Likewise.
439
440 2008-10-07  Paolo Carlini  <paolo.carlini@oracle.com>
441
442         * include/bits/stl_iterator.h (operator-(const reverse_iterator<>&,
443         const reverse_iterator<>&), operator-(const __normal_iterator<>&,
444         const __normal_iterator<>&), operator-(const move_iterator<>&,
445         const move_iterator<>&)): Use the auto -> return type syntax,
446         implement DR 685.
447
448 2008-10-06  Jason Merrill  <jason@redhat.com>
449
450         * config/abi/pre/gnu.ver: Update char16/32_t manglings.
451
452 2008-10-05  Paolo Carlini  <paolo.carlini@oracle.com>
453
454         * testsuite/20_util/reference_wrapper/invoke.cc: New.
455         * testsuite/20_util/reference_wrapper/24803.cc: Likewise.
456         * testsuite/20_util/reference_wrapper/typedefs.cc: Likewise.
457
458 2008-10-01  Andrew Pinski  <andrew_pinski@playstation.sony.com>
459
460         * config/locale/generic/c_locale.cc (__convert_to_v): Fix
461         !__FLT_HAS_INFINITY__ case.
462
463 2008-09-30  Chris Fairles  <cfairles@gcc.gnu.org>
464
465         * include/std/tuple (tuple<>::swap): Implement swap for tuple as per 
466         DR 522 [Ready].
467         * testsuite/20_util/tuple/swap.cc: New.
468
469 2008-09-30  Paolo Carlini  <paolo.carlini@oracle.com>
470
471         PR libstdc++/30085 (again)
472         * include/debug/unordered_map (unordered_map<>, unordered_multimap<>):
473         Do not derive from _Safe_association, derive from _GLIBCXX_STD_D::
474         unordered_map / unordered_multimap; add missing member functions.
475         * include/debug/unordered_set (unordered_set<>, unordered_multiset<>):
476         Likewise for _GLIBCXX_STD_D::unordered_set / unordered_multiset.
477         * include/debug/safe_association.h: Remove.
478         * include/Makefile.am: Adjust.
479         * include/Makefile.in: Regenerate.
480         * testsuite/23_containers/unordered_multimap/init-list.cc: Remove
481         xfail.
482
483 2008-09-28  Paolo Carlini  <paolo.carlini@oracle.com>
484
485         * include/bits/unique_ptr.h (unique_ptr<_Tp[]>::template<typename U>
486         void reset(U)): Add as deleted function, per DR 821 [Ready].
487         * include/bits/unique_ptr.h: Prefer everywhere deleted to private
488         member function declarations; minor formatting tweaks.
489         * testsuite/20_util/unique_ptr/modifiers/reset_neg.cc: New.
490         * testsuite/20_util/unique_ptr/assign/assign.cc: Adjust DejaGNU
491         directives.
492
493 2008-09-28  Chris Fairles  <cfairles@gcc.gnu.org>
494
495         * include/std/mutex (try_lock): Implement generic try_lock.
496         * testsuite/30_threads/try_lock/1.cc: New.
497         * testsuite/30_threads/try_lock/2.cc: Likewise.
498         * testsuite/30_threads/try_lock/3.cc: Likewise.
499         * testsuite/30_threads/mutex/cons/assign_neg.cc: Adjust line numbers.
500         * testsuite/30_threads/mutex/cons/copy_neg.cc: Likewise.
501         * testsuite/30_threads/timed_mutex/cons/assign_neg.cc: Likewise.
502         * testsuite/30_threads/timed_mutex/cons/copy_neg.cc: Likewise.
503         * testsuite/30_threads/recursive_mutex/cons/assign_neg.cc: Likewise.
504         * testsuite/30_threads/recursive_mutex/cons/copy_neg.cc: Likewise.
505         * testsuite/30_threads/recursive_timed_mutex/cons/assign_neg.cc:
506         Likewise.
507         * testsuite/30_threads/recursive_timed_mutex/cons/copy_neg.cc: Likewise.
508         
509 2008-09-26  Peter O'Gorman  <pogma@thewrittenword.com>
510             Steve Ellcey  <sje@cup.hp.com>
511
512         * configure: Regenerate for new libtool.
513         * aclocal.m4: Ditto.
514         * Makefile.in: Ditto.
515         * src/Makefile.in: Ditto.
516         * doc/Makefile.in: Ditto.
517         * po/Makefile.in: Ditto.
518         * libmath/Makefile.in: Ditto.
519         * include/Makefile.in: Ditto.
520         * libsupc++/Makefile.in: Ditto.
521         * testsuite/Makefile.in: Ditto.
522
523 2008-09-24  Paolo Carlini  <paolo.carlini@oracle.com>
524
525         * include/std/bitset: Adjust comment to reflect DR 853.
526         * include/debug/bitset: Likewise.
527         * doc/xml/manual/intro.xml: Add an entry for DR 853.
528
529 2008-09-23  Paolo Carlini  <paolo.carlini@oracle.com>
530
531         Implement DR 396 [Ready].
532         * include/std/bitset (bitset<>::bitset(const std::basic_string<>&,
533         size_t, size_t, _CharT, _CharT), bitset<>::bitset(const char*,
534         char, char), bitset<>::to_string(_CharT, _CharT),
535         bitset<>::_M_copy_from_string(const std::basic_string<>&, size_t,
536         size_t, _CharT, _CharT), bitset<>::_M_copy_to_string
537         (std::basic_string<>&, _CharT, _CharT), bitset<>::_M_copy_from_ptr(
538         const _CharT*, size_t, size_t, size_t, _CharT, _CharT)): Add.
539         (operator>>(std::basic_istream<>&, bitset<_Nb>&), operator<<(
540         std::basic_ostream<>&, const bitset<_Nb>&)): Adjust.
541         * include/debug/bitset (bitset<>::bitset(const std::basic_string<>&,
542         size_t, size_t, _CharT, _CharT), bitset<>::bitset(const char*,
543         char, char), bitset<>::to_string(_CharT, _CharT)): Add.
544         * doc/xml/manual/intro.xml: Add an entry for DR 396.
545         * testsuite/23_containers/bitset/cons/dr396.cc: Add.
546         * testsuite/23_containers/bitset/to_string/dr396.cc: Likewise.
547
548 2008-09-23  Chris Fairles  <cfairles@gcc.gnu.org>
549
550         * testsuite/25_algorithms/min/37547.cc: Return void to avoid warnings.
551         * testsuite/25_algorithms/max/37547.cc: Likewise.
552         * testsuite/25_algorithms/minmax/37547.cc: Likewise.
553
554 2008-09-23  Chris Fairles  <cfairles@gcc.gnu.org>
555
556         * include/std/chrono: If _GLIBCXX_USE_MONOTONIC_CLOCK is defined, don't
557         typedef monotonic_clock to system_clock and instead declare new class.
558         * src/chrono.cc: Conditionally define monotonic_clock::now().
559         * include/std/condition_variable (wait_until): Throw exception if
560         __gthread_cond_timedwait returns with error other than timed_out. Use
561         system_clock as known clock type (__clock_t) and add overloads for known
562         and unknown clocks. In the unknown case, sync to the known clock.
563         Implement overload taking a predicate.
564         (wait_for): Implement overload taking a predicate.
565         * config/abi/pre/gnu.ver: Add exports for monotonic_clock.
566         * testsuite/30_threads/condition_variable_any/cons/assign_neg.cc: Modify
567         line numbers.
568         * testsuite/30_threads/condition_variable_any/cons/copy_neg.cc:
569         Likewise.
570         * testsuite/30_threads/condition_variable/cons/assign_neg.cc: Likewise.
571         * testsuite/30_threads/condition_variable/cons/copy_neg.cc: Likewise.
572         * testsuite/30_threads/condition_variable/member/1.cc: New.
573         * testsuite/30_threads/condition_variable/member/2.cc: Likewise.
574
575 2008-09-23  Paolo Carlini  <paolo.carlini@oracle.com>
576
577         PR libstdc++/37624
578         * testsuite/22_locale/num_get/get/char/10.cc: Skip long double case
579         when strtold is not available.
580         * testsuite/22_locale/num_get/get/wchar_t/10.cc: Likewise.
581
582 2008-09-23  Benjamin Kosnik  <bkoz@redhat.com>
583
584         PR libstdc++/37391 continued.
585         * doc/html/ext/pb_ds/assoc_examples.html: Don't use base tag,
586         specify full path for source file links.
587         * doc/html/ext/pb_ds/pq_examples.html: Same.
588
589 2008-09-23  Paolo Carlini  <paolo.carlini@oracle.com>
590
591         * include/bits/locale_facets.tcc (__pad<>::_S_pad): Don't use const
592         by value parameters.
593         * include/bits/locale_facets.h (__pad<>::_S_pad): Likewise.
594
595 2008-09-22  Paolo Carlini  <paolo.carlini@oracle.com>
596
597         PR libstdc++/32422, DR 23 [Ready in R60]
598         * config/locale/gnu/c_locale.cc (__convert_to_v(const char*, float&,
599         ios_base::iostate&, const __c_locale&), __convert_to_v(const char*,
600         double&, ios_base::iostate&, const __c_locale&), __convert_to_v(const
601         char*, long double&, ios_base::iostate&, const __c_locale&)): Implement
602         DR 23 and deal correctly with broken exponents.
603         * config/locale/generic/c_locale.cc (__convert_to_v(const char*,
604         float&, ios_base::iostate&, const __c_locale&), __convert_to_v(const
605         char*, double&, ios_base::iostate&, const __c_locale&),
606         __convert_to_v(const char*, long double&, ios_base::iostate&, const
607         __c_locale&)): Likewise.
608         * include/bits/locale_facets.tcc (num_get<>::_M_extract_int(_InIter,
609         _InIter, ios_base&, ios_base::iostate&, _ValueT&)): Likewise.
610         (num_get<>::_M_extract_float(_InIter, _InIter, ios_base&,
611         ios_base::iostate&, string&): Change grouping check to set instead of
612         OR failbit; do not check for eofbit here...
613         (num_get<>::do_get(iter_type, iter_type, ios_base&,
614         ios_base::iostate&, float&), num_get<>::do_get(iter_type, iter_type,
615         ios_base&, ios_base::iostate&, double&), num_get<>::do_get(iter_type,
616         iter_type, ios_base&, ios_base::iostate&, long double&),
617         num_get<>::__do_get(iter_type, iter_type, ios_base&,
618         ios_base::iostate&, double&)): ... do it here instead.
619         (num_get<>::do_get(iter_type, iter_type, ios_base&,
620         ios_base::iostate&, bool&)): Implement DR 23.
621         (num_get<>::do_get(iter_type, iter_type, ios_base&,
622         ios_base::iostate&, void*&)): Adjust.
623         * doc/xml/manual/intro.xml: Add and entry for DR 23.
624         * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/10.cc:
625         Adjust.
626         * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
627         Likewise.
628         * testsuite/22_locale/num_get/get/wchar_t/22131.cc: Likewise.
629         * testsuite/22_locale/num_get/get/wchar_t/10.cc: Likewise.
630         * testsuite/22_locale/num_get/get/wchar_t/12.cc: Likewise.
631         * testsuite/22_locale/num_get/get/wchar_t/15.cc: Likewise.
632         * testsuite/22_locale/num_get/get/wchar_t/16.cc: Likewise.
633         * testsuite/22_locale/num_get/get/char/22131.cc: Likewise.
634         * testsuite/22_locale/num_get/get/char/10.cc: Likewise.
635         * testsuite/22_locale/num_get/get/char/12.cc: Likewise.
636         * testsuite/22_locale/num_get/get/char/15.cc: Likewise.
637         * testsuite/22_locale/num_get/get/char/16.cc: Likewise.
638
639 2008-09-22  Benjamin Kosnik  <bkoz@redhat.com>
640
641         PR libstdc++/37391
642         * doc/html/ext/pb_ds/*.html: Fix external links.
643
644 2008-09-22  Benjamin Kosnik  <bkoz@redhat.com>
645
646         * doc/doxygen/user.cfg.in: Define _GLIBCXX_HAS_GTHREADS for mutex,
647         condition_variable, and thread output.
648
649 2008-09-22  Paolo Carlini  <paolo.carlini@oracle.com>
650
651         * doc/html/ext/lwg-closed.html: Update to Revision R59.
652         * doc/html/ext/lwg-active.html: Likewise.
653         * doc/html/ext/lwg-defects.html: Likewise.
654         * doc/xml/manual/intro.xml: Adjust.
655
656 2008-09-21  Paolo Carlini  <paolo.carlini@oracle.com>
657
658         * include/bits/stl_algo.h (minmax(initializer_list<>): Use make_pair,
659         consistently with the other overload for initializer_list.
660
661 2008-09-19  Johannes Singler  <singler@ira.uka.de>
662
663         PR libstdc++/37470
664         * include/parallel/base.h: Rename log2 to __log2.
665           (__log2) Avoid infinite loop for n <= 0, return 0.
666         * include/parallel/losertree.h: Rename log2 to __log2.
667         * include/parallel/multiseq_selection.h: Likewise.
668         * include/parallel/random_shuffle.h: Likewise.
669
670 2008-09-18  Paolo Carlini  <paolo.carlini@oracle.com>
671
672         * include/bits/shared_ptr.h (__shared_count<>::
673         __shared_count(_Ptr, _Deleter), __shared_count<>::
674         __shared_count(_Ptr, _Deleter, _Alloc), __shared_count<>::
675         __shared_count(_Sp_make_shared_tag, _Tp*, _Alloc, _Args&&...)):
676         Qualify new with ::.
677
678 2008-09-17  Paolo Carlini  <paolo.carlini@oracle.com>
679
680         PR libstdc++/37547
681         * include/bits/stl_algo.h (min(initializer_list<>),
682         min(initializer_list<>, Compare), max(initializer_list<>),
683         max(initializer_list<>, Compare), minmax(initializer_list<>),
684         minmax(initializer_list<>, Compare)): Fix return type.
685         * include/bits/algorithmfwd.h: Adjust.
686         * testsuite/25_algorithms/headers/algorithm/synopsis.cc: Likewise.
687         * testsuite/25_algorithms/max/requirements/explicit_instantiation/3.cc:
688         Likewise.
689         * testsuite/25_algorithms/max/requirements/explicit_instantiation/
690         pod2.cc: Likewise.
691         * testsuite/25_algorithms/min/requirements/explicit_instantiation/3.cc:
692         Likewise.
693         * testsuite/25_algorithms/min/requirements/explicit_instantiation/
694         pod2.cc: Likewise.
695         * testsuite/25_algorithms/minmax/requirements/explicit_instantiation/
696         3.cc: Likewise.
697         * testsuite/25_algorithms/minmax/requirements/explicit_instantiation/
698         pod2.cc: Likewise.
699         * testsuite/25_algorithms/max/37547.cc: New.
700         * testsuite/25_algorithms/min/37547.cc: Likewise.
701         * testsuite/25_algorithms/minmax/37547.cc: Likewise.
702
703 2008-09-16  Chris Fairles  <chris.fairles@gmail.com>
704
705         * testsuite/25_algorithms/min/requirements/explicit_instantiation/3.cc:
706         New.
707         * testsuite/25_algorithms/min/requirements/explicit_instantiation/
708         pod2.cc: Likewise.
709         * testsuite/25_algorithms/min/3.cc: Likewise.
710         * testsuite/25_algorithms/min/4.cc: Likewise.
711         * testsuite/25_algorithms/max/requirements/explicit_instantiation/3.cc:
712         Likewise.
713         * testsuite/25_algorithms/max/requirements/explicit_instantiation/
714         pod2.cc: Likewise.
715         * testsuite/25_algorithms/max/3.cc: Likewise.
716         * testsuite/25_algorithms/max/4.cc: Likewise.
717         * testsuite/25_algorithms/minmax/requirements/explicit_instantiation/
718         3.cc: Likewise.
719         * testsuite/25_algorithms/minmax/requirements/explicit_instantiation/
720         pod2.cc: Likewise.
721         * testsuite/25_algorithms/minmax/2.cc: Likewise.
722         * testsuite/25_algorithms/minmax/3.cc: Likewise.
723
724 2008-09-16  Paolo Carlini  <paolo.carlini@oracle.com>
725
726         * include/bits/stl_algo.h (min(initializer_list<>),
727         min(initializer_list<>, Compare), max(initializer_list<>),
728         max(initializer_list<>, Compare), minmax(initializer_list<>),
729         minmax(initializer_list<>, Compare)): Add in C++0x mode.
730         * include/bits/algorithmfwd.h: Add.
731         * testsuite/25_algorithms/headers/algorithm/synopsis.cc: Likewise.
732
733 2008-09-13  Chris Fairles  <chris.fairles@gmail.com>
734
735         * testsuite/30_threads/thread/algorithm/1.cc: Join thread before
736         program exits.
737         * testsuite/30_threads/thread/algorithm/2.cc: Likewise.
738         * testsuite/30_threads/thread/this_thread/3.cc: Define test variable.
739         * testsuite/30_threads/thread/this_thread/4.cc: Likewise.
740
741 2008-09-12  Chris Fairles  <chris.fairles@gmail.com>
742             Benjamin Kosnik  <bkoz@redhat.com>
743
744         * include/std/thread: New.
745         * include/Makefile.am: Update.
746         * include/Makefile.in: Regenerate.
747         * src/thread.cc: New.
748         * src/Makefile.am: Update.
749         * src/Makefile.in: Regenerate.
750         * acinclude.m4: Add check for nanosleep.
751         * configure.ac: Call it.
752         * configure: Regenerate.
753         * config.h.in: Likewise.
754         * config/abi/pre/gnu.ver: Add exports.
755         * doc/doxygen/user.cfg.in: Add thread header.
756         * testsuite/lib/libstdc++.exp (check_v3_target_nanosleep): Add.
757         * testsuite/lib/dg-options.exp (dg-require-nanosleep): Add.
758         * testsuite/30_threads/thread/cons/1.cc: New.
759         * testsuite/30_threads/thread/cons/2.cc: Likewise.
760         * testsuite/30_threads/thread/cons/3.cc: Likewise.
761         * testsuite/30_threads/thread/cons/4.cc: Likewise.
762         * testsuite/30_threads/thread/algorithm/1.cc: Likewise.
763         * testsuite/30_threads/thread/algorithm/2.cc: Likewise.
764         * testsuite/30_threads/thread/member/1.cc: Likewise.
765         * testsuite/30_threads/thread/member/2.cc: Likewise.
766         * testsuite/30_threads/thread/member/3.cc: Likewise.
767         * testsuite/30_threads/thread/this_thread/1.cc: Likewise.
768         * testsuite/30_threads/thread/this_thread/2.cc: Likewise.
769         * testsuite/30_threads/thread/this_thread/3.cc: Likewise.
770         * testsuite/30_threads/thread/this_thread/4.cc: Likewise.
771         * testsuite/30_threads/headers/thread/types_std_c++0x.cc: Likewise.
772         * testsuite/30_threads/headers/thread/std_c++0x_neg.cc: Likewise.
773         * testsuite/17_intro/headers/c++200x/all.cc: Add thread.
774         * testsuite/17_intro/headers/c++200x/all_multiple_inclusion.cc:
775         Add thread, condition_variable and mutex.
776
777 2008-09-10  Paolo Carlini  <paolo.carlini@oracle.com>
778
779         * src/ctype.cc (use_facet<ctype<char> >, use_facet<ctype<wchar_t>):
780         Remove specializations.
781         * src/locale-inst.cc (use_facet<ctype<C> >): Instantiate.
782         * include/bits/locale_facets.tcc (use_facet<ctype<char> >,
783         use_facet<ctype<wchar_t>): Declare as extern template.
784         * include/bits/locale_facets.h (use_facet<ctype<char> >,
785         use_facet<ctype<wchar_t>): Do not declare as specializations.
786
787 2008-09-10  Paolo Carlini  <paolo.carlini@oracle.com>
788
789         * config/locale/darwin/ctype_members.cc (ctype<char>::_M_narrow_init,
790         ctype<char>::_M_widen_init): Don't define here.
791         * config/locale/gnu/ctype_members.cc: Likewise.
792         * config/locale/generic/ctype_members.cc: Likewise.
793         * src/ctype.cc: Define here.
794
795 2008-09-10  Paolo Carlini  <paolo.carlini@oracle.com>
796
797         PR libstdc++/37455
798         * include/bits/locale_facets.h (ctype<char>::_M_narrow_init,
799         ctype<char>::_M_widen_init): Don't define inline.
800         * config/locale/darwin/ctype_members.cc: ... define here.
801         * config/locale/gnu/ctype_members.cc: ... likewise.
802         * config/locale/generic/ctype_members.cc: ... likewise.
803         * config/abi/pre/gnu.ver: Export.
804
805 2008-09-09  Benjamin Kosnik  <bkoz@redhat.com>
806
807         * doc/xml/manual/abi.xml: Update for new releases.
808         * doc/doxygen/user.cfg.in: Include C compatibility headers.
809         * doc/html/*: Regenerate.
810
811 2008-09-09  Paolo Carlini  <paolo.carlini@oracle.com>
812
813         * include/tr1_impl/cinttypes: Restore __STDC_FORMAT_MACROS after
814         inclusion of <inttypes.h>.
815         * include/tr1_impl/cstdint: Likewise for __STDC_LIMIT_MACROS and
816         __STDC_CONSTANT_MACROS after <stdint.h>.
817         * include/bits/postypes.h: Likewise.
818
819 2008-09-09  Andreas Schwab  <schwab@suse.de>
820
821         * acinclude.m4 (GLIBCXX_CHECK_STANDARD_LAYOUT): Fix compile check
822         not to redefine main.
823
824 2008-09-07  Paolo Carlini  <paolo.carlini@oracle.com>
825
826         * acinclude.m4 ([GLIBCXX_CHECK_C99_TR1]): Check wcstoimax and
827         wcstoumax, define _GLIBCXX_USE_C99_INTTYPES_WCHAR_T_TR1.
828         * include/tr1_impl/cinttypes: Use the latter.
829         * testsuite/tr1/8_c_compatibility/cinttypes/functions.cc: Likewise.
830         * configure: Regenerate.
831         * config.h.in: Likewise.
832
833 2008-09-05  Peter Dimov  <pdimov@mmltd.net>
834
835         * testsuite/20_util/shared_ptr/cons/unique_ptr_deleter_ref_2.cc: New.
836
837 2008-09-05  Paolo Carlini  <paolo.carlini@oracle.com>
838
839         * testsuite/20_util/shared_ptr/cons/unique_ptr_deleter_ref.cc: Rename
840         to...
841         * testsuite/20_util/shared_ptr/cons/unique_ptr_deleter_ref_1.cc: ...
842         this.
843
844 2008-09-04  Jonathan Wakely  <jwakely.gcc@gmail.com>
845
846         PR libstdc++/36962
847         * include/Makefile.am: Update headers.
848         * include/Makefile.in: Regenerate.
849         * include/std/memory: Update headers.
850         * include/tr1/memory: Likewise.
851         * include/tr1_impl/boost_shared_ptr.h: Remove, splitting into
852         separate implementations for std and tr1.
853         * include/bits/boost_sp_shared_count.h: Remove.
854         * include/tr1/boost_sp_shared_count.h: Remove.
855         * include/bits/shared_ptr.h: New. Combines boost_sp_shared_count.h
856         and boost_shared_ptr.h into one file.
857         (__shared_count,__shared_ptr,shared_ptr,swap): Add unique_ptr
858         and rvalue-reference support as per current WP.
859         * include/tr1/shared_ptr.h: New. Combines boost_sp_shared_count.h
860         and boost_shared_ptr.h into one file.
861         * testsuite/20_util/shared_ptr/cons/unique_ptr.cc: New.
862         * testsuite/20_util/shared_ptr/cons/unique_ptr_deleter.cc: New.
863         * testsuite/20_util/shared_ptr/cons/unique_ptr_deleter_ref.cc: New.
864         * testsuite/20_util/shared_ptr/cons/unique_ptr_neg.cc: New.
865         * testsuite/20_util/shared_ptr/assign/auto_ptr_rvalue.cc: New.
866         * testsuite/20_util/shared_ptr/assign/unique_ptr_lvalue_neg.cc: New.
867         * testsuite/20_util/shared_ptr/assign/unique_ptr_rvalue.cc: New.
868         * testsuite/20_util/shared_ptr/modifiers/swap_rvalue.cc: New.
869         * testsuite/20_util/shared_ptr/assign/auto_ptr_rvalue_neg.cc: Remove.
870
871 2008-09-04  Jonathan Wakely  <jwakely.gcc@gmail.com>
872
873         * doc/xml/manual/locale.xml: Fix typo.
874
875 2008-09-04  Paolo Carlini  <paolo.carlini@oracle.com>
876
877         * acinclude.m4 ([GLIBCXX_CHECK_GTHREADS]): Tidy checks in case of
878         POSIX threads.
879         * configure: Regenerate.
880
881 2008-09-04  Chris Fairles  <chris.fairles@gmail.com>
882
883         * include/std/mutex (once_flag): Construct __gthread_once_t in a
884         temporary variable before assigning to _M_once to avoid initialization
885         errors.
886
887 2008-09-03  Paolo Carlini  <paolo.carlini@oracle.com>
888
889         * config/abi/pre/gnu.ver: Also export __once_functor_lock; tighten
890         GLIBCXX_3.4 exports (necessary in case of undef _GLIBCXX_HAVE_TLS).
891
892         * Makefile.in: Regenerate.
893         * src/Makefile.in: Likewise.
894         * doc/Makefile.in: Likewise.
895         * po/Makefile.in: Likewise.
896         * libmath/Makefile.in: Likewise.
897         * include/Makefile.in: Likewise.
898         * libsupc++/Makefile.in: Likewise.
899         * testsuite/Makefile.in: Likewise.
900
901 2008-09-03  Paolo Carlini  <paolo.carlini@oracle.com>
902
903         * acinclude.m4 ([GLIBCXX_CHECK_GTHREADS]): Fix typo in last commit,
904         check _POSIX_TIMEOUTS, not _POSIX_TIMERS.
905         * configure: Regenerate.
906
907 2008-09-03  Paolo Carlini  <paolo.carlini@oracle.com>
908
909         * acinclude.m4 ([GLIBCXX_CHECK_GTHREADS]): Check _POSIX_TIMERS too.
910         * configure: Regenerate.
911
912 2008-09-03  Chris Fairles  <chris.fairles@gmail.com>
913
914         * include/std/condition_variable: Use new deleted ctors.
915         * include/std/mutex: Likewise plus implement timed_mutex,
916         recursive_timed_mutex and call_once.
917         * src/condition_variable.cc: Implement wait(). Use gthread types.
918         Remove _GTHREADS_HAS_COND checks in favor of global
919         _GLIBCXX_HAS_GTHREADS.
920         * src/mutex.cc (call_once): Implementation using TLS with mutex
921         fallback.
922         * config/abi/pre/gnu.ver: Add exported symbols.
923         * testsuite/lib/libstdc++.exp (check_v3_target_gthreads): New.
924         * testsuite/lib/dg-options.exp (dg-require-gthreads): Likewise.
925         * testsuite/30_threads/lock_guard/requirements/typedefs.cc: Use
926         dg-require-gthreads and dg-require-cstdint.
927         * testsuite/30_threads/lock_guard/requirements/
928         explicit_instantiation.cc: Likewise.
929         * testsuite/30_threads/mutex/dest/destructor_locked.cc: Likewise.
930         * testsuite/30_threads/mutex/native_handle/1.cc: Likewise.
931         * testsuite/30_threads/mutex/cons/1.cc: Likewise.
932         * testsuite/30_threads/mutex/requirements/typedefs.cc: Likewise.
933         * testsuite/30_threads/mutex/try_lock/1.cc: Likewise.
934         * testsuite/30_threads/mutex/try_lock/2.cc: Likewise.
935         * testsuite/30_threads/mutex/lock/1.cc: Likewise.
936         * testsuite/30_threads/mutex/unlock/1.cc: Likewise.
937         * testsuite/30_threads/recursive_mutex/dest/destructor_locked.cc:
938         Likewise.
939         * testsuite/30_threads/recursive_mutex/native_handle/1.cc: Likewise.
940         * testsuite/30_threads/recursive_mutex/cons/1.cc: Likewise.
941         * testsuite/30_threads/recursive_mutex/requirements/typedefs.cc:
942         Likewise.
943         * testsuite/30_threads/recursive_mutex/try_lock/1.cc: Likewise.
944         * testsuite/30_threads/recursive_mutex/try_lock/2.cc: Likewise.
945         * testsuite/30_threads/recursive_mutex/lock/1.cc: Likewise.
946         * testsuite/30_threads/recursive_mutex/unlock/1.cc: Likewise.
947         * testsuite/30_threads/unique_lock/requirements/
948         explicit_instantiation.cc: Likewise.
949         * testsuite/30_threads/unique_lock/requirements/typedefs.cc: Likewise.
950         * testsuite/30_threads/mutex/cons/assign_neg.cc: Also adjust dg-error
951         lines for deleted members.
952         * testsuite/30_threads/mutex/cons/copy_neg.cc: Likewise.
953         * testsuite/30_threads/recursive_mutex/cons/assign_neg.cc: Likewise.
954         * testsuite/30_threads/recursive_mutex/cons/copy_neg.cc: Likewise.
955         * testsuite/30_threads/call_once/once_flag.cc: New.
956         * testsuite/30_threads/call_once/call_once1.cc: Likewise.
957         * testsuite/30_threads/condition_variable/cons/1.cc: Likewise.
958         * testsuite/30_threads/condition_variable/cons/copy_neg.cc: Likewise
959         * testsuite/30_threads/condition_variable/cons/assign_neg.cc: Likewise.
960         * testsuite/30_threads/condition_variable_any/cons/1.cc: Likewise.
961         * testsuite/30_threads/condition_variable_any/cons/copy_neg.cc:
962         Likewise.
963         * testsuite/30_threads/condition_variable_any/cons/assign_neg.cc:
964         Likewise.
965         * testsuite/30_threads/timed_mutex/dest/destructor_locked.cc: Likewise.
966         * testsuite/30_threads/timed_mutex/native_handle/1.cc: Likewise.
967         * testsuite/30_threads/timed_mutex/try_lock_until/1.cc: Likewise.
968         * testsuite/30_threads/timed_mutex/try_lock_until/2.cc: Likewise.
969         * testsuite/30_threads/timed_mutex/cons/assign_neg.cc: Likewise.
970         * testsuite/30_threads/timed_mutex/cons/1.cc: Likewise.
971         * testsuite/30_threads/timed_mutex/cons/copy_neg.cc: Likewise.
972         * testsuite/30_threads/timed_mutex/requirements/typedefs.cc: Likewise.
973         * testsuite/30_threads/timed_mutex/try_lock/1.cc: Likewise.
974         * testsuite/30_threads/timed_mutex/try_lock/2.cc: Likewise.
975         * testsuite/30_threads/timed_mutex/lock/1.cc: Likewise.
976         * testsuite/30_threads/timed_mutex/unlock/1.cc: Likewise.
977         * testsuite/30_threads/timed_mutex/try_lock_for/1.cc: Likewise.
978         * testsuite/30_threads/timed_mutex/try_lock_for/2.cc: Likewise.
979         * testsuite/30_threads/timed_mutex/try_lock_for/3.cc: Likewise.
980         * testsuite/30_threads/recursive_timed_mutex/dest/destructor_locked.cc:
981         Likewise.
982         * testsuite/30_threads/recursive_timed_mutex/try_lock_until/1.cc:
983         Likewise.
984         * testsuite/30_threads/recursive_timed_mutex/try_lock_until/2.cc:
985         Likewise.
986         * testsuite/30_threads/recursive_timed_mutex/native_handle/1.cc:
987         Likewise.
988         * testsuite/30_threads/recursive_timed_mutex/cons: Likewise.
989         * testsuite/30_threads/recursive_timed_mutex/cons/assign_neg.cc:
990         Likewise.
991         * testsuite/30_threads/recursive_timed_mutex/cons/1.cc: Likewise.
992         * testsuite/30_threads/recursive_timed_mutex/cons/copy_neg.cc:
993         Likewise.
994         * testsuite/30_threads/recursive_timed_mutex/requirements/typedefs.cc:
995         Likewise.
996         * testsuite/30_threads/recursive_timed_mutex/try_lock/1.cc: Likewise.
997         * testsuite/30_threads/recursive_timed_mutex/try_lock/2.cc: Likewise.
998         * testsuite/30_threads/recursive_timed_mutex/lock/1.cc: Likewise.
999         * testsuite/30_threads/recursive_timed_mutex/lock/2.cc: Likewise.
1000         * testsuite/30_threads/recursive_timed_mutex/unlock/1.cc: Likewise.
1001         * testsuite/30_threads/recursive_timed_mutex/try_lock_for/1.cc:
1002         Likewise.
1003         * testsuite/30_threads/recursive_timed_mutex/try_lock_for/2.cc:
1004         Likewise.
1005         * testsuite/30_threads/recursive_timed_mutex/try_lock_for/3.cc:
1006         Likewise.
1007         * testsuite/30_threads/unique_lock/modifiers/1.cc: Likewise.
1008         * testsuite/30_threads/unique_lock/modifiers/2.cc: Likewise.
1009         * testsuite/30_threads/unique_lock/cons/1.cc: Likewise.
1010         * testsuite/30_threads/unique_lock/cons/2.cc: Likewise.
1011         * testsuite/30_threads/unique_lock/cons/3.cc: Likewise.
1012         * testsuite/30_threads/unique_lock/cons/4.cc: Likewise.
1013         * testsuite/30_threads/unique_lock/cons/5.cc: Likewise.
1014         * testsuite/30_threads/unique_lock/cons/6.cc: Likewise.
1015         * testsuite/30_threads/unique_lock/locking/1.cc: Likewise.
1016         * testsuite/30_threads/unique_lock/locking/2.cc: Likewise.
1017         * testsuite/30_threads/unique_lock/locking/3.cc: Likewise.
1018         * testsuite/30_threads/unique_lock/locking/4.cc: Likewise.
1019
1020 2008-09-01  Mark Mitchell  <mark@codesourcery.com>
1021
1022         * include/std/type_traits (__make_unsigned_selector<>): Consider
1023         enums of size smaller than short.
1024         (__make_signed_selector<>): Likewise.
1025         * testsuite/20_util/make_signed/requirements/typedefs_neg.cc:
1026         Adjust line numbers.
1027         * testsuite/20_util/make_usigned/requirements/typedefs_neg.cc:
1028         Adjust line numbers.
1029         * testsuite/20_util/make_signed/requirements/typedefs-2.cc:
1030         Ensure test_enum is the same size as short.
1031         * testsuite/20_util/make_unsigned/requirements/typedefs-2.cc:
1032         Ensure test_enum is the same size as short.
1033
1034 2008-08-31  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
1035
1036         * acinclude.m4 <enable_symvers>: Don't use symvers on Windows.
1037         * configure: Regenerated.
1038         * Makefile.in: Regenerated.
1039         * src/Makefile.in: Regenerated.
1040         * doc/Makefile.in: Regenerated.
1041         * po/Makefile.in: Regenerated.
1042         * libmath/Makefile.in: Regenerated.
1043         * include/Makefile.in: Regenerated.
1044         * libsupc++/Makefile.in: Regenerated.
1045         * testsuite/Makefile.in: Regenerated.
1046
1047 2008-08-29  Mark Mitchell  <mark@codesourcery.com>
1048
1049         * testsuite/25_algorithms/nth_element/2.cc: Constrain iterations
1050         when testing on a simultor.
1051
1052 2008-08-28  Paolo Carlini  <paolo.carlini@oracle.com>
1053
1054         * testsuite/tr1/6_containers/unordered_set/requirements/typedef.cc:
1055         Rename to .../typedefs.cc.
1056         * testsuite/tr1/6_containers/unordered_map/requirements/typedef.cc:
1057         Likewise.
1058         * testsuite/tr1/6_containers/unordered_multiset/requirements/
1059         typedef.cc: Likewise.
1060         * testsuite/tr1/6_containers/unordered_multimap/requirements/
1061         typedef.cc: Likewise.
1062         * testsuite/23_containers/unordered_set/requirements/typedef.cc:
1063         Likewise.
1064         * testsuite/23_containers/unordered_map/requirements/typedef.cc:
1065         Likewise.
1066         * testsuite/23_containers/unordered_multiset/requirements/typedef.cc:
1067         Likewise.
1068         * testsuite/23_containers/unordered_multimap/requirements/typedef.cc:
1069         Likewise.
1070
1071 2008-08-28  Chris Fairles  <chris.fairles@gmail.com>
1072
1073         * acinclude.m4 ([GLIBCXX_CHECK_GTHREADS]): New. Checks for gthread
1074         support used by c++0x thread library.
1075         * configure.ac: Test unconditionally.
1076         * configure: Regenerate.
1077         * config.h.in: Regenerate.
1078
1079 2008-08-27  Benjamin Kosnik  <bkoz@redhat.com>
1080
1081         * doc/Makefile.am: Edit xml file list.
1082         * doc/Makefile.in: Regenerate.
1083         * configure: Regenerate.
1084         * doc/xml/manual/intro.xml: Edit, correct links, structure.
1085         * doc/xml/manual/configure.xml: Same.
1086         * doc/xml/manual/debug.xml: Same.
1087         * doc/xml/manual/test.xml: Same.
1088         * doc/xml/manual/build.xml: Remove.
1089         * doc/xml/manual/prerequisites.xml: Add.
1090         * doc/html/*: Regenerate.
1091
1092 2008-08-27  Paolo Carlini  <paolo.carlini@oracle.com>
1093
1094         * include/tr1_impl/hashtable (_Hashtable<>): Add missing pointer and
1095         const_pointer typedefs.
1096         * testsuite/tr1/6_containers/unordered_set/requirements/typedef.cc:
1097         Add.
1098         * testsuite/tr1/6_containers/unordered_map/requirements/typedef.cc:
1099         Likewise.
1100         * testsuite/tr1/6_containers/unordered_multiset/requirements/
1101         typedef.cc: Likewise.
1102         * testsuite/tr1/6_containers/unordered_multimap/requirements/
1103         typedef.cc: Likewise.
1104         * testsuite/23_containers/unordered_set/requirements/typedef.cc:
1105         Likewise.
1106         * testsuite/23_containers/unordered_map/requirements/typedef.cc:
1107         Likewise.
1108         * testsuite/23_containers/unordered_multiset/requirements/typedef.cc:
1109         Likewise.
1110         * testsuite/23_containers/unordered_multimap/requirements/typedef.cc:
1111         Likewise.
1112
1113 2008-08-27  Paul Brook  <paul@codesourcery.com>
1114
1115         * libsupc++/eh_call.cc (__cxa_call_unexpected): Fix name of
1116         __get_object_from_ambiguous_exception.
1117
1118 2008-08-26  Ben Elliston  <bje@au.ibm.com>
1119
1120         * src/mt_allocator.cc (__pool): Fix error in comment.
1121
1122 2008-08-25  Paolo Carlini  <paolo.carlini@oracle.com>
1123
1124         * linkage.m4 ([GLIBCXX_CHECK_BUILTIN_MATH_DECL_AND_LINKAGE_1],
1125         [GLIBCXX_CHECK_BUILTIN_MATH_SUPPORT]): Remove
1126         * configure.ac: Do not call the latter.
1127         * crossconfig.m4: Likewise.
1128         * libmath/mathconf.h: Adjust.
1129         * configure: Regenerate.
1130         * config.h.in: Likewise.
1131
1132 2008-08-24  Paolo Carlini  <paolo.carlini@oracle.com>
1133
1134         * acinclude.m4 ([GLIBCXX_CHECK_RANDOM_TR1]): Simplify, just use
1135         two test -r instead of an AC_TRY_RUN.
1136         * configure: Regenerate.
1137         * config.h.in: Likewise.
1138
1139 2008-08-24  Paolo Carlini  <paolo.carlini@oracle.com>
1140
1141         * acinclude.m4 ([GLIBCXX_ENABLE_CLOCK_GETTIME]): Improve documentation.
1142         * doc/xml/manual/configure.xml: Likewise.
1143
1144 2008-08-23  Paolo Carlini  <paolo.carlini@oracle.com>
1145
1146         * acinclude.m4 ([GLIBCXX_ENABLE_CLOCK_GETTIME]): Use [=KIND] in
1147         GLIBCXX_ENABLE.
1148         * configure: Regenerate.
1149
1150 2008-08-23  Paolo Carlini  <paolo.carlini@oracle.com>
1151
1152         * acinclude.m4 ([GLIBCXX_CHECK_GETTIMEOFDAY]): Change to use
1153         GCC_TRY_COMPILE_OR_LINK.
1154         ([GLIBCXX_CHECK_CLOCK_GETTIME]): Rename to
1155         [GLIBCXX_ENABLE_CLOCK_GETTIME], a versatile configure-time option,
1156         [no] by default, since it includes TRY_LINK checks.  librt is also
1157         searched, if requested.
1158         * doc/xml/manual/configure.xml: Document the latter.
1159         * configure.ac: Move the above checks outside native-only.
1160         * configure: Regenerate.
1161
1162 2008-08-23  Paolo Carlini  <paolo.carlini@oracle.com>
1163
1164         * testsuite/lib/libstdc++.exp (check_v3_target_atomic_builtins): Add.
1165         * testsuite/lib/dg-options.exp (dg-require-atomic-builtins): Likewise.
1166         * testsuite/18_support/exception_ptr/current_exception.cc: Use it.
1167         * testsuite/18_support/exception_ptr/rethrow_exception.cc: Likewise.
1168         * testsuite/18_support/exception_ptr/lifespan.cc: Likewise.
1169
1170 2008-08-23  Sebastian Redl <sebastian.redl@getdesigned.at>
1171
1172         Add (again) exception propagation support as per N2179.  Feature is
1173         available only when _GLIBCXX_ATOMIC_BUILTINS_4 is defined.
1174         * libsupc++/exception_ptr.h (exception_ptr, current_exception,
1175         copy_exception, rethrow_exception): New file, implement exception
1176         propagation.
1177         * libsupc++/eh_ptr.cc (exception_ptr, current_exception,
1178         rethrow_exception, __gxx_dependent_exception_cleanup): Likewise.
1179         * libsupc++/unwind-cxx.h (__cxa_exception): Add reference count.
1180         (__cxa_dependent_exception, __cxa_allocate_dependent_exception,
1181         __cxa_free_dependent_exception, __get_dependent_exception_from_ue,
1182         __GXX_INIT_DEPENDENT_EXCEPTION_CLASS, __is_dependent_exception,
1183         __gxx_dependent_exception_class, __get_object_from_ue,
1184         __get_object_from_ambiguous_exception): Add.
1185         (__GXX_INIT_EXCEPTION_CLASS, __gxx_exception_class): Rename.
1186         (__is_gxx_exception_class): Handle dependent exceptions.
1187         * libsupc++/eh_arm.cc (__cxa_type_match): Likewise.
1188         * libsupc++/eh_call.cc (__cxa_call_unexpected): Likewise.
1189         * libsupc++/eh_personality.cc (__gxx_personality_*): Likewise.
1190         * libsupc++/eh_type.cc (__cxa_current_exception_type): Likewise.
1191         * libsupc++/eh_alloc.cc (__cxa_allocate_dependent_exception,
1192         __cxa_free_dependent_exception): Add.
1193         * libsupc++/eh_throw.cc (__gxx_exception_cleanup): Handle reference
1194         counting.
1195         * libsupc++/exception: Conditionally include exception_ptr.h.
1196         * libsupc++/Makefile.am: Register new files.
1197         * libsupc++/Makefile.in: Regenerate.
1198         * config/abi/pre/gnu.ver: Add new symbols.
1199         * testsuite/18_support/exception_ptr/current_exception.cc: Test the
1200         core functionality of current_exception().
1201         * testsuite/18_support/exception_ptr/rethrow_exception.cc: Test the
1202         core functionality of rethrow_exception().
1203         * testsuite/18_support/exception_ptr/lifespan.cc: Test the life span of
1204         exception objects during exception propagation.
1205
1206 2008-08-22  Paolo Carlini  <paolo.carlini@oracle.com>
1207
1208         Revert again the N2179 patch.
1209
1210 2008-08-21  Sebastian Redl <sebastian.redl@getdesigned.at>
1211
1212         * libsupc++/eh_ptr.cc (__gxx_dependent_exception_cleanup): Call
1213         __cxa_free_dependent_exception.
1214
1215 2008-08-20  Paolo Carlini  <paolo.carlini@oracle.com>
1216
1217         * include/bits/char_traits.h (char_traits<char16_t>::
1218         assign(char_type*, size_t, char_type), char_traits<char32_t>::
1219         assign(char_type*, size_t, char_type)): For now, just open-code.
1220
1221 2008-08-20  Paolo Carlini  <paolo.carlini@oracle.com>
1222
1223         PR c++/33979 (partial)
1224         * include/bits/postypes.h (u16streampos, u32streampos): Add.
1225         * include/bits/char_traits.h (char_traits<char16_t>,
1226         char_traits<char32_t>): Add.
1227         * include/bits/stringfwd.h (u16string, u32string): Add.
1228         * include/ext/vstring_fwd.h: Add typedefs for char16_t/char32_t.
1229         * testsuite/21_strings/char_traits/requirements/char32_t/typedefs.cc:
1230         New.
1231         * testsuite/21_strings/char_traits/requirements/
1232         explicit_instantiation/short/1.cc: Likewise.
1233         * testsuite/21_strings/char_traits/requirements/
1234         explicit_instantiation/char32_t/1.cc: Likewise.
1235         * testsuite/21_strings/char_traits/requirements/
1236         explicit_instantiation/wchar_t/1.cc: Likewise.
1237         * testsuite/21_strings/char_traits/requirements/
1238         explicit_instantiation/char16_t/1.cc: Likewise.
1239         * testsuite/21_strings/char_traits/requirements/
1240         explicit_instantiation/char/1.cc: Likewise.
1241         * testsuite/21_strings/char_traits/requirements/char16_t/typedefs.cc:
1242         Likewise.
1243         * testsuite/21_strings/basic_string/requirements/
1244         explicit_instantiation/char32_t/1.cc: Likewise.
1245         * testsuite/21_strings/basic_string/requirements/
1246         explicit_instantiation/wchar_t/1.cc: Likewise.
1247         * testsuite/21_strings/basic_string/requirements/
1248         explicit_instantiation/char16_t/1.cc: Likewise.
1249         * testsuite/21_strings/basic_string/requirements/
1250         explicit_instantiation/char/1.cc: Likewise.
1251         * testsuite/21_strings/headers/string/types_std_c++0x.cc: Likewise.
1252         * testsuite/ext/vstring/requirements/explicit_instantiation/
1253         char32_t/1.cc: Likewise.
1254         * testsuite/ext/vstring/requirements/explicit_instantiation/
1255         char16_t/1.cc: Likewise.
1256
1257 2008-08-18  Paolo Carlini  <paolo.carlini@oracle.com>
1258
1259         PR libstdc++/37149
1260         * testsuite/27_io/basic_ostream/inserters_other/char/4.cc: Include
1261         <cstdio>.
1262         * testsuite/27_io/basic_ostream/inserters_other/char/error_code.cc:
1263         Likewise.
1264         * testsuite/27_io/objects/char/12048-1.cc: Likewise.
1265         * testsuite/27_io/objects/char/12048-3.cc: Likewise.
1266         * testsuite/27_io/objects/wchar_t/12048-1.cc: Likewise.
1267         * testsuite/27_io/objects/wchar_t/12048-3.cc: Likewise.
1268         * testsuite/ext/malloc_allocator/deallocate_global.cc: Likewise.
1269         * testsuite/ext/malloc_allocator/deallocate_local.cc: Likewise.
1270         * testsuite/ext/mt_allocator/deallocate_global-2.cc: Likewise.
1271         * testsuite/ext/mt_allocator/deallocate_global-4.cc: Likewise.
1272         * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: Likewise.
1273         * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: Likewise.
1274         * testsuite/ext/mt_allocator/deallocate_local-2.cc: Likewise.
1275         * testsuite/ext/mt_allocator/deallocate_local-4.cc: Likewise.
1276         * testsuite/ext/mt_allocator/deallocate_local-6.cc: Likewise.
1277         * testsuite/ext/mt_allocator/deallocate_local-8.cc: Likewise.
1278         * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: Likewise.
1279         * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: Likewise.
1280         * testsuite/ext/mt_allocator/deallocate_local_thread-5.cc: Likewise.
1281         * testsuite/ext/mt_allocator/deallocate_local_thread-7.cc: Likewise.
1282         * testsuite/ext/new_allocator/deallocate_global.cc: Likewise.
1283         * testsuite/ext/new_allocator/deallocate_local.cc: Likewise.
1284         * testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc: Likewise.
1285         * include/std/regex: Include <sstream>.
1286         * include/tr1/regex: Likewise.
1287
1288 2008-08-18  Paolo Carlini  <paolo.carlini@oracle.com>
1289
1290         * configure.ac: Do not hardcode HAVE_S_ISREG and HAVE_S_IFREG for
1291         newlib.
1292         * configure: Regenerate.
1293
1294 2008-08-18  Paolo Carlini  <paolo.carlini@oracle.com>
1295
1296         PR libstdc++/37147
1297         * acinclude.m4 ([GLIBCXX_CHECK_C99_TR1]): Tighten checks on stdint.h,
1298         check the macros too.
1299         * configure: Regenerate.
1300
1301 2008-08-17  Paolo Carlini  <paolo.carlini@oracle.com>
1302
1303         * acinclude.m4 ([AC_LC_MESSAGES]): Use AC_TRY_COMPILE instead of
1304         AC_TRY_LINK.
1305         * configure.ac: Run unconditionally AC_LC_MESSAGES.
1306         * crossconfig.m4: Adjust.
1307         * configure: Regenerate.
1308
1309 2008-08-17  Paolo Carlini  <paolo.carlini@oracle.com>
1310
1311         * acinclude.m4 ([GLIBCXX_CHECK_LFS], [GLIBCXX_CHECK_POLL],
1312         [GLIBCXX_CHECK_S_ISREG_OR_S_IFREG], [GLIBCXX_CHECK_WRITEV]):
1313         Use GCC_TRY_COMPILE_OR_LINK instead of AC_TRY_LINK, in C++,
1314         with -fno-exceptions as flags.
1315         * configure.ac: Run unconditionally GLIBCXX_CHECK_LFS,
1316         GLIBCXX_CHECK_POLL, GLIBCXX_CHECK_S_ISREG_OR_S_IFREG,
1317         GLIBCXX_CHECK_WRITEV and commonized AC_CHECK_HEADERS.
1318         * crossconfig.m4: Adjust; remove AC_CHECK_HEADERS commonized
1319         in configure.ac.
1320         * configure: Regenerate.
1321
1322 2008-08-13  Paolo Carlini  <paolo.carlini@oracle.com>
1323
1324         Re-instate last patch, amended to use __exchange_and_add_dispatch
1325         and __atomic_add_dispatch in eh_ptr.cc and eh_throw.cc.
1326
1327 2008-08-13  Paolo Carlini  <paolo.carlini@oracle.com>
1328
1329         Revert the last patch.
1330
1331 2008-08-13  Sebastian Redl <sebastian.redl@getdesigned.at>
1332
1333         Add exception propagation support as per N2179.
1334         * libsupc++/exception_ptr.h (exception_ptr, current_exception,
1335         copy_exception, rethrow_exception): New file, implement exception
1336         propagation.
1337         * libsupc++/eh_ptr.cc (exception_ptr, current_exception,
1338         rethrow_exception, __gxx_dependent_exception_cleanup): Likewise.
1339         * libsupc++/unwind-cxx.h (__cxa_exception): Add reference count.
1340         (__cxa_dependent_exception, __cxa_allocate_dependent_exception,
1341         __cxa_free_dependent_exception, __get_dependent_exception_from_ue,
1342         __GXX_INIT_DEPENDENT_EXCEPTION_CLASS, __is_dependent_exception,
1343         __gxx_dependent_exception_class, __get_object_from_ue,
1344         __get_object_from_ambiguous_exception): Add.
1345         (__GXX_INIT_EXCEPTION_CLASS, __gxx_exception_class): Rename.
1346         (__is_gxx_exception_class): Handle dependent exceptions.
1347         * libsupc++/eh_arm.cc (__cxa_type_match): Likewise.
1348         * libsupc++/eh_call.cc (__cxa_call_unexpected): Likewise.
1349         * libsupc++/eh_personality.cc (__gxx_personality_*): Likewise.
1350         * libsupc++/eh_type.cc (__cxa_current_exception_type): Likewise.
1351         * libsupc++/eh_alloc.cc (__cxa_allocate_dependent_exception,
1352         __cxa_free_dependent_exception): Add.
1353         * libsupc++/eh_throw.cc (__gxx_exception_cleanup): Handle reference
1354         counting.
1355         * libsupc++/exception: Conditionally include exception_ptr.h.
1356         * libsupc++/Makefile.am: Register new files.
1357         * libsupc++/Makefile.in: Regenerate.
1358         * config/abi/pre/gnu.ver: Add new symbols.
1359         * testsuite/18_support/exception_ptr/current_exception.cc: Test the
1360         core functionality of current_exception().
1361         * testsuite/18_support/exception_ptr/rethrow_exception.cc: Test the
1362         core functionality of rethrow_exception().
1363         * testsuite/18_support/exception_ptr/lifespan.cc: Test the life span of
1364         exception objects during exception propagation.
1365
1366 2008-08-12  Paolo Carlini  <paolo.carlini@oracle.com>
1367
1368         PR libstdc++/37100
1369         * include/bits/stl_pair.h: Fix documentation URL in comment.
1370
1371 2008-08-12  Johannes Singler  <singler@ira.uka.de>
1372
1373         * include/paralle/losertree.h
1374         (LoserTreePointerBase<>::~LoserTreePointerBase):
1375         Replace delete by appropriate delete[].
1376
1377 2008-08-12  Paolo Carlini  <paolo.carlini@oracle.com>
1378
1379         * configure.ac: Run unconditionally GLIBCXX_CHECK_INT64_T and
1380         GLIBCXX_CHECK_C99_TR1; remove sigsetjmp and mmap checks (unused).
1381         * crossconfig.m4: Adjust; remove HAVE_GETPAGESIZE defines (unused).
1382         * configure: Regenerate.
1383         * config.h.in: Likewise.
1384
1385         * acinclude.m4: Minor formatting fixes.
1386
1387 2008-08-11  Stephen M. Webb  <stephenw@xandros.com>
1388
1389         * include/tr1_impl/regex: Formatting fixes.
1390         * testsuite/tr1/7_regular_expressions/regex_traits/char/value.cc:
1391           New test.
1392         * testsuite/tr1/7_regular_expressions/regex_traits/wchar_t/value.cc:
1393           New test.
1394
1395 2008-08-11  Paolo Carlini  <paolo.carlini@oracle.com>
1396
1397         * config/locale/generic/c_locale.cc: Include <cstdio>.
1398
1399 2008-08-11  Paolo Carlini  <paolo.carlini@oracle.com>
1400
1401         * configure.ac: Run GLIBCXX_CHECK_STDIO_MACROS unconditionally.
1402         * configure: Regenerate.
1403
1404 2008-08-10  Paolo Carlini  <paolo.carlini@oracle.com>
1405
1406         * include/tr1_impl/type_traits (_DEFINE_SPEC*): Simplify.
1407         (_DEFINE_SPEC_BODY): Remove.
1408         (__is_void_helper, __is_integral_helper, __is_floating_point_helper,
1409         __is_member_object_pointer_helper, __is_member_function_pointer_helper,
1410         __remove_pointer_helper): Add.
1411         (is_void, is_integral, is_floating_point, is_member_object_pointer,
1412         is_member_function_pointer, remove_pointer): Use the latter.
1413         * include/tr1/type_traits (_DEFINE_SPEC): Simplify.
1414         (_DEFINE_SPEC_HELPER): Remove.
1415         (__is_signed_helper, __is_unsigned_helper): Add.
1416         (is_signed, is_unsigned): Use the latter.
1417
1418 2008-08-09  Paolo Carlini  <paolo.carlini@oracle.com>
1419
1420         Revert fix for libstdc++/35637, thanks to other/36901.
1421         * include/tr1_impl/type_traits (__is_function_helper): New, uses
1422         variadic templates.
1423         (is_function): Forward to the latter.
1424         (__in_array): Remove.
1425
1426 2008-08-09  Paolo Carlini  <paolo.carlini@oracle.com>
1427
1428         * config/locale/darwin/ctype_members.cc: Include <cstdio>.
1429
1430 2008-08-08  Paolo Carlini  <paolo.carlini@oracle.com>
1431
1432         * include/bits/ios_base.h: Undef _IOS_BASE_SEEK_CUR and
1433         _IOS_BASE_SEEK_END at the end of the file.
1434         * include/bits/char_traits.h: Likewise for _CHAR_TRAITS_EOF.
1435
1436 2008-08-07  Stephen M. Webb  <stephenw@xandros.com>
1437
1438         * include/tr1_impl/regex (match_results<>::cbegin, cend): Add, per
1439         N2691 WD.
1440
1441 2008-08-06  Paolo Carlini  <paolo.carlini@oracle.com>
1442
1443         * acinclude.m4 ([GLIBCXX_CHECK_STDIO_MACROS]): New, checks for
1444         common values of EOF, SEEK_CUR, SEEK_END.
1445         * configure.ac: Use it.
1446         * include/bits/ios_base.h: Likewise.
1447         * include/bits/char_traits.h: Likewise.
1448         * config/locale/gnu/ctype_members.cc: Include <cstdio>.
1449         * config/locale/generic/ctype_members.cc: Likewise.
1450         * testsuite/27_io/ios_base/cons/assign_neg.cc: Adjust dg-error lines.
1451         * testsuite/27_io/ios_base/cons/copy_neg.cc: Likewise.
1452         * configure: Regenerate.
1453         * config.h.in: Likewise.
1454
1455 2008-08-06  Paolo Carlini  <paolo.carlini@oracle.com>
1456
1457         * acinclude.m4 ([GLIBCXX_CHECK_INT64_T]): Also check whether int64_t
1458         is actually a typedef to long or long long.
1459         * include/bits/postypes.h: If int64_t is actually a typedef for
1460         long or long long don't include <stdint.h> unnecessarily.
1461         * configure: Regenerate.
1462         * config.h.in: Likewise.
1463
1464 2008-08-05  Paolo Carlini  <paolo.carlini@oracle.com>
1465
1466         * testsuite/util/testsuite_api.h (diamond_derivation<>::test):
1467         Expect ambiguity together with the standard exception classes.
1468         * testsuite/27_io/ios_base/failure/cons_virtual_derivation.cc: Remove
1469         xfail.
1470         * testsuite/19_diagnostics/logic_error/cons_virtual_derivation.cc:
1471         Likewise.
1472         * testsuite/19_diagnostics/runtime_error/cons_virtual_derivation.cc:
1473         Likewise.
1474         * testsuite/19_diagnostics/system_error/cons_virtual_derivation.cc:
1475         Likewise.
1476         * testsuite/18_support/bad_alloc/cons_virtual_derivation.cc: Likewise.
1477         * testsuite/18_support/bad_cast/cons_virtual_derivation.cc: Likewise.
1478         * testsuite/18_support/bad_exception/cons_virtual_derivation.cc:
1479         Likewise.
1480         * testsuite/18_support/bad_typeid/cons_virtual_derivation.cc:
1481         Likewise.
1482         * testsuite/ext/concurrence_lock_error/cons_virtual_derivation.cc:
1483         Likewise.
1484         * testsuite/ext/forced_exception_error/cons_virtual_derivation.cc:
1485         Likewise.
1486         * testsuite/ext/concurrence_unlock_error/cons_virtual_derivation.cc:
1487         Likewise.
1488         * testsuite/20_util/bad_function_call/cons_virtual_derivation.cc:
1489         Likewise.
1490
1491 2008-08-04  Paolo Carlini  <paolo.carlini@oracle.com>
1492
1493         * include/bits/postypes.h: Reinstate inclusion of <stdint.h>;
1494         also define the __STDC_* macros.
1495         (streamoff): Adjust.
1496
1497         * include/tr1_impl/cstdint: Check that the __STDC_* macros are
1498         not defined before defining.
1499
1500 2008-08-01  Paolo Bonzini  <bonzini@gnu.org>
1501             Chris Fairles  <chris.fairles@gmail.com>
1502
1503         * acinclude.m4 ([GLIBCXX_CHECK_CLOCK_GETTIME]): Reinstate clock_gettime
1504         search, but only in libposix4, never link librt.
1505         * src/Makefile.am: Reinstate previous change to add GLIBCXX_LIBS.
1506         * configure: Regenerate.
1507         * configure.in: Likewise.
1508         * Makefile.in: Likewise.
1509         * src/Makefile.in: Likewise.
1510         * libsup++/Makefile.in: Likewise.
1511         * po/Makefile.in: Likewise.
1512         * doc/Makefile.in: Likewise.
1513
1514 2008-07-31  Chris Fairles <chris.fairles@gmail.com>
1515
1516         * include/std/chrono (duration): Use explicitly defaulted ctor, cctor,
1517         dtor and assignment. Add diagnostics as per 20.8.3 paragraphs 2, 3
1518         and 4 in WD. Other minor tweaks.
1519         * testsuite/20_util/duration/cons/1_neg.cc: Adjust line numbers.
1520         * testsuite/20_util/duration/requirements/typedefs_neg1.cc: New.
1521         * testsuite/20_util/duration/requirements/typedefs_neg2.cc: Likewise.
1522         * testsuite/20_util/duration/requirements/typedefs_neg3.cc: Likewise.
1523
1524 2008-07-31  Paolo Carlini  <paolo.carlini@oracle.com>
1525
1526         * testsuite/lib/libstdc++.exp (libstdc++_init): Set v3-libgomp.
1527         (check_v3_target_parallel_mode): Robustify, just follow the
1528         structure of testsuite/Makefile.am.
1529
1530 2008-07-29  Paolo Carlini  <paolo.carlini@oracle.com>
1531
1532         * include/debug/set.h: Minor formatting fixes.
1533         * include/debug/multiset.h: Likewise.
1534         * include/debug/safe_association.h: Likewise.
1535         * include/debug/vector: Likewise.
1536         * include/debug/map.h: Likewise.
1537         * include/debug/string: Likewise.
1538         * include/debug/multimap.h: Likewise.
1539         * include/bits/stl_list.h: Likewise.
1540         * include/bits/stl_map.h: Likewise.
1541         * include/bits/stl_set.h: Likewise.
1542         * include/bits/stl_multimap.h: Likewise.
1543         * include/bits/stl_vector.h: Likewise.
1544         * include/bits/stl_multiset.h: Likewise.
1545         * include/bits/stl_bvector.h: Likewise.
1546
1547 2008-07-29  Paolo Carlini  <paolo.carlini@oracle.com>
1548
1549         * include/std/utility: Include <initializer_list>, per the current WP.
1550
1551         * testsuite/lib/libstdc++.exp (check_v3_target_cstdint): Tweak,
1552         don't use -std=gnu++0x unnecessarily.
1553         * testsuite/18_support/numeric_limits/char16_32_t.cc: Use
1554         dg-require-cstdint.
1555         * testsuite/18_support/headers/cstdint/types_std_c++0x.cc: Likewise.
1556         * testsuite/tr1/8_c_compatibility/cstdint/types_std_tr1.cc: Likewise.
1557
1558 2008-07-28  Paolo Carlini  <paolo.carlini@oracle.com>
1559
1560         PR libstdc++/36949
1561         * include/tr1_impl/boost_shared_ptr.h
1562         (__shared_ptr(_Sp_make_shared_tag, _Alloc, _Args&&...): Call
1563         __enable_shared_from_this_helper.
1564         * testsuite/20_util/shared_ptr/creation/36949.cc: New.
1565
1566 2008-07-24  Paolo Carlini  <paolo.carlini@oracle.com>
1567
1568         PR libstdc++/36924
1569         Revert:
1570         2008-07-23  Chris Fairles <chris.fairles@gmail.com>
1571
1572         * acinclude.m4 ([GLIBCXX_CHECK_CLOCK_GETTIME]): Define GLIBCXX_LIBS.
1573         Holds the lib that defines clock_gettime (-lrt or -lposix4).
1574         * src/Makefile.am: Use it.
1575         * configure: Regenerate.
1576         * configure.in: Likewise.
1577         * Makefile.in: Likewise.
1578         * src/Makefile.in: Likewise.
1579         * libsup++/Makefile.in: Likewise.
1580         * po/Makefile.in: Likewise.
1581         * doc/Makefile.in: Likewise.
1582
1583 2008-07-23  Chris Fairles <chris.fairles@gmail.com>
1584
1585         * include/std/condition_variable: Update to N2691 WD.
1586         * include/std/mutex: Likewise.
1587         * testsuite/30_threads/mutex/cons/assign_neg.cc: Adjust line numbers.
1588         * testsuite/30_threads/mutex/cons/copy_neg.cc: Likewise.
1589         * testsuite/30_threads/recursive_mutex/cons/assign_neg.cc: Likewise.
1590         * testsuite/30_threads/recursive_mutex/cons/copy_neg.cc: Likewise.
1591
1592 2008-07-23  Chris Fairles <chris.fairles@gmail.com>
1593
1594         * acinclude.m4 ([GLIBCXX_CHECK_CLOCK_GETTIME]): Define GLIBCXX_LIBS.
1595         Holds the lib that defines clock_gettime (-lrt or -lposix4).
1596         * src/Makefile.am: Use it.
1597         * configure: Regenerate.
1598         * configure.in: Likewise.
1599         * Makefile.in: Likewise.
1600         * src/Makefile.in: Likewise.
1601         * libsup++/Makefile.in: Likewise.
1602         * po/Makefile.in: Likewise.
1603         * doc/Makefile.in: Likewise.
1604
1605 2008-07-22  Paolo Carlini  <paolo.carlini@oracle.com>
1606
1607         * include/ext/sso_string_base.h
1608         (__sso_string_base<>::__sso_string_base(std::initializer_list<_CharT>,
1609         const _Alloc&)): Remove.
1610         * include/ext/rc_string_base.h
1611         (__rc_string_base<>::__rc_string_base(std::initializer_list<_CharT>,
1612         const _Alloc&)): Likewise.
1613         * include/ext/vstring.h
1614         (__versa_string<>::__versa_string(std::initializer_list<_CharT>,
1615         const _Alloc&)): Adjust.
1616
1617 2008-07-21  Jason Merrill  <jason@redhat.com>
1618
1619         Add initializer_list support as per N2679.
1620         * include/debug/unordered_map: Add initializer_list support.
1621         * include/debug/safe_association.h: Likewise.
1622         * include/debug/unordered_set: Likewise.
1623         * include/debug/vector: Likewise.
1624         * include/debug/deque: Likewise.
1625         * include/debug/map.h: Likewise.
1626         * include/debug/set.h: Likewise.
1627         * include/debug/string: Likewise.
1628         * include/debug/list: Likewise.
1629         * include/debug/multimap.h: Likewise.
1630         * include/tr1_impl/unordered_map: Likewise.
1631         * include/tr1_impl/hashtable: Likewise.
1632         * include/tr1_impl/unordered_set: Likewise.
1633         * include/tr1_impl/regex: Likewise.
1634         * include/std/valarray: Likewise.
1635         * include/std/unordered_map: Likewise.
1636         * include/std/unordered_set: Likewise.
1637         * include/bits/stl_list.h: Likewise.
1638         * include/bits/stl_map.h: Likewise.
1639         * include/bits/stl_set.h: Likewise.
1640         * include/bits/basic_string.h: Likewise.
1641         * include/bits/basic_string.tcc: Likewise.
1642         * include/bits/stl_multimap.h: Likewise.
1643         * include/bits/stl_vector.h: Likewise.
1644         * include/bits/stl_deque.h: Likewise.
1645         * include/bits/stl_multiset.h: Likewise.
1646         * include/bits/stl_bvector.h: Likewise.
1647         * include/ext/vstring.h: Likewise.
1648         * include/ext/rc_string_base.h: Likewise.
1649         * include/ext/sso_string_base.h: Likewise.
1650         * src/Makefile.am (w?string-inst): Build with -std=gnu++0x.
1651         * src/Makefile.in: Likewise.
1652         * config/abi/pre/gnu.ver: Add new w?string exports.
1653         * testsuite/21_strings/basic_string/init-list.cc: New test.
1654         * testsuite/23_containers/vector/init-list.cc: New test.
1655         * testsuite/23_containers/deque/init-list.cc: New test.
1656         * testsuite/23_containers/list/init-list.cc: New test.
1657         * testsuite/23_containers/map/init-list.cc: New test.
1658         * testsuite/23_containers/multimap/init-list.cc: New test.
1659         * testsuite/23_containers/set/init-list.cc: New test.
1660         * testsuite/23_containers/multiset/init-list.cc: New test.
1661         * testsuite/23_containers/unordered_map/init-list.cc: New test.
1662         * testsuite/23_containers/unordered_multimap/init-list.cc: New test.
1663         * testsuite/23_containers/unordered_set/init-list.cc: New test.
1664         * testsuite/23_containers/unordered_multiset/init-list.cc: New test.
1665         * testsuite/26_numerics/valarray/init-list.cc: New test.
1666         * testsuite/28_regex/init-list.cc: New test.
1667         * testsuite/ext/vstring/init-list.cc: New test.
1668         * testsuite/23_containers/vector/requirements/dr438/assign_neg.cc:
1669         Update error lineno.
1670         * testsuite/23_containers/vector/requirements/dr438/insert_neg.cc:
1671         Update error lineno.
1672         * testsuite/23_containers/vector/requirements/dr438/
1673         constructor_1_neg.cc: Update error lineno.
1674         * testsuite/23_containers/vector/requirements/dr438/
1675         constructor_2_neg.cc: Update error lineno.
1676         * testsuite/23_containers/deque/requirements/dr438/assign_neg.cc:
1677         Update error lineno.
1678         * testsuite/23_containers/deque/requirements/dr438/insert_neg.cc:
1679         Update error lineno.
1680         * testsuite/23_containers/deque/requirements/dr438/constructor_1_neg.cc:
1681         Update error lineno.
1682         * testsuite/23_containers/deque/requirements/dr438/constructor_2_neg.cc:
1683         Update error lineno.
1684         * testsuite/23_containers/list/requirements/dr438/assign_neg.cc:
1685         Update error lineno.
1686         * testsuite/23_containers/list/requirements/dr438/insert_neg.cc:
1687         Update error lineno.
1688         * testsuite/23_containers/list/requirements/dr438/constructor_1_neg.cc:
1689         Update error lineno.
1690         * testsuite/23_containers/list/requirements/dr438/constructor_2_neg.cc:
1691         Update error lineno.
1692
1693 2008-07-21  Mark Mitchell  <mark@codesourcery.com>
1694
1695         * config/os/gnu-linux/arm-eabi-extra.ver: New file.
1696         * configure.host: Use it for arm*-*-linux-*eabi.
1697
1698 2008-07-19  Paolo Carlini  <paolo.carlini@oracle.com>
1699
1700         * include/ext/pb_ds/detail/binomial_heap_base_/debug_fn_imps.hpp
1701         (assert_node_consistent): Avoid ambiguous else warning.
1702
1703         * include/ext/pb_ds/detail/debug_map_base.hpp: Include <iostream>.
1704
1705         * include/bits/c++config: In debug-mode (and parallel-mode) set
1706         _GLIBCXX_EXTERN_TEMPLATE to -1, not 0, thus disabling extern
1707         templates only for basic_string (per libstdc++/21674).
1708         * include/bits/basic_string.tcc: Use extern templates when
1709         _GLIBCXX_EXTERN_TEMPLATE > 0.
1710
1711 2008-07-18  Kris Van Hees  <kris.van.hees@oracle.com>
1712             Holger Hopp  <holger.hopp@sap.com>
1713
1714         * config/abi/pre/gnu.ver: Support char16_t and char32_t.
1715         * testsuite/util/testsuite_abi.cc (check_version): Add
1716         CXXABI_1.3.3 to known_versions.
1717
1718 2008-07-16  Paolo Carlini  <paolo.carlini@oracle.com>
1719
1720         * include/debug/vector (insert(iterator, _Tp&&), push_back(_Tp&&)):
1721         Enable only when _Tp != bool.
1722
1723         * testsuite/25_algorithms/heap/1.cc: Avoid unused variable warnings.
1724
1725 2008-07-18  Paolo Carlini  <paolo.carlini@oracle.com>
1726
1727         * testsuite/lib/libstdc++.exp (check_v3_target_c_std): Avoid unused
1728         variable warnings leading to spurious fails of the test.
1729
1730 2008-07-16  Paolo Carlini  <paolo.carlini@oracle.com>
1731
1732         * testsuite/30_threads/recursive_mutex/cons/assign_neg.cc: Adjust
1733         dg-error lines.
1734         * testsuite/30_threads/recursive_mutex/cons/copy_neg.cc: Likewise.
1735         * testsuite/20_util/duration/cons/1_neg.cc: Likewise.
1736
1737         * include/tr1_impl/type_traits: Fix comment typo.
1738
1739 2008-07-16  Paolo Carlini  <paolo.carlini@oracle.com>
1740
1741         * include/bits/unique_ptr.h: Remove stray character.
1742
1743 2008-07-15  Benjamin Kosnik  <bkoz@redhat.com>
1744
1745         * doc/doxygen/user.cfg.in: Add complex, ratio,
1746         intializer_list.
1747         (PREDEFINED): Add _GLIBCXX_USE_C99_STDINT_TR1.
1748         * doc/doxygen/doxygroups.cc: Add std::chrono.
1749         * include/bits/unique_ptr.h (default_delete, unique_ptr): Add markup.
1750         * libsupc++/initializer_list (initializer_list): Same.
1751         * include/std/ratio: Same.
1752         * include/std/chrono: Same.
1753         * include/std/complex: Disambiguate file markup.
1754
1755 2008-07-15  Chris Fairles  <chris.fairles@gmail.com>
1756
1757         * include/std/chrono: New, as per N2661.
1758         * src/chrono.cc: New.
1759         * include/Makefile.am: Update.
1760         * src/Makefile.am: Likewise.
1761         * include/Makefile.in: Regenerate.
1762         * src/Makefile.in: Likewise.
1763         * acinclude.m4: Add tests for clock_gettime and gettimeofday that
1764         define _GLIBCXX_HAS_CLOCK_GETTIME and/or _GLIBCXX_HAS_GETTIMEOFDAY.
1765         * configure.ac: Use them.
1766         * configure: Regenerate.
1767         * config.h.in: Likewise.
1768         * config/abi/pre/gnu.ver: Add symbols for system_clock::now() and
1769         system_clock::is_monotonic.
1770         * testsuite/20_util/duration/cons/1.cc: New.
1771         * testsuite/20_util/duration/cons/2.cc: Likewise.
1772         * testsuite/20_util/duration/cons/1_neg.cc: Likewise.
1773         * testsuite/20_util/duration/requirements/explicit_instantiation/
1774         explicit_instantiation.cc: Likewise.
1775         * testsuite/20_util/duration/arithmetic/1.cc: Likewise.
1776         * testsuite/20_util/duration/arithmetic/2.cc: Likewise.
1777         * testsuite/20_util/duration/comparisons/1.cc: Likewise.
1778         * testsuite/20_util/time_point/requirements/explicit_instantiation/
1779         explicit_instantiation.cc: Likewise.
1780         * testsuite/20_util/time_point/1.cc: Likewise.
1781         * testsuite/20_util/time_point/2.cc: Likewise.
1782         * testsuite/20_util/time_point/3.cc: Likewise.
1783         * testsuite/20_util/clocks/1.cc: Likewise.
1784         * testsuite/17_intro/headers/c++200x/all_multiple_inclusion.cc: Add
1785         missing headers.
1786         * testsuite/17_intro/headers/c++200x/all.cc: Likewise.
1787         * include/precompiled/stdc++.h: Likewise and remove <date_time>.
1788         * doc/doxygen/user.cfg.in: Likewise.
1789
1790 2008-07-15  Paolo Carlini  <paolo.carlini@oracle.com>
1791
1792         PR libstdc++/36832
1793         * include/ext/rope (_Destroy_const): Add.
1794         (rope<>::copy): Call it.
1795         * testsuite/ext/rope/36832.cc: New.
1796
1797 2008-07-15  Johannes Singler  <singler@ira.uka.de>
1798
1799         * include/parallel/find_selectors.h:
1800         Correct name for include guard #ifndef.
1801         * include/parallel/balanced_quicksort.h: Likewise.
1802         * include/parallel/unique_copy.h: Likewise.
1803         * include/parallel/multiway_mergesort.h: Likewise.
1804         * include/parallel/checkers.h: Likewise.
1805         * include/parallel/[various files]:
1806         Add/correct comment for #endif of include guard (at end of file)
1807
1808 2008-07-12  Paolo Carlini  <paolo.carlini@oracle.com>
1809
1810         * include/std/date_time: Remove, per N2549, in WP.
1811         * src/date_time.cc: Likewise.
1812         * config/abi/pre/gnu.ver: Remove <date_time> symbols.
1813         * include/Makefile.am: Remove date_time in std headers.
1814         * src/Makefile.am: Remove date_time.cc to source files.
1815         * include/Makefile.in: Regenerate.
1816         * src/Makefile.in: Likewise.
1817         * testsuite/31_date_time/headers/date_time/types_std.cc: Remove.
1818         * testsuite/31_date_time/headers/date_time/std_c++0x_neg.cc: Likewise.
1819         * testsuite/31_date_time/headers/date_time/functions_std.cc: Likewise.
1820         * testsuite/31_date_time/headers/date_time/synopsis.cc: Likewise.
1821         * testsuite/31_date_time/nanoseconds/requirements/traits.cc: Likewise.
1822         * testsuite/31_date_time/nanoseconds/requirements/duration.cc: Likewise.
1823         * testsuite/31_date_time/system_time/requirements: Likewise.
1824         * testsuite/31_date_time/system_time/requirements/traits.cc: Likewise.
1825         * testsuite/17_intro/headers/c++200x/all.cc: Adjust.
1826         * testsuite/17_intro/headers/c++200x/all_multiple_inclusion.cc: Adjust.
1827
1828 2008-07-10  Johannes Singler  <singler@ira.uka.de>
1829
1830         * include/parallel/balanced_quicksort.h:
1831         (qsb_divide) Replace "*end" by "*(end - 1)" in assertion.
1832
1833 2008-07-09  Benjamin Kosnik  <bkoz@redhat.com>
1834
1835         PR libstdc++/36451
1836         * doc/xml/manual/allocator.xml: Fix links.
1837         * doc/html/*: Regenerate.
1838
1839 2008-07-09  Joseph Myers  <joseph@codesourcery.com>
1840
1841         * libsupc++/unwind-cxx.h (__is_gxx_forced_unwind_class,
1842         __GXX_INIT_FORCED_UNWIND_CLASS): Define for ARM EABI unwinder.
1843         * libsupc++/eh_personality.cc (PERSONALITY_FUNCTION): Call
1844         __GXX_INIT_FORCED_UNWIND_CLASS for forced unwind with ARM EABI
1845         unwinder.
1846         * libsupc++/eh_arm.cc (__cxa_type_match): Use
1847         __is_gxx_forced_unwind_class to check for forced unwind.
1848
1849 2008-07-09  Andreas Beckmann  <gcc@abeckmann.de>
1850
1851         PR libstdc++/36552
1852         * include/ext/pb_ds/detail/left_child_next_sibling_heap_/
1853         null_metadata.hpp: Remove self-include.
1854
1855 2008-07-09  Joseph Myers  <joseph@codesourcery.com>
1856
1857         * testsuite/20_util/make_signed/requirements/typedefs-2.cc,
1858         testsuite/20_util/make_unsigned/requirements/typedefs-2.cc: Use
1859         -Wl,--no-enum-size-warning for arm*-*-linux*eabi.
1860
1861 2008-07-09  Johannes Singler  <singler@ira.uka.de>
1862
1863         PR libstdc++/36729
1864         * include/parallel/random_shuffle.h:
1865         (sequential_random_shuffle) Copy data back.
1866         * testsuite/25_algorithms/random_shuffle/1.cc:
1867         New. Generic random_shuffle functionality test.
1868
1869 2008-07-08  Chris Fairles  <chris.fairles@gmail.com>
1870
1871         * include/std/type_traits: Add common_type.
1872         * testsuite/20_util/common_type/requirements/
1873         explicit_instantiation.cc: New.
1874         * testsuite/20_util/common_type/requirements/
1875         typedefs-1.cc: Likewise.
1876
1877 2008-07-07  Paolo Carlini  <paolo.carlini@oracle.com>
1878
1879         * testsuite/lib/libstdc++.exp (check_v3_target_stdint): New.
1880         * testsuite/lib/dg-options.exp (dg-require-cstdint): New.
1881         * testsuite/20_util/ratio/cons/cons1.cc: Use it.
1882         * testsuite/20_util/ratio/cons/cons_overflow.cc: Likewise.
1883         * testsuite/20_util/ratio/operations/ops1.cc: Likewise.
1884         * testsuite/20_util/ratio/operations/ops2.cc: Likewise.
1885         * testsuite/20_util/ratio/operations/ops3.cc: Likewise.
1886         * testsuite/20_util/ratio/operations/ops_overflow.cc: Likewise.
1887         * testsuite/20_util/ratio/comparisons/comp1.cc: Likewise.
1888         * testsuite/20_util/ratio/comparisons/comp2.cc: Likewise.
1889
1890         * include/std/type_traits: Fix comment typo.
1891
1892 2008-07-06  Roger Sayle  <roger@eyesopen.com>
1893
1894         * include/std/system_error (is_error_code_enum): Use identifier
1895         _Tp instead of _T to avoid conflict with system macro on Darwin.
1896         (is_error_condition_enum): Likewise.
1897
1898 2008-07-05  Paolo Carlini  <paolo.carlini@oracle.com>
1899
1900         * include/bits/postypes.h: Do not include <stdint.h>.
1901
1902         * include/Makefile.am: Reorder.
1903
1904 2008-07-05  Paolo Carlini  <paolo.carlini@oracle.com>
1905
1906         * include/std/ratio: Prefer __INTMAX_MAX__ to INTMAX_MAX (INTMAX_MIN).
1907
1908 2008-07-05  Chris Fairles  <chris.fairles@gmail.com>
1909
1910         * include/std/ratio: Documentation for std::ratio class. Add conditions
1911         to ratio_less to prevent overflow.
1912         * testsuite/20_util/ratio/comparisons/comp2.cc: New.
1913         * testsuite/20_util/ratio/cons/cons_overflow.cc: Update dg-error line
1914         numbers.
1915
1916 2008-07-04  Chris Fairles  <chris.fairles@gmail.com>
1917
1918         * include/std/ratio: New, per N2661.
1919         * include/Makefile.am: Update.
1920         * include/Makefile.in: Regenerate.
1921         * testsuite/20_util/ratio/cons/cons1.cc: New.
1922         * testsuite/20_util/ratio/cons/cons_overflow.cc: Likewise.
1923         * testsuite/20_util/ratio/operations/ops1.cc: Likewise.
1924         * testsuite/20_util/ratio/operations/ops2.cc: Likewise.
1925         * testsuite/20_util/ratio/operations/ops3.cc: Likewise.
1926         * testsuite/20_util/ratio/operations/ops_overflow.cc: Likewise.
1927         * testsuite/20_util/ratio/comparisons/comp1.cc: Likewise.
1928
1929 2008-07-04  Paolo Carlini  <paolo.carlini@oracle.com>
1930
1931         PR libstdc++/36616
1932         * testsuite/22_locale/time_put/put/char/4.cc: Just use es_ES instead.
1933         * testsuite/22_locale/time_put/put/wchar_t/4.cc: Likewise.
1934
1935 2008-07-03  Paolo Carlini  <paolo.carlini@oracle.com>
1936
1937         * testsuite/21_strings/basic_string/numeric_conversions/char/stof.cc:
1938         Improve check on long double limits.
1939         * testsuite/21_strings/basic_string/numeric_conversions/char/stod.cc:
1940         Likewise.
1941         * testsuite/21_strings/basic_string/numeric_conversions/wchar_t/
1942         stof.cc: Likewise.
1943         * testsuite/21_strings/basic_string/numeric_conversions/wchar_t/
1944         stod.cc: Likewise.
1945
1946 2008-07-03  Paolo Carlini  <paolo.carlini@oracle.com>
1947
1948         * libsupc++/Makefile.am: Add initializer_list to the headers.
1949         * libsupc++/Makefile.in: Regenerate.
1950
1951         * libsupc++/initializer_list: Minor cosmetic changes.
1952
1953 2008-07-02  Jason Merrill  <jason@redhat.com>
1954
1955         * libsupc++/initializer_list: Uglify and wrap in
1956         __GXX_EXPERIMENTAL_CXX0X__.
1957         * include/bits/stl_map.h (insert(initializer_list)): Wrap.
1958
1959 2008-07-02  Jason Merrill  <jason@redhat.com>
1960
1961         * libsupc++/initializer_list: New file.
1962         * include/bits/stl_map.h (insert(initializer_list)): New method.
1963
1964 2008-06-30  Alfred E. Heggestad  <aeh@db.org>
1965
1966         * include/backward/backward_warning.h: Fix typo.
1967
1968 2008-06-29  Paolo Carlini  <paolo.carlini@oracle.com>
1969
1970         * src/string_conversions.cc: Remove.
1971         * config/abi/pre/gnu.ver: Delete exports.
1972         * src/Makefile.am: Update.
1973         * include/ext/string_conversions.h: Add.
1974         * include/Makefile.am: Update.
1975         * include/bits/basic_string.h: Include string_conversions.h,
1976         define numeric conversion functions.
1977         * include/ext/vstring.h: Likewise.
1978         * src/Makefile.in: Regenerate.
1979         * include/Makefile.in: Regenerate.
1980
1981 2008-06-29  Paolo Carlini  <paolo.carlini@oracle.com>
1982
1983         * include/bits/stl_algo.h (copy_n): Add in C++0x mode.
1984         * include/bits/algorithmfwd.h: Add.
1985         * include/bits/stl_uninitialized.h (uninitialized_copy_n): Add
1986         in C++0x mode.
1987         * testsuite/20_util/specialized_algorithms/uninitialized_copy_n/
1988         move_iterators/1.cc: New
1989         * testsuite/25_algorithms/headers/algorithm/synopsis.cc: Update.
1990         * testsuite/25_algorithms/copy_n/1.cc: New.
1991         * testsuite/25_algorithms/copy_n/2.cc: Likewise.
1992         * testsuite/25_algorithms/copy_n/3.cc: Likewise.
1993         * testsuite/25_algorithms/copy_n/4.cc: Likewise.
1994         * testsuite/25_algorithms/copy_n/move_iterators/1.cc: Likewise.
1995         * testsuite/25_algorithms/copy_n/requirements/
1996         explicit_instantiation/2.cc: Likewise.
1997         * testsuite/25_algorithms/partition_point/requirements/
1998         explicit_instantiation/pod.cc: Likewise.
1999
2000 2008-06-28  Paolo Carlini  <paolo.carlini@oracle.com>
2001
2002         * include/bits/stl_algo.h (partition_point): Add in C++0x mode.
2003         * include/bits/algorithmfwd.h: Add.
2004         * testsuite/25_algorithms/headers/algorithm/synopsis.cc: Update.
2005         * testsuite/25_algorithms/partition_point/1.cc: New.
2006         * testsuite/25_algorithms/partition_point/check_type.cc: Likewise.
2007         * testsuite/25_algorithms/partition_point/requirements/
2008         explicit_instantiation/2.cc: Likewise.
2009         * testsuite/25_algorithms/partition_point/requirements/
2010         explicit_instantiation/pod.cc: Likewise.
2011
2012 2008-06-28  Paolo Carlini  <paolo.carlini@oracle.com>
2013
2014         PR libstdc++/36660
2015         * include/ext/pb_ds/detail/resize_policy/
2016         sample_resize_trigger.hpp: Remove spurious namespace end.
2017
2018 2008-06-27  Mark Mitchell  <mark@codesourcery.com>
2019
2020         * libsupc++/vec.cc (__aeabi_vec_dtor_cookie): Handle NULL array
2021         address.
2022         (__aeabi_vec_delete): Likewise.
2023         (__aeabi_vec_delete3): Likewise.
2024         (__aeabi_vec_delete3_nodtor): Likewise.
2025
2026 2008-06-27  Paolo Carlini  <paolo.carlini@oracle.com>
2027
2028         * include/bits/stl_algo.h (is_partitioned): Add in C++0x mode.
2029         * include/bits/algorithmfwd.h: Add.
2030         * testsuite/25_algorithms/headers/algorithm/synopsis.cc: Update.
2031         * testsuite/25_algorithms/is_partitioned/1.cc: New.
2032         * testsuite/25_algorithms/is_partitioned/check_type.cc: Likewise.
2033         * testsuite/25_algorithms/is_partitioned/requirements/
2034         explicit_instantiation/2.cc: Likewise.
2035         * testsuite/25_algorithms/is_partitioned/requirements/
2036         explicit_instantiation/pod.cc: Likewise.
2037
2038 2008-06-27  Paolo Carlini  <paolo.carlini@oracle.com>
2039
2040         * include/bits/stl_numeric.h (iota): Add in C++0x mode.
2041         * testsuite/util/testsuite_character.h (pod_int): Add operator++
2042         in C++0x mode.
2043         * testsuite/util/testsuite_api.h (NonDefaultConstructible): Likewise.
2044         * testsuite/26_numerics/iota/1.cc: New.
2045         * testsuite/26_numerics/iota/requirements/explicit_instantiation/
2046         2.cc: Likewise.
2047         * testsuite/26_numerics/iota/requirements/explicit_instantiation/
2048         pod.cc: Likewise.
2049
2050         * include/ext/algorithm: Do not fiddle with the legacy headers.
2051
2052         * testsuite/26_numerics/partial_sum/1.cc: Minor changes, comments,
2053         style.
2054         * testsuite/26_numerics/accumulate/1.cc: Likewise.
2055         * testsuite/26_numerics/adjacent_difference/1.cc: Likewise.
2056         * testsuite/26_numerics/inner_product/1.cc: Likewise.
2057
2058 2008-06-26  Paolo Carlini  <paolo.carlini@oracle.com>
2059
2060         * include/bits/stl_algo.h (partition_copy): Add in C++0x mode.
2061         * include/bits/algorithmfwd.h: Add.
2062         * testsuite/25_algorithms/headers/algorithm/synopsis.cc: Update.
2063         * testsuite/25_algorithms/partition_copy/1.cc: New.
2064         * testsuite/25_algorithms/partition_copy/check_type.cc: Likewise.
2065         * testsuite/25_algorithms/partition_copy/requirements/
2066         explicit_instantiation/2.cc: Likewise.
2067         * testsuite/25_algorithms/partition_copy/requirements/
2068         explicit_instantiation/pod.cc: Likewise.
2069
2070 2008-06-26  Chris Fairles  <chris.fairles@gmail.com>
2071
2072         * testsuite/20_util/unique_ptr/cons/pointer_array.cc: New.
2073         * testsuite/20_util/unique_ptr/cons/pointer.cc: Likewise.
2074         * testsuite/20_util/unique_ptr/cons/pointer_array_convertible.cc:
2075         Likewise.
2076         * testsuite/20_util/unique_ptr/assign/move_array.cc: Likewise.
2077         * testsuite/20_util/unique_ptr/assign/move.cc: Likewise.
2078         * testsuite/20_util/unique_ptr/specialized_algorithms/
2079         comparisons_array.cc: Likewise.
2080         * testsuite/20_util/unique_ptr/specialized_algorithms/comparisons.cc:
2081         Likewise
2082         * testsuite/20_util/unique_ptr/specialized_algorithms/swap.cc:
2083         Likewise.
2084
2085 2008-06-26  Paolo Carlini  <paolo.carlini@oracle.com>
2086
2087         * include/parallel/base.h (plus, multiplies): Use __typeof__,
2088         not typeof.
2089
2090 2008-06-25  Paolo Carlini  <paolo.carlini@oracle.com>
2091
2092         * testsuite/29_atomics/atomic_flag/cons/default.cc: Avoid -Wall
2093         warnings.
2094         * testsuite/29_atomics/atomic_flag/cons/aggregate.cc: Likewise.
2095         * testsuite/29_atomics/headers/cstdatomic/types_std_c++0x.cc:
2096         Likewise.
2097         * testsuite/29_atomics/headers/stdatomic.h/types.c: Likewise.
2098         * testsuite/util/testsuite_common_types.h (struct assignable,
2099         struct default_constructible, struct copy_constructible,
2100         struct explicit_value_constructible): Use a tad of simulated
2101         concept checking techniques to avoid spurious warnings.
2102         * testsuite/29_atomics/atomic/cons/assign_neg.cc: Adjust dg-error
2103         markers.
2104         * testsuite/29_atomics/atomic/cons/copy_neg.cc: Likewise.
2105
2106 2008-06-25  Paolo Carlini  <paolo.carlini@oracle.com>
2107
2108         * include/bits/stl_algo.h (__find_if_not, find_if_not, all_of,
2109         any_of, none_of): Add in C++0x, per N2666.
2110         * include/bits/algorithmfwd.h: Update.
2111         * testsuite/25_algorithms/headers/algorithm/synopsis.cc: Likewise.
2112         * testsuite/25_algorithms/all_of/check_type.cc: New.
2113         * testsuite/25_algorithms/all_of/1.cc: Likewise.
2114         * testsuite/25_algorithms/all_of/requirements/explicit_instantiation/
2115         2.cc: Likewise.
2116         * testsuite/25_algorithms/all_of/requirements/explicit_instantiation/
2117         pod.cc: Likewise.
2118         * testsuite/25_algorithms/any_of/check_type.cc: Likewise.
2119         * testsuite/25_algorithms/any_of/1.cc: Likewise.
2120         * testsuite/25_algorithms/any_of/requirements/explicit_instantiation/
2121         2.cc: Likewise.
2122         * testsuite/25_algorithms/any_of/requirements/explicit_instantiation/
2123         pod.cc: Likewise.
2124         * testsuite/25_algorithms/none_of/check_type.cc: Likewise.
2125         * testsuite/25_algorithms/none_of/1.cc: Likewise.
2126         * testsuite/25_algorithms/none_of/requirements/explicit_instantiation/
2127         2.cc: Likewise.
2128         * testsuite/25_algorithms/none_of/requirements/explicit_instantiation/
2129         pod.cc: Likewise.
2130         * testsuite/25_algorithms/find_if_not/check_type.cc: Likewise.
2131         * testsuite/25_algorithms/find_if_not/1.cc: Likewise.
2132         * testsuite/25_algorithms/find_if_not/requirements/
2133         explicit_instantiation/2.cc: Likewise.
2134         * testsuite/25_algorithms/find_if_not/requirements/
2135         explicit_instantiation/pod.cc: Likewise.
2136         * testsuite/25_algorithms/copy_if/check_type.cc: Likewise.
2137         * testsuite/25_algorithms/remove_copy_if/check_type.cc: Likewise.
2138         * testsuite/25_algorithms/find_if/1.cc: Minor tweaks.
2139
2140 2008-06-24  Benjamin Kosnik  <bkoz@redhat.com>
2141
2142         * doc/xml/manual/parallel_mode.xml: Clarify use of explicit
2143         parallel algorithms.
2144         * doc/xml/manual/using.xml: Markup fixes caught by validation check.
2145         * doc/xml/manual/test.xml: Remove empty para tags.
2146
2147         * doc/html/*: Regenerate.
2148
2149 2008-06-24  Paolo Carlini  <paolo.carlini@oracle.com>
2150
2151         * include/bits/stl_algo.h (remove_if): Cast __pred result to bool.
2152         (copy_if): Add, per N2666.
2153         * testsuite/25_algorithms/copy_if/requirements/explicit_instantiation/
2154         2.cc: New.
2155         * testsuite/25_algorithms/copy_if/requirements/explicit_instantiation/
2156         pod.cc: Likewise.
2157         * testsuite/25_algorithms/headers/algorithm/synopsis.cc: Update.
2158
2159 2008-06-24  Paolo Carlini  <paolo.carlini@oracle.com>
2160             Chalathip Thumkanon  <chalathip@gmail.com>
2161
2162         PR libstdc++/36612
2163         * include/ext/pb_ds/exception.hpp (__throw_container_error,
2164         __throw_insert_error, __throw_join_error, __throw_resize_error):
2165         Mark inline.
2166
2167 2008-06-22  Paolo Carlini  <paolo.carlini@oracle.com>
2168
2169         * include/bits/move.h (swap(_Tp (&)[_Nm], _Tp (&)[_Nm])): Add,
2170         per DR 809.
2171         * include/bits/algorithmfwd.h: Add.
2172         * doc/xml/manual/intro.xml: Add an entry for DR 809.
2173         * testsuite/25_algorithms/swap/dr809.cc: New.
2174
2175         * testsuite/25_algorithms/swap/requirements/explicit_instantiation/
2176         2.cc: Remove stray empty line.
2177
2178 2008-06-21  Paolo Carlini  <paolo.carlini@oracle.com>
2179
2180         * include/bits/stl_move.h: Rename to move.h.
2181         * include/std/utility: Adjust.
2182         * include/ext/vstring_util.h: Likewise.
2183         * include/ext/throw_allocator.h: Likewise.
2184         * include/ext/pool_allocator.h: Likewise.
2185         * include/ext/bitmap_allocator.h: Likewise.
2186         * include/ext/new_allocator.h: Likewise.
2187         * include/ext/malloc_allocator.h: Likewise.
2188         * include/ext/array_allocator.h: Likewise.
2189         * include/ext/mt_allocator.h: Likewise.
2190         * include/bits/stl_algobase.h: Likewise.
2191         * include/bits/stl_heap.h: Likewise.
2192         * include/bits/stl_pair.h: Likewise.
2193         * include/bits/stl_iterator.h: Likewise.
2194         * testsuite/util/testsuite_allocator.h: Likewise.
2195         * testsuite/util/testsuite_iterators.h: Likewise.
2196         * include/Makefile.am: Likewise.
2197         * include/Makefile.in: Regenerate.
2198
2199 2008-06-21  Chris Fairles  <chris.fairles@gmail.com>
2200
2201         * include/bits/unique_ptr.h: New.
2202         * include/std/memory: Adjust.
2203         * include/Makefile.am: Add.
2204         * testsuite/20_util/unique_ptr/requirements/explicit_instantiation/
2205         explicit_instantiation.cc: New.
2206         * testsuite/20_util/unique_ptr/assign/assign.cc: Likewise.
2207         * include/Makefile.in: Regenerate.
2208
2209 2008-06-21  Jonathan Wakely  <jwakely.gcc@gmail.com>
2210
2211         * include/c_global/climits, include/tr1/climits: Add parentheses.
2212
2213 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2214
2215         * configure: Regenerate.
2216
2217 2008-06-17  Chris Fairles  <chris.fairles@gmail.com>
2218
2219         * include/bits/stl_iterator_base_funcs.h (next, prev): Add in
2220         C++0x mode.
2221         * testsuite/24_iterators/operations/next.cc: New.
2222         * testsuite/24_iterators/operations/prev.cc: Likewise.
2223
2224 2008-06-17  Paolo Carlini  <paolo.carlini@oracle.com>
2225
2226         * src/string_conversions.cc (__to_xstring<>): New.
2227         (to_string, to_wstring): Use it.
2228
2229 2008-06-16  Paolo Carlini  <paolo.carlini@oracle.com>
2230
2231         * include/bits/basic_string.h (stod, stof, stoi, stol, stold, stoll,
2232         stoul, stoull, to_string, to_wstring): Declare in C++0x mode.
2233         * src/string_conversions.cc: Add.
2234         * src/Makefile.am: Update.
2235         * config/abi/pre/gnu.ver: Adjust exports.
2236         * src/Makefile.in: Regenerate.
2237         * testsuite/21_strings/basic_string/numeric_conversions/char/stod.cc:
2238         New.
2239         * testsuite/21_strings/basic_string/numeric_conversions/char/stof.cc:
2240         Likewise.
2241         * testsuite/21_strings/basic_string/numeric_conversions/char/stoi.cc:
2242         Likewise.
2243         * testsuite/21_strings/basic_string/numeric_conversions/char/stol.cc:
2244         Likewise.
2245         * testsuite/21_strings/basic_string/numeric_conversions/char/stold.cc:
2246         Likewise.
2247         * testsuite/21_strings/basic_string/numeric_conversions/char/stoll.cc:
2248         Likewise.
2249         * testsuite/21_strings/basic_string/numeric_conversions/char/stoul.cc:
2250         Likewise.
2251         * testsuite/21_strings/basic_string/numeric_conversions/char/stoull.cc:
2252         Likewise.
2253         * testsuite/21_strings/basic_string/numeric_conversions/char/
2254         to_string.cc: Likewise.
2255         * testsuite/21_strings/basic_string/numeric_conversions/wchar_t/
2256         stod.cc: New.
2257         * testsuite/21_strings/basic_string/numeric_conversions/wchar_t/
2258         stof.cc: Likewise.
2259         * testsuite/21_strings/basic_string/numeric_conversions/wchar_t/
2260         stoi.cc: Likewise.
2261         * testsuite/21_strings/basic_string/numeric_conversions/wchar_t/
2262         stol.cc: Likewise.
2263         * testsuite/21_strings/basic_string/numeric_conversions/wchar_t/
2264         stold.cc: Likewise.
2265         * testsuite/21_strings/basic_string/numeric_conversions/wchar_t/
2266         stoll.cc: Likewise.
2267         * testsuite/21_strings/basic_string/numeric_conversions/wchar_t/
2268         stoul.cc: Likewise.
2269         * testsuite/21_strings/basic_string/numeric_conversions/wchar_t/
2270         stoull.cc: Likewise.
2271         * testsuite/21_strings/basic_string/numeric_conversions/wchar_t/
2272         to_wstring.cc: Likewise.
2273
2274 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2275
2276         * include/Makefile.am: Remove trailing white space, fix typo.
2277         (parallel_headers): Remove duplicate file, sort entries.
2278         * include/Makefile.in: Regenerate.
2279
2280 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2281
2282         * src/condition_variable.cc (~condition_variable): Drop unused
2283         variable.
2284
2285 2008-06-13  Paolo Carlini  <paolo.carlini@oracle.com>
2286
2287         * include/bits/stl_deque.h (deque<>::push_back(_Args&&...),
2288         deque<>::push_front(_Args&&...)): Remove.
2289         (deque<>::push_back(value_type&&),
2290         deque<>::push_front(value_type&&)): Add.
2291         (deque<>::push_back(const value_type&),
2292         deque<>::push_front(const value_type&)): Add back.
2293         (deque<>::emplace_back(_Args&&...),
2294         deque<>::emplace_front(_Args&&...)): Declare...
2295         * include/bits/deque.tcc: ... and define.
2296         * include/bits/stl_list.h (list<>::push_back(_Args&&...),
2297         list<>::push_front(_Args&&...)): Remove.
2298         (list<>::push_back(value_type&&), list<>::push_front(value_type&&),
2299         list<>::emplace_back(_Args&&...), list<>::emplace_front(_Args&&...)):
2300         Add.
2301         (list<>::push_back(const value_type&),
2302         list<>::push_front(const value_type&)): Add back.
2303         * include/bits/stl_vector.h (vector<>::push_back(_Args&&...)): Remove.
2304         (vector<>::push_back(value_type&&)): Add.
2305         (vector<>::push_back(const value_type&)): Add back.
2306         (vector<>::emplace_back(_Args&&...)): Declare...
2307         * include/bits/vector.tcc: ... and define.
2308         * include/bits/stl_queue.h (queue<>::push(_Args&&...),
2309         priority_queue<>::push(_Args&&...)): Remove.
2310         (queue<>::push(value_type&&), queue<>::emplace(_Args&&...),
2311         priority_queue<>::push(value_type&&),
2312         priority_queue<>::emplace(_Args&&...)): Add.
2313         (queue<>::push(const value_type&),
2314         priority_queue<>::push(const value_type&)): Add back.
2315         * include/bits/stl_stack.h (stack<>::push(_Args&&...)): Remove.
2316         (stack<>::push(value_type&&), stack<>::emplace(_Args&&...)): Add.
2317         (stack<>::push(const value_type&)): Add back.
2318         * include/debug/deque (deque<>::push_back(_Args&&...),
2319         deque<>::push_front(_Args&&...)): Remove.
2320         (deque<>::push_back(value_type&&), deque<>::push_front(value_type&&),
2321         deque<>::emplace_back(_Args&&...), deque<>::emplace_front(_Args&&...)):
2322         Add.
2323         (deque<>::push_back(const value_type&),
2324         deque<>::push_front(const value_type&)): Add back.
2325         * include/debug/list (list<>::push_back(_Args&&...),
2326         list<>::push_front(_Args&&...)): Remove.
2327         (list<>::push_back(value_type&&), list<>::push_front(value_type&&),
2328         list<>::emplace_back(_Args&&...), list<>::emplace_front(_Args&&...)):
2329         Add.
2330         (list<>::push_back(const value_type&),
2331         list<>::push_front(const value_type&)): Add back.
2332         * include/debug/vector (vector<>::push_back(_Args&&...)): Remove.
2333         (vector<>::push_back(value_type&&),
2334         vector<>::emplace_back(_Args&&...)): Add.
2335         (vector<>::push_back(const value_type&)): Add back.
2336         * testsuite/23_containers/deque/requirements/dr438/assign_neg.cc:
2337         Adjust dg-error line numbers.
2338         * testsuite/23_containers/deque/requirements/dr438/insert_neg.cc:
2339         Likewise.
2340         * testsuite/23_containers/deque/requirements/dr438/
2341         constructor_1_neg.cc: Likewise.
2342         * testsuite/23_containers/deque/requirements/dr438/
2343         constructor_2_neg.cc: Likewise.
2344         * testsuite/23_containers/list/requirements/dr438/assign_neg.cc:
2345         Adjust dg-error line numbers.
2346         * testsuite/23_containers/list/requirements/dr438/insert_neg.cc:
2347         Likewise.
2348         * testsuite/23_containers/list/requirements/dr438/constructor_1_neg.cc:
2349         Likewise.
2350         * testsuite/23_containers/list/requirements/dr438/constructor_2_neg.cc:
2351         Likewise.
2352         * testsuite/23_containers/vector/requirements/dr438/assign_neg.cc:
2353         Adjust dg-error line numbers.
2354         * testsuite/23_containers/vector/requirements/dr438/insert_neg.cc:
2355         Likewise.
2356         * testsuite/23_containers/vector/requirements/dr438/
2357         constructor_1_neg.cc: Likewise.
2358         * testsuite/23_containers/vector/requirements/dr438/
2359         constructor_2_neg.cc: Likewise.
2360
2361 2008-06-13  Paolo Carlini  <paolo.carlini@oracle.com>
2362
2363         * include/tr1_impl/array (array<>::assign): Do not define in
2364         C++0x mode, per DR 776...
2365         (array<>::fill): ... define instead.
2366         * doc/xml/manual/intro.xml: Add an entry for DR 776.
2367         * testsuite/23_containers/array/requirements/fill.cc: New.
2368
2369 2008-06-12  Paolo Carlini  <paolo.carlini@oracle.com>
2370
2371         * include/std/complex (pow(const complex<>&, int)): Do not define in
2372         C++0x mode, per DR 844.
2373         * include/tr1/complex (pow(const complex<>&, int)): Remove.
2374         * doc/xml/manual/intro.xml: Add an entry for DR 844.
2375         * testsuite/26_numerics/complex/dr844.cc: New.
2376         * testsuite/tr1/8_c_compatibility/complex/overloads_int.cc: Adjust.
2377
2378 2008-06-11  Paolo Carlini  <paolo.carlini@oracle.com>
2379
2380         * include/tr1_impl/hashtable (_Hashtable<>::cbegin(size_type),
2381         cend(size_type)): Add per DR 691.
2382         * testsuite/23_containers/unordered_map/requirements/cliterators.cc:
2383         New.
2384         * testsuite/23_containers/unordered_multimap/requirements/
2385         cliterators.cc: Likewise.
2386         * testsuite/23_containers/unordered_set/requirements/cliterators.cc:
2387         Likewise.
2388         * testsuite/23_containers/unordered_multiset/requirements/
2389         cliterators.cc: Likewise.
2390         * doc/xml/manual/intro.xml: Add an entry for DR 691.
2391
2392 2008-06-11  Matthias Klose  <doko@ubuntu.com>
2393
2394         * testsuite/30_threads/lock_error, testsuite/30_threads/once_flag:
2395         Remove empty directories.
2396
2397 2008-06-07  Joseph Myers  <joseph@codesourcery.com>
2398
2399         * configure.host (xscale, ep9312, m680[246]0, solaris2.5,
2400         solaris2.5.[0-9], solaris2.6, windiss*): Remove.
2401         * crossconfig.m4 (*-solaris2.5, *-solaris2.6, *-windiss*): Remove.
2402         * configure: Regenerate.
2403         * config/os/solaris/solaris2.5: Remove directory.
2404         * config/os/solaris/solaris2.6: Remove directory.
2405         * config/os/windiss: Remove directory.
2406
2407 2008-06-06  Benjamin Kosnik  <bkoz@redhat.com>
2408
2409         * doc/xml/manual/using.xml: Outline exception topics.
2410
2411         * include/ext/pb_ds/detail/binary_heap_/insert_fn_imps.hpp: Format.
2412         * include/ext/pb_ds/detail/left_child_next_sibling_heap_/
2413         policy_access_fn_imps.hpp: Same.
2414         * include/ext/pb_ds/priority_queue.hpp: Same.
2415         * include/ext/throw_allocator.h: Same.
2416
2417         * include/ext/pb_ds/tag_and_trait.hpp (string_tag): New tag.
2418         (sequence_tag): New tag. Doxygen markup fixes.
2419
2420         * testsuite/lib/libstdc++.exp: Remove twister_ran_gen.cc source file.
2421
2422         * testsuite/performance/ext/pb_ds/text_find_timing.cc: Fix
2423         comment typo, include paths, format.
2424         * testsuite/performance/ext/pb_ds/tree_text_insert_timing.cc: Same.
2425         * testsuite/performance/ext/pb_ds/
2426         hash_random_int_erase_mem_usage.cc: Same.
2427         * testsuite/performance/ext/pb_ds/
2428         random_int_subscript_find_timing.cc: Same.
2429         * testsuite/performance/ext/pb_ds/
2430         priority_queue_text_push_timing.cc: Same.
2431         * testsuite/performance/ext/pb_ds/tree_split_join_timing.cc: Same.
2432         * testsuite/performance/ext/pb_ds/random_int_find_timing.cc: Same.
2433         * testsuite/performance/ext/pb_ds/multimap_text_insert_mem_usage.hpp
2434         * testsuite/performance/ext/pb_ds/multimap_text_find_timing.hpp
2435         * testsuite/performance/ext/pb_ds/
2436         priority_queue_random_int_push_timing.cc: Same.
2437         * testsuite/performance/ext/pb_ds/priority_queue_text_modify_timing.hpp
2438         * testsuite/performance/ext/pb_ds/tree_order_statistics_timing.cc: Same.
2439         * testsuite/performance/ext/pb_ds/
2440         priority_queue_text_push_pop_timing.cc: Same.
2441         * testsuite/performance/ext/pb_ds/
2442         priority_queue_text_join_timing.cc: Same.
2443         * testsuite/performance/ext/pb_ds/
2444         priority_queue_random_int_push_pop_timing.cc: Same.
2445         * testsuite/performance/ext/pb_ds/
2446         random_int_subscript_insert_timing.cc: Same.
2447         * testsuite/performance/ext/pb_ds/tree_text_lor_find_timing.cc: Same.
2448         * testsuite/performance/ext/pb_ds/multimap_text_insert_timing.hpp
2449         * testsuite/performance/ext/pb_ds/
2450         priority_queue_text_pop_mem_usage.cc: Same.
2451         * testsuite/performance/ext/pb_ds/
2452         hash_zlob_random_int_find_timing.cc: Same.
2453         * testsuite/ext/pb_ds/regression/hash_data_map_rand.cc: Same.
2454         * testsuite/ext/pb_ds/regression/trie_data_map_rand.cc: Same.
2455         * testsuite/ext/pb_ds/regression/list_update_no_data_map_rand.cc: Same.
2456         * testsuite/ext/pb_ds/regression/tree_no_data_map_rand.cc: Same.
2457         * testsuite/ext/pb_ds/regression/list_update_data_map_rand.cc: Same.
2458         * testsuite/ext/pb_ds/regression/hash_no_data_map_rand.cc: Same.
2459         * testsuite/ext/pb_ds/regression/priority_queue_rand.cc: Same.
2460         * testsuite/ext/pb_ds/regression/tree_data_map_rand.cc: Same.
2461         * testsuite/ext/pb_ds/regression/trie_no_data_map_rand.cc: Same.
2462         * testsuite/util/regression/trait/priority_queue/trait.hpp: Same.
2463         * testsuite/util/regression/trait/erase_if_fn.hpp: Same.
2464         * testsuite/util/regression/trait/assoc/native_type_trait.hpp: Same.
2465         * testsuite/util/regression/trait/assoc/node_update_trait.hpp: Same.
2466         * testsuite/util/regression/trait/assoc/get_set_load_trait.hpp: Same.
2467         * testsuite/util/regression/trait/assoc/get_set_loads_trait.hpp: Same.
2468         * testsuite/util/regression/trait/assoc/trait.hpp: Same.
2469         * testsuite/util/regression/trait/assoc/resize_trait.hpp: Same.
2470         * testsuite/util/regression/trait/assoc/type_trait.hpp: Same.
2471         * testsuite/util/regression/trait/assoc/to_string.hpp: Same.
2472         * testsuite/util/regression/basic_type.hpp: Same.
2473         * testsuite/util/common_type/priority_queue/string_form.hpp: Same.
2474         * testsuite/util/common_type/priority_queue/detail/
2475         ds_string_form.hpp: Same.
2476         * testsuite/util/common_type/assoc/string_form.hpp: Same.
2477         * testsuite/util/common_type/assoc/detail/
2478         resize_policy_string_form.hpp: Same.
2479         * testsuite/util/common_type/assoc/detail/
2480         trigger_policy_string_form.hpp: Same.
2481         * testsuite/util/common_type/assoc/detail/
2482         comb_hash_fn_string_form.hpp: Same.
2483         * testsuite/util/common_type/assoc/detail/ds_string_form.hpp: Same.
2484         * testsuite/util/common_type/assoc/detail/
2485         size_policy_string_form.hpp: Same.
2486         * testsuite/util/common_type/assoc/detail/
2487         probe_fn_string_form.hpp: Same.
2488         * testsuite/util/common_type/assoc/detail/
2489         list_update_policy_string_form.hpp: Same.
2490         * testsuite/util/common_type/assoc/detail/
2491         store_hash_string_form.hpp: Same.
2492         * testsuite/util/common_type/assoc/native_set.hpp: Same.
2493         * testsuite/util/io/prog_bar.cc: Same.
2494
2495         * testsuite/util/regression/rand/io: Remove.
2496         * testsuite/util/regression/rand/io/priority_queue: Same.
2497         * testsuite/util/regression/rand/io/assoc: Same.
2498         * testsuite/util/regression/rand/io/priority_queue/
2499         xml_formatter.hpp: Consolidate this...
2500         * testsuite/util/regression/rand/io/assoc/xml_formatter.hpp: ...this
2501         * testsuite/util/regression/rand/io/xml_formatter.hpp: ... and this
2502         * testsuite/util/regression/rand/xml_formatter.hpp: ...here.
2503
2504         * testsuite/util/regression/rand/priority_queue/
2505         container_rand_regression_test.hpp:To ...
2506         container_rand_regression_test.h: ... this.
2507         * testsuite/util/regression/rand/priority_queue/detail/*.hpp:To ...
2508         * testsuite/util/regression/rand/priority_queue/
2509         container_rand_regression_test.tcc: ... this.
2510         PB_DS_THROW_IF_FAIL: Change to _GLIBCXX_THROW_IF, adjust predicate.
2511         PB_DS_SET_DESTRUCT_PRINT: Fold inline.
2512         PB_DS_CANCEL_DESTRUCT_PRINT: Fold inline.
2513         * testsuite/util/regression/rand/priority_queue/
2514         rand_regression_test.hpp: Adjust includes.
2515
2516         * testsuite/util/regression/rand/assoc/
2517         container_rand_regression_test.hpp: To ...
2518         * testsuite/util/regression/rand/assoc/
2519         container_rand_regression_test.h: ... this.
2520         * testsuite/util/regression/rand/assoc/detail/*.hpp:To ...
2521         * testsuite/util/regression/rand/assoc/
2522         container_rand_regression_test.tcc: ...this.
2523         * testsuite/util/regression/rand/assoc/rand_regression_test.hpp: Adjust
2524         includes.
2525
2526         * testsuite/util/regression/priority_queue: Remove.
2527         * testsuite/util/regression/assoc: Remove.
2528         * testsuite/util/regression/priority_queue/
2529         common_type.hpp: Consolidate this...
2530         * testsuite/util/regression/assoc/common_type.hpp: ... and this
2531         * testsuite/util/regression/common_type.hpp: ...here.
2532
2533         * testsuite/util/rng: Remove.
2534         * testsuite/util/rng/twister_rand_gen.cc: Consolidate...
2535         * testsuite/util/rng/twister_rand_gen.hpp: ... and this
2536         * testsuite/util/testsuite_rng.h: ...here.
2537
2538         * testsuite/util/native_type/priority_queue: Remove.
2539         * testsuite/util/native_type/priority_queue/
2540         native_priority_queue.hpp: To...
2541         * testsuite/util/native_type/native_priority_queue.hpp: ...here.
2542
2543         * testsuite/util/native_type/assoc: Remove.
2544         * testsuite/util/native_type/assoc/native_multimap.hpp: To...
2545         * testsuite/util/native_type/assoc/native_tree_tag.hpp: To...
2546         * testsuite/util/native_type/assoc/native_hash_multimap.hpp: To...
2547         * testsuite/util/native_type/assoc/native_set.hpp: To...
2548         * testsuite/util/native_type/assoc/native_map.hpp: To...
2549         * testsuite/util/native_type/assoc/native_hash_set.hpp: To...
2550         * testsuite/util/native_type/assoc/native_hash_tag.hpp: To...
2551         * testsuite/util/native_type/assoc/native_hash_map.hpp: To...
2552         * testsuite/util/native_type/native_multimap.hpp: ...here.
2553         * testsuite/util/native_type/native_tree_tag.hpp: ...here.
2554         * testsuite/util/native_type/native_hash_multimap.hpp: ...here.
2555         * testsuite/util/native_type/native_set.hpp: ...here.
2556         * testsuite/util/native_type/native_map.hpp: ...here.
2557         * testsuite/util/native_type/native_hash_set.hpp: ...here.
2558         * testsuite/util/native_type/native_hash_tag.hpp: ...here.
2559         * testsuite/util/native_type/native_hash_map.hpp: ...here.
2560
2561         * testsuite/util/common_type/priority_queue/common_type.hpp:
2562         Make include guard distinct.
2563         * testsuite/util/common_type/assoc/common_type.hpp: Same.
2564
2565 2008-06-06  Joseph Myers  <joseph@codesourcery.com>
2566
2567         * configure.ac: Do not check for gconv.h.
2568         * crossconfig.m4 (GLIBCXX_CROSSCONFIG): Do not test for gconv.h or
2569         gconf.h.  For glibc and uClibc systems, define
2570         _GLIBCXX_USE_RANDOM_TR1 and HAVE_MMAP and use AC_LC_MESSAGES and
2571         AM_ICONV.
2572         * configure, config.h.in: Regenerate.
2573
2574 2008-06-06  Joseph Myers  <joseph@codesourcery.com>
2575
2576         * testsuite/17_intro/headers/all.cc,
2577         testsuite/17_intro/headers/all_c++200x_compatibility.cc,
2578         testsuite/17_intro/headers/all_pedantic_errors.cc,
2579         testsuite/ext/headers.cc: Only include
2580         <ext/codecvt_specializations.h> and <ext/enc_filebuf.h> if
2581         _GLIBCXX_HAVE_ICONV.
2582
2583 2008-06-05  Johannes Singler  <singler@ira.uka.de>
2584
2585         * include/parallel/random_shuffle.h:
2586         (parallel_random_shuffle_drs) Get the actual number of
2587         threads after entering the parallel region. Indentation.
2588         * include/parallel/algo.h: (random_shuffle(begin, end))
2589         Add namespace qualification to avoid ambiguity.
2590
2591 2008-06-04  Benjamin Kosnik  <bkoz@redhat.com>
2592
2593         * include/ext/pb_ds/assoc_container.hpp: Change allocator typedef
2594         to allocator_type, as per existing conventions.
2595         * include/ext/pb_ds/detail/binomial_heap_base_/
2596         binomial_heap_base_.hpp: Same.
2597         * include/ext/pb_ds/detail/cc_hash_table_map_/cc_ht_map_.hpp: Same.
2598         * include/ext/pb_ds/detail/pat_trie_/pat_trie_.hpp: Same.
2599         * include/ext/pb_ds/detail/bin_search_tree_/bin_search_tree_.hpp: Same.
2600         * include/ext/pb_ds/detail/gp_hash_table_map_/gp_ht_map_.hpp: Same.
2601         * include/ext/pb_ds/detail/binary_heap_/binary_heap_.hpp: Same.
2602         * include/ext/pb_ds/detail/trie_policy/trie_policy_base.hpp: Same.
2603         * include/ext/pb_ds/detail/pairing_heap_/pairing_heap_.hpp: Same.
2604         * include/ext/pb_ds/detail/binomial_heap_/binomial_heap_.hpp: Same.
2605         * include/ext/pb_ds/detail/left_child_next_sibling_heap_/
2606         left_child_next_sibling_heap_.hpp: Same.
2607         * include/ext/pb_ds/detail/thin_heap_/thin_heap_.hpp: Same.
2608         * include/ext/pb_ds/detail/ov_tree_map_/ov_tree_map_.hpp: Same.
2609         * include/ext/pb_ds/detail/splay_tree_/splay_tree_.hpp: Same.
2610         * include/ext/pb_ds/detail/list_update_map_/lu_map_.hpp: Same.
2611         * include/ext/pb_ds/detail/rc_binomial_heap_/
2612         rc_binomial_heap_.hpp: Same.
2613         * include/ext/pb_ds/detail/rc_binomial_heap_/rc.hpp: Same.
2614         * include/ext/pb_ds/detail/rb_tree_map_/rb_tree_.hpp: Same.
2615         * include/ext/pb_ds/list_update_policy.hpp: Same.
2616         * include/ext/pb_ds/exception.hpp: Same.
2617         * include/ext/pb_ds/tree_policy.hpp: Same.
2618         * include/ext/pb_ds/trie_policy.hpp: Same.
2619         * include/ext/pb_ds/priority_queue.hpp: Same.
2620         * testsuite/util/regression/trait/assoc/trait.hpp: Same.
2621         * testsuite/util/regression/trait/assoc/type_trait.hpp: Same.
2622         * testsuite/util/regression/rand/priority_queue/detail/
2623         defs_fn_imps.hpp: Same.
2624         * testsuite/util/regression/rand/priority_queue/detail/
2625         operator_fn_imps.hpp: Same.
2626         * testsuite/util/regression/rand/priority_queue/
2627         container_rand_regression_test.hpp: Same.
2628         * testsuite/util/regression/rand/assoc/detail/defs_fn_imps.hpp: Same.
2629         * testsuite/util/regression/rand/assoc/detail/
2630         operator_fn_imps.hpp: Same.
2631         * testsuite/util/regression/rand/assoc/
2632         container_rand_regression_test.hpp: Same.
2633         * testsuite/util/native_type/assoc/native_multimap.hpp: Same.
2634         * testsuite/util/native_type/assoc/native_hash_multimap.hpp: Same.
2635         * testsuite/util/common_type/assoc/detail/
2636         tree_supports_order_statistics.hpp: Same.
2637         * testsuite/util/common_type/assoc/detail/
2638         trie_supports_prefix_search.hpp: Same.
2639         * testsuite/util/common_type/assoc/detail/
2640         trie_supports_order_statistics.hpp: Same.
2641
2642 2008-06-02  Sandra Loosemore  <sandra@codesourcery.com>
2643             Daniel Jacobowitz  <dan@codesourcery.com>
2644
2645         * testsuite/27_io/basic_filebuf/sputbackc/char/9425.cc: Use
2646         dg-require-fileio.
2647         * testsuite/27_io/basic_filebuf/sputbackc/char/1-out.cc: Likewise.
2648         * testsuite/27_io/basic_filebuf/sputbackc/char/2-out.cc: Likewise.
2649
2650 2008-06-02  Paolo Carlini  <paolo.carlini@oracle.com>
2651
2652         * include/bits/vector.tcc (vector<>::_M_insert_aux): In C++0x mode,
2653         avoid a memory leak if the first __uninitialized_move_a throws.
2654         (vector<>::_M_fill_insert): Do not always copy to __x_copy, similarly
2655         to _M_insert_aux.
2656         * testsuite/23_containers/vector/modifiers/moveable.cc: Adjust.
2657         * testsuite/23_containers/vector/resize/moveable.cc: Likewise.
2658
2659 2008-05-31  Paolo Carlini  <paolo.carlini@oracle.com>
2660             Chris Jefferson  <chris@bubblescope.net>
2661
2662         PR libstdc++/36338
2663         * include/bits/stl_heap.h (sort_heap): Use __pop_heap directly.
2664         (pop_heap): Slightly tweak.
2665
2666 2008-05-29  Paolo Carlini  <paolo.carlini@oracle.com>
2667
2668         * include/debug/bitset (bitset(const char*)): Implement DR 778
2669         in debug-mode too.
2670
2671         * include/bits/cpp_type_traits.h (__is_integer): In C++0x mode
2672         deal with char16_t and char32_t.
2673
2674 2008-05-26  Paolo Carlini  <paolo.carlini@oracle.com>
2675
2676         * include/c_global/cmath (pow(float, int), pow(double, int),
2677         pow(long double, int)): Do not define in C++0x mode, per DR 550.
2678         * include/tr1_impl/cmath (pow): Do not bring in unconditionally
2679         from namespace std.
2680         * include/tr1/cmath (pow(double, double), pow(float, float),
2681         pow(long double, long double), pow(_Tp, _Up)): Define.
2682         * include/tr1/complex (pow): Do not bring in from namespace std.
2683         (pow(const std::complex<_Tp>&, int), pow(const std::complex<_Tp>&,
2684         const _Tp&), pow(const _Tp&, const std::complex<_Tp>&),
2685         pow(const std::complex<_Tp>&, const std::complex<_Tp>&)): Define.
2686         * include/tr1_impl/complex (pow(const std::complex<_Tp>&,
2687         const _Up&), pow(const _Tp&, const std::complex<_Up>&),
2688         pow(const std::complex<_Tp>&, const std::complex<_Up>&)): Always
2689         define.
2690         * doc/xml/manual/intro.xml: Add an entry for DR 550.
2691         * testsuite/26_numerics/headers/cmath/dr550.cc: New.
2692         * testsuite/tr1/8_c_compatibility/cmath/overloads.cc: Adjust.
2693
2694 2008-05-25  Paolo Carlini  <paolo.carlini@oracle.com>
2695
2696         * include/std/tuple: Ifndef __GXX_EXPERIMENTAL_CXX0X__ just error out.
2697         * include/std/date_time: Likewise.
2698         * include/std/system_error: Likewise.
2699         * include/std/type_traits: Likewise; fix typo in macro name.
2700         * include/std/regex: Likewise.
2701         * include/std/random: Likewise.
2702         * include/std/unordered_map: Likewise.
2703         * include/std/condition_variable: Likewise.
2704         * include/std/unordered_set: Likewise.
2705         * include/std/mutex: Likewise.
2706         * include/std/array: Likewise.
2707
2708         * include/c_std/cmath: Fix obsolete comment.
2709         * include/c_global/cmath: Likewise.
2710
2711 2008-05-25  Paolo Carlini  <paolo.carlini@oracle.com>
2712
2713         * include/std/complex (complex<>::real(_Tp), complex<>::imag(_Tp),
2714         complex<float>::real(float), complex<float>::imag(float),
2715         complex<double>::real(double), complex<double>::imag(double),
2716         complex<long double>::real(long double),
2717         complex<long double>::imag(long double)): Add per DR 387.
2718         (complex<>::real(), complex<>::imag(), complex<float>::real(),
2719         complex<float>::imag(), complex<double>::real(),
2720         complex<double>::imag(), complex<long double>::real(),
2721         complex<long double>::imag(long double)): Adjust in C++0x mode.
2722         (real(complex<>&), imag(complex<>&), real(const complex<>&),
2723         imag(const complex<>&)): Likewise.
2724         * testsuite/26_numerics/complex/dr387.cc: New.
2725         * doc/xml/manual/intro.xml: Add an entry for DR 387.
2726
2727 2008-05-25  Paolo Carlini  <paolo.carlini@oracle.com>
2728
2729         * include/std/complex: Trivial stylistic changes, define inline
2730         members inline, consistently with the rest of the library.
2731         (pow(const _Tp&, const complex<>&)): Minor tweak.
2732
2733 2008-05-24  Paolo Carlini  <paolo.carlini@oracle.com>
2734
2735         * src/atomic.cc (atomic_flag_test_and_set_explicit,
2736         atomic_flag_clear_explicit): Suppress unused parameter warnings.
2737
2738 2008-05-23  Paolo Carlini  <paolo.carlini@oracle.com>
2739
2740         * include/std/tuple: Replace int -> size_t throughout per DR 775.
2741         * include/tr1_impl/array: Likewise.
2742         * include/tr1_impl/utility: Likewise.
2743         * doc/xml/manual/intro.xml: Add an entry for DR 775.
2744
2745 2008-05-23  Paolo Carlini  <paolo.carlini@oracle.com>
2746
2747         * doc/xml/manual/intro.xml: Adjust links to ISO documents.
2748
2749 2008-05-23  Paolo Carlini  <paolo.carlini@oracle.com>
2750
2751         * include/c_std/cmath (fpclassify): Use __builtin_fpclassify.
2752         * include/c_global/cmath (fpclassify): Likewise.
2753
2754 2008-05-22  Paolo Carlini  <paolo.carlini@oracle.com>
2755
2756         * include/tr1_impl/hashtable_policy.h (_Map_base<,,
2757         std::_Select1st<_Pair>, true,>::at): Add per DR 761.
2758         * testsuite/23_containers/unordered_map/dr761.cc: New.
2759         * doc/xml/manual/intro.xml: Add an entry for DR 761.
2760
2761 2008-05-22  Paolo Carlini  <paolo.carlini@oracle.com>
2762
2763         * testsuite/26_numerics/complex/dr781.cc: Add test variable.
2764
2765 2008-05-22  Paolo Carlini  <paolo.carlini@oracle.com>
2766
2767         * include/std/complex (proj(const std::complex<>&), proj(_Tp)):
2768         Add per DR 781.
2769         * include/tr1_impl/complex(polar(const _Tp&, const _Up&)): Move to...
2770         * include/tr1/complex: ... here.
2771         * doc/xml/manual/intro.xml: Add an entry for DR 781.
2772         * testsuite/26_numerics/complex/dr781.cc: Add.
2773         * acinclude.m4 ([GLIBCXX_ENABLE_C99]): Update.
2774         * configure: Regenerate.
2775
2776 2008-05-21  Paolo Carlini  <paolo.carlini@oracle.com>
2777
2778         * include/std/bitset (bitset<>::bitset(const char*)): Add per DR 778.
2779         (bitset<>::_M_copy_from_ptr): Add.
2780         (bitset<>::_M_copy_from_string): Forward to the latter.
2781         * doc/xml/manual/intro.xml: Add an entry for DR 778.
2782         * testsuite/23_containers/bitset/cons/2.cc: Add.
2783
2784 2008-05-21  Paolo Carlini  <paolo.carlini@oracle.com>
2785
2786         * doc/html/ext/lwg-active.html: Update to Revision R56.
2787         * doc/html/ext/lwg-closed.html: Likewise.
2788         * doc/html/ext/lwg-defects.html: Likewise.
2789
2790 2008-05-20  Paolo Carlini  <paolo.carlini@oracle.com>
2791
2792         PR c++/33979 (partial)
2793         * include/tr1_impl/functional_hash.h (hash<char16_t>,
2794         hash<char32_t>): Add specializations.
2795         * include/tr1_impl/type_traits (is_integral<char16_t>,
2796         is_integral<char32_t>): Likewise.
2797         * include/std/limits (numeric_limits<char16_t>,
2798         numeric_limits<char32_t>): Likewise.
2799         * src/limits_c++0x.cc: Add.
2800         * src/Makefile.am: Update.
2801         * testsuite/20_util/hash/requirements/explicit_instantiation.cc:
2802         Update.
2803         * testsuite/20_util/is_integral/value.cc: New.
2804         * testsuite/20_util/is_integral/requirements/typedefs.cc: Likewise.
2805         * testsuite/20_util/is_integral/requirements/
2806         explicit_instantiation.cc: Likewise.
2807         * testsuite/18_support/numeric_limits/char16_32_t.cc: Likewise.
2808         * config/abi/pre/gnu.ver: Export new numeric_limits symbols at
2809         GLIBCXX_3.4.11.
2810         * configure: Regenerate.
2811         * src/Makefile.in: Likewise.
2812         * config.h.in: Likewise.
2813
2814 2008-05-16  Benjamin Kosnik  <bkoz@redhat.com>
2815
2816         * include/std/system_error: Align to current draft specifications.
2817         * src/system_error.cc: Same.
2818         * src/functexcept.cc: Adjust for corrected system_error construction.
2819         * include/std/ostream: Adjust error_code inserter.
2820         * acinclude.m4 (GLIBCXX_CHECK_SYSTEM_ERROR): Remove sys_nerr test.
2821         * config/abi/pre/gnu.ver: Add new exports.
2822
2823         * testsuite/util/testsuite_error.h: Consolidate error testing
2824         utilities here.
2825         * testsuite/19_diagnostics/error_code/cons/1.cc: Use
2826         testsuite_error, adjust line numbers and constructor calls.
2827         * testsuite/19_diagnostics/error_code/operators/equal.cc: Same.
2828         * testsuite/19_diagnostics/error_code/operators/not_equal.cc: Same.
2829         * testsuite/19_diagnostics/error_category/cons/copy_neg.cc: Same.
2830         * testsuite/19_diagnostics/error_category/cons/default.cc: Same.
2831         * testsuite/19_diagnostics/error_category/operators/equal.cc: Same.
2832         * testsuite/19_diagnostics/error_category/operators/not_equal.cc: Same.
2833         * testsuite/19_diagnostics/system_error/cons_virtual_derivation.cc:
2834         Same.
2835         * testsuite/19_diagnostics/system_error/cons-1.cc: Same.
2836         * testsuite/19_diagnostics/system_error/what-1.cc: Same.
2837         * testsuite/19_diagnostics/system_error/what-2.cc: Same.
2838         * testsuite/19_diagnostics/system_error/what-big.cc: Same.
2839         * testsuite/19_diagnostics/system_error/what-3.cc: Same.
2840         * testsuite/19_diagnostics/system_error/what-4.cc: Same.
2841
2842 2008-05-15  Bernd Schmidt  <bernd.schmidt@analog.com>
2843
2844         * configure.ac: Don't check AC_LIBTOOL_DLOPEN if using newlib.
2845         * configure: Regenerate.
2846
2847 2008-05-15  Johannes Singler  <singler@ira.uka.de>
2848
2849         * xml/manual/parallel_mode.xml:
2850         General revision and documentation of new compile-time
2851         options for sorting.
2852
2853 2008-05-14  Benjamin Kosnik  <bkoz@redhat.com>
2854
2855         * include/std/mutex (mutex::try_lock): Eat errors.
2856         (mutex::unlock): Same.
2857         (recursive_mutex::try_lock): Eat errors.
2858         (recursive_mutex::unlock): Same.
2859         * testsuite/30_threads/mutex/dest/destructor_locked.cc: Add
2860         -pthreads, adjust line numbers.
2861         * testsuite/30_threads/mutex/native_handle/1.cc: Same.
2862         * testsuite/30_threads/mutex/cons/1.cc: Same.
2863         * testsuite/30_threads/mutex/try_lock/1.cc: Same.
2864         * testsuite/30_threads/mutex/try_lock/2.cc: Same.
2865         * testsuite/30_threads/mutex/lock/1.cc: Same.
2866         * testsuite/30_threads/mutex/unlock/1.cc: Same.
2867         * testsuite/30_threads/recursive_mutex/dest/destructor_locked.cc: Same.
2868         * testsuite/30_threads/recursive_mutex/native_handle/1.cc: Same.
2869         * testsuite/30_threads/recursive_mutex/cons/1.cc: Same.
2870
2871 2008-05-14  Benjamin Kosnik  <bkoz@redhat.com>
2872
2873         * include/std/sstream: Adjust braces.
2874         * include/bits/fstream.tcc: Same.
2875         * testsuite/29_atomics/atomic_flag/test_and_set/explicit.c: Add
2876         -shared-libgcc.
2877         * testsuite/29_atomics/atomic_flag/test_and_set/implicit.c: Same.
2878
2879         * doc/doxygen/user.cfg.in: Remove thread include.
2880
2881 2008-05-13  David Daney  <ddaney@avtrex.com>
2882
2883         * config/cpu/mips/atomicity.h: Remove file.
2884         * config/cpu/mips: Remove directory.
2885         * configure.host: Remove host specific handling for mips*-*-*.
2886
2887 2008-05-12  Stefano Soffia  <soffia@cs.unipr.it>
2888             Paolo Carlini  <paolo.carlini@oracle.com>
2889
2890         * include/debug/vector (vector<>::_M_requires_reallocation): Just
2891         use this->capacity().
2892         (vector<>::capacity): Move non-pedantic / pedantic logic here.
2893         * testsuite/23_containers/vector/
2894         debug_mode_requires_reallocation-2.cc: New.
2895
2896         * testsuite/23_containers/vector/debug_mode_requires_reallocation.cc:
2897         Rename to debug_mode_requires_reallocation-1.cc
2898
2899 2008-05-10  Roberto Bagnara  <bagnara@cs.unipr.it>
2900             Paolo Carlini  <paolo.carlini@oracle.com>
2901
2902         * include/debug/vector (vector<>::_M_requires_reallocation): Fix macro.
2903         * testsuite/23_containers/vector/debug_mode_requires_reallocation.cc:
2904         New.
2905
2906 2008-05-07  Johannes Singler  <singler@ira.uka.de>
2907
2908        * include/parallel/quicksort.h:
2909        (parallel_sort_qs_conquer) Explicitly request number of threads
2910        in the parallel clause.
2911        (parallel_sort_qs) Remove setting the number of threads globally.
2912
2913 2008-05-06  Benjamin Kosnik  <bkoz@redhat.com>
2914
2915         * include/std/mutex (mutex::mutex): Fix usage of initializing macro.
2916         (recursive_mutex::recursive_mutex): Same.
2917         (once_flag::once_flag): Same.
2918         * testsuite/30_threads/mutex/cons/assign_neg.cc: Fix line numbers.
2919         * testsuite/30_threads/mutex/cons/copy_neg.cc: Same.
2920         * testsuite/30_threads/recursive_mutex/cons/assign_neg.cc: Same.
2921         * testsuite/30_threads/recursive_mutex/cons/copy_neg.cc: Same.
2922
2923 2008-05-06  Benjamin Kosnik  <bkoz@redhat.com>
2924
2925         * include/std/condition_variable: New.
2926         * include/std/mutex: New.
2927         * src/condition_variable.cc: New.
2928         * src/mutex.cc: New.
2929         * include/bits/functexcept.h: Add __throw_system_error varients.
2930         * src/functexcept.cc: Same.
2931         * config/abi/pre/gnu.ver: Add exports.
2932
2933         * doc/xml/manual/using.xml: Add new includes.
2934         * doc/doxygen/user.cfg.in: Doxygen support.
2935         * doc/doxygen/doxygroups.cc: Same.
2936
2937         * include/Makefile.am: Add mutex, condition_variable.
2938         * include/Makefile.in: Regenerated.
2939         * src/Makefile.am: Add mutex.cc, condition_variable.cc.
2940         * src/Makefile.in: Regenerated.
2941
2942         * testsuite/30_threads: New.
2943         * testsuite/30_threads/lock_error: New.
2944         * testsuite/30_threads/mutex: New.
2945         * testsuite/30_threads/mutex/dest: New.
2946         * testsuite/30_threads/mutex/dest/destructor_locked.cc: New.
2947         * testsuite/30_threads/mutex/native_handle: New.
2948         * testsuite/30_threads/mutex/native_handle/1.cc: New.
2949         * testsuite/30_threads/mutex/cons: New.
2950         * testsuite/30_threads/mutex/cons/assign_neg.cc: New.
2951         * testsuite/30_threads/mutex/cons/1.cc: New.
2952         * testsuite/30_threads/mutex/cons/copy_neg.cc: New.
2953         * testsuite/30_threads/mutex/requirements: New.
2954         * testsuite/30_threads/mutex/requirements/typedefs.cc: New.
2955         * testsuite/30_threads/mutex/try_lock: New.
2956         * testsuite/30_threads/mutex/try_lock/1.cc: New.
2957         * testsuite/30_threads/mutex/try_lock/2.cc: New.
2958         * testsuite/30_threads/mutex/lock: New.
2959         * testsuite/30_threads/mutex/lock/1.cc: New.
2960         * testsuite/30_threads/mutex/unlock: New.
2961         * testsuite/30_threads/mutex/unlock/1.cc: New.
2962         * testsuite/30_threads/recursive_mutex: New.
2963         * testsuite/30_threads/recursive_mutex/dest: New.
2964         * testsuite/30_threads/recursive_mutex/dest/destructor_locked.cc: New.
2965         * testsuite/30_threads/recursive_mutex/native_handle: New.
2966         * testsuite/30_threads/recursive_mutex/native_handle/1.cc: New.
2967         * testsuite/30_threads/recursive_mutex/cons: New.
2968         * testsuite/30_threads/recursive_mutex/cons/assign_neg.cc: New.
2969         * testsuite/30_threads/recursive_mutex/cons/1.cc: New.
2970         * testsuite/30_threads/recursive_mutex/cons/copy_neg.cc: New.
2971         * testsuite/30_threads/recursive_mutex/requirements: New.
2972         * testsuite/30_threads/recursive_mutex/requirements/typedefs.cc: New.
2973         * testsuite/30_threads/lock_guard: New.
2974         * testsuite/30_threads/lock_guard/requirements: New.
2975         * testsuite/30_threads/lock_guard/requirements/typedefs.cc: New.
2976         * testsuite/30_threads/lock_guard/requirements/
2977         explicit_instantiation.cc: New.
2978         * testsuite/30_threads/headers: New.
2979         * testsuite/30_threads/headers/mutex: New.
2980         * testsuite/30_threads/headers/mutex/types_std_c++0x.cc: New.
2981         * testsuite/30_threads/headers/mutex/std_c++0x_neg.cc: New.
2982         * testsuite/30_threads/headers/condition_variable: New.
2983         * testsuite/30_threads/headers/condition_variable/
2984         types_std_c++0x.cc: New.
2985         * testsuite/30_threads/headers/condition_variable/std_c++0x_neg.cc: New.
2986         * testsuite/30_threads/once_flag: New.
2987         * testsuite/30_threads/unique_lock: New.
2988         * testsuite/30_threads/unique_lock/requirements: New.
2989         * testsuite/30_threads/unique_lock/requirements/typedefs.cc: New.
2990         * testsuite/30_threads/unique_lock/requirements/
2991         explicit_instantiation.cc: New.
2992         * testsuite/17_intro/headers/c++200x/all.cc: Add new includes.
2993
2994 2008-05-06  Benjamin Kosnik  <bkoz@redhat.com>
2995
2996         PR libstdc++/36130
2997         * include/bits/c++config: Namespace macros and setup only in C++.
2998         * testsuite/29_atomics/headers/stdatomic.h/debug_mode.c: New.
2999
3000 2008-05-06  Johannes Singler  <singler@ira.uka.de>
3001
3002         * include/parallel/multiway_merge.h:
3003           (multiway_merge_*_unguarded):
3004           Pass sentinel directly, to allow correct determination.
3005           (multiway_merge_loser_tree_unguarded):
3006           Remove over-cautious assertion.
3007           (calls to multiway_merge_*_splitting):
3008           Parametrize with type that is correct in all cases.
3009         * include/parallel/losertree.h:
3010           (delete_min_insert (in many classes)):
3011           Correct and standardize assertions.
3012
3013 2008-05-05  Benjamin Kosnik  <bkoz@redhat.com>
3014
3015         * testsuite/util/testsuite_visualization.h: Move contents into...
3016         * testsuite/util/testsuite_performance.h: ...here.
3017         * testsuite/util/testsuite_common_types.h: Move
3018         performance-related test infrastructure into
3019         testsuite_performance.
3020         * testsuite/performance/25_algorithms/search_n.cc: Fix includes.
3021         * testsuite/performance/23_containers/find/map.cc: Same.
3022         * testsuite/performance/23_containers/create/map.cc: Same.
3023         * testsuite/performance/23_containers/insert_erase/associative.cc: Same.
3024         * testsuite/performance/23_containers/insert/sequence.cc: Same.
3025         * testsuite/performance/23_containers/insert/associative.cc: Same.
3026         * testsuite/performance/23_containers/create_from_sorted/set.cc: Same.
3027         * testsuite/performance/23_containers/index/map.cc: Same.
3028         * testsuite/performance/23_containers/insert_from_sorted/set.cc: Same.
3029         * testsuite/performance/23_containers/create_sort/list.cc: Same.
3030         * testsuite/performance/23_containers/sort_search/list.cc: Same.
3031         * testsuite/performance/23_containers/producer_consumer/sequence.cc:
3032         Same.
3033         * testsuite/performance/23_containers/producer_consumer/associative.cc:
3034         Same.
3035
3036         * testsuite/29_atomics/atomic/cons/assign_neg.cc: Adjust line numbers.
3037         * testsuite/29_atomics/atomic/cons/copy_neg.cc: Same.
3038
3039 2008-05-05  Benjamin Kosnik  <bkoz@redhat.com>
3040
3041         * 20_util/make_signed/requirements/typedefs-1.cc: Correct requirements.
3042         * 20_util/make_unsigned/requirements/typedefs-1.cc: Same.
3043
3044 2008-05-01  Benjamin Kosnik  <bkoz@redhat.com>
3045
3046         * include/bits/c++config: Revert _GLIBCXX_LONG_DOUBLE_COMPAT change.
3047
3048 2008-04-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3049
3050         * include/Makefile.am (install-headers): Cope with empty
3051         parallel_headers.
3052         * include/Makefile.in: Regenerate.
3053
3054 2008-04-29  Benjamin Kosnik  <bkoz@redhat.com>
3055
3056         * include/bits/c++config: Remove space between '#' and 'undef' for
3057         _GLIBCXX_LONG_DOUBLE_COMPAT.
3058
3059 2008-04-29  Joseph Myers  <joseph@codesourcery.com>
3060
3061         * Makefile.am (install-html, install-pdf): Add dummy targets.
3062         * Makefile.in: Regenerate.
3063         * doc/Makefile.am (install-html, install-pdf): Remove.
3064         * doc/Makefile.in: Regenerate.
3065
3066 2008-04-28  Benjamin Kosnik  <bkoz@redhat.com>
3067
3068         * include/bits/c++config: Move os_defines and cpu_defines after
3069         namespace definitions and base macros.
3070
3071 2008-04-28  Benjamin Kosnik  <bkoz@redhat.com>
3072
3073         PR libstdc++/35887
3074         * acinclude.m4 (GLIBCXX_ENABLE_PARALLEL): Revert back to just
3075         checking for omp.h.
3076         * configure: Regenerate.
3077
3078 2008-04-25  Benjamin Kosnik  <bkoz@redhat.com>
3079
3080         PR libstdc++/35922
3081         * include/std/unordered_map: Include debug/unordered_map if
3082         _GLIBCXX_DEBUG.
3083         * testsuite/23_containers/unordered_map/requirements/debug.cc: Move...
3084         * testsuite/23_containers/unordered_map/requirements/
3085         debug_container.cc: ...here.
3086         * testsuite/23_containers/unordered_map/requirements/debug_mode.cc: New.
3087         * testsuite/23_containers/unordered_set/requirements/debug.cc: Move...
3088         * testsuite/23_containers/unordered_set/requirements/
3089         debug_container.cc: ...here.
3090         * testsuite/23_containers/unordered_set/requirements/debug_mode.cc: New.
3091
3092 2008-04-25  Benjamin Kosnik  <bkoz@redhat.com>
3093
3094         PR libstdc++/35887
3095         * acinclude.m4: (GLIBCXX_ENABLE_PARALLEL): Check for thread support.
3096         * configure.ac: Re-order compiler macros.
3097         * configure: Regenerated.
3098
3099 2008-04-24  Benjamin Kosnik  <bkoz@redhat.com>
3100
3101         PR libstdc++/35887
3102         * configure.ac: Add default argument to GLIBCXX_ENABLE_PARALLEL.
3103         Move atomic warnings to GLIBCXX_ENABLE_ATOMIC_BUILTINS.
3104         * acinclude.m4 (GLIBCXX_ENABLE_PARALLEL): Check for --disable-libgomp.
3105         (GLIBCXX_ENABLE_ATOMIC_BUILTINS): Add warning information.
3106         * configure: Regenerate.
3107         * include/Makefile.am (parallel_headers): Make conditional on
3108         ENABLE_PARALLEL.
3109         * include/Makefile.in: Regenerate.
3110
3111 2008-04-24  Paolo Carlini  <pcarlini@suse.de>
3112
3113         PR libstdc++/35969
3114         * include/debug/list (merge): Use _M_transfer_iter, consistently
3115         with the splice members.
3116         * testsuite/23_containers/list/operations/35969.cc: New.
3117
3118         * testsuite/23_containers/list/operators: Rename to
3119         testsuite/23_containers/list/operations.
3120
3121 2008-04-24  Benjamin Kosnik  <bkoz@redhat.com>
3122
3123         * acinclude.m4 (GLIBCXX_ENABLE_ATOMIC_BUILTINS): Check for set of
3124         all used __sync builtins, in two sizes.
3125         * config.h.in: Regenerate.
3126         * configure: Regenerate.
3127         * src/atomic.cc: Use  _GLIBCXX_ATOMIC_BUILTINS_1.
3128         * include/ext/atomicity.h: Use  _GLIBCXX_ATOMIC_BUILTINS_4.
3129         * libsupc++/guard.cc: Use  _GLIBCXX_ATOMIC_BUILTINS_4.
3130         * doc/xml/manual/concurrency.xm: Update docs.
3131
3132 2008-04-23  Benjamin Kosnik  <bkoz@redhat.com>
3133
3134         * config/os/hpux/os_defines.h: Use _GLIBCXX_BEGIN_NAMESPACE,
3135         _GLIBCXX_BEGIN_EXTERN_C, etc.
3136
3137 2008-04-23  Johannes Singler  <singler@ira.uka.de>
3138
3139         * include/parallel/quicksort.h: Reformat,
3140         (parallel_sort_qs): Do not pass number of elements.
3141         * include/parallel/balanced_quicksort.h: Reformat,
3142         (parallel_sort_qsb): Do not pass number of elements.
3143         * include/parallel/tags.h:
3144         Introduce new tags for compile-time choice.
3145         * include/parallel/merge.h:
3146         (parallel_merge_advance):Beautified.
3147         * include/parallel/algo.h: Reformatting (spaces for tabs)
3148         New sort and stable_sort variants, corresponding to the tags.
3149         * include/parallel/sort.h:
3150         New sort and stable_sort variants, corresponding to the tags.
3151         Changed determining the desired number of threads.
3152
3153 2008-04-23  Johannes Singler  <singler@ira.uka.de>
3154
3155         * include/parallel/multiway_merge.h
3156         (multiway_merge_loser_tree):
3157         Leave checks to callers, add precondition instead.
3158         (multiway_merge_loser_tree_unguarded): Likewise.
3159         (multiway_merge_loser_tree_sentinel): Likewise.
3160         (sequential_multiway_merge): Added checks for total length 0.
3161         (parallel_multiway_merge): Skip empty sequences.
3162         (multiway_merge, all variants):
3163         Remove temporary variable, return directly.
3164         (stable_multiway_merge, all variants): Likewise.
3165         (multiway_merge_sentinels, all variants):  Likewise.
3166         (stable_multiway_merge_sentinels, all variants): Likewise.
3167         * include/parallel/multiseq_selection.h
3168         (multiseq_partition): More detailed assertions.
3169
3170 2008-04-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3171
3172         * acinclude.m4 (GLIBCXX_CHECK_SETRLIMIT, GLIBCXX_ENABLE_C99)
3173         (GLIBCXX_CHECK_C99_TR1, GLIBCXX_CHECK_RANDOM_TR1)
3174         (GLIBCXX_ENABLE_VISIBILITY): Fix cache variable names.
3175         (GLIBCXX_CHECK_SYSTEM_ERROR): Likewise.  Factorize.
3176         * configure: Regenerate.
3177
3178 2008-04-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3179
3180         PR libstdc++/35954
3181         * include/Makefile.am (pch*_output): Do not touch pch*_output_anchor.
3182         Call 'mkdir -p' unconditionally, but ignore its return value.
3183         * include/Makefile.in: Regenerate.
3184
3185         * include/Makefile.am: Fix most stamp rules to regenerate
3186         the links for all sources newer than the stamp file.
3187         * include/Makefile.in: Regenerate.
3188         * Makefile.in: Likewise.
3189         * src/Makefile.in: Likewise.
3190         * doc/Makefile.in: Likewise.
3191         * po/Makefile.in: Likewise.
3192         * libmath/Makefile.in: Likewise.
3193         * libsupc++/Makefile.in: Likewise.
3194         * testsuite/Makefile.in: Likewise.
3195
3196 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
3197
3198         PR bootstrap/35457
3199         * aclocal.m4: Regenerate.
3200         * configure: Regenerate.
3201
3202 2008-04-16  Andreas Tobler  <a.tobler@schweiz.org>
3203
3204         PR libstdc++/35915
3205         * configure.ac: Use GCC_HEADER_STDINT.
3206         * src/atomic.cc: Include gstdint.h
3207         * configure: Regenerate.
3208         * Makefile.in: Likewise.
3209         * doc/Makefile.in: Likewise.
3210         * include/Makefile.in: Likewise.
3211         * libmath/Makefile.in: Likewise.
3212         * libsupc++/Makefile.in: Likewise.
3213         * po/Makefile.in: Likewise.
3214         * src/Makefile.in: Likewise.
3215         * testsuite/Makefile.in: Likewise.
3216         * aclocal.m4: Likewise.
3217
3218 2008-04-14  Benjamin Kosnik  <bkoz@redhat.com>
3219
3220         PR libstdc++/35816
3221         * acinclude.m4 (GLIBCXX_ENABLE_ATOMIC_BUILTINS): Set CXXFLAGS to
3222         -O0 when checking for atomic builtins.
3223         * configure: Regenerate.
3224
3225 2008-04-14  Benjamin Kosnik  <bkoz@redhat.com>
3226
3227         * include/bits/c++config: Guard _LDBL_ macros with __cplusplus.
3228
3229 2008-04-10  Benjamin Kosnik  <bkoz@redhat.com>
3230
3231         * doc/html/*: Regenerate.
3232
3233 2008-04-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3234
3235         * doc/xml/manual/bitmap_allocator.xml: Improve wording a bit.
3236         * doc/xml/authors.xml: Fix typos.
3237         * doc/xml/faq.xml: Likewise.
3238         * doc/xml/manual/abi.xml: Likewise.
3239         * doc/xml/manual/allocator.xml: Likewise.
3240         * doc/xml/manual/appendix_contributing.xml: Likewise.
3241         * doc/xml/manual/backwards_compatibility.xml: Likewise.
3242         * doc/xml/manual/build_hacking.xml: Likewise.
3243         * doc/xml/manual/codecvt.xml: Likewise.
3244         * doc/xml/manual/concurrency.xml: Likewise.
3245         * doc/xml/manual/ctype.xml: Likewise.
3246         * doc/xml/manual/debug_mode.xml: Likewise.
3247         * doc/xml/manual/diagnostics.xml: Likewise.
3248         * doc/xml/manual/evolution.xml: Likewise.
3249         * doc/xml/manual/extensions.xml: Likewise.
3250         * doc/xml/manual/locale.xml: Likewise.
3251         * doc/xml/manual/messages.xml: Likewise.
3252         * doc/xml/manual/parallel_mode.xml: Likewise.
3253         * doc/xml/manual/status_cxx200x.xml: Likewise.
3254         * doc/xml/manual/strings.xml: Likewise.
3255         * doc/xml/manual/support.xml: Likewise.
3256         * doc/xml/manual/test.xml: Likewise.
3257         * doc/xml/manual/using.xml: Likewise.
3258
3259 2008-04-10  Benjamin Kosnik  <bkoz@redhat.com>
3260             Johannes Singler  <singler@ira.uka.de>
3261
3262         * doc/xml/manual/parallel_mode.xml: Remove map/set bulk
3263         insertors. Correct omp_set_num_threads example.
3264
3265 2008-04-10  Benjamin Kosnik  <bkoz@redhat.com>