OSDN Git Service

fd8bf05c784b2a5f166a92cb027ad9fc77cb2a0c
[pf3gnuchains/gcc-fork.git] / libstdc++-v3 / ChangeLog
1 2009-02-20  Benjamin Kosnik  <bkoz@redhat.com>
2
3         * testsuite/30_threads/thread/this_thread: Move...
4         * testsuite/30_threads/this_thread: ...here.
5         * testsuite/20_util/unique_ptr/assign/assign.cc: Move...
6         * testsuite/20_util/unique_ptr/assign/assign_neg.cc: ...here.
7         * testsuite/20_util/ratio/cons/cons_overflow.cc: Move...
8         * testsuite/20_util/ratio/cons/cons_overflow_neg.cc: ...here.
9         * testsuite/20_util/ratio/operations/ops_overflow.cc: Move...
10         * testsuite/20_util/ratio/operations/ops_overflow_neg.cc: ...here.
11
12 2009-02-20  Benjamin Kosnik  <bkoz@redhat.com>
13
14         * doc/doxygen/user.cfg.in: Tweaks.
15         * doc/doxygen/doxygroups.cc: Prefer markup that can be elsewhere,
16         be elsewhere.
17
18         * include/tr1_impl/unordered_map: Just use most specialized
19         container module.
20         * include/tr1_impl/unordered_set: Same.
21         * include/tr1_impl/array: Same.
22         * include/bits/stl_list.h: Same.
23         * include/bits/stl_map.h: Same.
24         * include/bits/stl_queue.h: Same.
25         * include/bits/stl_set.h: Same.
26         * include/bits/stl_stack.h: Same.
27         * include/bits/forward_list.h: Same.
28         * include/bits/basic_string.h: Same.
29         * include/bits/stl_multimap.h: Same.
30         * include/bits/stl_vector.h: Same.
31         * include/bits/stl_deque.h: Same.
32         * include/bits/stl_multiset.h: Same.
33         * include/bits/stl_bvector.h: Same.
34
35         * include/backward/binders.h: Change binder module to binders.
36
37         * include/std/complex: Add complex_numers module.
38         * include/tr1_impl/complex: Same.
39
40         * include/std/valarray: Add numeric_arrays module.
41         * include/bits/gslice_array.h: Same.
42         * include/bits/gslice.h: Same.
43         * include/bits/mask_array.h: Same.
44         * include/bits/slice_array.h: Same.
45         * include/bits/indirect_array.h: Same.
46
47         * include/bits/allocator.h: Add allocators module.
48         * include/ext/throw_allocator.h
49         * include/ext/pool_allocator.h
50         * include/ext/bitmap_allocator.h
51         * include/ext/new_allocator.h
52         * include/ext/malloc_allocator.h
53         * include/ext/array_allocator.h
54         * include/ext/mt_allocator.h
55         * include/ext/debug_allocator.h
56         * include/ext/extptr_allocator.h
57
58         * include/tr1_impl/functional: Move namespace markup here.
59         * include/tr1_impl/regex: Same.
60
61         * include/tr1_impl/type_traits: Add metaprogramming module.
62         * include/std/type_traits: Same.
63
64         * include/std/memory: Add memory module.
65
66         * include/std/ratio: Add ratio module.
67
68         * include/std/chrono: Move namespace markup here, add time module.
69
70         * include/std/thread: Move namespace markup here, add concurrency
71         module.
72         * include/std/mutex: Use concurrency module.
73         * include/std/condition_variable: Same.
74
75
76         * include/bits/ios_base.h: Refine io module.
77         * include/bits/basic_ios.h: Same.
78         * include/std/fstream: Same.
79         * include/std/istream: Same.
80         * include/std/ostream: Same.
81         * include/std/sstream: Same.
82
83         * include/ext/vstring.h: Correct parameter markup.
84
85         * include/bits/shared_ptr.h: Add pointer_abstractions module.
86         * include/bits/unique_ptr.h: Same.
87
88         * include/bits/algorithmfwd.h: Add mutating_algorithms,
89         non_mutating_algorithms, sorting_algorithms. Adjust nesting.
90         * include/bits/stl_heap.h: Add markup for new groupings.
91         * include/bits/stl_algobase.h: Same.
92         * include/bits/stl_algo.h: Same.
93
94         * include/c_compatibility/stdatomic.h: Add atomics module.
95         * include/c_global/cstdatomic: Same.
96
97         * libsupc++/exception: Add exceptions module.
98         * libsupc++/typeinfo: Same.
99         * libsupc++/new: Same.
100         * libsupc++/exception_ptr.h: Same.
101         * include/std/system_error: Same.
102         * include/std/stdexcept: Same.
103
104         * libsupc++/cxxabi.h: Move doxygroups.cc markup here.
105         * libsupc++/cxxabi-forced.h: Same.
106
107         * testsuite/27_io/ios_base/cons/assign_neg.cc: Fix up line numbers.
108         * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
109         * testsuite/30_threads/condition_variable_any/cons/assign_neg.cc: Same.
110         * testsuite/30_threads/condition_variable_any/cons/copy_neg.cc: Same.
111         * testsuite/30_threads/mutex/cons/assign_neg.cc: Same.
112         * testsuite/30_threads/mutex/cons/copy_neg.cc: Same.
113         * testsuite/30_threads/timed_mutex/cons/assign_neg.cc: Same.
114         * testsuite/30_threads/timed_mutex/cons/copy_neg.cc: Same.
115         * testsuite/30_threads/thread/cons/assign_neg.cc: Same.
116         * testsuite/30_threads/thread/cons/copy_neg.cc: Same.
117         * testsuite/30_threads/recursive_mutex/cons/assign_neg.cc: Same.
118         * testsuite/30_threads/recursive_mutex/cons/copy_neg.cc: Same.
119         * testsuite/30_threads/condition_variable/cons/assign_neg.cc: Same.
120         * testsuite/30_threads/condition_variable/cons/copy_neg.cc: Same.
121         * testsuite/30_threads/recursive_timed_mutex/cons/assign_neg.cc: Same.
122         * testsuite/30_threads/recursive_timed_mutex/cons/copy_neg.cc: Same.
123         * testsuite/29_atomics/atomic/cons/assign_neg.cc: Same.
124         * testsuite/29_atomics/atomic/cons/copy_neg.cc: Same.
125         * testsuite/23_containers/vector/requirements/dr438/assign_neg.cc: Same.
126         * testsuite/23_containers/vector/requirements/dr438/insert_neg.cc: Same.
127         * testsuite/23_containers/vector/requirements/dr438/
128         constructor_1_neg.cc: Same.
129         * testsuite/23_containers/vector/requirements/dr438/
130         constructor_2_neg.cc: Same.
131         * testsuite/23_containers/deque/requirements/dr438/assign_neg.cc: Same.
132         * testsuite/23_containers/deque/requirements/dr438/insert_neg.cc: Same.
133         * testsuite/23_containers/deque/requirements/dr438/
134         constructor_1_neg.cc: Same.
135         * testsuite/23_containers/deque/requirements/dr438/
136         constructor_2_neg.cc: Same.
137         * testsuite/23_containers/list/requirements/dr438/assign_neg.cc: Same.
138         * testsuite/23_containers/list/requirements/dr438/insert_neg.cc: Same.
139         * testsuite/23_containers/list/requirements/dr438/
140         constructor_1_neg.cc: Same.
141         * testsuite/23_containers/list/requirements/dr438/
142         constructor_2_neg.cc: Same.
143         * testsuite/20_util/duration/cons/1_neg.cc: Same.
144         * testsuite/20_util/duration/requirements/typedefs_neg1.cc: Same.
145         * testsuite/20_util/duration/requirements/typedefs_neg2.cc: Same.
146         * testsuite/20_util/duration/requirements/typedefs_neg3.cc: Same.
147         * testsuite/20_util/unique_ptr/modifiers/reset_neg.cc: Same.
148         * testsuite/20_util/unique_ptr/assign/assign.cc: Same.
149         * testsuite/20_util/make_signed/requirements/typedefs_neg.cc: Same.
150         * testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc: Same.
151         * testsuite/20_util/ratio/cons/cons_overflow.cc: Same.
152         * testsuite/20_util/ratio/operations/ops_overflow.cc: Same.
153
154 2009-02-18  Benjamin Kosnik  <bkoz@redhat.com>
155
156         * doc/doxygen/doxygroups.cc: Move algorithm groups into algorithmfwd.h.
157         * doc/doxygen/user.cfg.in: Update.
158         * scripts/run_doxygen: Adjust for new group names.
159
160         * include/tr1_impl/random: Update doxygen group markup.
161         * include/tr1_impl/unordered_map: Same.
162         * include/tr1_impl/unordered_set: Same.
163         * include/tr1_impl/array: Same.
164         * include/std/numeric: Same.
165         * include/std/utility: Same.
166         * include/std/bitset: Same.
167         * include/std/iosfwd: Same.
168         * include/bits/stl_list.h: Same.
169         * include/bits/stl_map.h: Same.
170         * include/bits/stl_algobase.h: Same.
171         * include/bits/stl_queue.h: Same.
172         * include/bits/stl_set.h: Same.
173         * include/bits/stl_stack.h: Same.
174         * include/bits/stl_iterator_base_types.h: Same.
175         * include/bits/forward_list.h: Same.
176         * include/bits/basic_string.h: Same.
177         * include/bits/stl_multimap.h: Same.
178         * include/bits/stl_vector.h: Same.
179         * include/bits/stl_deque.h: Same.
180         * include/bits/stl_multiset.h: Same.
181         * include/bits/stl_algo.h: Same.
182         * include/bits/stl_bvector.h: Same.
183         * include/bits/algorithmfwd.h: Same.
184         * include/bits/stl_function.h: Same.
185         * include/tr1/cmath: Same.
186         * include/backward/binders.h: Same.
187
188 2009-02-17  Benjamin Kosnik  <bkoz@redhat.com>
189
190         * include/std/system_error (system_category): To system_category().
191         (generic_category): To generic_category. DR 890.
192         * src/system_error.cc: Define.
193         * include/bits/functexcept.h: Only one __throw_system_error.
194         * src/functexcept.cc: Same.
195         * include/std/mutex: Fixup for changes above.
196         * testsuite/19_diagnostics/error_condition/cons/1.cc: Same.
197         * testsuite/19_diagnostics/error_code/cons/1.cc: Same.
198         * testsuite/19_diagnostics/system_error/cons-1.cc: Same.
199         * config/abi/pre/gnu.ver: Clean up exports.
200
201 2009-02-17  Jonathan Wakely  <jwakely.gcc@gmail.com>
202
203         * include/std/thread: Fix typo.
204         * src/thread.cc (thread::join): Use NULL.
205
206 2009-02-15  Paolo Carlini  <paolo.carlini@oracle.com>
207
208         PR libstdc++/39168
209         * src/locale_facets.cc (__verify_grouping(const char*, size_t,
210         const string&)): Also check that the value != CHAR_MAX.
211         * include/bits/locale_facets.tcc (__numpunct_cache<>::
212         _M_cache(const locale&), __add_grouping(_CharT*, _CharT,
213         const char*, size_t, const _CharT*, const _CharT*)): Likewise.
214         * include/bits/locale_facets_nonio.tcc (__moneypunct_cache<>::
215         _M_cache(const locale&)): Likewise.
216         * testsuite/22_locale/money_put/put/wchar_t/39168.cc: New.
217         * testsuite/22_locale/money_put/put/char/39168.cc: Likewise.
218         * testsuite/22_locale/money_get/get/wchar_t/39168.cc: Likewise.
219         * testsuite/22_locale/money_get/get/char/39168.cc: Likewise.
220         * testsuite/22_locale/num_get/get/wchar_t/39168.cc: Likewise.
221         * testsuite/22_locale/num_get/get/char/39168.cc: Likewise.
222
223 2009-02-13  Chris Fairles  <cfairles@gcc.gnu.org>
224             Benjamin Kosnik  <bkoz@redhat.com>
225
226         * include/std/thread (_Impl_base): Move _M_id out and into ...
227         (thread): ...here. Call _M_make_routine in body of constructors.
228         Adjust data member usage to reflect changes.
229         (_M_make_routine): From _M_make_shared_data.
230         (_M_start_thread): Add __shared_base_type argument.
231         * src/thread.cc: Fixups for above.
232         * config/abi/pre/gnu.ver: Adjust exports.
233         * testsuite/30_threads/thread/native_handle/typesizes.cc: Enable.
234         * testsuite/30_threads/thread/cons/assign_neg.cc: Adjust line numbers.
235         * testsuite/30_threads/thread/cons/copy_neg.cc: Same.
236
237 2009-02-12  Benjamin Kosnik  <bkoz@redhat.com>
238
239         * testsuite/util/thread/all.h (compare_type_to_native_type_sizes): To...
240         (compare_type_to_native_type): ...this, add alignment check.
241         * testsuite/30_threads/condition_variable_any/native_handle/
242         typesizes.cc: Modify as above.
243         * testsuite/30_threads/mutex/native_handle/typesizes.cc: Same.
244         * testsuite/30_threads/timed_mutex/native_handle/typesizes.cc: Same.
245         * testsuite/30_threads/thread/native_handle/typesizes.cc: Same.
246         * testsuite/30_threads/recursive_mutex/native_handle/typesizes.cc: Same.
247         * testsuite/30_threads/condition_variable/native_handle/
248         typesizes.cc: Same.
249         * testsuite/30_threads/recursive_timed_mutex/native_handle/
250         typesizes.cc: Same.
251
252         * testsuite/30_threads/thread/cons/1.cc: Add comments.
253         * testsuite/30_threads/thread/cons/2.cc: Same.
254         * testsuite/30_threads/thread/cons/3.cc: Same.
255         * testsuite/30_threads/thread/cons/4.cc: Same.
256         * testsuite/30_threads/thread/cons/5.cc: Same.
257         * testsuite/30_threads/thread/cons/6.cc: Same.
258         * testsuite/30_threads/thread/cons/7.cc: Same.
259         * testsuite/30_threads/thread/cons/8.cc: Same.
260
261         * testsuite/30_threads/thread/cons/9.cc: New.
262         * testsuite/30_threads/thread/cons/moveable.cc: New.
263
264         * src/condition_variable.cc: Clean up whitespace.
265         * include/std/condition_variable: Same.
266
267 2009-02-09  Benjamin Kosnik  <bkoz@redhat.com>
268
269         * include/std/condition_variable (condition_variable): Remove
270         _M_internal_mutex. Add private __native_type typedef.
271         * src/condition_variable.cc (condition_variable::notify_one):
272         Remove _M_internal_mutex use. Use typedef.
273         (condition_variable::notify_all): Same.
274         * include/std/mutex (mutex): Add private __native_type typedef. Use it.
275         (recursive_mutex): Same.
276         (timed_mutex): Same.
277         (recursive_timed_mutex): Same.
278         (once_flag): Make __native_type typedef private.
279
280         * include/std/thread (this_thread): Add minimal markup.
281
282         * testsuite/30_threads/condition_variable_any/cons/assign_neg.cc:
283         Adjust line numbers.
284         * testsuite/30_threads/condition_variable_any/cons/copy_neg.cc: Same.
285         * testsuite/30_threads/mutex/cons/assign_neg.cc: Same.
286         * testsuite/30_threads/mutex/cons/copy_neg.cc: Same.
287         * testsuite/30_threads/timed_mutex/cons/assign_neg.cc: Same.
288         * testsuite/30_threads/timed_mutex/cons/copy_neg.cc: Same.
289         * testsuite/30_threads/thread/cons/assign_neg.cc: Same.
290         * testsuite/30_threads/thread/cons/copy_neg.cc: Same.
291         * testsuite/30_threads/recursive_mutex/cons/assign_neg.cc: Same.
292         * testsuite/30_threads/recursive_mutex/cons/copy_neg.cc: Same.
293         * testsuite/30_threads/condition_variable/cons/assign_neg.cc: Same.
294         * testsuite/30_threads/condition_variable/cons/copy_neg.cc: Same.
295         * testsuite/30_threads/recursive_timed_mutex/cons/assign_neg.cc: Same.
296         * testsuite/30_threads/recursive_timed_mutex/cons/copy_neg.cc: Same.
297
298         * testsuite/util/thread/all.h: Testsuite utilities for testing thread.
299         * testsuite/30_threads/condition_variable_any/native_handle/
300         typesizes.cc: New.
301         * testsuite/30_threads/mutex/native_handle/typesizes.cc: Same.
302         * testsuite/30_threads/timed_mutex/native_handle/typesizes.cc: Same.
303         * testsuite/30_threads/thread/native_handle/typesizes.cc: Same.
304         * testsuite/30_threads/recursive_mutex/native_handle/typesizes.cc: Same.
305         * testsuite/30_threads/condition_variable/native_handle/
306         typesizes.cc: Same.
307         * testsuite/30_threads/recursive_timed_mutex/native_handle/
308         typesizes.cc: Same.
309
310 2009-02-09  Jack Howarth  <howarth@bromo.med.uc.edu>
311
312         PR testsuite/33300
313         * libstdc++-v3/testsuite/27_io/ios_base/storage/2.cc: Skip
314         on darwin for lp64.
315
316 2009-02-09  Adam Nemet  <anemet@caviumnetworks.com>
317
318         * configure.host: Set abi_baseline_pair for mips64*-linux.
319         * config/abi/post/mips64-linux-gnu/baseline_symbols.txt: New file.
320
321 2009-02-08  Chris Fairles  <cfairles@gcc.gnu.org>
322
323         * include/std/thread (this_thread::get_id): Inline.
324
325 2009-02-08  Chris Fairles  <cfairles@gcc.gnu.org>
326
327         * include/std/thread (thread<>::thread(_Callable)): Explicitly use
328         _Callable as template argument for _M_make_shared_data.
329         * testsuite/30_threads/thread/cons/6.cc: New.
330         * testsuite/30_threads/thread/cons/7.cc: New.
331         * testsuite/30_threads/thread/cons/8.cc: New.
332
333 2009-02-07  Benjamin Kosnik  <bkoz@redhat.com>
334
335         * testsuite/30_threads/thread/member: To..
336         * testsuite/30_threads/thread/members: ...this.
337         * testsuite/30_threads/condition_variable/member: To...
338         * testsuite/30_threads/condition_variable/members: ...this.
339
340 2009-02-06  Benjamin Kosnik  <bkoz@redhat.com>
341
342         * include/std/thread (thread::id): Move definition inside thread.
343         Use native_handle_type. Remove this_thread::get_id friend.
344         Change __thread_data_ptr to __shared_base_ptr.
345         (thread::id::id(native_handle_type): Make public. Still explicit.
346         Use native_handle_type. Change _M_thread_id to _M_thread.
347         (thread::__thread_data_base): Rename to _Impl_base. Use id, change
348         _M_thread_handle to _M_id.
349         (thread::__thread_data): Rename to _Impl.
350         Fixup for renames.
351         (thread::_M_make_thread_data): Return derived type.
352         (thread::hardware_concurrency): Add definition for default case.
353         (thread::get_id): Now can define inline.
354         (thread): Change _M_thread_data to _M_data.
355         (this_thread::get_id): Now can define inline.
356         * src/thread.cc (__thread_proxy): Rename to
357         execute_native_thread_routine.
358         Fixup for other renames.
359         * testsuite/30_threads/thread/cons/assign_neg.cc: New.
360         * testsuite/30_threads/thread/cons/copy_neg.cc: New.
361         * testsuite/30_threads/thread/algorithm: Move to..
362         * testsuite/30_threads/thread/swap: ...this.
363         * testsuite/30_threads/thread/member/hardware_concurrency.cc: Add.
364         * testsuite/30_threads/thread/id/operators.cc: New.
365
366 2009-02-05  Chris Fairles  <cfairles@gcc.gnu.org>
367
368         * include/std/tuple (_Head_base<>::_Head_base(_UHead&&)): Formatting.
369         (_Head_base<>::__swap_impl): Rename to _M_swap_impl.
370         (_Tuple_impl<>::__swap_impl): Likewise and make protected to avoid
371         exposing it in public std::tuple interface.
372
373 2009-02-05  Chris Fairles  <cfairles@gcc.gnu.org>
374             Benjamin Kosnik  <bkoz@redhat.com>
375
376         * include/std/thread (__thread_data_base): Nest class in std::thread.
377         (__thread_data): Likewise.
378         (__thread_data_ptr): Nest typedef in std::thread.
379         * src/thread.cc (__thread_proxy): Qualify the above names.
380         * config/abi/pre/gnu.ver: Remove unused exports.
381
382 2009-02-04  Benjamin Kosnik  <bkoz@redhat.com>
383
384         * include/bits/unique_ptr.h: Remove private __this_type typedef.
385         * include/bits/stl_vector.h: Remove private vector_type typedef.
386         * testsuite/23_containers/vector/requirements/dr438/assign_neg.cc:
387         Fix line numbers.
388         * testsuite/23_containers/vector/requirements/dr438/insert_neg.cc: Same.
389         * testsuite/23_containers/vector/requirements/dr438/
390         constructor_1_neg.cc: Same.
391         * testsuite/23_containers/vector/requirements/dr438/
392         constructor_2_neg.cc: Same.
393         * testsuite/20_util/unique_ptr/modifiers/reset_neg.cc: Same.
394         * testsuite/20_util/unique_ptr/assign/assign.cc: Same.
395
396 2009-02-03  Paolo Carlini  <paolo.carlini@oracle.com>
397
398         PR libstdc++/25191
399         * libsupc++/exception_defines.h: Depending on __EXCEPTIONS,
400         deal consistently with __try and __catch too.
401         * src/localename.cc: Replace try -> __try, catch -> __catch.
402         * src/ios.cc: Likewise.
403         * src/locale.cc: Likewise.
404         * src/istream.cc: Likewise.
405         * src/thread.cc: Likewise.
406         * src/compatibility.cc: Likewise.
407         * src/bitmap_allocator.cc: Likewise.
408         * src/ios_init.cc: Likewise.
409         * include/debug/deque: Likewise.
410         * include/debug/list: Likewise.
411         * include/tr1_impl/hashtable: Likewise.
412         * include/std/bitset: Likewise.
413         * include/ext/pb_ds/detail/resize_policy/
414         hash_load_check_resize_trigger_imp.hpp: Likewise.
415         * include/ext/pb_ds/detail/resize_policy/
416         hash_standard_resize_policy_imp.hpp: Likewise.
417         * include/ext/pb_ds/detail/cc_hash_table_map_/
418         resize_fn_imps.hpp: Likewise.
419         * include/ext/pb_ds/detail/cc_hash_table_map_/
420         constructor_destructor_fn_imps.hpp: Likewise.
421         * include/ext/pb_ds/detail/pat_trie_/
422         split_join_branch_bag.hpp: Likewise.
423         * include/ext/pb_ds/detail/pat_trie_/
424         constructors_destructor_fn_imps.hpp: Likewise.
425         * include/ext/pb_ds/detail/bin_search_tree_/
426         constructors_destructor_fn_imps.hpp: Likewise.
427         * include/ext/pb_ds/detail/gp_hash_table_map_/
428         resize_fn_imps.hpp: Likewise.
429         * include/ext/pb_ds/detail/gp_hash_table_map_/
430         constructor_destructor_fn_imps.hpp: Likewise.
431         * include/ext/pb_ds/detail/binary_heap_/
432         constructors_destructor_fn_imps.hpp: Likewise.
433         * include/ext/pb_ds/detail/binary_heap_/
434         erase_fn_imps.hpp: Likewise.
435         * include/ext/pb_ds/detail/binary_heap_/
436         split_join_fn_imps.hpp: Likewise.
437         * include/ext/pb_ds/detail/left_child_next_sibling_heap_/
438         constructors_destructor_fn_imps.hpp: Likewise.
439         * include/ext/pb_ds/detail/debug_map_base.hpp: Likewise.
440         * include/ext/pb_ds/detail/list_update_map_/
441         constructor_destructor_fn_imps.hpp: Likewise.
442         * include/ext/slist: Likewise.
443         * include/ext/memory: Likewise.
444         * include/ext/rc_string_base.h: Likewise.
445         * include/ext/ropeimpl.h: Likewise.
446         * include/ext/vstring.tcc: Likewise.
447         * include/ext/rope: Likewise.
448         * include/ext/sso_string_base.h: Likewise.
449         * include/bits/shared_ptr.h: Likewise.
450         * include/bits/stl_list.h: Likewise.
451         * include/bits/locale_classes.tcc: Likewise.
452         * include/bits/locale_facets.tcc: Likewise.
453         * include/bits/locale_classes.h: Likewise.
454         * include/bits/forward_list.h: Likewise.
455         * include/bits/stl_vector.h: Likewise.
456         * include/bits/stl_deque.h: Likewise.
457         * include/bits/istream.tcc: Likewise.
458         * include/bits/stl_uninitialized.h: Likewise.
459         * include/bits/ostream.tcc: Likewise.
460         * include/bits/vector.tcc: Likewise.
461         * include/bits/stl_tempbuf.h: Likewise.
462         * include/bits/deque.tcc: Likewise.
463         * include/bits/basic_string.tcc: Likewise.
464         * include/bits/ostream_insert.h: Likewise.
465         * include/bits/locale_facets_nonio.tcc: Likewise.
466         * include/bits/stl_tree.h: Likewise.
467         * include/bits/fstream.tcc: Likewise.
468         * include/tr1/shared_ptr.h: Likewise.
469         * include/tr1/hypergeometric.tcc: Likewise.
470         * include/backward/hashtable.h: Likewise.
471         * libsupc++/exception_ptr.h: Likewise.
472         * libsupc++/eh_personality.cc: Likewise.
473         * libsupc++/eh_call.cc: Likewise.
474         * config/locale/gnu/monetary_members.cc: Likewise.
475         * config/locale/gnu/time_members.h: Likewise.
476         * config/locale/generic/time_members.h: Likewise.
477
478 2009-02-03  Johannes Singler  <singler@ira.uka.de>
479
480         * include/parallel/algorithmfwd.h:
481         Add parallelism default for many declarations.
482         * include/parallel/numericfwd.h: Likewise.
483         * include/parallel/iterator.h: Use iterator_traits as usual.
484         * include/parallel/par_loop.h:
485         Include equally_split.h.
486         (for_each_template_random_access_ed):
487         Avoid calling the Result default constructor.
488         * include/parallel/numeric: Replace
489         for_each_template_random_access by
490         for_each_template_random_access_ed in numeric functions.
491
492 2009-02-02  Benjamin Kosnik  <bkoz@redhat.com>
493
494         * config/os/gnu-linux/os_defines.h: Remove superfluous
495         __NO_STRING_INLINES.
496
497 2009-02-02  Jakub Jelinek  <jakub@redhat.com>
498
499         * testsuite/21_strings/c_strings/char/3.cc: New test.
500         * testsuite/21_strings/c_strings/wchar_t/3.cc: New test.
501
502 2009-01-30  Ulrich Drepper  <drepper@redhat.com>
503             Jakub Jelinek  <jakub@redhat.com>
504
505         PR libstdc++/30928 (partial, works together with recent glibcs)
506         * include/c_std/cstring (memchr, strchr, strpbrk, strrchr, strstr):
507         Provide inlines only if __CORRECT_ISO_CPP_STRING_H_PROTO is not
508         defined.
509         * include/c_std/cwchar (wcschr, wcspbrk, wcsrchr, wcsstr, wmemchr):
510         Provide inlines only if __CORRECT_ISO_CPP_WCHAR_H_PROTO is not
511         defined.
512         * include/c_global/cstring (memchr, strchr, strpbrk, strrchr, strstr):
513         Provide inlines only if __CORRECT_ISO_CPP_STRING_H_PROTO is not
514         defined.
515         * include/c_global/cwchar (wcschr, wcspbrk, wcsrchr, wcsstr, wmemchr):
516         Provide inlines only if __CORRECT_ISO_CPP_WCHAR_H_PROTO is not
517         defined.
518         * testsuite/21_strings/c_strings/char_t/2.cc (test02): If first
519         argument is const char *, assign result to const char * var, not
520         char *.
521         * testsuite/21_strings/c_strings/wchar_t/2.cc (test02): If first
522         argument is const wchar_t *, assign result to const wchar_t * var, not
523         wchar_t *.
524
525 2009-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
526
527         * include/std/thread: Remove unused headers.
528         (__thread_data_base): Remove unused mutex and base.
529         (thread::~thread): Only detach if joinable.
530         (thread::joinable): Test if thread data ptr is empty.
531         (thread::_M_thread_data_mutex): Remove.
532         (thread::_M_get_thread_data): Remove.
533         (thread::_M_make_thread_data): Remove overload, use make_shared.
534         (thread::id::id): Make constructor explicit.
535         * src/thread.cc (thread::join,thread::detach): Throw if not joinable.
536         (thread::_M_start_thread): Break shared_ptr cycle on error.
537         (__thread_proxy): Use shared_ptr swap instead of copy and reset.
538         * testsuite/30_threads/thread/member/4.cc: New.
539         * testsuite/30_threads/thread/member/5.cc: New.
540
541 2009-01-28  Benjamin Kosnik  <bkoz@redhat.com>
542
543         * testsuite/util/testsuite_common_types.h (has_trivial_cons_dtor): New.
544         (standard_layout): Just use !has_virtual_destructor for now.
545         * testsuite/30_threads/mutex/requirements/standard_layout.cc: New.
546         * testsuite/30_threads/timed_mutex/requirements/standard_layout.cc: New.
547         * testsuite/30_threads/recursive_mutex/requirements/
548         standard_layout.cc: New.
549         * testsuite/30_threads/condition_variable/requirements/
550         standard_layout.cc: New.
551         * testsuite/29_atomics/atomic_address/requirements/
552         standard_layout.cc: Adjust.
553         * testsuite/29_atomics/atomic_flag/requirements/
554         standard_layout.cc: Same.
555         * testsuite/29_atomics/atomic_address/requirements/trivial.cc: New.
556         * testsuite/29_atomics/atomic_integral/requirements/trivial.cc: Same.
557         * testsuite/29_atomics/atomic_flag/requirements/trivial.cc: Same.
558         * testsuite/30_threads/condition_variable/requirements/typedefs.cc: New.
559         * testsuite/29_atomics/atomic_integral/cons/assign_neg.cc: Adjust
560         line numbers.
561         * testsuite/29_atomics/atomic_integral/cons/copy_neg.cc: Same.
562         * testsuite/29_atomics/atomic/cons/assign_neg.cc: Same.
563         * testsuite/29_atomics/atomic/cons/copy_neg.cc: Same.
564         * testsuite/29_atomics/atomic/requirements/standard_layout.cc:
565         Remove, not required.
566
567 2009-01-22  Jonathan Wakely  <jwakely.gcc@gmail.com>
568
569         * include/std/thread (__thread_data_base, thread): Rename member
570         functions to match coding style.
571         (thread::thread,thread::operator=): Define move operations.
572         * src/thread.cc (__thread_data_base, thread): Rename member functions.
573         * config/abi/pre/gnu.ver: Adjust.
574
575 2009-01-22  Benjamin Kosnik  <bkoz@redhat.com>
576
577         PR libstdc++/38384
578         * acinclude.m4 (GLIBCXX_ENABLE_SYMVERS): Disable symbol versioning
579         on HPUX.
580         * configure: Regenerate.
581
582 2009-01-22  Dodji Seketeli  <dodji@redhat.com>
583
584         * include/ext/bitmap_allocator.h: Reverting changes related to PR
585         c++/26693.
586
587 2009-01-21  Benjamin Kosnik  <bkoz@redhat.com>
588
589         * testsuite/29_atomics/headers/stdatomic.h/functions.c: Remove
590         atomic_flag_fence.
591
592 2009-01-21  Dodji Seketeli  <dodji@redhat.com>
593
594         * include/ext/bitmap_allocator.h: the typedefs should be made public
595         if we want them to be accessible. This has been revealed by the patch
596         that fixes PR c++/26693 in g++.
597
598 2009-01-20  Benjamin Kosnik  <bkoz@redhat.com>
599             Uros Bizjak  <ubizjak@gmail.com>
600
601         PR libstdc++/38834
602         * config/abi/pre/gnu.ver: Correct char16_t and char32_t exports.
603         * config/os/gnu-linux/ldbl-extra.ver: Tweak.
604
605 2009-01-20  Benjamin Kosnik  <bkoz@redhat.com>
606             Rainer Emrich  <r.emrich@de.tecosim.com>
607
608         PR libstdc++/38919
609         * crossconfig.m4: Use GLIBCXX_CHECK_MATH_SUPPORT and
610         GLIBCXX_CHECK_STDLIB_SUPPORT for mingw crosses.
611         * configure: Regenerate.
612
613 2009-01-18  Jonathan Wakely  <jwakely.gcc@gmail.com>
614
615         * include/std/thread (__thread_data_base::__run): Make non-const.
616         * testsuite/30_threads/thread/cons/5.cc: New.
617
618 2009-01-16  Benjamin Kosnik  <bkoz@redhat.com>
619
620         * src/Makefile.am (sources): Add math_stubs_float.cc.
621         * src/Makefile.in: Regenerate.
622         * src/math_stubs_float.cc: New, from libmath/stubs.c.
623
624 2009-01-15  Benjamin Kosnik  <bkoz@redhat.com>
625
626         * src/Makefile.am (sources): Add math_stubs_long_double.cc.
627         * src/Makefile.in: Regenerate.
628         * src/math_stubs_long_double.cc: New, from libmath/stubs.c.
629
630 2009-01-15  Benjamin Kosnik  <bkoz@redhat.com>
631
632         PR libstdc++/32666
633         * config/abi/post/hppa-linux-gnu/baseline_symbols.txt: Update.
634
635 2009-01-15  Benjamin Kosnik  <bkoz@redhat.com>
636
637         PR libstdc++/32666
638         * Makefile.am (hosted_source): Remove libmath directory.
639         * Makefile.in: Regenerate.
640         * linkage.m4 (GLIBCXX_CHECK_COMPLEX_MATH_SUPPORT): Remove.
641         (AC_REPLACE_MATHFUNCS): Remove.
642         (GLIBCXX_CHECK_MATH_SUPPORT): Remove copysign, copysignl checks as done
643         in GLIBCXX_CHECK_C99_TR1.
644         * acinclude.m4: Remove libmath, need_math.
645         * crossconfig.m4: Remove use of HAVE_COPYSIGN, HAVE_COPYSIGNL,
646         HAVE_COPYSIGNF, GLIBCXX_CHECK_COMPLEX_MATH_SUPPORT, need_libmath.
647         * configure.ac: Same.
648         * configure: Regenerate.
649         * fragment.am: Fix comment.
650         * config.h.in: Regenerate.
651         * src/Makefile.in: Regenerate.
652         * src/Makefile.am: Remove libmath references.
653         * doc/Makefile.in: Regenerate.
654         * po/Makefile.in: Regenerate.
655         * include/Makefile.in: Regenerate.
656         * libsupc++/Makefile.in: Regenerate.
657         * testsuite/Makefile.in: Regenerate.
658
659         * src/compatibility.cc: Also export long double versions of "C" math
660         library if hppa-linux.
661         * config/abi/pre/gnu.ver: Remove unused __signbit exports.
662         * doc/xml/manual/appendix_contributing.xml: Remove libmath reference.
663
664         * libmath: Remove.
665         * libmath/signbit.c: Same.
666         * libmath/stubs.c: Same.
667         * libmath/Makefile.in: Same.
668         * libmath/copysignf.c: Same.
669         * libmath/mathconf.h: Same.
670         * libmath/signbitf.c: Same.
671         * libmath/Makefile.am: Same.
672         * libmath/signbitl.c: Same.
673
674 2009-01-15  Chris Fairles  <cfairles@gcc.gnu.org>
675             Paolo Carlini  <paolo.carlini@oracle.com>
676
677         * acinclude.m4 ([GLIBCXX_ENABLE_CLOCK_GETTIME],
678         [GLIBCXX_CHECK_NANOSLEEP]): Remove.
679         ([GLIBCXX_ENABLE_LIBSTDCXX_TIME]): Add.
680         * configure.ac: Adjust.
681         * doc/xml/manual/configure.xml: Update.
682         * testsuite/lib/libstdc++.exp (check_v3_target_sched_yield): Add.
683         * testsuite/lib/dg-options.exp (dg-require-sched-yield): Add.
684         * testsuite/30_threads/thread/this_thread/2.cc: Use the latter.
685         * configure: Regenerate.
686         * config.h.in: Likewise.
687
688         * src/thread.cc (thread::thread(), thread::~thread, thread::get_id,
689         thread::joinable, thread::swap, this_thread::get_id,
690         this_thread::yield): Define inline...
691         * include/std/thread: ... here.
692         * config/abi/pre/gnu.ver: Adjust.
693
694 2009-01-13  Uros Bizjak  <ubizjak@gmail.com>
695
696         * testsuite/ext/pb_ds/regression/hash_data_map_rand.cc:
697         Add dg-timeout-factor 2.0.
698         * testsuite/ext/pb_ds/regression/trie_data_map_rand.cc: Ditto.
699         * testsuite/ext/pb_ds/regression/tree_no_data_map_rand.cc: Ditto.
700         * testsuite/ext/pb_ds/regression/hash_no_data_map_rand.cc: Ditto.
701         * testsuite/ext/pb_ds/regression/priority_queue_rand.cc: Ditto.
702         * testsuite/ext/pb_ds/regression/tree_data_map_rand.cc: Ditto.
703         * testsuite/ext/pb_ds/regression/trie_no_data_map_rand.cc: Ditto.
704
705 2009-01-13  Uros Bizjak  <ubizjak@gmail.com>
706
707         * scripts/extract_symvers: Add sed script to remove ' [<other>: xx] '
708         field from readelf output.
709
710 2009-01-12  Benjamin Kosnik  <bkoz@redhat.com>
711
712         PR libstdc++/38384
713         * crossconfig.m4 (hpux): Update for 10.20, 11, 11.20.
714         * configure: Regenerate.
715
716 2009-01-12  Benjamin Kosnik  <bkoz@redhat.com>
717
718         * crossconfig.m4 (linux): Add GCC_CHECK_TLS to define
719         _GLIBCXX_HAVE_TLS.
720         Use GLIBCXX_CHECK_COMPILER_FEATURES to compute SECTION_FLAGS.
721
722 2009-01-11  Jonathan Wakely  <jwakely.gcc@gmail.com>
723
724         * include/tr1_impl/regex (basic_regex::basic_regex): Use range
725         constructor for _M_pattern.
726         * testsuite/tr1/7_regular_expressions/basic_regex/ctors/char/
727         string.cc: Test construction from different basic_string type.
728         * testsuite/tr1/7_regular_expressions/basic_regex/ctors/wchar_t/
729         string.cc: Likewise.
730
731 2009-01-07  Benjamin Kosnik  <bkoz@redhat.com>
732             Jonathan Larmour  <jifl@eCosCentric.com>
733
734         PR libstdc++/36801
735         * config/cpu/generic/atomicity_mutex/atomicity.h (get_atomic_mutex):
736         New.
737         (__gnu_cxx::__exchange_and_add): Use it.
738         * src/atomic.cc (get_atomic_mutex): New.
739         * src/debug.cc (get_safe_base_mutex): New.
740         * src/locale.cc (get_locale_cache_mutex): New.
741         * src/mt_allocator.cc (get_freelist): New.
742         (get_freelist_mutex): New.
743         * src/pool_allocator.cc (get_palloc_mutex): New.
744         * include/std/mutex (__once_functor_lock): To
745         (__get_once_functor_lock): ...this.
746         * src/mutex.cc (__once_mutex): Don't export, use
747         (get_once_mutex): ...this.
748         * config/abi/pre/gnu.ver: Adjust exports.
749
750 2009-01-07  Jakub Jelinek  <jakub@redhat.com>
751
752         PR libstdc++/38732
753         * libsupc++/unwind-cxx.h (__cxxabiv1::__cxa_exception): Remove
754         referenceCount field again.
755         (__cxxabiv1::__cxa_refcounted_exception): New struct.
756         (__cxxabiv1::__get_refcounted_exception_header_from_obj,
757         __cxxabiv1::__get_refcounted_exception_header_from_ue): New static
758         inline functions.
759         * libsupc++/eh_alloc.cc (__cxxabiv1::__cxa_allocate_exception,
760         __cxxabiv1::__cxa_free_exception): Use __cxa_refcounted_exception
761         instead of __cxa_exception.
762         * libsupc++/eh_throw.cc (__gxx_exception_cleanup,
763         __cxxabiv1::__cxa_throw): Likewise.
764         * libsupc++/eh_ptr.cc (std::rethrow_exception,
765         std::__exception_ptr::exception_ptr::_M_addref,
766         std::__exception_ptr::exception_ptr::_M_release,
767         __gxx_dependent_exception_cleanup): Likewise.
768         * testsuite/18_support/exception/38732.cc: New test.
769
770         PR libstdc++/38092
771         * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New test.
772         * src/compatibility.cc: Don't use .symver directives if
773         _GLIBCXX_HAVE_AS_SYMVER_DIRECTIVE is not defined.
774         * config.h.in: Regenerated.
775         * configure: Likewise.
776
777 2009-01-07  Paolo Carlini  <paolo.carlini@oracle.com>
778
779         PR libstdc++/38466
780         * include/bits/stl_pair.h: Document C++03 pair vs swap.
781
782 2009-01-06  Benjamin Kosnik  <bkoz@redhat.com>
783
784         * src/locale_init.cc (locale::_S_initialize_once): Move construction
785         of classic locale...
786         (locale::classic): Here.
787
788 2009-01-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
789
790         * include/tr1_impl/regex: Fix bad return statements and typos.
791
792 2009-01-05  Benjamin Kosnik  <bkoz@redhat.com>
793
794         * include/tr1_impl/regex: Remove unimplemented function definitions.
795         * testsuite/28_regex/init-list.cc: Compile only.
796         * testsuite/tr1/7_regular_expressions/regex/cons/char/
797         c_string_extended.cc: Same.
798         * testsuite/tr1/7_regular_expressions/basic_regex/assign/*: Same.
799         * testsuite/tr1/7_regular_expressions/basic_regex/ctors/*: Same.
800
801 2009-01-05  Benjamin Kosnik  <bkoz@redhat.com>
802
803         PR libstdc++/38384
804         * crossconfig.m4: Define HAVE_FABSF for hpux crosses.
805         * configure: Regenerate.
806
807 2009-01-05  Ben Elliston  <bje@au.ibm.com>
808
809         * configure.ac (GLIBCXX_CHECK_STANDARD_LAYOUT): Remove invocation.
810         * configure: Regenerate.
811
812 2009-01-05  Ben Elliston  <bje@au.ibm.com>
813
814         * configure.ac: Exchange the order of GLIBCXX_ENABLE_THREADS and
815         GLIBCXX_ENABLE_ATOMIC_BUILTINS macro invocations.
816         * configure: Regenerate.
817
818 2009-01-04  Richard Guenther  <rguenther@suse.de>
819
820         PR libstdc++/38720
821         * include/ext/pointer.h (_Relative_pointer_impl): Use an unsigned
822         integer type for storage, arithmetic and comparisons.
823         * testsuite/ext/ext_pointer/1_neg.cc: Adjust line numbers.
824
825 2009-01-04  Paolo Carlini  <paolo.carlini@oracle.com>
826
827         PR libstdc++/38719
828         * include/bits/forward_list.h (_Fwd_list_iterator<>::_M_next,
829         _Fwd_list_const_iterator::_M_next): Fix return type.
830
831 2009-01-03  Paolo Carlini  <paolo.carlini@oracle.com>
832
833         * Revert last commit, reopen and suspend libstdc++/38678.
834
835 2009-01-01  Paolo Carlini  <paolo.carlini@oracle.com>
836
837         PR libstdc++/38678
838         * include/std/istream (basic_istream<>::_M_read): New.
839         * include/bits/istream.tcc (basic_istream<>::_M_read): Define.
840         (basic_istream<>::read, basic_istream<>::readsome): Use it.
841         * include/std/ostream (basic_ostream<>::_M_write_): New.
842         (basic_ostream<>::_M_write): Adjust.
843         * include/bits/ostream.tcc (basic_ostream<>::_M_write_): Define.
844         * testsuite/27_io/basic_istream/read/char/38678.cc: New.
845         * testsuite/27_io/basic_istream/read/wchar_t/38678.cc: Likewise.
846         * testsuite/27_io/basic_ostream/write/char/38678.cc: Likewise.
847         * testsuite/27_io/basic_ostream/write/wchar_t/38678.cc: Likewise.
848
849 2008-12-22  Jonathan Larmour  <jifl@eCosCentric.com>
850
851         * include/ext/concurrence.h: Fix __gthread_cond_t initialisation
852         function macro name.
853
854 2008-12-22  Benjamin Kosnik  <bkoz@redhat.com>
855
856         * doc/doxygen/stdheader.cc: Add cstdlib.
857         * doc/doxygen/user.cfg.in: Regenerate for doxygen 1.5.7.
858
859 2008-12-21  Andrew Pinski  <pinskia@gmail.com>
860
861         PR target/38300
862         * configure: Regenerate.
863
864 2008-12-21  Paolo Carlini  <paolo.carlini@oracle.com>
865
866         PR libstdc++/38596
867         * include/tr1_impl/functional (function<>::target,
868         function<>::target_type): Provide only when __GXX_RTTI is defined.
869         (_Function_base::_M_manager, _Ref_manager<>::_M_manager,
870         _Function_handler<void(_ArgTypes...), _Member _Class::*>::_M_manager):
871         Adjust.
872
873 2008-12-19  Ben Elliston  <bje@au.ibm.com>
874
875         * acinclude.m4: Guard a variable test against an empty string.
876         * configure: Regenerate.
877
878 2008-12-18  Jack Howarth  <howarth@bromo.med.uc.edu>
879
880         * testsuite/21_strings/basic_string/element_access/wchar_t/21674.cc:
881         Add xfail on all targets except darwin.
882         * libstdc++-v3/testsuite/21_strings/basic_string/element_access/char/
883         1674.cc: Same.
884         * libstdc++-v3/testsuite/22_locale/ctype/is/char/2.cc: Correct syntax
885         for xfailing on all targets except linux.
886
887 2008-12-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
888
889         * configure: Regenerate.
890
891 2008-12-17  Jack Howarth  <howarth@bromo.med.uc.edu>
892
893         * testsuite/26_numerics/headers/cmath/c99_classification_macros_c.cc:
894         Don't xfail test on darwin8 or later.
895
896 2008-12-16  Jack Howarth  <howarth@bromo.med.uc.edu>
897
898         * testsuite/26_numerics/headers/cmath/c99_classification_macros_c.cc:
899         Don't xfail excessive errors on darwin8 or later.
900
901 2008-12-15  Benjamin Kosnik  <bkoz@redhat.com>
902
903         * include/c_global/cstdatomic: Remove assert include.
904         * include/debug/debug.h: Consolidate __replacement_assert...
905         * include/parallel/base.h: Consolidate __replacement_assert...
906         * include/bits/c++config: ...here.
907         * include/bits/atomic_0.h: Use it.
908         * include/bits/atomic_2.h: Same.
909         * testsuite/29_atomics/atomic/cons/assign_neg.cc: Adjust line numbers.
910         * testsuite/29_atomics/atomic/cons/copy_neg.cc: Same.
911
912 2008-12-13  Benjamin Kosnik  <bkoz@redhat.com>
913
914         * src/atomic.cc: Revert last change.
915         * include/bits/atomic_2.h: Move cassert include to...
916         * include/c_global/cstdatomic: ...here.
917         * testsuite/29_atomics/atomic/cons/assign_neg.cc: Adjust line numbers.
918         * testsuite/29_atomics/atomic/cons/copy_neg.cc: Same.
919
920 2008-12-12  Benjamin Kosnik  <bkoz@redhat.com>
921
922         * src/Makefile.am: Remove -x c++ for atomic build rules.
923         * src/Makefile.in: Regenerate.
924         * src/atomic.cc: Move mutex include before cstdatomic.
925
926 2008-12-12  H.J. Lu  <hongjiu.lu@intel.com>
927
928         PR libstdc++/37144
929         * testsuite/util/regression/trait/assoc/type_trait.hpp
930         (regression_test_type_traits): Add const to pair_type_rebind.
931
932 2008-12-12  Benjamin Kosnik  <bkoz@redhat.com>
933
934         * src/atomic.cc: Correct guards to match mutex.cc.
935
936 2008-12-11  Benjamin Kosnik  <bkoz@redhat.com>
937             Richard Henderson  <rth@redhat.com>
938
939         * include/c_global/cstdatomic: Update to N2798.
940         (atomic): Remove explicit constructors as per DR 845.
941         * include/bits/atomic_0.h: New. Switchable implementation.
942         * include/bits/atomic_2.h: New. Lock-free implementation.
943         * include/c_compatibility/stdatomic.h: Use foward headers.
944         * include/bits/atomicfwd_cxx.h: New.
945         * include/bits/atomicfwd_c.h: New.
946         * src/atomic.cc: Adjust.
947         * acinclude.m4 (GLIBCXX_CHECK_STANDARD_LAYOUT): Remove,
948         unconditionally use default/deleted syntax.
949         (GLIBCXX_ENABLE_ATOMIC_BUILTINS): Check for 2, 8.
950         * include/Makefile.am (bits_headers): Add atomicfwd_c.h,
951         atomicfwd_cxx.h, atomic_0.h, atomic_2.h.
952         * include/Makefile.in: Regenerate.
953         * configure: Regenerate.
954         * config.h.in: Regenerate.
955         * config/abi/pre/gnu.ver: Adjust exports.
956
957         * testsuite/27_io/ios_base/types/fmtflags/bitmask_operators.cc: Adjust.
958         * testsuite/27_io/ios_base/types/openmode/bitmask_operators.cc: Same.
959         * testsuite/27_io/ios_base/types/iostate/bitmask_operators.cc: Same.
960         * testsuite/29_atomics/atomic_address/cons/assign_neg.cc: Same.
961         * testsuite/29_atomics/atomic_address/cons/explicit_value.cc: Move to..
962         * testsuite/29_atomics/atomic_address/cons/single_value.cc: ...this.
963         * testsuite/29_atomics/atomic_address/cons/copy_neg.cc
964         * testsuite/29_atomics/atomic_integral/cons/single_value.cc: New.
965         * testsuite/29_atomics/atomic_integral/cons/assign_neg.cc: New.
966         * testsuite/29_atomics/atomic_integral/cons/copy_neg.cc: New.
967         * testsuite/29_atomics/atomic_integral/cons/default.cc: New.
968         * testsuite/29_atomics/atomic_integral/cons/direct_list.cc: New.
969         * testsuite/29_atomics/atomic_integral/cons/copy_list.cc: New.
970         * testsuite/29_atomics/atomic_integral/requirements/
971         standard_layout.cc: New.
972         * testsuite/29_atomics/atomic_integral/operators/
973         integral_assignment.cc: New.
974         * testsuite/29_atomics/atomic_integral/operators/increment_neg.cc: New.
975         * testsuite/29_atomics/atomic_integral/operators/bitwise_neg.cc: New.
976         * testsuite/29_atomics/atomic_integral/operators/decrement_neg.cc: New.
977         * testsuite/29_atomics/atomic_integral/operators/increment.cc: New.
978         * testsuite/29_atomics/atomic_integral/operators/decrement.cc: New.
979         * testsuite/29_atomics/atomic_integral/operators/bitwise.cc: New.
980         * testsuite/29_atomics/atomic_integral/operators/
981         integral_conversion.cc: New.
982         * testsuite/29_atomics/atomic_flag/cons/assign_neg.cc: Adjust.
983         * testsuite/29_atomics/atomic_flag/cons/copy_neg.cc: Same.
984         * testsuite/29_atomics/atomic_flag/requirements/
985         standard_layout.cc: Same.
986         * testsuite/29_atomics/atomic_flag/
987         atomic_global_fence_compatibility.cc: Kill.
988         * testsuite/29_atomics/headers/cstdatomic/types_std_c++0x.cc: Adjust.
989         * testsuite/29_atomics/headers/cstdatomic/functions_std_c++0x.cc: Same.
990         * testsuite/29_atomics/headers/cstdatomic/macros.cc: Same.
991         * testsuite/29_atomics/headers/stdatomic.h/macros.c: Same.
992         * testsuite/29_atomics/headers/stdatomic.h/types.c: Same.
993         * testsuite/29_atomics/atomic/cons/assign_neg.cc: Same.
994         * testsuite/29_atomics/atomic/cons/explicit_value.cc: Move to...
995         * testsuite/29_atomics/atomic/cons/single_value.cc: ...this.
996         * testsuite/29_atomics/atomic/cons/copy_neg.cc
997         * testsuite/29_atomics/atomic/cons/direct_list.cc: New.
998         * testsuite/29_atomics/atomic/cons/copy_list.cc: New.
999         * testsuite/29_atomics/atomic/requirements/standard_layout.cc: New.
1000         * testsuite/29_atomics/atomic/requirements/base_classes.cc: New.
1001         * testsuite/29_atomics/atomic/operators/integral_assignment.cc: New.
1002         * testsuite/29_atomics/atomic/operators/integral_conversion.cc: New.
1003         * testsuite/util/testsuite_hooks.h (bitmask_operators): Move...
1004         * testsuite/util/testsuite_common_types.h: ...here.
1005         (atomic_integrals_no_bool): New.
1006         (atomic_integrals): New.
1007         (has_increment_operators, has_decrement_operators)
1008         (direct_list_initializable, single_value_constructible)
1009         (standard_layout, has_bitwise_operators, integral_convertable)
1010         (integral_assignable): Add.
1011
1012 2008-12-11  Jakub Jelinek  <jakub@redhat.com>
1013
1014         PR c++/37582
1015         * testsuite/26_numerics/headers/cmath/37582.cc: New.
1016
1017 2008-12-08  Paolo Carlini  <paolo.carlini@oracle.com>
1018
1019         * include/tr1_impl/cmath: Undef remquof / remquol too; add using
1020         declarations.
1021         * acinclude.m4 [GLIBCXX_CHECK_C99_TR1]: Check remquof / remquol too.
1022         * testsuite/tr1/8_c_compatibility/cmath/functions.cc: Adjust.
1023         * configure: Regenerate.
1024
1025 2008-12-08  Edward Smith-Rowland  <3dw4rd@verizon.net>
1026
1027         * include/bits/forward_list.h: Fixed spurious "forward_swap" in doxy.
1028
1029 2008-12-06  Paolo Carlini  <paolo.carlini@oracle.com>
1030
1031         PR libstdc++/38421
1032         * include/tr1/ell_integral.tcc: Avoid __ea, future SPU badname.
1033         * doc/xml/manual/appendix_contributing.xml: Add __ea to the list
1034         of badnames.
1035
1036 2008-12-05  Tom Tromey  <tromey@redhat.com>
1037
1038         * include/tr1_impl/functional (_Mu): Fix typo.
1039
1040 2008-12-05  Paolo Carlini  <paolo.carlini@oracle.com>
1041
1042         PR libstdc++/38399
1043         * include/bits/locale_facets_nonio.tcc (money_get<>::
1044         _M_extract(iter_type, iter_type, ios_base&, ios_base::iostate&,
1045         string&)): Fix, reject decimal point when frac_digits <= 0.
1046         * testsuite/22_locale/money_get/get/char/38399.cc: New.
1047         * testsuite/22_locale/money_get/get/wchar_t/38399.cc: Likewise.
1048         * testsuite/22_locale/money_get/get/char/5.cc: Adjust.
1049         * testsuite/22_locale/money_get/get/wchar_t/5.cc: Likewise.
1050
1051 2008-12-05  Paolo Carlini  <paolo.carlini@oracle.com>
1052
1053         PR libstdc++/38411
1054         * testsuite/22_locale/numpunct/members/char/2.cc: Use is_IS instead
1055         of fr_FR.
1056         * testsuite/22_locale/numpunct/members/wchar_t/2.cc: Likewise.
1057         * testsuite/22_locale/locale/cons/7.cc: Likewise.
1058
1059 2008-12-04  Paolo Carlini  <paolo.carlini@oracle.com>
1060
1061         PR libstdc++/38368
1062         * config/locale/gnu/numeric_members.cc (numpunct<char>::
1063         _M_initialize_numpunct, numpunct<wchar_t>::_M_initialize_numpunct):
1064         Fix for THOUSANDS_SEP == '\0' consistently with "C" locale.
1065         * config/locale/gnu/monetary_members.cc (moneypunct<char, true>::
1066         _M_initialize_moneypunct, moneypunct<char, false>::
1067         _M_initialize_moneypunct, moneypunct<wchar_t, true>::
1068         _M_initialize_moneypunct, moneypunct<wchar_t, false>::
1069         _M_initialize_moneypunct): Fix for __MON_DECIMAL_POINT == '\0' or
1070         __MON_THOUSANDS_SEP == '\0' consistently with "C" locale.
1071         * testsuite/22_locale/locale/cons/38368.cc: New.
1072
1073 2008-12-02  Paolo Carlini  <paolo.carlini@oracle.com>
1074
1075         PR libstdc++/38365 (cont)
1076         * src/localename.cc (locale::locale(const locale&, const locale&,
1077         category)): Revert last changes.
1078         (locale::_Impl::_M_replace_categories(const _Impl*, category)):
1079         Fix here instead; rework.
1080
1081 2008-12-02  Paolo Carlini  <paolo.carlini@oracle.com>
1082
1083         PR libstdc++/38365
1084         * src/localename.cc (locale::locale(const locale&, const locale&,
1085         category)): Fix.
1086         * testsuite/22_locale/locale/cons/38365.cc: New.
1087
1088 2008-12-01  Benjamin Kosnik  <bkoz@redhat.com>
1089
1090         PR libstdc++/38080
1091         * include/std/iostream: Correct URL.
1092         * include/std/streambuf: Same.
1093         * include/std/bitset: Same.
1094         * include/std/iosfwd: Same.
1095         * include/std/fstream: Same.
1096         * include/std/istream: Same.
1097         * include/std/ostream: Same.
1098         * include/std/sstream: Same.
1099         * include/bits/basic_ios.h: Same.
1100         * include/bits/stl_map.h: Same.
1101         * include/bits/stl_set.h: Same.
1102         * include/bits/stl_multimap.h: Same.
1103         * include/bits/ios_base.h: Same.
1104         * include/bits/stl_multiset.h: Same.
1105         * include/bits/char_traits.h: Same.
1106         * include/bits/stl_relops.h: Same.
1107         * testsuite/27_io/ios_base/cons/assign_neg.cc: Adjust line numbers.
1108         * testsuite/27_io/ios_base/cons/copy_neg.cc: Ditto.
1109
1110 2008-11-26  Janis Johnson  <janis187@us.ibm.com>
1111
1112         PR testsuite/28870
1113         * testsuite/lib/libstdc++.exp: Include new timeout library files.
1114         (libstdc++_init): Define tool_timeout.
1115         (dg-test): Override DejaGnu proc.
1116         (v3_target_compile): Set timeout value from new proc.
1117         (v3_target_compile_as_c): Ditto.
1118
1119 2008-11-24  Paolo Carlini  <paolo.carlini@oracle.com>
1120
1121         PR libstdc++/38244 (cont, debug bits)
1122         * include/debug/bitset (bitset<>::bitset(const char*, char, char)):
1123         Remove, do not implement DR 778.
1124
1125 2008-11-24  Paolo Carlini  <paolo.carlini@oracle.com>
1126
1127         PR libstdc++/38244
1128         * include/std/bitset (bitset<>::bitset(const char*, char, char)):
1129         Remove, do not implement DR 778.
1130         * doc/xml/manual/intro.xml: Remove entry for DR 778.
1131         * testsuite/23_containers/bitset/cons/2.cc: Remove.
1132         * testsuite/23_containers/bitset/cons/dr396.cc: Tweak.
1133         * testsuite/23_containers/bitset/cons/38244.cc: Add.
1134
1135 2008-11-21  Paolo Carlini  <paolo.carlini@oracle.com>
1136
1137         * testsuite/22_locale/num_put/put/char/38210.cc: Tweak.
1138         * testsuite/22_locale/num_put/put/wchar_t/38210.cc: Likewise.
1139
1140 2008-11-21  Paolo Carlini  <paolo.carlini@oracle.com>
1141
1142         PR libstdc++/38210
1143         * include/bits/locale_facets.tcc (num_put<>::do_put(iter_type,
1144         ios_base&, char_type, const void*)): Fix.
1145         * testsuite/22_locale/num_put/put/char/38210.cc: New.
1146         * testsuite/22_locale/num_put/put/wchar_t/38210.cc: Likewise.
1147
1148 2008-11-20  Paolo Carlini  <paolo.carlini@oracle.com>
1149
1150         PR libstdc++/38196
1151         * include/bits/locale_facets.tcc (num_put<>::do_put(iter_type,
1152         ios_base&, char_type, bool)): Fix.
1153         * testsuite/22_locale/num_put/put/char/38196.cc: New.
1154         * testsuite/22_locale/num_put/put/wchar_t/38196.cc: Likewise.
1155
1156 2008-11-18  Paolo Carlini  <paolo.carlini@oracle.com>
1157
1158         * include/tr1_impl/cinttypes: Remove redundant pragma system_header.
1159         * include/tr1_impl/cfenv: Likewise.
1160         * include/tr1_impl/cstdint: Likewise.
1161
1162 2008-11-13  Paolo Carlini  <paolo.carlini@oracle.com>
1163
1164         PR libstdc++/38000
1165         * include/c_global/csignal: Do not use include_next.
1166         * include/c_global/cstdlib: Likewise.
1167         * include/c_global/cstdio: Likewise.
1168         * include/c_global/cstdarg: Likewise.
1169         * include/c_global/cctype: Likewise.
1170         * include/c_global/cerrno: Likewise.
1171         * include/c_global/cmath: Likewise.
1172         * include/c_global/clocale: Likewise.
1173         * include/c_global/climits: Likewise.
1174         * include/c_global/cassert: Likewise.
1175         * include/c_global/csetjmp: Likewise.
1176         * include/c_global/cwchar: Likewise.
1177         * include/c_global/cfloat: Likewise.
1178         * include/c_global/cstdbool: Likewise.
1179         * include/c_global/cstring: Likewise.
1180         * include/c_global/cstddef: Likewise.
1181         * include/c_global/cwctype: Likewise.
1182         * include/tr1/cstdbool: Likewise.
1183         * include/tr1_impl/cinttypes: Do not include <inttypes.h>.
1184         * include/c_global/cinttypes: Do it here.
1185         * include/tr1/cinttypes: Likewise.
1186         * include/tr1_impl/cfenv: Do not include <fenv.h>.
1187         * include/c_global/cfenv: Do it here.
1188         * include/tr1/cfenv: Likewise.
1189         * include/tr1_impl/cstdint: Do not include <stdint.h>.
1190         * include/c_global/cstdint: Do it here.
1191         * include/tr1/cstdint: Likewise.
1192         * include/c_compatibility/fenv.h: Include <tr1_impl/cfenv>.
1193         * include/c_compatibility/stdint.h: Include <tr1_impl/cstdint>.
1194         * include/c_compatibility/inttypes.h: Include <tr1_impl/cinttypes>.
1195
1196         * include/c_compatibility/math.h: Minor tweak, add comment.
1197
1198 2008-11-12  Steve Ellcey  <sje@cup.hp.com>
1199
1200         * configure.ac: Move call to GCC_CHECK_UNWIND_GETIPINFO.
1201         * configure: Regenerate to get new GCC_CHECK_UNWIND_GETIPINFO.
1202
1203 2008-11-12  Paolo Carlini  <paolo.carlini@oracle.com>
1204
1205         PR libstdc++/37986 (cont)
1206         * include/tr1_impl/random (struct _Adaptor): Use only remove_reference
1207         on _Engine.
1208         (struct _Adaptor<_Engine*, _Distribution>): Add.
1209         * testsuite/tr1/5_numerical_facilities/random/variate_generator/
1210         37986.cc: Extend.
1211
1212 2008-11-11  Paolo Carlini  <paolo.carlini@oracle.com>
1213
1214         PR libstdc++/37986
1215         * include/tr1_impl/random (struct _Adaptor): Use remove_pointer
1216         and remove_reference on _Engine.
1217         * testsuite/tr1/5_numerical_facilities/random/variate_generator/
1218         37986.cc: New.
1219
1220 2008-11-11  Paolo Carlini  <paolo.carlini@oracle.com>
1221
1222         * testsuite/ext/ext_pointer/1_neg.cc: Adjust dg-error line numbers.
1223
1224 2008-11-11  Paolo Carlini  <paolo.carlini@oracle.com>
1225
1226         * testsuite/23_containers/vector/ext_pointer/modifiers/erase.cc: Fix.
1227         * testsuite/23_containers/vector/ext_pointer/modifiers/element.cc:
1228         Likewise.
1229
1230 2008-11-11  Bob Walters  <bob.s.walters@gmail.com>
1231
1232         * include/bits/forward_list.h: Support non-standard pointer types
1233         (_Fwd_list_node_base): Add _Alloc template parameter.
1234         (_Fwd_list_node<>): Likewise.
1235         (_Fwd_list_iterator<>): Likewise.
1236         (_Fwd_list_const_iterator<>): Likewise.
1237         (_Fwd_list_node_base::_M_next, _M_transfer_after, _M_reverse_after):
1238         Use _Alloc<_Tp>::pointer.
1239         (_Fwd_list_iterator<>::_M_node): Use _Node_base::_Pointer.
1240         (_Fwd_list_base<>::_M_get_node, _M_create_node, _M_create_node,
1241         _M_insert_after, _M_put_node, _M_erase_after): Likewise.
1242         (_Fwd_list_const_iterator<>::_M_node): use _Node_base::_Const_pointer.
1243         (forward_list<>): Use __static_pointer_cast in place of static_cast,
1244         and __const_pointer_cast in place of const_cast.
1245         * include/bits/forward_list.tcc
1246         (_Fwd_list_node<>::_M_sort_after): Using _Pointer typedefs in place
1247         of standard pointers, __static_pointer_cast in place of static_cast.
1248         (_Fwd_list_base<>::_Fwd_list_base, _M_insert_after, _M_erase_after):
1249         Likewise.
1250         (forward_list<>::_M_initialize_dispatch, _M_fill_initialize,
1251         splice_after, remove, remove_if, merge): Likewise.
1252         * testsuite/23_containers/forward_list/ext_pointer/modifiers/1.cc: New.
1253         * testsuite/23_containers/forward_list/ext_pointer/modifiers/2.cc:
1254         Likewise.
1255         * testsuite/23_containers/forward_list/ext_pointer/modifiers/3.cc:
1256         Likewise.
1257         * testsuite/23_containers/forward_list/ext_pointer/modifiers/4.cc:
1258         Likewise.
1259         * testsuite/23_containers/forward_list/ext_pointer/modifiers/5.cc:
1260         Likewise.
1261         * testsuite/23_containers/forward_list/ext_pointer/operations/1.cc:
1262         Likewise.
1263         * testsuite/23_containers/forward_list/ext_pointer/operations/2.cc:
1264         Likewise.
1265         * testsuite/23_containers/forward_list/ext_pointer/operations/3.cc:
1266         Likewise.
1267         * testsuite/23_containers/forward_list/ext_pointer/operations/4.cc:
1268         Likewise.
1269         * testsuite/23_containers/forward_list/ext_pointer/operations/5.cc:
1270         Likewise.
1271         * testsuite/23_containers/forward_list/ext_pointer/operations/6.cc:
1272         Likewise.
1273         * testsuite/23_containers/forward_list/ext_pointer/operations/7.cc:
1274         Likewise.
1275         * testsuite/23_containers/forward_list/ext_pointer/requirements/1.cc:
1276         Likewise.
1277         * testsuite/23_containers/forward_list/ext_pointer/requirements/
1278         explicit_instantiation/1.cc: Likewise.
1279         * testsuite/23_containers/forward_list/ext_pointer/requirements/
1280         explicit_instantiation/3.cc: Likewise.
1281         * testsuite/23_containers/forward_list/ext_pointer/1.cc: Likewise.
1282
1283 2008-11-11  Paolo Carlini  <paolo.carlini@oracle.com>
1284
1285         * include/ext/extptr_allocator.h: Minor tweaks.
1286         * include/ext/pointer.h: Likewise.
1287         * include/ext/cast.h: Likewise.
1288
1289 2008-11-10  Paolo Carlini  <paolo.carlini@oracle.com>
1290
1291         PR libstdc++/38067
1292         * config/locale/gnu/monetary_members.cc (moneypunct<>::
1293         _M_initialize_moneypunct(__c_locale, const char*)): Use correct vector
1294         delete for __wcs_ps and __wcs_ns.
1295
1296 2008-11-07  Bob Walters  <bob.s.walters@gmail.com>
1297
1298         * include/ext/pointer.h: New, add experimental support for non-standard
1299         pointer types in containers via the allocator::pointer typedef.
1300         (Currently only supported/working with std::vector)
1301         * include/ext/cast.h: New, add overload-able pointer casting functions
1302         for use in containers supporting non-standard pointer types.
1303         * include/ext/extptr_allocator.h: New, add _ExtPtr_allocator.
1304         * include/Makefile.am: Update.
1305         * include/precompiled/extc++.h: Likewise.
1306         * include/Makefile.in: Regenerate.
1307         * testsuite/ext/ext_pointer/1.cc: New.
1308         * testsuite/ext/ext_pointer/1_neg.cc: Likewise.
1309         * testsuite/23_containers/vector/ext_pointer/citerators.cc: New.
1310         * testsuite/23_containers/vector/ext_pointer/data_access.cc: Likewise.
1311         * testsuite/23_containers/vector/ext_pointer/resize.cc: Likewise.
1312         * testsuite/23_containers/vector/ext_pointer/types/1.cc: Likewise.
1313         * testsuite/23_containers/vector/ext_pointer/modifiers/element.cc:
1314         Likewise.
1315         * testsuite/23_containers/vector/ext_pointer/modifiers/erase.cc:
1316         Likewise.
1317         * testsuite/23_containers/vector/ext_pointer/modifiers/insert.cc:
1318         Likewise.
1319         * testsuite/23_containers/vector/ext_pointer/explicit_instantiation/
1320         1.cc: Likewise.
1321         * testsuite/23_containers/vector/ext_pointer/explicit_instantiation/
1322         3.cc: Likewise.
1323
1324 2008-11-05  Jonathan Wakely  <jwakely.gcc@gmail.com>
1325
1326         PR libstdc++/38017
1327         Revert:
1328         * include/tr1_impl/functional (result_of,reference_wrapper): Update
1329         to use C++0x features.
1330         * testsuite/20_util/function_objects/return_types/result_of.cc: New.
1331         * testsuite/20_util/function_objects/return_types/result_of_neg.cc:
1332         New.
1333         * testsuite/20_util/function_objects/return_types/result_of_ref.cc:
1334         New.
1335         * testsuite/20_util/reference_wrapper/24803.cc: Uncomment FIXMEs.
1336
1337 2008-11-05  Jonathan Wakely  <jwakely.gcc@gmail.com>
1338
1339         PR libstdc++/24803
1340         PR libstdc++/37351
1341         * include/tr1_impl/functional (result_of,reference_wrapper): Update
1342         to use C++0x features.
1343         * testsuite/20_util/function_objects/return_types/result_of.cc: New.
1344         * testsuite/20_util/function_objects/return_types/result_of_neg.cc:
1345         New.
1346         * testsuite/20_util/function_objects/return_types/result_of_ref.cc:
1347         New.
1348         * testsuite/20_util/reference_wrapper/24803.cc: Uncomment FIXMEs.
1349
1350 2008-11-03  Paolo Carlini  <paolo.carlini@oracle.com>
1351
1352         * include/bits/locale_facets.tcc (num_get<>::do_get(iter_type,
1353         iter_type, ios_base&, ios_base::iostate&, bool&): Tidy.
1354         * testsuite/22_locale/num_get/get/char/37958.cc: Extend.
1355         * testsuite/22_locale/num_get/get/wchar_t/37958.cc: Likewise.
1356
1357 2008-11-01  Paolo Carlini  <paolo.carlini@oracle.com>
1358
1359         PR libstdc++/37958 (cont again)
1360         * include/bits/locale_facets.tcc (num_get<>::do_get(iter_type,
1361         iter_type, ios_base&, ios_base::iostate&, bool&): Fix again.
1362         * testsuite/22_locale/num_get/get/char/37958.cc: Extend.
1363         * testsuite/22_locale/num_get/get/wchar_t/37958.cc: Likewise.
1364
1365 2008-11-01  Paolo Carlini  <paolo.carlini@oracle.com>
1366
1367         * include/bits/locale_facets.tcc (num_get<>::do_get(, long&),
1368         num_get<>::do_get(, unsigned short&),
1369         num_get<>::do_get(, unsigned int&),
1370         num_get<>::do_get(, unsigned long&),
1371         num_get<>::do_get(, long long&),
1372         num_get<>::do_get(, unsigned long long&),
1373         num_put<>::do_put(, long), num_put<>::do_put(, unsigned long),
1374         num_put<>::do_put(, long long),
1375         num_put<>::do_put(, unsigned long long)): Move inline...
1376         * include/bits/locale_facets.h: ... here.
1377
1378 2008-11-01  Paolo Carlini  <paolo.carlini@oracle.com>
1379
1380         PR libstdc++/37958 (cont)
1381         * include/bits/locale_facets.tcc (num_get<>::do_get(iter_type,
1382         iter_type, ios_base&, ios_base::iostate&, bool&): Fix again.
1383
1384 2008-11-01  Jonathan Wakely  <jwakely.gcc@gmail.com>
1385
1386         * include/bits/shared_ptr.h: Update comparisons to match WP.
1387         (_Sp_counted_ptr): Make copy and assignment members deleted.
1388         (_Sp_counted_deleter): Remove private copy and assignment members.
1389         (__shared_count::_M_less,__weak_count::_M_less,operator<): Replace
1390         friend operator< with overloaded _M_less member functions to allow
1391         comparison with either shared_count or weak_count.
1392         (__shared_ptr::_M_less,__weak_ptr::_M_less): Replace with...
1393         (__shared_ptr::owner_before,__weak_ptr::owner_before): New overloads
1394         for ownership-based ordering.
1395         (operator<(__shared_ptr,__shared_ptr)): Compare stored pointers,
1396         make non-friend.
1397         (operator==(__shared_ptr,__shared_ptr)): Make non-friend.
1398         (operator!=(__shared_ptr,__shared_ptr)): Likewise.
1399         (less<__shared_ptr<>>,less<shared_ptr<>>,_Sp_less): Explicitly call
1400         pointer specialization.
1401         (__weak_ptr::operator<,weak_ptr::operator<=,weak_ptr::operator>,
1402         weak_ptr::operator>=): Remove operator< and delete all comparisons.
1403         (_Sp_owner_less,owner_less): Predicate for ownership-based ordering.
1404         (operator<(shared_ptr,shared_ptr): Overload for derived shared_ptr.
1405         (operator==(shared_ptr,shared_ptr): Likewise.
1406         (operator!=(shared_ptr,shared_ptr): Likewise.
1407         (swap(shared_ptr,shared_ptr)): Fix parameter types.
1408         (swap(weak_ptr,weak_ptr)): Add missing overload.
1409         * testsuite/20_util/owner_less/cmp.cc: New.
1410         * testsuite/20_util/shared_ptr/comparison/cmp.cc: Test other ops.
1411         * testsuite/20_util/shared_ptr/comparison/less.cc: New.
1412         * testsuite/20_util/shared_ptr/observers/owner_before.cc: New.
1413         * testsuite/20_util/weak_ptr/observers/owner_before.cc: New.
1414         * testsuite/20_util/weak_ptr/comparison/cmp_neg.cc: New.
1415
1416 2008-10-31  Paolo Carlini  <paolo.carlini@oracle.com>
1417
1418         PR libstdc++/37958
1419         * include/bits/locale_facets.tcc (num_get<>::do_get(iter_type,
1420         iter_type, ios_base&, ios_base::iostate&, bool&): Fix.
1421         * testsuite/22_locale/num_get/get/char/37958.cc: New.
1422         * testsuite/22_locale/num_get/get/wchar_t/37958.cc: Likewise.
1423
1424 2008-10-27  Paolo Carlini  <paolo.carlini@oracle.com>
1425
1426         PR libstdc++/37919
1427         Revert:
1428         2008-10-18  Douglas Gregor  <doug.gregor@gmail.com>
1429
1430         * include/bits/stl_pair.h (__may_be_null_pointer_init): New.
1431         (pair::pair): Eliminate the redundant pair(U1&&, U2&&) constructor.
1432         Add lvalue pair<U1, U2> constructor to handle non-const pair lvalues.
1433         Remove the old variadic constructor, and instead provide several
1434         variadic constructors that avoid failing when attempting to
1435         initialize a pointer from a null pointer constant.
1436         * testsuite/20_util/pair/moveable.cc (test3): Add new tests with
1437         initialization of pointers from the null pointer constant.
1438
1439 2008-10-27  Paolo Carlini  <paolo.carlini@oracle.com>
1440
1441         PR libstdc++/37522
1442         * config/os/mingw32/os_defines.h: Define _GLIBCXX_HAVE_BROKEN_VSWPRINTF
1443         * include/bits/basic_string.h: Guard string conversions with
1444         !defined(_GLIBCXX_HAVE_BROKEN_VSWPRINTF) too.
1445         * testsuite/lib/libstdc++.exp (check_v3_target_string_conversions):
1446         New.
1447         * testsuite/lib/dg-options.exp (dg-require-string-conversions): New.
1448         * testsuite/21_strings/basic_string/numeric_conversions/char/stof.cc:
1449         Use the latter.
1450         * testsuite/21_strings/basic_string/numeric_conversions/char/stoll.cc:
1451         Likewise.
1452         * testsuite/21_strings/basic_string/numeric_conversions/char/stoi.cc:
1453         Likewise.
1454         * testsuite/21_strings/basic_string/numeric_conversions/char/stol.cc:
1455         Likewise.
1456         * testsuite/21_strings/basic_string/numeric_conversions/char/
1457         stoull.cc: Likewise.
1458         * testsuite/21_strings/basic_string/numeric_conversions/char/stold.cc:
1459         Likewise.
1460         * testsuite/21_strings/basic_string/numeric_conversions/char/stoul.cc:
1461         Likewise.
1462         * testsuite/21_strings/basic_string/numeric_conversions/char/
1463         to_string.cc: Likewise.
1464         * testsuite/21_strings/basic_string/numeric_conversions/char/stod.cc:
1465         Likewise.
1466
1467 2008-10-24  Paolo Carlini  <paolo.carlini@oracle.com>
1468
1469         * config/os/generic/error_constants.h (enum errc): Remove
1470         no_posix_equivalent.
1471         * config/os/mingw32/error_constants.h (enum errc): Likewise.
1472         * testsuite/19_diagnostics/headers/system_error/errc_std_c++0x.cc:
1473         Adjust.
1474
1475 2008-10-24  Jakub Jelinek  <jakub@redhat.com>
1476
1477         * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Remove dejagnu.
1478         (RUNTESTDEFAULTFLAGS, EXPECT, check_DEJAGNU_normal_targets): New
1479         variables.
1480         (%/site.exp, check-DEJAGNU%): New targets.
1481         (check-am): Run $(MAKE) check-DEJAGNU.
1482         * testsuite/Makefile.in: Regenerated.
1483
1484 2008-10-23  Chris Fairles  <cfairles@gcc.gnu.org>
1485
1486         * config/os/generic/error_constants.h (errc): Use long type.
1487         * config/os/mingw32/error_constants.h (errc): Likewise.
1488
1489 2008-10-22  Chris Fairles  <cfairles@gcc.gnu.org>
1490
1491         * include/std/system_error (is_error_code_enum): Specialize for errc.
1492         (error_category::error_category): Defaulted and protected.
1493         (error_category::~error_category): New, virtual.
1494         (error_category::error_category(const error_category&),
1495         error_category::operator=(const error_category&)): Deleted.
1496         (get_system_category, get_posix_category): Remove (DR 890).
1497         (system_category): External linkage (DR 890).
1498         (posix_category): Remove.
1499         (generic_category): Add. External linkage (DR 890).
1500         (error_code::error_code<>(_ErrorCodeEnum)): Use generic_category.
1501         (error_code::clear, error_code::operator=<>(_ErrorCodeEnum)): Forward to
1502         error_code::assign, use generic_category.
1503         (error_condition::error_condition,
1504         error_condition::error_condition<>(_ErrorConditionEnum)): Use
1505         generic_category.
1506         (error_condition::clear,
1507         error_condition::operator=<>(_ErrorConditionEnum)): Forward to
1508         error_code::assign, use generic_category.
1509         (make_error_code, make_error_condition): Define in namespace std.
1510         * include/std/mutex (unique_lock<>::lock, unique_lock<>::try_lock,
1511         unique_lock<>::try_lock_until<>(duration),
1512         unique_lock<>::try_lock_for<>(duration)): Replace posix_error with errc.
1513         * src/system_error.cc (system_error_category, generic_error_category):
1514         New.
1515         (gnu_error_category): Remove.
1516         (get_system_category, get_posix_category): Remove (DR 890).
1517         (system_category, generic_category): Define.
1518         * src/functexcept.cc (__throw_system_error): Use generic_category.
1519         * config/abi/pre/gnu.ver: Export system_category and generic_category,
1520         remove get_system_category and get_generic_category (DR 890).
1521         * config/os/generic/error_constants.h (posix_errno): Rename to errc, use
1522         enum class type. Fix spelling.
1523         * config/os/mingw32/error_constants.h (posix_errno): Likewise.
1524         * testsuite/19_diagnostics/error_code/cons/1.cc: Use errc and
1525         generic_category.
1526         * testsuite/19_diagnostics/error_code/operators/bool.cc: Use errc.
1527         * testsuite/19_diagnostics/error_code/operators/equal.cc: Likewise.
1528         * testsuite/19_diagnostics/error_code/operators/not_equal.cc: Likewise.
1529         * testsuite/19_diagnostics/error_category/cons/copy_neg.cc: Update
1530         dg-error line numbers.
1531         * testsuite/19_diagnostics/error_condition/cons/1.cc: Use
1532         generic_category.
1533         * testsuite/19_diagnostics/error_condition/operators/bool.cc: Use errc.
1534         * testsuite/19_diagnostics/error_condition/operators/equal.cc: Likewise.
1535         * testsuite/19_diagnostics/error_condition/operators/not_equal.cc:
1536         Likewise.
1537         * testsuite/19_diagnostics/headers/system_error/errc_std_c++0x.cc: New.
1538         * testsuite/19_diagnostics/headers/system_error/types_std_c++0x.cc:
1539         Remove using tests since errc is not a namespace.
1540         * testsuite/19_diagnostics/system_error/cons-1.cc: Use errc.
1541         * testsuite/19_diagnostics/system_error/what-4.cc: Likewise.
1542         * testsuite/27_io/basic_ostream/inserters_other/wchar_t/error_code.cc:
1543         Likewise.
1544         * testsuite/27_io/basic_ostream/inserters_other/char/error_code.cc:
1545         Likewise.
1546         * testsuite/30_threads/unique_lock/locking/2.cc: Likewise.
1547
1548 2008-10-20  Paolo Carlini  <paolo.carlini@oracle.com>
1549
1550         * include/tr1_impl/hashtable_policy.h (_Hash_node<>::_Hash_node<>
1551         (_Args&&...)): Add in C++0x mode.
1552         * include/tr1_impl/hashtable (_Hashtable<>::_M_allocate_node,
1553         _Hashtable<>::_M_deallocate_node): Use _M_get_Node_allocator in
1554         C++0x mode.
1555
1556         * include/tr1_impl/hashtable (_Hashtable<>::max_size): Use
1557         Node_allocator for improved accuracy.
1558         * testsuite/tr1/6_containers/unordered_multimap/capacity/
1559         29134-multimap.cc: Adjust.
1560         * testsuite/tr1/6_containers/unordered_multimap/capacity/
1561         29134-map.cc: Likewise.
1562         * testsuite/tr1/6_containers/unordered_multimap/capacity/
1563         29134-multiset.cc: Adjust.
1564         * testsuite/tr1/6_containers/unordered_multimap/capacity/
1565         29134-set.cc: Likewise.
1566
1567 2008-10-19  Paolo Carlini  <paolo.carlini@oracle.com>
1568
1569         * include/bits/stl_tree.h (_Rb_tree_node<>::_Rb_tree_node<>
1570         (_Args&&...)): Add in C++0x mode.
1571         (_Rb_tree<>::_M_create_node<>(_Args&&...)): Add in C++0x mode,
1572         use _M_get_Node_allocator.
1573         (_Rb_tree<>::_M_destroy_node(_Link_type): Use _M_get_Node_allocator
1574         in C++0x mode.
1575         * testsuite/23_containers/set/operators/1_neg.cc: Adjust dg-error
1576         line numbers.
1577         * testsuite/23_containers/map/operators/1_neg.cc: Likewise.
1578
1579 2008-10-18  Douglas Gregor  <doug.gregor@gmail.com>
1580
1581         * include/bits/stl_pair.h (__may_be_null_pointer_init): New.
1582         (pair::pair): Eliminate the redundant pair(U1&&, U2&&) constructor.
1583         Add lvalue pair<U1, U2> constructor to handle non-const pair lvalues.
1584         Remove the old variadic constructor, and instead provide several
1585         variadic constructors that avoid failing when attempting to
1586         initialize a pointer from a null pointer constant.
1587         * testsuite/20_util/pair/moveable.cc (test3): Add new tests with
1588         initialization of pointers from the null pointer constant.
1589
1590 2008-10-17  Paolo Carlini  <paolo.carlini@oracle.com>
1591
1592         * include/bits/forward_list.tcc (forward_list<>::
1593         _M_initialize_dispatch(_InputIterator, _InputIterator, __false_type)):
1594         Simplify.
1595
1596 2008-10-17  Paolo Carlini  <paolo.carlini@oracle.com>
1597
1598         * include/bits/forward_list.h (forward_list<>::
1599         forward_list(size_type)): Tweak, use _Base default constructor.
1600
1601 2008-10-17  Paolo Carlini  <paolo.carlini@oracle.com>
1602
1603         * include/bits/forward_list.h (forward_list<>::insert_after): Minor
1604         cosmetic changes.
1605
1606 2008-10-16  Edward Smith-Rowland  <3dw4rd@verizon.net>
1607
1608         * include/bits/forward_list.h: Factor list construction to dispatch
1609         routines.
1610         * include/bits/forward_list.tcc: Likewise.
1611         * testsuite/23_containers/forward_list/modifiers/2.cc:
1612
1613 2008-10-16  Paolo Carlini  <paolo.carlini@oracle.com>
1614
1615         * include/bits/forward_list.tcc (operator==): Use auto.
1616
1617 2008-10-16  Paolo Carlini  <paolo.carlini@oracle.com>
1618
1619         * include/bits/forward_list.h (_Fwd_list_base<>::_M_insert_after):
1620         Move out of line, tweak to return _Fwd_list_node_base*.
1621         (forward_list<>::insert_after(const_iterator, const _Tp&),
1622         forward_list<>::insert_after(const_iterator, _Tp&&)): Use it.
1623         * include/bits/forward_list.tcc (_Fwd_list_base<>::_M_insert_after):
1624         Define.
1625
1626         * include/bits/forward_list.h (forward_list<>): Consistently qualify
1627         calls of base class functions with this->.
1628         * include/bits/forward_list.tcc (forward_list<>): Likewise.
1629
1630         * include/bits/forward_list.h: Move some functions out of line...
1631         * include/bits/forward_list.tcc: ... here.
1632
1633         * include/bits/forward_list.h (forward_list<>::resize(size_type)): Fix.
1634
1635 2008-10-15  Paolo Carlini  <paolo.carlini@oracle.com>
1636
1637         * include/bits/forward_list.h: Remove pointless const qualifiers in
1638         const_casts.
1639         * include/bits/forward_list.tcc: Likewise.
1640
1641         * include/bits/forward_list.h (forward_list<>::pointer,
1642         const_pointer, reference, const_reference): Fix, use _Tp_alloc_type.
1643         * testsuite/23_containers/forward_list/requirements/
1644         explicit_instantiation/1.cc: New.
1645         * testsuite/23_containers/forward_list/requirements/
1646         explicit_instantiation/1.cc: Likewise.
1647
1648 2008-10-15  Paolo Carlini  <paolo.carlini@oracle.com>
1649
1650         * include/bits/forward_list.h (forward_list<>::max_size): Use
1651         Node_allocator; minor cosmetic changes.
1652         * testsuite/23_containers/forward_list/capacity/1.cc: Adjust.
1653
1654 2008-10-15  Edward Smith-Rowland  <3dw4rd@verizon.net>
1655
1656         * include/std/forward_list: New.
1657         * include/bits/forward_list.h: Likewise.
1658         * include/bits/forward_list.tcc: Likewise.
1659         * include/precompiled/stdc++.h: Modified to include forward_list.
1660         * include/Makefile.am: Add forward_list, forward_list.h, and
1661         forward_list.tcc.
1662         * include/Makefile.in: Regenerate.
1663         * testsuite/23_containers/forward_list/modifiers/1.cc: New.
1664         * testsuite/23_containers/forward_list/modifiers/2.cc: Likewise.
1665         * testsuite/23_containers/forward_list/modifiers/3.cc: Likewise.
1666         * testsuite/23_containers/forward_list/modifiers/4.cc: Likewise.
1667         * testsuite/23_containers/forward_list/modifiers/5.cc: Likewise.
1668         * testsuite/23_containers/forward_list/cons/1.cc: Likewise.
1669         * testsuite/23_containers/forward_list/cons/2.cc: Likewise.
1670         * testsuite/23_containers/forward_list/cons/3.cc: Likewise.
1671         * testsuite/23_containers/forward_list/cons/4.cc: Likewise.
1672         * testsuite/23_containers/forward_list/cons/5.cc: Likewise.
1673         * testsuite/23_containers/forward_list/cons/6.cc: Likewise.
1674         * testsuite/23_containers/forward_list/cons/7.cc: Likewise.
1675         * testsuite/23_containers/forward_list/cons/8.cc: Likewise.
1676         * testsuite/23_containers/forward_list/cons/9.cc: Likewise.
1677         * testsuite/23_containers/forward_list/requirements/1.cc: Likewise.
1678         * testsuite/23_containers/forward_list/operations/1.cc: Likewise.
1679         * testsuite/23_containers/forward_list/operations/2.cc: Likewise.
1680         * testsuite/23_containers/forward_list/operations/3.cc: Likewise.
1681         * testsuite/23_containers/forward_list/operations/4.cc: Likewise.
1682         * testsuite/23_containers/forward_list/operations/5.cc: Likewise.
1683         * testsuite/23_containers/forward_list/operations/6.cc: Likewise.
1684         * testsuite/23_containers/forward_list/operations/7.cc: Likewise.
1685         * testsuite/23_containers/forward_list/capacity/1.cc: Likewise.
1686         * testsuite/23_containers/forward_list/comparable.cc: Likewise.
1687         * testsuite/23_containers/forward_list/moveable.cc: Likewise.
1688         * testsuite/23_containers/headers/forward_list/synopsis.cc: Likewise.
1689         * testsuite/17_intro/headers/c++200x/all_multiple_inclusion.cc: Update.
1690         * testsuite/17_intro/headers/c++200x/all: Likewise.
1691
1692 2008-10-14  Paolo Carlini  <paolo.carlini@oracle.com>
1693
1694         * include/bits/stl_list.h (_List_node<>::_List_node<>(_Args&&...)):
1695         Add in C++0x mode.
1696         (list<>::_M_create_node<>(_Args&&...)): Use _M_get_Node_allocator.
1697         (list<>::_M_erase(iterator): Likewise, in C++0x mode.
1698         * include/bits/list.tcc (_List_base<>::_M_clear): Likewise.
1699         * testsuite/23_containers/list/requirements/dr438/assign_neg.cc:
1700         Adjust dg-error line number.
1701         * testsuite/23_containers/list/requirements/dr438/insert_neg.cc:
1702         Likewise.
1703         * testsuite/23_containers/list/requirements/dr438/
1704         constructor_1_neg.cc: Likewise.
1705         * testsuite/23_containers/list/requirements/dr438/
1706         constructor_2_neg.cc: Likewise.
1707
1708 2008-10-14  Paolo Carlini  <paolo.carlini@oracle.com>
1709
1710         * include/bits/stl_tree.h (_Rb_tree<>::max_size): Use Node_allocator
1711         for improved accuracy.
1712         * include/bits/stl_list.h (list<>::max_size): Likewise.
1713         * testsuite/23_containers/multimap/capacity/29134.cc: Adjust.
1714         * testsuite/23_containers/set/capacity/29134.cc: Likewise.
1715         * testsuite/23_containers/multiset/capacity/29134.cc: Likewise.
1716         * testsuite/23_containers/list/capacity/29134.cc: Likewise.
1717         * testsuite/23_containers/map/capacity/29134.cc: Likewise.
1718
1719 2008-10-10  Paolo Carlini  <paolo.carlini@oracle.com>
1720
1721         * testsuite/20_util/reference_wrapper/24803.cc: Avoid uninitialized
1722         warnings.
1723
1724 2008-10-10  Paolo Carlini  <paolo.carlini@oracle.com>
1725
1726         * include/std/system_error (native_category): Remove.
1727         (posix_category): Add.
1728         (error_code::error_code(_ErrorCodeEnum, typename enable_if<>:type*):
1729         Fix _M_cat initialization.
1730         (error_code::operator=(_ErrorCodeEnum)): Assign _M_cat too.
1731         (error_condition::_M_cat, error_condtion::operator=
1732         (_ErrorConditionEnum)): Implement resolution of DR 804.
1733         (error_condition::error_condition(_ErrorConditionEnum, typename
1734         enable_if<>:type*): Fix.
1735         (error_condition::clear, error_condition::assign): Implement.
1736         (operator==, operator!=): Fix uglification of parameters.
1737         (make_error_code, make_error_condition): Define in namespace
1738         posix_error.
1739         (operator<<(basic_ostream<>&, const error_code&)): Define here.
1740         * include/std/ostream (operator<<(basic_ostream<>&,
1741         const error_code&)): Do not define here.
1742         * testsuite/19_diagnostics/error_condition/cons/1.cc: New.
1743         * testsuite/19_diagnostics/error_condition/operators/bool.cc: Likewise.
1744         * testsuite/19_diagnostics/error_condition/operators/bool_neg.cc:
1745         Likewise.
1746         * testsuite/19_diagnostics/error_condition/operators/equal.cc:
1747         Likewise.
1748         * testsuite/19_diagnostics/error_condition/operators/not_equal.cc:
1749         Likewise.
1750         * testsuite/19_diagnostics/error_code/cons/1.cc: Tweak.
1751         * testsuite/19_diagnostics/error_category/cons/copy_neg.cc: Adjust
1752         dg-error line numbers.
1753         * testsuite/30_threads/unique_lock/locking/2.cc: Tweak.
1754
1755         * testsuite/util/testsuite_error.h: Minor tweaks.
1756         * testsuite/util/testsuite_hooks.cc: Avoid uninitialized warning.
1757
1758 2008-10-10  Chris Fairles  <cfairles@gcc.gnu.org>
1759
1760         * testsuite/20_util/duration/cons/1.cc: Remove invalid check of
1761         uninitialized duration.
1762
1763 2008-10-08  Bob Walters  <bob.s.walters@gmail.com>
1764
1765         * include/bits/stl_vector.h (_Vector_base<>::_Vector_impl::_M_start,
1766         _M_finish, _M_end_of_storage, _Vector_base<>::_M_allocate,
1767         _M_deallocate): Use _Tp_alloc_type::pointer.
1768
1769 2008-10-07  Jason Merrill  <jason@redhat.com>
1770
1771         PR libstdc++/37761
1772         * testsuite/abi/demangle/abi_examples/20.cc: Adjust expected spacing.
1773         * testsuite/abi/demangle/abi_text/02.cc: Likewise.
1774         * testsuite/abi/demangle/regression/cw-16.cc: Likewise.
1775
1776 2008-10-07  Paolo Carlini  <paolo.carlini@oracle.com>
1777
1778         * include/bits/stl_iterator.h (operator-(const reverse_iterator<>&,
1779         const reverse_iterator<>&), operator-(const __normal_iterator<>&,
1780         const __normal_iterator<>&), operator-(const move_iterator<>&,
1781         const move_iterator<>&)): Use the auto -> return type syntax,
1782         implement DR 685.
1783
1784 2008-10-06  Jason Merrill  <jason@redhat.com>
1785
1786         * config/abi/pre/gnu.ver: Update char16/32_t manglings.
1787
1788 2008-10-05  Paolo Carlini  <paolo.carlini@oracle.com>
1789
1790         * testsuite/20_util/reference_wrapper/invoke.cc: New.
1791         * testsuite/20_util/reference_wrapper/24803.cc: Likewise.
1792         * testsuite/20_util/reference_wrapper/typedefs.cc: Likewise.
1793
1794 2008-10-01  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1795
1796         * config/locale/generic/c_locale.cc (__convert_to_v): Fix
1797         !__FLT_HAS_INFINITY__ case.
1798
1799 2008-09-30  Chris Fairles  <cfairles@gcc.gnu.org>
1800
1801         * include/std/tuple (tuple<>::swap): Implement swap for tuple as per
1802         DR 522 [Ready].
1803         * testsuite/20_util/tuple/swap.cc: New.
1804
1805 2008-09-30  Paolo Carlini  <paolo.carlini@oracle.com>
1806
1807         PR libstdc++/30085 (again)
1808         * include/debug/unordered_map (unordered_map<>, unordered_multimap<>):
1809         Do not derive from _Safe_association, derive from _GLIBCXX_STD_D::
1810         unordered_map / unordered_multimap; add missing member functions.
1811         * include/debug/unordered_set (unordered_set<>, unordered_multiset<>):
1812         Likewise for _GLIBCXX_STD_D::unordered_set / unordered_multiset.
1813         * include/debug/safe_association.h: Remove.
1814         * include/Makefile.am: Adjust.
1815         * include/Makefile.in: Regenerate.
1816         * testsuite/23_containers/unordered_multimap/init-list.cc: Remove
1817         xfail.
1818
1819 2008-09-28  Paolo Carlini  <paolo.carlini@oracle.com>
1820
1821         * include/bits/unique_ptr.h (unique_ptr<_Tp[]>::template<typename U>
1822         void reset(U)): Add as deleted function, per DR 821 [Ready].
1823         * include/bits/unique_ptr.h: Prefer everywhere deleted to private
1824         member function declarations; minor formatting tweaks.
1825         * testsuite/20_util/unique_ptr/modifiers/reset_neg.cc: New.
1826         * testsuite/20_util/unique_ptr/assign/assign.cc: Adjust DejaGNU
1827         directives.
1828
1829 2008-09-28  Chris Fairles  <cfairles@gcc.gnu.org>
1830
1831         * include/std/mutex (try_lock): Implement generic try_lock.
1832         * testsuite/30_threads/try_lock/1.cc: New.
1833         * testsuite/30_threads/try_lock/2.cc: Likewise.
1834         * testsuite/30_threads/try_lock/3.cc: Likewise.
1835         * testsuite/30_threads/mutex/cons/assign_neg.cc: Adjust line numbers.
1836         * testsuite/30_threads/mutex/cons/copy_neg.cc: Likewise.
1837         * testsuite/30_threads/timed_mutex/cons/assign_neg.cc: Likewise.
1838         * testsuite/30_threads/timed_mutex/cons/copy_neg.cc: Likewise.
1839         * testsuite/30_threads/recursive_mutex/cons/assign_neg.cc: Likewise.
1840         * testsuite/30_threads/recursive_mutex/cons/copy_neg.cc: Likewise.
1841         * testsuite/30_threads/recursive_timed_mutex/cons/assign_neg.cc:
1842         Likewise.
1843         * testsuite/30_threads/recursive_timed_mutex/cons/copy_neg.cc: Likewise.
1844
1845 2008-09-26  Peter O'Gorman  <pogma@thewrittenword.com>
1846             Steve Ellcey  <sje@cup.hp.com>
1847
1848         * configure: Regenerate for new libtool.
1849         * aclocal.m4: Ditto.
1850         * Makefile.in: Ditto.
1851         * src/Makefile.in: Ditto.
1852         * doc/Makefile.in: Ditto.
1853         * po/Makefile.in: Ditto.
1854         * libmath/Makefile.in: Ditto.
1855         * include/Makefile.in: Ditto.
1856         * libsupc++/Makefile.in: Ditto.
1857         * testsuite/Makefile.in: Ditto.
1858
1859 2008-09-24  Paolo Carlini  <paolo.carlini@oracle.com>
1860
1861         * include/std/bitset: Adjust comment to reflect DR 853.
1862         * include/debug/bitset: Likewise.
1863         * doc/xml/manual/intro.xml: Add an entry for DR 853.
1864
1865 2008-09-23  Paolo Carlini  <paolo.carlini@oracle.com>
1866
1867         Implement DR 396 [Ready].
1868         * include/std/bitset (bitset<>::bitset(const std::basic_string<>&,
1869         size_t, size_t, _CharT, _CharT), bitset<>::bitset(const char*,
1870         char, char), bitset<>::to_string(_CharT, _CharT),
1871         bitset<>::_M_copy_from_string(const std::basic_string<>&, size_t,
1872         size_t, _CharT, _CharT), bitset<>::_M_copy_to_string
1873         (std::basic_string<>&, _CharT, _CharT), bitset<>::_M_copy_from_ptr(
1874         const _CharT*, size_t, size_t, size_t, _CharT, _CharT)): Add.
1875         (operator>>(std::basic_istream<>&, bitset<_Nb>&), operator<<(
1876         std::basic_ostream<>&, const bitset<_Nb>&)): Adjust.
1877         * include/debug/bitset (bitset<>::bitset(const std::basic_string<>&,
1878         size_t, size_t, _CharT, _CharT), bitset<>::bitset(const char*,
1879         char, char), bitset<>::to_string(_CharT, _CharT)): Add.
1880         * doc/xml/manual/intro.xml: Add an entry for DR 396.
1881         * testsuite/23_containers/bitset/cons/dr396.cc: Add.
1882         * testsuite/23_containers/bitset/to_string/dr396.cc: Likewise.
1883
1884 2008-09-23  Chris Fairles  <cfairles@gcc.gnu.org>
1885
1886         * testsuite/25_algorithms/min/37547.cc: Return void to avoid warnings.
1887         * testsuite/25_algorithms/max/37547.cc: Likewise.
1888         * testsuite/25_algorithms/minmax/37547.cc: Likewise.
1889
1890 2008-09-23  Chris Fairles  <cfairles@gcc.gnu.org>
1891
1892         * include/std/chrono: If _GLIBCXX_USE_MONOTONIC_CLOCK is defined, don't
1893         typedef monotonic_clock to system_clock and instead declare new class.
1894         * src/chrono.cc: Conditionally define monotonic_clock::now().
1895         * include/std/condition_variable (wait_until): Throw exception if
1896         __gthread_cond_timedwait returns with error other than timed_out. Use
1897         system_clock as known clock type (__clock_t) and add overloads for known
1898         and unknown clocks. In the unknown case, sync to the known clock.
1899         Implement overload taking a predicate.
1900         (wait_for): Implement overload taking a predicate.
1901         * config/abi/pre/gnu.ver: Add exports for monotonic_clock.
1902         * testsuite/30_threads/condition_variable_any/cons/assign_neg.cc: Modify
1903         line numbers.
1904         * testsuite/30_threads/condition_variable_any/cons/copy_neg.cc:
1905         Likewise.
1906         * testsuite/30_threads/condition_variable/cons/assign_neg.cc: Likewise.
1907         * testsuite/30_threads/condition_variable/cons/copy_neg.cc: Likewise.
1908         * testsuite/30_threads/condition_variable/member/1.cc: New.
1909         * testsuite/30_threads/condition_variable/member/2.cc: Likewise.
1910
1911 2008-09-23  Paolo Carlini  <paolo.carlini@oracle.com>
1912
1913         PR libstdc++/37624
1914         * testsuite/22_locale/num_get/get/char/10.cc: Skip long double case
1915         when strtold is not available.
1916         * testsuite/22_locale/num_get/get/wchar_t/10.cc: Likewise.
1917
1918 2008-09-23  Benjamin Kosnik  <bkoz@redhat.com>
1919
1920         PR libstdc++/37391 continued.
1921         * doc/html/ext/pb_ds/assoc_examples.html: Don't use base tag,
1922         specify full path for source file links.
1923         * doc/html/ext/pb_ds/pq_examples.html: Same.
1924
1925 2008-09-23  Paolo Carlini  <paolo.carlini@oracle.com>
1926
1927         * include/bits/locale_facets.tcc (__pad<>::_S_pad): Don't use const
1928         by value parameters.
1929         * include/bits/locale_facets.h (__pad<>::_S_pad): Likewise.
1930
1931 2008-09-22  Paolo Carlini  <paolo.carlini@oracle.com>
1932
1933         PR libstdc++/32422, DR 23 [Ready in R60]
1934         * config/locale/gnu/c_locale.cc (__convert_to_v(const char*, float&,
1935         ios_base::iostate&, const __c_locale&), __convert_to_v(const char*,
1936         double&, ios_base::iostate&, const __c_locale&), __convert_to_v(const
1937         char*, long double&, ios_base::iostate&, const __c_locale&)): Implement
1938         DR 23 and deal correctly with broken exponents.
1939         * config/locale/generic/c_locale.cc (__convert_to_v(const char*,
1940         float&, ios_base::iostate&, const __c_locale&), __convert_to_v(const
1941         char*, double&, ios_base::iostate&, const __c_locale&),
1942         __convert_to_v(const char*, long double&, ios_base::iostate&, const
1943         __c_locale&)): Likewise.
1944         * include/bits/locale_facets.tcc (num_get<>::_M_extract_int(_InIter,
1945         _InIter, ios_base&, ios_base::iostate&, _ValueT&)): Likewise.
1946         (num_get<>::_M_extract_float(_InIter, _InIter, ios_base&,
1947         ios_base::iostate&, string&): Change grouping check to set instead of
1948         OR failbit; do not check for eofbit here...
1949         (num_get<>::do_get(iter_type, iter_type, ios_base&,
1950         ios_base::iostate&, float&), num_get<>::do_get(iter_type, iter_type,
1951         ios_base&, ios_base::iostate&, double&), num_get<>::do_get(iter_type,
1952         iter_type, ios_base&, ios_base::iostate&, long double&),
1953         num_get<>::__do_get(iter_type, iter_type, ios_base&,
1954         ios_base::iostate&, double&)): ... do it here instead.
1955         (num_get<>::do_get(iter_type, iter_type, ios_base&,
1956         ios_base::iostate&, bool&)): Implement DR 23.
1957         (num_get<>::do_get(iter_type, iter_type, ios_base&,
1958         ios_base::iostate&, void*&)): Adjust.
1959         * doc/xml/manual/intro.xml: Add and entry for DR 23.
1960         * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/10.cc:
1961         Adjust.
1962         * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
1963         Likewise.
1964         * testsuite/22_locale/num_get/get/wchar_t/22131.cc: Likewise.
1965         * testsuite/22_locale/num_get/get/wchar_t/10.cc: Likewise.
1966         * testsuite/22_locale/num_get/get/wchar_t/12.cc: Likewise.
1967         * testsuite/22_locale/num_get/get/wchar_t/15.cc: Likewise.
1968         * testsuite/22_locale/num_get/get/wchar_t/16.cc: Likewise.
1969         * testsuite/22_locale/num_get/get/char/22131.cc: Likewise.
1970         * testsuite/22_locale/num_get/get/char/10.cc: Likewise.
1971         * testsuite/22_locale/num_get/get/char/12.cc: Likewise.
1972         * testsuite/22_locale/num_get/get/char/15.cc: Likewise.
1973         * testsuite/22_locale/num_get/get/char/16.cc: Likewise.
1974
1975 2008-09-22  Benjamin Kosnik  <bkoz@redhat.com>
1976
1977         PR libstdc++/37391
1978         * doc/html/ext/pb_ds/*.html: Fix external links.
1979
1980 2008-09-22  Benjamin Kosnik  <bkoz@redhat.com>
1981
1982         * doc/doxygen/user.cfg.in: Define _GLIBCXX_HAS_GTHREADS for mutex,
1983         condition_variable, and thread output.
1984
1985 2008-09-22  Paolo Carlini  <paolo.carlini@oracle.com>
1986
1987         * doc/html/ext/lwg-closed.html: Update to Revision R59.
1988         * doc/html/ext/lwg-active.html: Likewise.
1989         * doc/html/ext/lwg-defects.html: Likewise.
1990         * doc/xml/manual/intro.xml: Adjust.
1991
1992 2008-09-21  Paolo Carlini  <paolo.carlini@oracle.com>
1993
1994         * include/bits/stl_algo.h (minmax(initializer_list<>): Use make_pair,
1995         consistently with the other overload for initializer_list.
1996
1997 2008-09-19  Johannes Singler  <singler@ira.uka.de>
1998
1999         PR libstdc++/37470
2000         * include/parallel/base.h: Rename log2 to __log2.
2001           (__log2) Avoid infinite loop for n <= 0, return 0.
2002         * include/parallel/losertree.h: Rename log2 to __log2.
2003         * include/parallel/multiseq_selection.h: Likewise.
2004         * include/parallel/random_shuffle.h: Likewise.
2005
2006 2008-09-18  Paolo Carlini  <paolo.carlini@oracle.com>
2007
2008         * include/bits/shared_ptr.h (__shared_count<>::
2009         __shared_count(_Ptr, _Deleter), __shared_count<>::
2010         __shared_count(_Ptr, _Deleter, _Alloc), __shared_count<>::
2011         __shared_count(_Sp_make_shared_tag, _Tp*, _Alloc, _Args&&...)):
2012         Qualify new with ::.
2013
2014 2008-09-17  Paolo Carlini  <paolo.carlini@oracle.com>
2015
2016         PR libstdc++/37547
2017         * include/bits/stl_algo.h (min(initializer_list<>),
2018         min(initializer_list<>, Compare), max(initializer_list<>),
2019         max(initializer_list<>, Compare), minmax(initializer_list<>),
2020         minmax(initializer_list<>, Compare)): Fix return type.
2021         * include/bits/algorithmfwd.h: Adjust.
2022         * testsuite/25_algorithms/headers/algorithm/synopsis.cc: Likewise.
2023         * testsuite/25_algorithms/max/requirements/explicit_instantiation/3.cc:
2024         Likewise.
2025         * testsuite/25_algorithms/max/requirements/explicit_instantiation/
2026         pod2.cc: Likewise.
2027         * testsuite/25_algorithms/min/requirements/explicit_instantiation/3.cc:
2028         Likewise.
2029         * testsuite/25_algorithms/min/requirements/explicit_instantiation/
2030         pod2.cc: Likewise.
2031         * testsuite/25_algorithms/minmax/requirements/explicit_instantiation/
2032         3.cc: Likewise.
2033         * testsuite/25_algorithms/minmax/requirements/explicit_instantiation/
2034         pod2.cc: Likewise.
2035         * testsuite/25_algorithms/max/37547.cc: New.
2036         * testsuite/25_algorithms/min/37547.cc: Likewise.
2037         * testsuite/25_algorithms/minmax/37547.cc: Likewise.
2038
2039 2008-09-16  Chris Fairles  <chris.fairles@gmail.com>
2040
2041         * testsuite/25_algorithms/min/requirements/explicit_instantiation/3.cc:
2042         New.
2043         * testsuite/25_algorithms/min/requirements/explicit_instantiation/
2044         pod2.cc: Likewise.
2045         * testsuite/25_algorithms/min/3.cc: Likewise.
2046         * testsuite/25_algorithms/min/4.cc: Likewise.
2047         * testsuite/25_algorithms/max/requirements/explicit_instantiation/3.cc:
2048         Likewise.
2049         * testsuite/25_algorithms/max/requirements/explicit_instantiation/
2050         pod2.cc: Likewise.
2051         * testsuite/25_algorithms/max/3.cc: Likewise.
2052         * testsuite/25_algorithms/max/4.cc: Likewise.
2053         * testsuite/25_algorithms/minmax/requirements/explicit_instantiation/
2054         3.cc: Likewise.
2055         * testsuite/25_algorithms/minmax/requirements/explicit_instantiation/
2056         pod2.cc: Likewise.
2057         * testsuite/25_algorithms/minmax/2.cc: Likewise.
2058         * testsuite/25_algorithms/minmax/3.cc: Likewise.
2059
2060 2008-09-16  Paolo Carlini  <paolo.carlini@oracle.com>
2061
2062         * include/bits/stl_algo.h (min(initializer_list<>),
2063         min(initializer_list<>, Compare), max(initializer_list<>),
2064         max(initializer_list<>, Compare), minmax(initializer_list<>),
2065         minmax(initializer_list<>, Compare)): Add in C++0x mode.
2066         * include/bits/algorithmfwd.h: Add.
2067         * testsuite/25_algorithms/headers/algorithm/synopsis.cc: Likewise.
2068
2069 2008-09-13  Chris Fairles  <chris.fairles@gmail.com>
2070
2071         * testsuite/30_threads/thread/algorithm/1.cc: Join thread before
2072         program exits.
2073         * testsuite/30_threads/thread/algorithm/2.cc: Likewise.
2074         * testsuite/30_threads/thread/this_thread/3.cc: Define test variable.
2075         * testsuite/30_threads/thread/this_thread/4.cc: Likewise.
2076
2077 2008-09-12  Chris Fairles  <chris.fairles@gmail.com>
2078             Benjamin Kosnik  <bkoz@redhat.com>
2079
2080         * include/std/thread: New.
2081         * include/Makefile.am: Update.
2082         * include/Makefile.in: Regenerate.
2083         * src/thread.cc: New.
2084         * src/Makefile.am: Update.
2085         * src/Makefile.in: Regenerate.
2086         * acinclude.m4: Add check for nanosleep.
2087         * configure.ac: Call it.
2088         * configure: Regenerate.
2089         * config.h.in: Likewise.
2090         * config/abi/pre/gnu.ver: Add exports.
2091         * doc/doxygen/user.cfg.in: Add thread header.
2092         * testsuite/lib/libstdc++.exp (check_v3_target_nanosleep): Add.
2093         * testsuite/lib/dg-options.exp (dg-require-nanosleep): Add.
2094         * testsuite/30_threads/thread/cons/1.cc: New.
2095         * testsuite/30_threads/thread/cons/2.cc: Likewise.
2096         * testsuite/30_threads/thread/cons/3.cc: Likewise.
2097         * testsuite/30_threads/thread/cons/4.cc: Likewise.
2098         * testsuite/30_threads/thread/algorithm/1.cc: Likewise.
2099         * testsuite/30_threads/thread/algorithm/2.cc: Likewise.
2100         * testsuite/30_threads/thread/member/1.cc: Likewise.
2101         * testsuite/30_threads/thread/member/2.cc: Likewise.
2102         * testsuite/30_threads/thread/member/3.cc: Likewise.
2103         * testsuite/30_threads/thread/this_thread/1.cc: Likewise.
2104         * testsuite/30_threads/thread/this_thread/2.cc: Likewise.
2105         * testsuite/30_threads/thread/this_thread/3.cc: Likewise.
2106         * testsuite/30_threads/thread/this_thread/4.cc: Likewise.
2107         * testsuite/30_threads/headers/thread/types_std_c++0x.cc: Likewise.
2108         * testsuite/30_threads/headers/thread/std_c++0x_neg.cc: Likewise.
2109         * testsuite/17_intro/headers/c++200x/all.cc: Add thread.
2110         * testsuite/17_intro/headers/c++200x/all_multiple_inclusion.cc:
2111         Add thread, condition_variable and mutex.
2112
2113 2008-09-10  Paolo Carlini  <paolo.carlini@oracle.com>
2114
2115         * src/ctype.cc (use_facet<ctype<char> >, use_facet<ctype<wchar_t>):
2116         Remove specializations.
2117         * src/locale-inst.cc (use_facet<ctype<C> >): Instantiate.
2118         * include/bits/locale_facets.tcc (use_facet<ctype<char> >,
2119         use_facet<ctype<wchar_t>): Declare as extern template.
2120         * include/bits/locale_facets.h (use_facet<ctype<char> >,
2121         use_facet<ctype<wchar_t>): Do not declare as specializations.
2122
2123 2008-09-10  Paolo Carlini  <paolo.carlini@oracle.com>
2124
2125         * config/locale/darwin/ctype_members.cc (ctype<char>::_M_narrow_init,
2126         ctype<char>::_M_widen_init): Don't define here.
2127         * config/locale/gnu/ctype_members.cc: Likewise.
2128         * config/locale/generic/ctype_members.cc: Likewise.
2129         * src/ctype.cc: Define here.
2130
2131 2008-09-10  Paolo Carlini  <paolo.carlini@oracle.com>
2132
2133         PR libstdc++/37455
2134         * include/bits/locale_facets.h (ctype<char>::_M_narrow_init,
2135         ctype<char>::_M_widen_init): Don't define inline.
2136         * config/locale/darwin/ctype_members.cc: ... define here.
2137         * config/locale/gnu/ctype_members.cc: ... likewise.
2138         * config/locale/generic/ctype_members.cc: ... likewise.
2139         * config/abi/pre/gnu.ver: Export.
2140
2141 2008-09-09  Benjamin Kosnik  <bkoz@redhat.com>
2142
2143         * doc/xml/manual/abi.xml: Update for new releases.
2144         * doc/doxygen/user.cfg.in: Include C compatibility headers.
2145         * doc/html/*: Regenerate.
2146
2147 2008-09-09  Paolo Carlini  <paolo.carlini@oracle.com>
2148
2149         * include/tr1_impl/cinttypes: Restore __STDC_FORMAT_MACROS after
2150         inclusion of <inttypes.h>.
2151         * include/tr1_impl/cstdint: Likewise for __STDC_LIMIT_MACROS and
2152         __STDC_CONSTANT_MACROS after <stdint.h>.
2153         * include/bits/postypes.h: Likewise.
2154
2155 2008-09-09  Andreas Schwab  <schwab@suse.de>
2156
2157         * acinclude.m4 (GLIBCXX_CHECK_STANDARD_LAYOUT): Fix compile check
2158         not to redefine main.
2159
2160 2008-09-07  Paolo Carlini  <paolo.carlini@oracle.com>
2161
2162         * acinclude.m4 ([GLIBCXX_CHECK_C99_TR1]): Check wcstoimax and
2163         wcstoumax, define _GLIBCXX_USE_C99_INTTYPES_WCHAR_T_TR1.
2164         * include/tr1_impl/cinttypes: Use the latter.
2165         * testsuite/tr1/8_c_compatibility/cinttypes/functions.cc: Likewise.
2166         * configure: Regenerate.
2167         * config.h.in: Likewise.
2168
2169 2008-09-05  Peter Dimov  <pdimov@mmltd.net>
2170
2171         * testsuite/20_util/shared_ptr/cons/unique_ptr_deleter_ref_2.cc: New.
2172
2173 2008-09-05  Paolo Carlini  <paolo.carlini@oracle.com>
2174
2175         * testsuite/20_util/shared_ptr/cons/unique_ptr_deleter_ref.cc: Rename
2176         to...
2177         * testsuite/20_util/shared_ptr/cons/unique_ptr_deleter_ref_1.cc: ...
2178         this.
2179
2180 2008-09-04  Jonathan Wakely  <jwakely.gcc@gmail.com>
2181
2182         PR libstdc++/36962
2183         * include/Makefile.am: Update headers.
2184         * include/Makefile.in: Regenerate.
2185         * include/std/memory: Update headers.
2186         * include/tr1/memory: Likewise.
2187         * include/tr1_impl/boost_shared_ptr.h: Remove, splitting into
2188         separate implementations for std and tr1.
2189         * include/bits/boost_sp_shared_count.h: Remove.
2190         * include/tr1/boost_sp_shared_count.h: Remove.
2191         * include/bits/shared_ptr.h: New. Combines boost_sp_shared_count.h
2192         and boost_shared_ptr.h into one file.
2193         (__shared_count,__shared_ptr,shared_ptr,swap): Add unique_ptr
2194         and rvalue-reference support as per current WP.
2195         * include/tr1/shared_ptr.h: New. Combines boost_sp_shared_count.h
2196         and boost_shared_ptr.h into one file.
2197         * testsuite/20_util/shared_ptr/cons/unique_ptr.cc: New.
2198         * testsuite/20_util/shared_ptr/cons/unique_ptr_deleter.cc: New.
2199         * testsuite/20_util/shared_ptr/cons/unique_ptr_deleter_ref.cc: New.
2200         * testsuite/20_util/shared_ptr/cons/unique_ptr_neg.cc: New.
2201         * testsuite/20_util/shared_ptr/assign/auto_ptr_rvalue.cc: New.
2202         * testsuite/20_util/shared_ptr/assign/unique_ptr_lvalue_neg.cc: New.
2203         * testsuite/20_util/shared_ptr/assign/unique_ptr_rvalue.cc: New.
2204         * testsuite/20_util/shared_ptr/modifiers/swap_rvalue.cc: New.
2205         * testsuite/20_util/shared_ptr/assign/auto_ptr_rvalue_neg.cc: Remove.
2206
2207 2008-09-04  Jonathan Wakely  <jwakely.gcc@gmail.com>
2208
2209         * doc/xml/manual/locale.xml: Fix typo.
2210
2211 2008-09-04  Paolo Carlini  <paolo.carlini@oracle.com>
2212
2213         * acinclude.m4 ([GLIBCXX_CHECK_GTHREADS]): Tidy checks in case of
2214         POSIX threads.
2215         * configure: Regenerate.
2216
2217 2008-09-04  Chris Fairles  <chris.fairles@gmail.com>
2218
2219         * include/std/mutex (once_flag): Construct __gthread_once_t in a
2220         temporary variable before assigning to _M_once to avoid initialization
2221         errors.
2222
2223 2008-09-03  Paolo Carlini  <paolo.carlini@oracle.com>
2224
2225         * config/abi/pre/gnu.ver: Also export __once_functor_lock; tighten
2226         GLIBCXX_3.4 exports (necessary in case of undef _GLIBCXX_HAVE_TLS).
2227
2228         * Makefile.in: Regenerate.
2229         * src/Makefile.in: Likewise.
2230         * doc/Makefile.in: Likewise.
2231         * po/Makefile.in: Likewise.
2232         * libmath/Makefile.in: Likewise.
2233         * include/Makefile.in: Likewise.
2234         * libsupc++/Makefile.in: Likewise.
2235         * testsuite/Makefile.in: Likewise.
2236
2237 2008-09-03  Paolo Carlini  <paolo.carlini@oracle.com>
2238
2239         * acinclude.m4 ([GLIBCXX_CHECK_GTHREADS]): Fix typo in last commit,
2240         check _POSIX_TIMEOUTS, not _POSIX_TIMERS.
2241         * configure: Regenerate.
2242
2243 2008-09-03  Paolo Carlini  <paolo.carlini@oracle.com>
2244
2245         * acinclude.m4 ([GLIBCXX_CHECK_GTHREADS]): Check _POSIX_TIMERS too.
2246         * configure: Regenerate.
2247
2248 2008-09-03  Chris Fairles  <chris.fairles@gmail.com>
2249
2250         * include/std/condition_variable: Use new deleted ctors.
2251         * include/std/mutex: Likewise plus implement timed_mutex,
2252         recursive_timed_mutex and call_once.
2253         * src/condition_variable.cc: Implement wait(). Use gthread types.
2254         Remove _GTHREADS_HAS_COND checks in favor of global
2255         _GLIBCXX_HAS_GTHREADS.
2256         * src/mutex.cc (call_once): Implementation using TLS with mutex
2257         fallback.
2258         * config/abi/pre/gnu.ver: Add exported symbols.
2259         * testsuite/lib/libstdc++.exp (check_v3_target_gthreads): New.
2260         * testsuite/lib/dg-options.exp (dg-require-gthreads): Likewise.
2261         * testsuite/30_threads/lock_guard/requirements/typedefs.cc: Use
2262         dg-require-gthreads and dg-require-cstdint.
2263         * testsuite/30_threads/lock_guard/requirements/
2264         explicit_instantiation.cc: Likewise.
2265         * testsuite/30_threads/mutex/dest/destructor_locked.cc: Likewise.
2266         * testsuite/30_threads/mutex/native_handle/1.cc: Likewise.
2267         * testsuite/30_threads/mutex/cons/1.cc: Likewise.
2268         * testsuite/30_threads/mutex/requirements/typedefs.cc: Likewise.
2269         * testsuite/30_threads/mutex/try_lock/1.cc: Likewise.
2270         * testsuite/30_threads/mutex/try_lock/2.cc: Likewise.
2271         * testsuite/30_threads/mutex/lock/1.cc: Likewise.
2272         * testsuite/30_threads/mutex/unlock/1.cc: Likewise.
2273         * testsuite/30_threads/recursive_mutex/dest/destructor_locked.cc:
2274         Likewise.
2275         * testsuite/30_threads/recursive_mutex/native_handle/1.cc: Likewise.
2276         * testsuite/30_threads/recursive_mutex/cons/1.cc: Likewise.
2277         * testsuite/30_threads/recursive_mutex/requirements/typedefs.cc:
2278         Likewise.
2279         * testsuite/30_threads/recursive_mutex/try_lock/1.cc: Likewise.
2280         * testsuite/30_threads/recursive_mutex/try_lock/2.cc: Likewise.
2281         * testsuite/30_threads/recursive_mutex/lock/1.cc: Likewise.
2282         * testsuite/30_threads/recursive_mutex/unlock/1.cc: Likewise.
2283         * testsuite/30_threads/unique_lock/requirements/
2284         explicit_instantiation.cc: Likewise.
2285         * testsuite/30_threads/unique_lock/requirements/typedefs.cc: Likewise.
2286         * testsuite/30_threads/mutex/cons/assign_neg.cc: Also adjust dg-error
2287         lines for deleted members.
2288         * testsuite/30_threads/mutex/cons/copy_neg.cc: Likewise.
2289         * testsuite/30_threads/recursive_mutex/cons/assign_neg.cc: Likewise.
2290         * testsuite/30_threads/recursive_mutex/cons/copy_neg.cc: Likewise.
2291         * testsuite/30_threads/call_once/once_flag.cc: New.
2292         * testsuite/30_threads/call_once/call_once1.cc: Likewise.
2293         * testsuite/30_threads/condition_variable/cons/1.cc: Likewise.
2294         * testsuite/30_threads/condition_variable/cons/copy_neg.cc: Likewise
2295         * testsuite/30_threads/condition_variable/cons/assign_neg.cc: Likewise.
2296         * testsuite/30_threads/condition_variable_any/cons/1.cc: Likewise.
2297         * testsuite/30_threads/condition_variable_any/cons/copy_neg.cc:
2298         Likewise.
2299         * testsuite/30_threads/condition_variable_any/cons/assign_neg.cc:
2300         Likewise.
2301         * testsuite/30_threads/timed_mutex/dest/destructor_locked.cc: Likewise.
2302         * testsuite/30_threads/timed_mutex/native_handle/1.cc: Likewise.
2303         * testsuite/30_threads/timed_mutex/try_lock_until/1.cc: Likewise.
2304         * testsuite/30_threads/timed_mutex/try_lock_until/2.cc: Likewise.
2305         * testsuite/30_threads/timed_mutex/cons/assign_neg.cc: Likewise.
2306         * testsuite/30_threads/timed_mutex/cons/1.cc: Likewise.
2307         * testsuite/30_threads/timed_mutex/cons/copy_neg.cc: Likewise.
2308         * testsuite/30_threads/timed_mutex/requirements/typedefs.cc: Likewise.
2309         * testsuite/30_threads/timed_mutex/try_lock/1.cc: Likewise.
2310         * testsuite/30_threads/timed_mutex/try_lock/2.cc: Likewise.
2311         * testsuite/30_threads/timed_mutex/lock/1.cc: Likewise.
2312         * testsuite/30_threads/timed_mutex/unlock/1.cc: Likewise.
2313         * testsuite/30_threads/timed_mutex/try_lock_for/1.cc: Likewise.
2314         * testsuite/30_threads/timed_mutex/try_lock_for/2.cc: Likewise.
2315         * testsuite/30_threads/timed_mutex/try_lock_for/3.cc: Likewise.
2316         * testsuite/30_threads/recursive_timed_mutex/dest/destructor_locked.cc:
2317         Likewise.
2318         * testsuite/30_threads/recursive_timed_mutex/try_lock_until/1.cc:
2319         Likewise.
2320         * testsuite/30_threads/recursive_timed_mutex/try_lock_until/2.cc:
2321         Likewise.
2322         * testsuite/30_threads/recursive_timed_mutex/native_handle/1.cc:
2323         Likewise.
2324         * testsuite/30_threads/recursive_timed_mutex/cons: Likewise.
2325         * testsuite/30_threads/recursive_timed_mutex/cons/assign_neg.cc:
2326         Likewise.
2327         * testsuite/30_threads/recursive_timed_mutex/cons/1.cc: Likewise.
2328         * testsuite/30_threads/recursive_timed_mutex/cons/copy_neg.cc:
2329         Likewise.
2330         * testsuite/30_threads/recursive_timed_mutex/requirements/typedefs.cc:
2331         Likewise.
2332         * testsuite/30_threads/recursive_timed_mutex/try_lock/1.cc: Likewise.
2333         * testsuite/30_threads/recursive_timed_mutex/try_lock/2.cc: Likewise.
2334         * testsuite/30_threads/recursive_timed_mutex/lock/1.cc: Likewise.
2335         * testsuite/30_threads/recursive_timed_mutex/lock/2.cc: Likewise.
2336         * testsuite/30_threads/recursive_timed_mutex/unlock/1.cc: Likewise.
2337         * testsuite/30_threads/recursive_timed_mutex/try_lock_for/1.cc:
2338         Likewise.
2339         * testsuite/30_threads/recursive_timed_mutex/try_lock_for/2.cc:
2340         Likewise.
2341         * testsuite/30_threads/recursive_timed_mutex/try_lock_for/3.cc:
2342         Likewise.
2343         * testsuite/30_threads/unique_lock/modifiers/1.cc: Likewise.
2344         * testsuite/30_threads/unique_lock/modifiers/2.cc: Likewise.
2345         * testsuite/30_threads/unique_lock/cons/1.cc: Likewise.
2346         * testsuite/30_threads/unique_lock/cons/2.cc: Likewise.
2347         * testsuite/30_threads/unique_lock/cons/3.cc: Likewise.
2348         * testsuite/30_threads/unique_lock/cons/4.cc: Likewise.
2349         * testsuite/30_threads/unique_lock/cons/5.cc: Likewise.
2350         * testsuite/30_threads/unique_lock/cons/6.cc: Likewise.
2351         * testsuite/30_threads/unique_lock/locking/1.cc: Likewise.
2352         * testsuite/30_threads/unique_lock/locking/2.cc: Likewise.
2353         * testsuite/30_threads/unique_lock/locking/3.cc: Likewise.
2354         * testsuite/30_threads/unique_lock/locking/4.cc: Likewise.
2355
2356 2008-09-01  Mark Mitchell  <mark@codesourcery.com>
2357
2358         * include/std/type_traits (__make_unsigned_selector<>): Consider
2359         enums of size smaller than short.
2360         (__make_signed_selector<>): Likewise.
2361         * testsuite/20_util/make_signed/requirements/typedefs_neg.cc:
2362         Adjust line numbers.
2363         * testsuite/20_util/make_usigned/requirements/typedefs_neg.cc:
2364         Adjust line numbers.
2365         * testsuite/20_util/make_signed/requirements/typedefs-2.cc:
2366         Ensure test_enum is the same size as short.
2367         * testsuite/20_util/make_unsigned/requirements/typedefs-2.cc:
2368         Ensure test_enum is the same size as short.
2369
2370 2008-08-31  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
2371
2372         * acinclude.m4 <enable_symvers>: Don't use symvers on Windows.
2373         * configure: Regenerated.
2374         * Makefile.in: Regenerated.
2375         * src/Makefile.in: Regenerated.
2376         * doc/Makefile.in: Regenerated.
2377         * po/Makefile.in: Regenerated.
2378         * libmath/Makefile.in: Regenerated.
2379         * include/Makefile.in: Regenerated.
2380         * libsupc++/Makefile.in: Regenerated.
2381         * testsuite/Makefile.in: Regenerated.
2382
2383 2008-08-29  Mark Mitchell  <mark@codesourcery.com>
2384
2385         * testsuite/25_algorithms/nth_element/2.cc: Constrain iterations
2386         when testing on a simultor.
2387
2388 2008-08-28  Paolo Carlini  <paolo.carlini@oracle.com>
2389
2390         * testsuite/tr1/6_containers/unordered_set/requirements/typedef.cc:
2391         Rename to .../typedefs.cc.
2392         * testsuite/tr1/6_containers/unordered_map/requirements/typedef.cc:
2393         Likewise.
2394         * testsuite/tr1/6_containers/unordered_multiset/requirements/
2395         typedef.cc: Likewise.
2396         * testsuite/tr1/6_containers/unordered_multimap/requirements/
2397         typedef.cc: Likewise.
2398         * testsuite/23_containers/unordered_set/requirements/typedef.cc:
2399         Likewise.
2400         * testsuite/23_containers/unordered_map/requirements/typedef.cc:
2401         Likewise.
2402         * testsuite/23_containers/unordered_multiset/requirements/typedef.cc:
2403         Likewise.
2404         * testsuite/23_containers/unordered_multimap/requirements/typedef.cc:
2405         Likewise.
2406
2407 2008-08-28  Chris Fairles  <chris.fairles@gmail.com>
2408
2409         * acinclude.m4 ([GLIBCXX_CHECK_GTHREADS]): New. Checks for gthread
2410         support used by c++0x thread library.
2411         * configure.ac: Test unconditionally.
2412         * configure: Regenerate.
2413         * config.h.in: Regenerate.
2414
2415 2008-08-27  Benjamin Kosnik  <bkoz@redhat.com>
2416
2417         * doc/Makefile.am: Edit xml file list.
2418         * doc/Makefile.in: Regenerate.
2419         * configure: Regenerate.
2420         * doc/xml/manual/intro.xml: Edit, correct links, structure.
2421         * doc/xml/manual/configure.xml: Same.
2422         * doc/xml/manual/debug.xml: Same.
2423         * doc/xml/manual/test.xml: Same.
2424         * doc/xml/manual/build.xml: Remove.
2425         * doc/xml/manual/prerequisites.xml: Add.
2426         * doc/html/*: Regenerate.
2427
2428 2008-08-27  Paolo Carlini  <paolo.carlini@oracle.com>
2429
2430         * include/tr1_impl/hashtable (_Hashtable<>): Add missing pointer and
2431         const_pointer typedefs.
2432         * testsuite/tr1/6_containers/unordered_set/requirements/typedef.cc:
2433         Add.
2434         * testsuite/tr1/6_containers/unordered_map/requirements/typedef.cc:
2435         Likewise.
2436         * testsuite/tr1/6_containers/unordered_multiset/requirements/
2437         typedef.cc: Likewise.
2438         * testsuite/tr1/6_containers/unordered_multimap/requirements/
2439         typedef.cc: Likewise.
2440         * testsuite/23_containers/unordered_set/requirements/typedef.cc:
2441         Likewise.
2442         * testsuite/23_containers/unordered_map/requirements/typedef.cc:
2443         Likewise.
2444         * testsuite/23_containers/unordered_multiset/requirements/typedef.cc:
2445         Likewise.
2446         * testsuite/23_containers/unordered_multimap/requirements/typedef.cc:
2447         Likewise.
2448
2449 2008-08-27  Paul Brook  <paul@codesourcery.com>
2450
2451         * libsupc++/eh_call.cc (__cxa_call_unexpected): Fix name of
2452         __get_object_from_ambiguous_exception.
2453
2454 2008-08-26  Ben Elliston  <bje@au.ibm.com>
2455
2456         * src/mt_allocator.cc (__pool): Fix error in comment.
2457
2458 2008-08-25  Paolo Carlini  <paolo.carlini@oracle.com>
2459
2460         * linkage.m4 ([GLIBCXX_CHECK_BUILTIN_MATH_DECL_AND_LINKAGE_1],
2461         [GLIBCXX_CHECK_BUILTIN_MATH_SUPPORT]): Remove
2462         * configure.ac: Do not call the latter.
2463         * crossconfig.m4: Likewise.
2464         * libmath/mathconf.h: Adjust.
2465         * configure: Regenerate.
2466         * config.h.in: Likewise.
2467
2468 2008-08-24  Paolo Carlini  <paolo.carlini@oracle.com>
2469
2470         * acinclude.m4 ([GLIBCXX_CHECK_RANDOM_TR1]): Simplify, just use
2471         two test -r instead of an AC_TRY_RUN.
2472         * configure: Regenerate.
2473         * config.h.in: Likewise.
2474
2475 2008-08-24  Paolo Carlini  <paolo.carlini@oracle.com>
2476
2477         * acinclude.m4 ([GLIBCXX_ENABLE_CLOCK_GETTIME]): Improve documentation.
2478         * doc/xml/manual/configure.xml: Likewise.
2479
2480 2008-08-23  Paolo Carlini  <paolo.carlini@oracle.com>
2481
2482         * acinclude.m4 ([GLIBCXX_ENABLE_CLOCK_GETTIME]): Use [=KIND] in
2483         GLIBCXX_ENABLE.
2484         * configure: Regenerate.
2485
2486 2008-08-23  Paolo Carlini  <paolo.carlini@oracle.com>
2487
2488         * acinclude.m4 ([GLIBCXX_CHECK_GETTIMEOFDAY]): Change to use
2489         GCC_TRY_COMPILE_OR_LINK.
2490         ([GLIBCXX_CHECK_CLOCK_GETTIME]): Rename to
2491         [GLIBCXX_ENABLE_CLOCK_GETTIME], a versatile configure-time option,
2492         [no] by default, since it includes TRY_LINK checks.  librt is also
2493         searched, if requested.
2494         * doc/xml/manual/configure.xml: Document the latter.
2495         * configure.ac: Move the above checks outside native-only.
2496         * configure: Regenerate.
2497
2498 2008-08-23  Paolo Carlini  <paolo.carlini@oracle.com>
2499
2500         * testsuite/lib/libstdc++.exp (check_v3_target_atomic_builtins): Add.
2501         * testsuite/lib/dg-options.exp (dg-require-atomic-builtins): Likewise.
2502         * testsuite/18_support/exception_ptr/current_exception.cc: Use it.
2503         * testsuite/18_support/exception_ptr/rethrow_exception.cc: Likewise.
2504         * testsuite/18_support/exception_ptr/lifespan.cc: Likewise.
2505
2506 2008-08-23  Sebastian Redl <sebastian.redl@getdesigned.at>
2507
2508         Add (again) exception propagation support as per N2179.  Feature is
2509         available only when _GLIBCXX_ATOMIC_BUILTINS_4 is defined.
2510         * libsupc++/exception_ptr.h (exception_ptr, current_exception,
2511         copy_exception, rethrow_exception): New file, implement exception
2512         propagation.
2513         * libsupc++/eh_ptr.cc (exception_ptr, current_exception,
2514         rethrow_exception, __gxx_dependent_exception_cleanup): Likewise.
2515         * libsupc++/unwind-cxx.h (__cxa_exception): Add reference count.
2516         (__cxa_dependent_exception, __cxa_allocate_dependent_exception,
2517         __cxa_free_dependent_exception, __get_dependent_exception_from_ue,
2518         __GXX_INIT_DEPENDENT_EXCEPTION_CLASS, __is_dependent_exception,
2519         __gxx_dependent_exception_class, __get_object_from_ue,
2520         __get_object_from_ambiguous_exception): Add.
2521         (__GXX_INIT_EXCEPTION_CLASS, __gxx_exception_class): Rename.
2522         (__is_gxx_exception_class): Handle dependent exceptions.
2523         * libsupc++/eh_arm.cc (__cxa_type_match): Likewise.
2524         * libsupc++/eh_call.cc (__cxa_call_unexpected): Likewise.
2525         * libsupc++/eh_personality.cc (__gxx_personality_*): Likewise.
2526         * libsupc++/eh_type.cc (__cxa_current_exception_type): Likewise.
2527         * libsupc++/eh_alloc.cc (__cxa_allocate_dependent_exception,
2528         __cxa_free_dependent_exception): Add.
2529         * libsupc++/eh_throw.cc (__gxx_exception_cleanup): Handle reference
2530         counting.
2531         * libsupc++/exception: Conditionally include exception_ptr.h.
2532         * libsupc++/Makefile.am: Register new files.
2533         * libsupc++/Makefile.in: Regenerate.
2534         * config/abi/pre/gnu.ver: Add new symbols.
2535         * testsuite/18_support/exception_ptr/current_exception.cc: Test the
2536         core functionality of current_exception().
2537         * testsuite/18_support/exception_ptr/rethrow_exception.cc: Test the
2538         core functionality of rethrow_exception().
2539         * testsuite/18_support/exception_ptr/lifespan.cc: Test the life span of
2540         exception objects during exception propagation.
2541
2542 2008-08-22  Paolo Carlini  <paolo.carlini@oracle.com>
2543
2544         Revert again the N2179 patch.
2545
2546 2008-08-21  Sebastian Redl <sebastian.redl@getdesigned.at>
2547
2548         * libsupc++/eh_ptr.cc (__gxx_dependent_exception_cleanup): Call
2549         __cxa_free_dependent_exception.
2550
2551 2008-08-20  Paolo Carlini  <paolo.carlini@oracle.com>
2552
2553         * include/bits/char_traits.h (char_traits<char16_t>::
2554         assign(char_type*, size_t, char_type), char_traits<char32_t>::
2555         assign(char_type*, size_t, char_type)): For now, just open-code.
2556
2557 2008-08-20  Paolo Carlini  <paolo.carlini@oracle.com>
2558
2559         PR c++/33979 (partial)
2560         * include/bits/postypes.h (u16streampos, u32streampos): Add.
2561         * include/bits/char_traits.h (char_traits<char16_t>,
2562         char_traits<char32_t>): Add.
2563         * include/bits/stringfwd.h (u16string, u32string): Add.
2564         * include/ext/vstring_fwd.h: Add typedefs for char16_t/char32_t.
2565         * testsuite/21_strings/char_traits/requirements/char32_t/typedefs.cc:
2566         New.
2567         * testsuite/21_strings/char_traits/requirements/
2568         explicit_instantiation/short/1.cc: Likewise.
2569         * testsuite/21_strings/char_traits/requirements/
2570         explicit_instantiation/char32_t/1.cc: Likewise.
2571         * testsuite/21_strings/char_traits/requirements/
2572         explicit_instantiation/wchar_t/1.cc: Likewise.
2573         * testsuite/21_strings/char_traits/requirements/
2574         explicit_instantiation/char16_t/1.cc: Likewise.
2575         * testsuite/21_strings/char_traits/requirements/
2576         explicit_instantiation/char/1.cc: Likewise.
2577         * testsuite/21_strings/char_traits/requirements/char16_t/typedefs.cc:
2578         Likewise.
2579         * testsuite/21_strings/basic_string/requirements/
2580         explicit_instantiation/char32_t/1.cc: Likewise.
2581         * testsuite/21_strings/basic_string/requirements/
2582         explicit_instantiation/wchar_t/1.cc: Likewise.
2583         * testsuite/21_strings/basic_string/requirements/
2584         explicit_instantiation/char16_t/1.cc: Likewise.
2585         * testsuite/21_strings/basic_string/requirements/
2586         explicit_instantiation/char/1.cc: Likewise.
2587         * testsuite/21_strings/headers/string/types_std_c++0x.cc: Likewise.
2588         * testsuite/ext/vstring/requirements/explicit_instantiation/
2589         char32_t/1.cc: Likewise.
2590         * testsuite/ext/vstring/requirements/explicit_instantiation/
2591         char16_t/1.cc: Likewise.
2592
2593 2008-08-18  Paolo Carlini  <paolo.carlini@oracle.com>
2594
2595         PR libstdc++/37149
2596         * testsuite/27_io/basic_ostream/inserters_other/char/4.cc: Include
2597         <cstdio>.
2598         * testsuite/27_io/basic_ostream/inserters_other/char/error_code.cc:
2599         Likewise.
2600         * testsuite/27_io/objects/char/12048-1.cc: Likewise.
2601         * testsuite/27_io/objects/char/12048-3.cc: Likewise.
2602         * testsuite/27_io/objects/wchar_t/12048-1.cc: Likewise.
2603         * testsuite/27_io/objects/wchar_t/12048-3.cc: Likewise.
2604         * testsuite/ext/malloc_allocator/deallocate_global.cc: Likewise.
2605         * testsuite/ext/malloc_allocator/deallocate_local.cc: Likewise.
2606         * testsuite/ext/mt_allocator/deallocate_global-2.cc: Likewise.
2607         * testsuite/ext/mt_allocator/deallocate_global-4.cc: Likewise.
2608         * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: Likewise.
2609         * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: Likewise.
2610         * testsuite/ext/mt_allocator/deallocate_local-2.cc: Likewise.
2611         * testsuite/ext/mt_allocator/deallocate_local-4.cc: Likewise.
2612         * testsuite/ext/mt_allocator/deallocate_local-6.cc: Likewise.
2613         * testsuite/ext/mt_allocator/deallocate_local-8.cc: Likewise.
2614         * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: Likewise.
2615         * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: Likewise.
2616         * testsuite/ext/mt_allocator/deallocate_local_thread-5.cc: Likewise.
2617         * testsuite/ext/mt_allocator/deallocate_local_thread-7.cc: Likewise.
2618         * testsuite/ext/new_allocator/deallocate_global.cc: Likewise.
2619         * testsuite/ext/new_allocator/deallocate_local.cc: Likewise.
2620         * testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc: Likewise.
2621         * include/std/regex: Include <sstream>.
2622         * include/tr1/regex: Likewise.
2623
2624 2008-08-18  Paolo Carlini  <paolo.carlini@oracle.com>
2625
2626         * configure.ac: Do not hardcode HAVE_S_ISREG and HAVE_S_IFREG for
2627         newlib.
2628         * configure: Regenerate.
2629
2630 2008-08-18  Paolo Carlini  <paolo.carlini@oracle.com>
2631
2632         PR libstdc++/37147
2633         * acinclude.m4 ([GLIBCXX_CHECK_C99_TR1]): Tighten checks on stdint.h,
2634         check the macros too.
2635         * configure: Regenerate.
2636
2637 2008-08-17  Paolo Carlini  <paolo.carlini@oracle.com>
2638
2639         * acinclude.m4 ([AC_LC_MESSAGES]): Use AC_TRY_COMPILE instead of
2640         AC_TRY_LINK.
2641         * configure.ac: Run unconditionally AC_LC_MESSAGES.
2642         * crossconfig.m4: Adjust.
2643         * configure: Regenerate.
2644
2645 2008-08-17  Paolo Carlini  <paolo.carlini@oracle.com>
2646
2647         * acinclude.m4 ([GLIBCXX_CHECK_LFS], [GLIBCXX_CHECK_POLL],
2648         [GLIBCXX_CHECK_S_ISREG_OR_S_IFREG], [GLIBCXX_CHECK_WRITEV]):
2649         Use GCC_TRY_COMPILE_OR_LINK instead of AC_TRY_LINK, in C++,
2650         with -fno-exceptions as flags.
2651         * configure.ac: Run unconditionally GLIBCXX_CHECK_LFS,
2652         GLIBCXX_CHECK_POLL, GLIBCXX_CHECK_S_ISREG_OR_S_IFREG,
2653         GLIBCXX_CHECK_WRITEV and commonized AC_CHECK_HEADERS.
2654         * crossconfig.m4: Adjust; remove AC_CHECK_HEADERS commonized
2655         in configure.ac.
2656         * configure: Regenerate.
2657
2658 2008-08-13  Paolo Carlini  <paolo.carlini@oracle.com>
2659
2660         Re-instate last patch, amended to use __exchange_and_add_dispatch
2661         and __atomic_add_dispatch in eh_ptr.cc and eh_throw.cc.
2662
2663 2008-08-13  Paolo Carlini  <paolo.carlini@oracle.com>
2664
2665         Revert the last patch.
2666
2667 2008-08-13  Sebastian Redl <sebastian.redl@getdesigned.at>
2668
2669         Add exception propagation support as per N2179.
2670         * libsupc++/exception_ptr.h (exception_ptr, current_exception,
2671         copy_exception, rethrow_exception): New file, implement exception
2672         propagation.
2673         * libsupc++/eh_ptr.cc (exception_ptr, current_exception,
2674         rethrow_exception, __gxx_dependent_exception_cleanup): Likewise.
2675         * libsupc++/unwind-cxx.h (__cxa_exception): Add reference count.
2676         (__cxa_dependent_exception, __cxa_allocate_dependent_exception,
2677         __cxa_free_dependent_exception, __get_dependent_exception_from_ue,
2678         __GXX_INIT_DEPENDENT_EXCEPTION_CLASS, __is_dependent_exception,
2679         __gxx_dependent_exception_class, __get_object_from_ue,
2680         __get_object_from_ambiguous_exception): Add.
2681         (__GXX_INIT_EXCEPTION_CLASS, __gxx_exception_class): Rename.
2682         (__is_gxx_exception_class): Handle dependent exceptions.
2683         * libsupc++/eh_arm.cc (__cxa_type_match): Likewise.
2684         * libsupc++/eh_call.cc (__cxa_call_unexpected): Likewise.
2685         * libsupc++/eh_personality.cc (__gxx_personality_*): Likewise.
2686         * libsupc++/eh_type.cc (__cxa_current_exception_type): Likewise.
2687         * libsupc++/eh_alloc.cc (__cxa_allocate_dependent_exception,
2688         __cxa_free_dependent_exception): Add.
2689         * libsupc++/eh_throw.cc (__gxx_exception_cleanup): Handle reference
2690         counting.
2691         * libsupc++/exception: Conditionally include exception_ptr.h.
2692         * libsupc++/Makefile.am: Register new files.
2693         * libsupc++/Makefile.in: Regenerate.
2694         * config/abi/pre/gnu.ver: Add new symbols.
2695         * testsuite/18_support/exception_ptr/current_exception.cc: Test the
2696         core functionality of current_exception().
2697         * testsuite/18_support/exception_ptr/rethrow_exception.cc: Test the
2698         core functionality of rethrow_exception().
2699         * testsuite/18_support/exception_ptr/lifespan.cc: Test the life span of
2700         exception objects during exception propagation.
2701
2702 2008-08-12  Paolo Carlini  <paolo.carlini@oracle.com>
2703
2704         PR libstdc++/37100
2705         * include/bits/stl_pair.h: Fix documentation URL in comment.
2706
2707 2008-08-12  Johannes Singler  <singler@ira.uka.de>
2708
2709         * include/paralle/losertree.h
2710         (LoserTreePointerBase<>::~LoserTreePointerBase):
2711         Replace delete by appropriate delete[].
2712
2713 2008-08-12  Paolo Carlini  <paolo.carlini@oracle.com>
2714
2715         * configure.ac: Run unconditionally GLIBCXX_CHECK_INT64_T and
2716         GLIBCXX_CHECK_C99_TR1; remove sigsetjmp and mmap checks (unused).
2717         * crossconfig.m4: Adjust; remove HAVE_GETPAGESIZE defines (unused).
2718         * configure: Regenerate.
2719         * config.h.in: Likewise.
2720
2721         * acinclude.m4: Minor formatting fixes.
2722
2723 2008-08-11  Stephen M. Webb  <stephenw@xandros.com>
2724
2725         * include/tr1_impl/regex: Formatting fixes.
2726         * testsuite/tr1/7_regular_expressions/regex_traits/char/value.cc:
2727           New test.
2728         * testsuite/tr1/7_regular_expressions/regex_traits/wchar_t/value.cc:
2729           New test.
2730
2731 2008-08-11  Paolo Carlini  <paolo.carlini@oracle.com>
2732
2733         * config/locale/generic/c_locale.cc: Include <cstdio>.
2734
2735 2008-08-11  Paolo Carlini  <paolo.carlini@oracle.com>
2736
2737         * configure.ac: Run GLIBCXX_CHECK_STDIO_MACROS unconditionally.
2738         * configure: Regenerate.
2739
2740 2008-08-10  Paolo Carlini  <paolo.carlini@oracle.com>
2741
2742         * include/tr1_impl/type_traits (_DEFINE_SPEC*): Simplify.
2743         (_DEFINE_SPEC_BODY): Remove.
2744         (__is_void_helper, __is_integral_helper, __is_floating_point_helper,
2745         __is_member_object_pointer_helper, __is_member_function_pointer_helper,
2746         __remove_pointer_helper): Add.
2747         (is_void, is_integral, is_floating_point, is_member_object_pointer,
2748         is_member_function_pointer, remove_pointer): Use the latter.
2749         * include/tr1/type_traits (_DEFINE_SPEC): Simplify.
2750         (_DEFINE_SPEC_HELPER): Remove.
2751         (__is_signed_helper, __is_unsigned_helper): Add.
2752         (is_signed, is_unsigned): Use the latter.
2753
2754 2008-08-09  Paolo Carlini  <paolo.carlini@oracle.com>
2755
2756         Revert fix for libstdc++/35637, thanks to other/36901.
2757         * include/tr1_impl/type_traits (__is_function_helper): New, uses
2758         variadic templates.
2759         (is_function): Forward to the latter.
2760         (__in_array): Remove.
2761
2762 2008-08-09  Paolo Carlini  <paolo.carlini@oracle.com>
2763
2764         * config/locale/darwin/ctype_members.cc: Include <cstdio>.
2765
2766 2008-08-08  Paolo Carlini  <paolo.carlini@oracle.com>
2767
2768         * include/bits/ios_base.h: Undef _IOS_BASE_SEEK_CUR and
2769         _IOS_BASE_SEEK_END at the end of the file.
2770         * include/bits/char_traits.h: Likewise for _CHAR_TRAITS_EOF.
2771
2772 2008-08-07  Stephen M. Webb  <stephenw@xandros.com>
2773
2774         * include/tr1_impl/regex (match_results<>::cbegin, cend): Add, per
2775         N2691 WD.
2776
2777 2008-08-06  Paolo Carlini  <paolo.carlini@oracle.com>
2778
2779         * acinclude.m4 ([GLIBCXX_CHECK_STDIO_MACROS]): New, checks for
2780         common values of EOF, SEEK_CUR, SEEK_END.
2781         * configure.ac: Use it.
2782         * include/bits/ios_base.h: Likewise.
2783         * include/bits/char_traits.h: Likewise.
2784         * config/locale/gnu/ctype_members.cc: Include <cstdio>.
2785         * config/locale/generic/ctype_members.cc: Likewise.
2786         * testsuite/27_io/ios_base/cons/assign_neg.cc: Adjust dg-error lines.
2787         * testsuite/27_io/ios_base/cons/copy_neg.cc: Likewise.
2788         * configure: Regenerate.
2789         * config.h.in: Likewise.
2790
2791 2008-08-06  Paolo Carlini  <paolo.carlini@oracle.com>
2792
2793         * acinclude.m4 ([GLIBCXX_CHECK_INT64_T]): Also check whether int64_t
2794         is actually a typedef to long or long long.
2795         * include/bits/postypes.h: If int64_t is actually a typedef for
2796         long or long long don't include <stdint.h> unnecessarily.
2797         * configure: Regenerate.
2798         * config.h.in: Likewise.
2799
2800 2008-08-05  Paolo Carlini  <paolo.carlini@oracle.com>
2801
2802         * testsuite/util/testsuite_api.h (diamond_derivation<>::test):
2803         Expect ambiguity together with the standard exception classes.
2804         * testsuite/27_io/ios_base/failure/cons_virtual_derivation.cc: Remove
2805         xfail.
2806         * testsuite/19_diagnostics/logic_error/cons_virtual_derivation.cc:
2807         Likewise.
2808         * testsuite/19_diagnostics/runtime_error/cons_virtual_derivation.cc:
2809         Likewise.
2810         * testsuite/19_diagnostics/system_error/cons_virtual_derivation.cc:
2811         Likewise.
2812         * testsuite/18_support/bad_alloc/cons_virtual_derivation.cc: Likewise.
2813         * testsuite/18_support/bad_cast/cons_virtual_derivation.cc: Likewise.
2814         * testsuite/18_support/bad_exception/cons_virtual_derivation.cc:
2815         Likewise.
2816         * testsuite/18_support/bad_typeid/cons_virtual_derivation.cc:
2817         Likewise.
2818         * testsuite/ext/concurrence_lock_error/cons_virtual_derivation.cc:
2819         Likewise.
2820         * testsuite/ext/forced_exception_error/cons_virtual_derivation.cc:
2821         Likewise.
2822         * testsuite/ext/concurrence_unlock_error/cons_virtual_derivation.cc:
2823         Likewise.
2824         * testsuite/20_util/bad_function_call/cons_virtual_derivation.cc:
2825         Likewise.
2826
2827 2008-08-04  Paolo Carlini  <paolo.carlini@oracle.com>
2828
2829         * include/bits/postypes.h: Reinstate inclusion of <stdint.h>;
2830         also define the __STDC_* macros.
2831         (streamoff): Adjust.
2832
2833         * include/tr1_impl/cstdint: Check that the __STDC_* macros are
2834         not defined before defining.
2835
2836 2008-08-01  Paolo Bonzini  <bonzini@gnu.org>
2837             Chris Fairles  <chris.fairles@gmail.com>
2838
2839         * acinclude.m4 ([GLIBCXX_CHECK_CLOCK_GETTIME]): Reinstate clock_gettime
2840         search, but only in libposix4, never link librt.
2841         * src/Makefile.am: Reinstate previous change to add GLIBCXX_LIBS.
2842         * configure: Regenerate.
2843         * configure.in: Likewise.
2844         * Makefile.in: Likewise.
2845         * src/Makefile.in: Likewise.
2846         * libsup++/Makefile.in: Likewise.
2847         * po/Makefile.in: Likewise.
2848         * doc/Makefile.in: Likewise.
2849
2850 2008-07-31  Chris Fairles <chris.fairles@gmail.com>
2851
2852         * include/std/chrono (duration): Use explicitly defaulted ctor, cctor,
2853         dtor and assignment. Add diagnostics as per 20.8.3 paragraphs 2, 3
2854         and 4 in WD. Other minor tweaks.
2855         * testsuite/20_util/duration/cons/1_neg.cc: Adjust line numbers.
2856         * testsuite/20_util/duration/requirements/typedefs_neg1.cc: New.
2857         * testsuite/20_util/duration/requirements/typedefs_neg2.cc: Likewise.
2858         * testsuite/20_util/duration/requirements/typedefs_neg3.cc: Likewise.
2859
2860 2008-07-31  Paolo Carlini  <paolo.carlini@oracle.com>
2861
2862         * testsuite/lib/libstdc++.exp (libstdc++_init): Set v3-libgomp.
2863         (check_v3_target_parallel_mode): Robustify, just follow the
2864         structure of testsuite/Makefile.am.
2865
2866 2008-07-29  Paolo Carlini  <paolo.carlini@oracle.com>
2867
2868         * include/debug/set.h: Minor formatting fixes.
2869         * include/debug/multiset.h: Likewise.
2870         * include/debug/safe_association.h: Likewise.
2871         * include/debug/vector: Likewise.
2872         * include/debug/map.h: Likewise.
2873         * include/debug/string: Likewise.
2874         * include/debug/multimap.h: Likewise.
2875         * include/bits/stl_list.h: Likewise.
2876         * include/bits/stl_map.h: Likewise.
2877         * include/bits/stl_set.h: Likewise.
2878         * include/bits/stl_multimap.h: Likewise.
2879         * include/bits/stl_vector.h: Likewise.
2880         * include/bits/stl_multiset.h: Likewise.
2881         * include/bits/stl_bvector.h: Likewise.
2882
2883 2008-07-29  Paolo Carlini  <paolo.carlini@oracle.com>
2884
2885         * include/std/utility: Include <initializer_list>, per the current WP.
2886
2887         * testsuite/lib/libstdc++.exp (check_v3_target_cstdint): Tweak,
2888         don't use -std=gnu++0x unnecessarily.
2889         * testsuite/18_support/numeric_limits/char16_32_t.cc: Use
2890         dg-require-cstdint.
2891         * testsuite/18_support/headers/cstdint/types_std_c++0x.cc: Likewise.
2892         * testsuite/tr1/8_c_compatibility/cstdint/types_std_tr1.cc: Likewise.
2893
2894 2008-07-28  Paolo Carlini  <paolo.carlini@oracle.com>
2895
2896         PR libstdc++/36949
2897         * include/tr1_impl/boost_shared_ptr.h
2898         (__shared_ptr(_Sp_make_shared_tag, _Alloc, _Args&&...): Call
2899         __enable_shared_from_this_helper.
2900         * testsuite/20_util/shared_ptr/creation/36949.cc: New.
2901
2902 2008-07-24  Paolo Carlini  <paolo.carlini@oracle.com>
2903
2904         PR libstdc++/36924
2905         Revert:
2906         2008-07-23  Chris Fairles <chris.fairles@gmail.com>
2907
2908         * acinclude.m4 ([GLIBCXX_CHECK_CLOCK_GETTIME]): Define GLIBCXX_LIBS.
2909         Holds the lib that defines clock_gettime (-lrt or -lposix4).
2910         * src/Makefile.am: Use it.
2911         * configure: Regenerate.
2912         * configure.in: Likewise.
2913         * Makefile.in: Likewise.
2914         * src/Makefile.in: Likewise.
2915         * libsup++/Makefile.in: Likewise.
2916         * po/Makefile.in: Likewise.
2917         * doc/Makefile.in: Likewise.
2918
2919 2008-07-23  Chris Fairles <chris.fairles@gmail.com>
2920
2921         * include/std/condition_variable: Update to N2691 WD.
2922         * include/std/mutex: Likewise.
2923         * testsuite/30_threads/mutex/cons/assign_neg.cc: Adjust line numbers.
2924         * testsuite/30_threads/mutex/cons/copy_neg.cc: Likewise.
2925         * testsuite/30_threads/recursive_mutex/cons/assign_neg.cc: Likewise.
2926         * testsuite/30_threads/recursive_mutex/cons/copy_neg.cc: Likewise.
2927
2928 2008-07-23  Chris Fairles <chris.fairles@gmail.com>
2929
2930         * acinclude.m4 ([GLIBCXX_CHECK_CLOCK_GETTIME]): Define GLIBCXX_LIBS.
2931         Holds the lib that defines clock_gettime (-lrt or -lposix4).
2932         * src/Makefile.am: Use it.
2933         * configure: Regenerate.
2934         * configure.in: Likewise.
2935         * Makefile.in: Likewise.
2936         * src/Makefile.in: Likewise.
2937         * libsup++/Makefile.in: Likewise.
2938         * po/Makefile.in: Likewise.
2939         * doc/Makefile.in: Likewise.
2940
2941 2008-07-22  Paolo Carlini  <paolo.carlini@oracle.com>
2942
2943         * include/ext/sso_string_base.h
2944         (__sso_string_base<>::__sso_string_base(std::initializer_list<_CharT>,
2945         const _Alloc&)): Remove.
2946         * include/ext/rc_string_base.h
2947         (__rc_string_base<>::__rc_string_base(std::initializer_list<_CharT>,
2948         const _Alloc&)): Likewise.
2949         * include/ext/vstring.h
2950         (__versa_string<>::__versa_string(std::initializer_list<_CharT>,
2951         const _Alloc&)): Adjust.
2952
2953 2008-07-21  Jason Merrill  <jason@redhat.com>
2954
2955         Add initializer_list support as per N2679.
2956         * include/debug/unordered_map: Add initializer_list support.
2957         * include/debug/safe_association.h: Likewise.
2958         * include/debug/unordered_set: Likewise.
2959         * include/debug/vector: Likewise.
2960         * include/debug/deque: Likewise.
2961         * include/debug/map.h: Likewise.
2962         * include/debug/set.h: Likewise.
2963         * include/debug/string: Likewise.
2964         * include/debug/list: Likewise.
2965         * include/debug/multimap.h: Likewise.
2966         * include/tr1_impl/unordered_map: Likewise.
2967         * include/tr1_impl/hashtable: Likewise.
2968         * include/tr1_impl/unordered_set: Likewise.
2969         * include/tr1_impl/regex: Likewise.
2970         * include/std/valarray: Likewise.
2971         * include/std/unordered_map: Likewise.
2972         * include/std/unordered_set: Likewise.
2973         * include/bits/stl_list.h: Likewise.
2974         * include/bits/stl_map.h: Likewise.
2975         * include/bits/stl_set.h: Likewise.
2976         * include/bits/basic_string.h: Likewise.
2977         * include/bits/basic_string.tcc: Likewise.
2978         * include/bits/stl_multimap.h: Likewise.
2979         * include/bits/stl_vector.h: Likewise.
2980         * include/bits/stl_deque.h: Likewise.
2981         * include/bits/stl_multiset.h: Likewise.
2982         * include/bits/stl_bvector.h: Likewise.
2983         * include/ext/vstring.h: Likewise.
2984         * include/ext/rc_string_base.h: Likewise.
2985         * include/ext/sso_string_base.h: Likewise.
2986         * src/Makefile.am (w?string-inst): Build with -std=gnu++0x.
2987         * src/Makefile.in: Likewise.
2988         * config/abi/pre/gnu.ver: Add new w?string exports.
2989         * testsuite/21_strings/basic_string/init-list.cc: New test.
2990         * testsuite/23_containers/vector/init-list.cc: New test.
2991         * testsuite/23_containers/deque/init-list.cc: New test.
2992         * testsuite/23_containers/list/init-list.cc: New test.
2993         * testsuite/23_containers/map/init-list.cc: New test.
2994         * testsuite/23_containers/multimap/init-list.cc: New test.
2995         * testsuite/23_containers/set/init-list.cc: New test.
2996         * testsuite/23_containers/multiset/init-list.cc: New test.
2997         * testsuite/23_containers/unordered_map/init-list.cc: New test.
2998         * testsuite/23_containers/unordered_multimap/init-list.cc: New test.
2999         * testsuite/23_containers/unordered_set/init-list.cc: New test.
3000         * testsuite/23_containers/unordered_multiset/init-list.cc: New test.
3001         * testsuite/26_numerics/valarray/init-list.cc: New test.
3002         * testsuite/28_regex/init-list.cc: New test.
3003         * testsuite/ext/vstring/init-list.cc: New test.
3004         * testsuite/23_containers/vector/requirements/dr438/assign_neg.cc:
3005         Update error lineno.
3006         * testsuite/23_containers/vector/requirements/dr438/insert_neg.cc:
3007         Update error lineno.
3008         * testsuite/23_containers/vector/requirements/dr438/
3009         constructor_1_neg.cc: Update error lineno.
3010         * testsuite/23_containers/vector/requirements/dr438/
3011         constructor_2_neg.cc: Update error lineno.
3012         * testsuite/23_containers/deque/requirements/dr438/assign_neg.cc:
3013         Update error lineno.
3014         * testsuite/23_containers/deque/requirements/dr438/insert_neg.cc:
3015         Update error lineno.
3016         * testsuite/23_containers/deque/requirements/dr438/constructor_1_neg.cc:
3017         Update error lineno.
3018         * testsuite/23_containers/deque/requirements/dr438/constructor_2_neg.cc:
3019         Update error lineno.
3020         * testsuite/23_containers/list/requirements/dr438/assign_neg.cc:
3021         Update error lineno.
3022         * testsuite/23_containers/list/requirements/dr438/insert_neg.cc:
3023         Update error lineno.
3024         * testsuite/23_containers/list/requirements/dr438/constructor_1_neg.cc:
3025         Update error lineno.
3026         * testsuite/23_containers/list/requirements/dr438/constructor_2_neg.cc:
3027         Update error lineno.
3028
3029 2008-07-21  Mark Mitchell  <mark@codesourcery.com>
3030
3031         * config/os/gnu-linux/arm-eabi-extra.ver: New file.
3032         * configure.host: Use it for arm*-*-linux-*eabi.
3033
3034 2008-07-19  Paolo Carlini  <paolo.carlini@oracle.com>
3035
3036         * include/ext/pb_ds/detail/binomial_heap_base_/debug_fn_imps.hpp
3037         (assert_node_consistent): Avoid ambiguous else warning.
3038
3039         * include/ext/pb_ds/detail/debug_map_base.hpp: Include <iostream>.
3040
3041         * include/bits/c++config: In debug-mode (and parallel-mode) set
3042         _GLIBCXX_EXTERN_TEMPLATE to -1, not 0, thus disabling extern
3043         templates only for basic_string (per libstdc++/21674).
3044         * include/bits/basic_string.tcc: Use extern templates when
3045         _GLIBCXX_EXTERN_TEMPLATE > 0.
3046
3047 2008-07-18  Kris Van Hees  <kris.van.hees@oracle.com>
3048             Holger Hopp  <holger.hopp@sap.com>
3049
3050         * config/abi/pre/gnu.ver: Support char16_t and char32_t.
3051         * testsuite/util/testsuite_abi.cc (check_version): Add
3052         CXXABI_1.3.3 to known_versions.
3053
3054 2008-07-16  Paolo Carlini  <paolo.carlini@oracle.com>
3055
3056         * include/debug/vector (insert(iterator, _Tp&&), push_back(_Tp&&)):
3057         Enable only when _Tp != bool.
3058
3059         * testsuite/25_algorithms/heap/1.cc: Avoid unused variable warnings.
3060
3061 2008-07-18  Paolo Carlini  <paolo.carlini@oracle.com>
3062
3063         * testsuite/lib/libstdc++.exp (check_v3_target_c_std): Avoid unused
3064         variable warnings leading to spurious fails of the test.
3065
3066 2008-07-16  Paolo Carlini  <paolo.carlini@oracle.com>
3067
3068         * testsuite/30_threads/recursive_mutex/cons/assign_neg.cc: Adjust
3069         dg-error lines.
3070         * testsuite/30_threads/recursive_mutex/cons/copy_neg.cc: Likewise.
3071         * testsuite/20_util/duration/cons/1_neg.cc: Likewise.
3072
3073         * include/tr1_impl/type_traits: Fix comment typo.
3074
3075 2008-07-16  Paolo Carlini  <paolo.carlini@oracle.com>
3076
3077         * include/bits/unique_ptr.h: Remove stray character.
3078
3079 2008-07-15  Benjamin Kosnik  <bkoz@redhat.com>
3080
3081         * doc/doxygen/user.cfg.in: Add complex, ratio,
3082         intializer_list.
3083         (PREDEFINED): Add _GLIBCXX_USE_C99_STDINT_TR1.
3084         * doc/doxygen/doxygroups.cc: Add std::chrono.
3085         * include/bits/unique_ptr.h (default_delete, unique_ptr): Add markup.
3086         * libsupc++/initializer_list (initializer_list): Same.
3087         * include/std/ratio: Same.
3088         * include/std/chrono: Same.
3089         * include/std/complex: Disambiguate file markup.
3090
3091 2008-07-15  Chris Fairles  <chris.fairles@gmail.com>
3092
3093         * include/std/chrono: New, as per N2661.
3094         * src/chrono.cc: New.
3095         * include/Makefile.am: Update.
3096         * src/Makefile.am: Likewise.
3097         * include/Makefile.in: Regenerate.
3098         * src/Makefile.in: Likewise.
3099         * acinclude.m4: Add tests for clock_gettime and gettimeofday that
3100         define _GLIBCXX_HAS_CLOCK_GETTIME and/or _GLIBCXX_HAS_GETTIMEOFDAY.
3101         * configure.ac: Use them.
3102         * configure: Regenerate.
3103         * config.h.in: Likewise.
3104         * config/abi/pre/gnu.ver: Add symbols for system_clock::now() and
3105         system_clock::is_monotonic.
3106         * testsuite/20_util/duration/cons/1.cc: New.
3107         * testsuite/20_util/duration/cons/2.cc: Likewise.
3108         * testsuite/20_util/duration/cons/1_neg.cc: Likewise.
3109         * testsuite/20_util/duration/requirements/explicit_instantiation/
3110         explicit_instantiation.cc: Likewise.
3111         * testsuite/20_util/duration/arithmetic/1.cc: Likewise.
3112         * testsuite/20_util/duration/arithmetic/2.cc: Likewise.
3113         * testsuite/20_util/duration/comparisons/1.cc: Likewise.
3114         * testsuite/20_util/time_point/requirements/explicit_instantiation/
3115         explicit_instantiation.cc: Likewise.
3116         * testsuite/20_util/time_point/1.cc: Likewise.
3117         * testsuite/20_util/time_point/2.cc: Likewise.
3118         * testsuite/20_util/time_point/3.cc: Likewise.
3119         * testsuite/20_util/clocks/1.cc: Likewise.
3120         * testsuite/17_intro/headers/c++200x/all_multiple_inclusion.cc: Add
3121         missing headers.
3122         * testsuite/17_intro/headers/c++200x/all.cc: Likewise.
3123         * include/precompiled/stdc++.h: Likewise and remove <date_time>.
3124         * doc/doxygen/user.cfg.in: Likewise.
3125
3126 2008-07-15  Paolo Carlini  <paolo.carlini@oracle.com>
3127
3128         PR libstdc++/36832
3129         * include/ext/rope (_Destroy_const): Add.
3130         (rope<>::copy): Call it.
3131         * testsuite/ext/rope/36832.cc: New.
3132
3133 2008-07-15  Johannes Singler  <singler@ira.uka.de>
3134
3135         * include/parallel/find_selectors.h:
3136         Correct name for include guard #ifndef.
3137         * include/parallel/balanced_quicksort.h: Likewise.
3138         * include/parallel/unique_copy.h: Likewise.
3139         * include/parallel/multiway_mergesort.h: Likewise.
3140         * include/parallel/checkers.h: Likewise.
3141         * include/parallel/[various files]:
3142         Add/correct comment for #endif of include guard (at end of file)
3143
3144 2008-07-12  Paolo Carlini  <paolo.carlini@oracle.com>
3145
3146         * include/std/date_time: Remove, per N2549, in WP.
3147         * src/date_time.cc: Likewise.
3148         * config/abi/pre/gnu.ver: Remove <date_time> symbols.
3149         * include/Makefile.am: Remove date_time in std headers.
3150         * src/Makefile.am: Remove date_time.cc to source files.
3151         * include/Makefile.in: Regenerate.
3152         * src/Makefile.in: Likewise.
3153         * testsuite/31_date_time/headers/date_time/types_std.cc: Remove.
3154         * testsuite/31_date_time/headers/date_time/std_c++0x_neg.cc: Likewise.
3155         * testsuite/31_date_time/headers/date_time/functions_std.cc: Likewise.
3156         * testsuite/31_date_time/headers/date_time/synopsis.cc: Likewise.
3157         * testsuite/31_date_time/nanoseconds/requirements/traits.cc: Likewise.
3158         * testsuite/31_date_time/nanoseconds/requirements/duration.cc: Likewise.
3159         * testsuite/31_date_time/system_time/requirements: Likewise.
3160         * testsuite/31_date_time/system_time/requirements/traits.cc: Likewise.
3161         * testsuite/17_intro/headers/c++200x/all.cc: Adjust.
3162         * testsuite/17_intro/headers/c++200x/all_multiple_inclusion.cc: Adjust.
3163
3164 2008-07-10  Johannes Singler  <singler@ira.uka.de>
3165
3166         * include/parallel/balanced_quicksort.h:
3167         (qsb_divide) Replace "*end" by "*(end - 1)" in assertion.
3168
3169 2008-07-09  Benjamin Kosnik  <bkoz@redhat.com>
3170
3171         PR libstdc++/36451
3172         * doc/xml/manual/allocator.xml: Fix links.
3173         * doc/html/*: Regenerate.
3174
3175 2008-07-09  Joseph Myers  <joseph@codesourcery.com>
3176
3177         * libsupc++/unwind-cxx.h (__is_gxx_forced_unwind_class,
3178         __GXX_INIT_FORCED_UNWIND_CLASS): Define for ARM EABI unwinder.
3179         * libsupc++/eh_personality.cc (PERSONALITY_FUNCTION): Call
3180         __GXX_INIT_FORCED_UNWIND_CLASS for forced unwind with ARM EABI
3181         unwinder.
3182         * libsupc++/eh_arm.cc (__cxa_type_match): Use
3183         __is_gxx_forced_unwind_class to check for forced unwind.
3184
3185 2008-07-09  Andreas Beckmann  <gcc@abeckmann.de>
3186
3187         PR libstdc++/36552
3188         * include/ext/pb_ds/detail/left_child_next_sibling_heap_/
3189         null_metadata.hpp: Remove self-include.
3190
3191 2008-07-09  Joseph Myers  <joseph@codesourcery.com>
3192
3193         * testsuite/20_util/make_signed/requirements/typedefs-2.cc,
3194         testsuite/20_util/make_unsigned/requirements/typedefs-2.cc: Use
3195         -Wl,--no-enum-size-warning for arm*-*-linux*eabi.
3196
3197 2008-07-09  Johannes Singler  <singler@ira.uka.de>
3198
3199         PR libstdc++/36729
3200         * include/parallel/random_shuffle.h:
3201         (sequential_random_shuffle) Copy data back.
3202         * testsuite/25_algorithms/random_shuffle/1.cc:
3203         New. Generic random_shuffle functionality test.
3204
3205 2008-07-08  Chris Fairles  <chris.fairles@gmail.com>
3206
3207         * include/std/type_traits: Add common_type.
3208         * testsuite/20_util/common_type/requirements/
3209         explicit_instantiation.cc: New.
3210         * testsuite/20_util/common_type/requirements/
3211         typedefs-1.cc: Likewise.
3212
3213 2008-07-07  Paolo Carlini  <paolo.carlini@oracle.com>
3214
3215         * testsuite/lib/libstdc++.exp (check_v3_target_stdint): New.
3216         * testsuite/lib/dg-options.exp (dg-require-cstdint): New.
3217         * testsuite/20_util/ratio/cons/cons1.cc: Use it.
3218         * testsuite/20_util/ratio/cons/cons_overflow.cc: Likewise.
3219         * testsuite/20_util/ratio/operations/ops1.cc: Likewise.
3220         * testsuite/20_util/ratio/operations/ops2.cc: Likewise.
3221         * testsuite/20_util/ratio/operations/ops3.cc: Likewise.
3222         * testsuite/20_util/ratio/operations/ops_overflow.cc: Likewise.
3223         * testsuite/20_util/ratio/comparisons/comp1.cc: Likewise.
3224         * testsuite/20_util/ratio/comparisons/comp2.cc: Likewise.
3225
3226         * include/std/type_traits: Fix comment typo.
3227
3228 2008-07-06  Roger Sayle  <roger@eyesopen.com>
3229
3230         * include/std/system_error (is_error_code_enum): Use identifier
3231         _Tp instead of _T to avoid conflict with system macro on Darwin.
3232         (is_error_condition_enum): Likewise.
3233
3234 2008-07-05  Paolo Carlini  <paolo.carlini@oracle.com>
3235
3236         * include/bits/postypes.h: Do not include <stdint.h>.
3237
3238         * include/Makefile.am: Reorder.
3239
3240 2008-07-05  Paolo Carlini  <paolo.carlini@oracle.com>
3241
3242         * include/std/ratio: Prefer __INTMAX_MAX__ to INTMAX_MAX (INTMAX_MIN).
3243
3244 2008-07-05  Chris Fairles  <chris.fairles@gmail.com>
3245
3246         * include/std/ratio: Documentation for std::ratio class. Add conditions
3247         to ratio_less to prevent overflow.
3248         * testsuite/20_util/ratio/comparisons/comp2.cc: New.
3249         * testsuite/20_util/ratio/cons/cons_overflow.cc: Update dg-error line
3250         numbers.
3251
3252 2008-07-04  Chris Fairles  <chris.fairles@gmail.com>
3253
3254         * include/std/ratio: New, per N2661.
3255         * include/Makefile.am: Update.
3256         * include/Makefile.in: Regenerate.
3257         * testsuite/20_util/ratio/cons/cons1.cc: New.
3258         * testsuite/20_util/ratio/cons/cons_overflow.cc: Likewise.
3259         * testsuite/20_util/ratio/operations/ops1.cc: Likewise.
3260         * testsuite/20_util/ratio/operations/ops2.cc: Likewise.
3261         * testsuite/20_util/ratio/operations/ops3.cc: Likewise.
3262         * testsuite/20_util/ratio/operations/ops_overflow.cc: Likewise.
3263         * testsuite/20_util/ratio/comparisons/comp1.cc: Likewise.
3264
3265 2008-07-04  Paolo Carlini  <paolo.carlini@oracle.com>
3266
3267         PR libstdc++/36616
3268         * testsuite/22_locale/time_put/put/char/4.cc: Just use es_ES instead.
3269         * testsuite/22_locale/time_put/put/wchar_t/4.cc: Likewise.
3270
3271 2008-07-03  Paolo Carlini  <paolo.carlini@oracle.com>
3272
3273         * testsuite/21_strings/basic_string/numeric_conversions/char/stof.cc:
3274         Improve check on long double limits.
3275         * testsuite/21_strings/basic_string/numeric_conversions/char/stod.cc:
3276         Likewise.
3277         * testsuite/21_strings/basic_string/numeric_conversions/wchar_t/
3278         stof.cc: Likewise.
3279         * testsuite/21_strings/basic_string/numeric_conversions/wchar_t/
3280         stod.cc: Likewise.
3281
3282 2008-07-03  Paolo Carlini  <paolo.carlini@oracle.com>
3283
3284         * libsupc++/Makefile.am: Add initializer_list to the headers.
3285         * libsupc++/Makefile.in: Regenerate.
3286
3287         * libsupc++/initializer_list: Minor cosmetic changes.
3288
3289 2008-07-02  Jason Merrill  <jason@redhat.com>
3290
3291         * libsupc++/initializer_list: Uglify and wrap in
3292         __GXX_EXPERIMENTAL_CXX0X__.
3293         * include/bits/stl_map.h (insert(initializer_list)): Wrap.
3294
3295 2008-07-02  Jason Merrill  <jason@redhat.com>
3296
3297         * libsupc++/initializer_list: New file.
3298         * include/bits/stl_map.h (insert(initializer_list)): New method.
3299
3300 2008-06-30  Alfred E. Heggestad  <aeh@db.org>
3301
3302         * include/backward/backward_warning.h: Fix typo.
3303
3304 2008-06-29  Paolo Carlini  <paolo.carlini@oracle.com>
3305
3306         * src/string_conversions.cc: Remove.
3307         * config/abi/pre/gnu.ver: Delete exports.
3308         * src/Makefile.am: Update.
3309         * include/ext/string_conversions.h: Add.
3310         * include/Makefile.am: Update.
3311         * include/bits/basic_string.h: Include string_conversions.h,
3312         define numeric conversion functions.
3313         * include/ext/vstring.h: Likewise.
3314         * src/Makefile.in: Regenerate.
3315         * include/Makefile.in: Regenerate.
3316
3317 2008-06-29  Paolo Carlini  <paolo.carlini@oracle.com>
3318
3319         * include/bits/stl_algo.h (copy_n): Add in C++0x mode.
3320         * include/bits/algorithmfwd.h: Add.
3321         * include/bits/stl_uninitialized.h (uninitialized_copy_n): Add
3322         in C++0x mode.
3323         * testsuite/20_util/specialized_algorithms/uninitialized_copy_n/
3324         move_iterators/1.cc: New
3325         * testsuite/25_algorithms/headers/algorithm/synopsis.cc: Update.
3326         * testsuite/25_algorithms/copy_n/1.cc: New.
3327         * testsuite/25_algorithms/copy_n/2.cc: Likewise.
3328         * testsuite/25_algorithms/copy_n/3.cc: Likewise.
3329         * testsuite/25_algorithms/copy_n/4.cc: Likewise.
3330         * testsuite/25_algorithms/copy_n/move_iterators/1.cc: Likewise.
3331         * testsuite/25_algorithms/copy_n/requirements/
3332         explicit_instantiation/2.cc: Likewise.
3333         * testsuite/25_algorithms/partition_point/requirements/
3334         explicit_instantiation/pod.cc: Likewise.
3335
3336 2008-06-28  Paolo Carlini  <paolo.carlini@oracle.com>
3337
3338         * include/bits/stl_algo.h (partition_point): Add in C++0x mode.
3339         * include/bits/algorithmfwd.h: Add.
3340         * testsuite/25_algorithms/headers/algorithm/synopsis.cc: Update.
3341         * testsuite/25_algorithms/partition_point/1.cc: New.
3342         * testsuite/25_algorithms/partition_point/check_type.cc: Likewise.
3343         * testsuite/25_algorithms/partition_point/requirements/
3344         explicit_instantiation/2.cc: Likewise.
3345         * testsuite/25_algorithms/partition_point/requirements/
3346         explicit_instantiation/pod.cc: Likewise.
3347
3348 2008-06-28  Paolo Carlini  <paolo.carlini@oracle.com>
3349
3350         PR libstdc++/36660
3351         * include/ext/pb_ds/detail/resize_policy/
3352         sample_resize_trigger.hpp: Remove spurious namespace end.
3353
3354 2008-06-27  Mark Mitchell  <mark@codesourcery.com>
3355
3356         * libsupc++/vec.cc (__aeabi_vec_dtor_cookie): Handle NULL array
3357         address.
3358         (__aeabi_vec_delete): Likewise.
3359         (__aeabi_vec_delete3): Likewise.
3360         (__aeabi_vec_delete3_nodtor): Likewise.
3361
3362 2008-06-27  Paolo Carlini  <paolo.carlini@oracle.com>
3363
3364         * include/bits/stl_algo.h (is_partitioned): Add in C++0x mode.
3365         * include/bits/algorithmfwd.h: Add.
3366         * testsuite/25_algorithms/headers/algorithm/synopsis.cc: Update.
3367         * testsuite/25_algorithms/is_partitioned/1.cc: New.
3368         * testsuite/25_algorithms/is_partitioned/check_type.cc: Likewise.
3369         * testsuite/25_algorithms/is_partitioned/requirements/
3370         explicit_instantiation/2.cc: Likewise.
3371         * testsuite/25_algorithms/is_partitioned/requirements/
3372         explicit_instantiation/pod.cc: Likewise.
3373
3374 2008-06-27  Paolo Carlini  <paolo.carlini@oracle.com>
3375
3376         * include/bits/stl_numeric.h (iota): Add in C++0x mode.
3377         * testsuite/util/testsuite_character.h (pod_int): Add operator++
3378         in C++0x mode.
3379         * testsuite/util/testsuite_api.h (NonDefaultConstructible): Likewise.
3380         * testsuite/26_numerics/iota/1.cc: New.
3381         * testsuite/26_numerics/iota/requirements/explicit_instantiation/
3382         2.cc: Likewise.
3383         * testsuite/26_numerics/iota/requirements/explicit_instantiation/
3384         pod.cc: Likewise.
3385
3386         * include/ext/algorithm: Do not fiddle with the legacy headers.
3387
3388         * testsuite/26_numerics/partial_sum/1.cc: Minor changes, comments,
3389         style.
3390         * testsuite/26_numerics/accumulate/1.cc: Likewise.
3391         * testsuite/26_numerics/adjacent_difference/1.cc: Likewise.
3392         * testsuite/26_numerics/inner_product/1.cc: Likewise.
3393
3394 2008-06-26  Paolo Carlini  <paolo.carlini@oracle.com>
3395
3396         * include/bits/stl_algo.h (partition_copy): Add in C++0x mode.
3397         * include/bits/algorithmfwd.h: Add.
3398         * testsuite/25_algorithms/headers/algorithm/synopsis.cc: Update.
3399         * testsuite/25_algorithms/partition_copy/1.cc: New.
3400         * testsuite/25_algorithms/partition_copy/check_type.cc: Likewise.
3401         * testsuite/25_algorithms/partition_copy/requirements/
3402         explicit_instantiation/2.cc: Likewise.
3403         * testsuite/25_algorithms/partition_copy/requirements/
3404         explicit_instantiation/pod.cc: Likewise.
3405
3406 2008-06-26  Chris Fairles  <chris.fairles@gmail.com>
3407
3408         * testsuite/20_util/unique_ptr/cons/pointer_array.cc: New.
3409         * testsuite/20_util/unique_ptr/cons/pointer.cc: Likewise.
3410         * testsuite/20_util/unique_ptr/cons/pointer_array_convertible.cc:
3411         Likewise.
3412         * testsuite/20_util/unique_ptr/assign/move_array.cc: Likewise.
3413         * testsuite/20_util/unique_ptr/assign/move.cc: Likewise.
3414         * testsuite/20_util/unique_ptr/specialized_algorithms/
3415         comparisons_array.cc: Likewise.
3416         * testsuite/20_util/unique_ptr/specialized_algorithms/comparisons.cc:
3417         Likewise
3418         * testsuite/20_util/unique_ptr/specialized_algorithms/swap.cc:
3419         Likewise.
3420
3421 2008-06-26  Paolo Carlini  <paolo.carlini@oracle.com>
3422
3423         * include/parallel/base.h (plus, multiplies): Use __typeof__,
3424         not typeof.
3425
3426 2008-06-25  Paolo Carlini  <paolo.carlini@oracle.com>
3427
3428         * testsuite/29_atomics/atomic_flag/cons/default.cc: Avoid -Wall
3429         warnings.
3430         * testsuite/29_atomics/atomic_flag/cons/aggregate.cc: Likewise.
3431         * testsuite/29_atomics/headers/cstdatomic/types_std_c++0x.cc:
3432         Likewise.
3433         * testsuite/29_atomics/headers/stdatomic.h/types.c: Likewise.
3434         * testsuite/util/testsuite_common_types.h (struct assignable,
3435         struct default_constructible, struct copy_constructible,
3436         struct explicit_value_constructible): Use a tad of simulated
3437         concept checking techniques to avoid spurious warnings.
3438         * testsuite/29_atomics/atomic/cons/assign_neg.cc: Adjust dg-error
3439         markers.
3440         * testsuite/29_atomics/atomic/cons/copy_neg.cc: Likewise.
3441
3442 2008-06-25  Paolo Carlini  <paolo.carlini@oracle.com>
3443
3444         * include/bits/stl_algo.h (__find_if_not, find_if_not, all_of,
3445         any_of, none_of): Add in C++0x, per N2666.
3446         * include/bits/algorithmfwd.h: Update.
3447         * testsuite/25_algorithms/headers/algorithm/synopsis.cc: Likewise.
3448         * testsuite/25_algorithms/all_of/check_type.cc: New.
3449         * testsuite/25_algorithms/all_of/1.cc: Likewise.
3450         * testsuite/25_algorithms/all_of/requirements/explicit_instantiation/
3451         2.cc: Likewise.
3452         * testsuite/25_algorithms/all_of/requirements/explicit_instantiation/
3453         pod.cc: Likewise.
3454         * testsuite/25_algorithms/any_of/check_type.cc: Likewise.
3455         * testsuite/25_algorithms/any_of/1.cc: Likewise.
3456         * testsuite/25_algorithms/any_of/requirements/explicit_instantiation/
3457         2.cc: Likewise.
3458         * testsuite/25_algorithms/any_of/requirements/explicit_instantiation/
3459         pod.cc: Likewise.
3460         * testsuite/25_algorithms/none_of/check_type.cc: Likewise.
3461         * testsuite/25_algorithms/none_of/1.cc: Likewise.
3462         * testsuite/25_algorithms/none_of/requirements/explicit_instantiation/
3463         2.cc: Likewise.
3464         * testsuite/25_algorithms/none_of/requirements/explicit_instantiation/
3465         pod.cc: Likewise.
3466         * testsuite/25_algorithms/find_if_not/check_type.cc: Likewise.
3467         * testsuite/25_algorithms/find_if_not/1.cc: Likewise.
3468         * testsuite/25_algorithms/find_if_not/requirements/
3469         explicit_instantiation/2.cc: Likewise.
3470         * testsuite/25_algorithms/find_if_not/requirements/
3471         explicit_instantiation/pod.cc: Likewise.
3472         * testsuite/25_algorithms/copy_if/check_type.cc: Likewise.
3473         * testsuite/25_algorithms/remove_copy_if/check_type.cc: Likewise.
3474         * testsuite/25_algorithms/find_if/1.cc: Minor tweaks.
3475
3476 2008-06-24  Benjamin Kosnik  <bkoz@redhat.com>
3477
3478         * doc/xml/manual/parallel_mode.xml: Clarify use of explicit
3479         parallel algorithms.
3480         * doc/xml/manual/using.xml: Markup fixes caught by validation check.
3481         * doc/xml/manual/test.xml: Remove empty para tags.
3482
3483         * doc/html/*: Regenerate.
3484
3485 2008-06-24  Paolo Carlini  <paolo.carlini@oracle.com>
3486
3487         * include/bits/stl_algo.h (remove_if): Cast __pred result to bool.
3488         (copy_if): Add, per N2666.
3489         * testsuite/25_algorithms/copy_if/requirements/explicit_instantiation/
3490         2.cc: New.
3491         * testsuite/25_algorithms/copy_if/requirements/explicit_instantiation/
3492         pod.cc: Likewise.
3493         * testsuite/25_algorithms/headers/algorithm/synopsis.cc: Update.
3494
3495 2008-06-24  Paolo Carlini  <paolo.carlini@oracle.com>
3496             Chalathip Thumkanon  <chalathip@gmail.com>
3497
3498         PR libstdc++/36612
3499         * include/ext/pb_ds/exception.hpp (__throw_container_error,
3500         __throw_insert_error, __throw_join_error, __throw_resize_error):
3501         Mark inline.
3502
3503 2008-06-22  Paolo Carlini  <paolo.carlini@oracle.com>
3504
3505         * include/bits/move.h (swap(_Tp (&)[_Nm], _Tp (&)[_Nm])): Add,
3506         per DR 809.
3507         * include/bits/algorithmfwd.h: Add.
3508         * doc/xml/manual/intro.xml: Add an entry for DR 809.
3509         * testsuite/25_algorithms/swap/dr809.cc: New.
3510
3511         * testsuite/25_algorithms/swap/requirements/explicit_instantiation/
3512         2.cc: Remove stray empty line.
3513
3514 2008-06-21  Paolo Carlini  <paolo.carlini@oracle.com>
3515
3516         * include/bits/stl_move.h: Rename to move.h.
3517         * include/std/utility: Adjust.
3518         * include/ext/vstring_util.h: Likewise.
3519         * include/ext/throw_allocator.h: Likewise.
3520         * include/ext/pool_allocator.h: Likewise.
3521         * include/ext/bitmap_allocator.h: Likewise.
3522         * include/ext/new_allocator.h: Likewise.
3523         * include/ext/malloc_allocator.h: Likewise.
3524         * include/ext/array_allocator.h: Likewise.
3525         * include/ext/mt_allocator.h: Likewise.
3526         * include/bits/stl_algobase.h: Likewise.
3527         * include/bits/stl_heap.h: Likewise.
3528         * include/bits/stl_pair.h: Likewise.
3529         * include/bits/stl_iterator.h: Likewise.
3530         * testsuite/util/testsuite_allocator.h: Likewise.
3531         * testsuite/util/testsuite_iterators.h: Likewise.
3532         * include/Makefile.am: Likewise.
3533         * include/Makefile.in: Regenerate.
3534
3535 2008-06-21  Chris Fairles  <chris.fairles@gmail.com>
3536
3537         * include/bits/unique_ptr.h: New.
3538         * include/std/memory: Adjust.
3539         * include/Makefile.am: Add.
3540         * testsuite/20_util/unique_ptr/requirements/explicit_instantiation/
3541         explicit_instantiation.cc: New.
3542         * testsuite/20_util/unique_ptr/assign/assign.cc: Likewise.
3543         * include/Makefile.in: Regenerate.
3544
3545 2008-06-21  Jonathan Wakely  <jwakely.gcc@gmail.com>
3546
3547         * include/c_global/climits, include/tr1/climits: Add parentheses.
3548
3549 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3550
3551         * configure: Regenerate.
3552
3553 2008-06-17  Chris Fairles  <chris.fairles@gmail.com>
3554
3555         * include/bits/stl_iterator_base_funcs.h (next, prev): Add in
3556         C++0x mode.
3557         * testsuite/24_iterators/operations/next.cc: New.
3558         * testsuite/24_iterators/operations/prev.cc: Likewise.
3559
3560 2008-06-17  Paolo Carlini  <paolo.carlini@oracle.com>
3561
3562         * src/string_conversions.cc (__to_xstring<>): New.
3563         (to_string, to_wstring): Use it.
3564
3565 2008-06-16  Paolo Carlini  <paolo.carlini@oracle.com>
3566
3567         * include/bits/basic_string.h (stod, stof, stoi, stol, stold, stoll,
3568         stoul, stoull, to_string, to_wstring): Declare in C++0x mode.
3569         * src/string_conversions.cc: Add.
3570         * src/Makefile.am: Update.
3571         * config/abi/pre/gnu.ver: Adjust exports.
3572         * src/Makefile.in: Regenerate.
3573         * testsuite/21_strings/basic_string/numeric_conversions/char/stod.cc:
3574         New.
3575         * testsuite/21_strings/basic_string/numeric_conversions/char/stof.cc:
3576         Likewise.
3577         * testsuite/21_strings/basic_string/numeric_conversions/char/stoi.cc:
3578         Likewise.
3579         * testsuite/21_strings/basic_string/numeric_conversions/char/stol.cc:
3580         Likewise.
3581         * testsuite/21_strings/basic_string/numeric_conversions/char/stold.cc:
3582         Likewise.
3583         * testsuite/21_strings/basic_string/numeric_conversions/char/stoll.cc:
3584         Likewise.
3585         * testsuite/21_strings/basic_string/numeric_conversions/char/stoul.cc:
3586         Likewise.
3587         * testsuite/21_strings/basic_string/numeric_conversions/char/stoull.cc:
3588         Likewise.
3589         * testsuite/21_strings/basic_string/numeric_conversions/char/
3590         to_string.cc: Likewise.
3591         * testsuite/21_strings/basic_string/numeric_conversions/wchar_t/
3592         stod.cc: New.
3593         * testsuite/21_strings/basic_string/numeric_conversions/wchar_t/
3594         stof.cc: Likewise.
3595         * testsuite/21_strings/basic_string/numeric_conversions/wchar_t/
3596         stoi.cc: Likewise.
3597         * testsuite/21_strings/basic_string/numeric_conversions/wchar_t/
3598         stol.cc: Likewise.
3599         * testsuite/21_strings/basic_string/numeric_conversions/wchar_t/
3600         stold.cc: Likewise.
3601         * testsuite/21_strings/basic_string/numeric_conversions/wchar_t/
3602         stoll.cc: Likewise.
3603         * testsuite/21_strings/basic_string/numeric_conversions/wchar_t/
3604         stoul.cc: Likewise.
3605         * testsuite/21_strings/basic_string/numeric_conversions/wchar_t/
3606         stoull.cc: Likewise.
3607         * testsuite/21_strings/basic_string/numeric_conversions/wchar_t/
3608         to_wstring.cc: Likewise.
3609
3610 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3611
3612         * include/Makefile.am: Remove trailing white space, fix typo.
3613         (parallel_headers): Remove duplicate file, sort entries.
3614         * include/Makefile.in: Regenerate.
3615
3616 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3617
3618         * src/condition_variable.cc (~condition_variable): Drop unused
3619         variable.
3620
3621 2008-06-13  Paolo Carlini  <paolo.carlini@oracle.com>
3622
3623         * include/bits/stl_deque.h (deque<>::push_back(_Args&&...),
3624         deque<>::push_front(_Args&&...)): Remove.
3625         (deque<>::push_back(value_type&&),
3626         deque<>::push_front(value_type&&)): Add.
3627         (deque<>::push_back(const value_type&),
3628         deque<>::push_front(const value_type&)): Add back.
3629         (deque<>::emplace_back(_Args&&...),
3630         deque<>::emplace_front(_Args&&...)): Declare...
3631         * include/bits/deque.tcc: ... and define.
3632         * include/bits/stl_list.h (list<>::push_back(_Args&&...),
3633         list<>::push_front(_Args&&...)): Remove.
3634         (list<>::push_back(value_type&&), list<>::push_front(value_type&&),
3635         list<>::emplace_back(_Args&&...), list<>::emplace_front(_Args&&...)):
3636         Add.
3637         (list<>::push_back(const value_type&),
3638         list<>::push_front(const value_type&)): Add back.
3639         * include/bits/stl_vector.h (vector<>::push_back(_Args&&...)): Remove.
3640         (vector<>::push_back(value_type&&)): Add.
3641         (vector<>::push_back(const value_type&)): Add back.
3642         (vector<>::emplace_back(_Args&&...)): Declare...
3643         * include/bits/vector.tcc: ... and define.
3644         * include/bits/stl_queue.h (queue<>::push(_Args&&...),
3645         priority_queue<>::push(_Args&&...)): Remove.
3646         (queue<>::push(value_type&&), queue<>::emplace(_Args&&...),
3647         priority_queue<>::push(value_type&&),
3648         priority_queue<>::emplace(_Args&&...)): Add.
3649         (queue<>::push(const value_type&),
3650         priority_queue<>::push(const value_type&)): Add back.
3651         * include/bits/stl_stack.h (stack<>::push(_Args&&...)): Remove.
3652         (stack<>::push(value_type&&), stack<>::emplace(_Args&&...)): Add.
3653         (stack<>::push(const value_type&)): Add back.
3654         * include/debug/deque (deque<>::push_back(_Args&&...),
3655         deque<>::push_front(_Args&&...)): Remove.
3656         (deque<>::push_back(value_type&&), deque<>::push_front(value_type&&),
3657         deque<>::emplace_back(_Args&&...), deque<>::emplace_front(_Args&&...)):
3658         Add.
3659         (deque<>::push_back(const value_type&),
3660         deque<>::push_front(const value_type&)): Add back.
3661         * include/debug/list (list<>::push_back(_Args&&...),
3662         list<>::push_front(_Args&&...)): Remove.
3663         (list<>::push_back(value_type&&), list<>::push_front(value_type&&),
3664         list<>::emplace_back(_Args&&...), list<>::emplace_front(_Args&&...)):
3665         Add.
3666         (list<>::push_back(const value_type&),
3667         list<>::push_front(const value_type&)): Add back.
3668         * include/debug/vector (vector<>::push_back(_Args&&...)): Remove.
3669         (vector<>::push_back(value_type&&),
3670         vector<>::emplace_back(_Args&&...)): Add.
3671         (vector<>::push_back(const value_type&)): Add back.
3672         * testsuite/23_containers/deque/requirements/dr438/assign_neg.cc:
3673         Adjust dg-error line numbers.
3674         * testsuite/23_containers/deque/requirements/dr438/insert_neg.cc:
3675         Likewise.
3676         * testsuite/23_containers/deque/requirements/dr438/
3677         constructor_1_neg.cc: Likewise.
3678         * testsuite/23_containers/deque/requirements/dr438/
3679         constructor_2_neg.cc: Likewise.
3680         * testsuite/23_containers/list/requirements/dr438/assign_neg.cc:
3681         Adjust dg-error line numbers.
3682         * testsuite/23_containers/list/requirements/dr438/insert_neg.cc:
3683         Likewise.
3684         * testsuite/23_containers/list/requirements/dr438/constructor_1_neg.cc:
3685         Likewise.
3686         * testsuite/23_containers/list/requirements/dr438/constructor_2_neg.cc:
3687         Likewise.
3688         * testsuite/23_containers/vector/requirements/dr438/assign_neg.cc:
3689         Adjust dg-error line numbers.
3690         * testsuite/23_containers/vector/requirements/dr438/insert_neg.cc:
3691         Likewise.
3692         * testsuite/23_containers/vector/requirements/dr438/
3693         constructor_1_neg.cc: Likewise.
3694         * testsuite/23_containers/vector/requirements/dr438/
3695         constructor_2_neg.cc: Likewise.
3696
3697 2008-06-13  Paolo Carlini  <paolo.carlini@oracle.com>
3698
3699         * include/tr1_impl/array (array<>::assign): Do not define in
3700         C++0x mode, per DR 776...
3701         (array<>::fill): ... define instead.
3702         * doc/xml/manual/intro.xml: Add an entry for DR 776.
3703         * testsuite/23_containers/array/requirements/fill.cc: New.
3704
3705 2008-06-12  Paolo Carlini  <paolo.carlini@oracle.com>
3706
3707         * include/std/complex (pow(const complex<>&, int)): Do not define in
3708         C++0x mode, per DR 844.
3709         * include/tr1/complex (pow(const complex<>&, int)): Remove.
3710         * doc/xml/manual/intro.xml: Add an entry for DR 844.
3711         * testsuite/26_numerics/complex/dr844.cc: New.
3712         * testsuite/tr1/8_c_compatibility/complex/overloads_int.cc: Adjust.
3713
3714 2008-06-11  Paolo Carlini  <paolo.carlini@oracle.com>
3715
3716         * include/tr1_impl/hashtable (_Hashtable<>::cbegin(size_type),
3717         cend(size_type)): Add per DR 691.
3718         * testsuite/23_containers/unordered_map/requirements/cliterators.cc:
3719         New.
3720         * testsuite/23_containers/unordered_multimap/requirements/
3721         cliterators.cc: Likewise.
3722         * testsuite/23_containers/unordered_set/requirements/cliterators.cc:
3723         Likewise.
3724         * testsuite/23_containers/unordered_multiset/requirements/
3725         cliterators.cc: Likewise.
3726         * doc/xml/manual/intro.xml: Add an entry for DR 691.
3727
3728 2008-06-11  Matthias Klose  <doko@ubuntu.com>
3729
3730         * testsuite/30_threads/lock_error, testsuite/30_threads/once_flag:
3731         Remove empty directories.
3732
3733 2008-06-07  Joseph Myers  <joseph@codesourcery.com>
3734
3735         * configure.host (xscale, ep9312, m680[246]0, solaris2.5,
3736         solaris2.5.[0-9], solaris2.6, windiss*): Remove.
3737         * crossconfig.m4 (*-solaris2.5, *-solaris2.6, *-windiss*): Remove.
3738         * configure: Regenerate.
3739         * config/os/solaris/solaris2.5: Remove directory.
3740         * config/os/solaris/solaris2.6: Remove directory.
3741         * config/os/windiss: Remove directory.
3742
3743 2008-06-06  Benjamin Kosnik  <bkoz@redhat.com>
3744
3745         * doc/xml/manual/using.xml: Outline exception topics.
3746
3747         * include/ext/pb_ds/detail/binary_heap_/insert_fn_imps.hpp: Format.
3748         * include/ext/pb_ds/detail/left_child_next_sibling_heap_/
3749         policy_access_fn_imps.hpp: Same.
3750         * include/ext/pb_ds/priority_queue.hpp: Same.
3751         * include/ext/throw_allocator.h: Same.
3752
3753         * include/ext/pb_ds/tag_and_trait.hpp (string_tag): New tag.
3754         (sequence_tag): New tag. Doxygen markup fixes.
3755
3756         * testsuite/lib/libstdc++.exp: Remove twister_ran_gen.cc source file.
3757
3758         * testsuite/performance/ext/pb_ds/text_find_timing.cc: Fix
3759         comment typo, include paths, format.
3760         * testsuite/performance/ext/pb_ds/tree_text_insert_timing.cc: Same.
3761         * testsuite/performance/ext/pb_ds/
3762         hash_random_int_erase_mem_usage.cc: Same.
3763         * testsuite/performance/ext/pb_ds/
3764         random_int_subscript_find_timing.cc: Same.
3765         * testsuite/performance/ext/pb_ds/
3766         priority_queue_text_push_timing.cc: Same.
3767         * testsuite/performance/ext/pb_ds/tree_split_join_timing.cc: Same.
3768         * testsuite/performance/ext/pb_ds/random_int_find_timing.cc: Same.
3769         * testsuite/performance/ext/pb_ds/multimap_text_insert_mem_usage.hpp
3770         * testsuite/performance/ext/pb_ds/multimap_text_find_timing.hpp
3771         * testsuite/performance/ext/pb_ds/
3772         priority_queue_random_int_push_timing.cc: Same.
3773         * testsuite/performance/ext/pb_ds/priority_queue_text_modify_timing.hpp
3774         * testsuite/performance/ext/pb_ds/tree_order_statistics_timing.cc: Same.
3775         * testsuite/performance/ext/pb_ds/
3776         priority_queue_text_push_pop_timing.cc: Same.
3777         * testsuite/performance/ext/pb_ds/
3778         priority_queue_text_join_timing.cc: Same.
3779         * testsuite/performance/ext/pb_ds/
3780         priority_queue_random_int_push_pop_timing.cc: Same.
3781         * testsuite/performance/ext/pb_ds/
3782         random_int_subscript_insert_timing.cc: Same.
3783         * testsuite/performance/ext/pb_ds/tree_text_lor_find_timing.cc: Same.
3784         * testsuite/performance/ext/pb_ds/multimap_text_insert_timing.hpp
3785         * testsuite/performance/ext/pb_ds/
3786         priority_queue_text_pop_mem_usage.cc: Same.
3787         * testsuite/performance/ext/pb_ds/
3788         hash_zlob_random_int_find_timing.cc: Same.
3789         * testsuite/ext/pb_ds/regression/hash_data_map_rand.cc: Same.
3790         * testsuite/ext/pb_ds/regression/trie_data_map_rand.cc: Same.
3791         * testsuite/ext/pb_ds/regression/list_update_no_data_map_rand.cc: Same.
3792         * testsuite/ext/pb_ds/regression/tree_no_data_map_rand.cc: Same.
3793         * testsuite/ext/pb_ds/regression/list_update_data_map_rand.cc: Same.
3794         * testsuite/ext/pb_ds/regression/hash_no_data_map_rand.cc: Same.
3795         * testsuite/ext/pb_ds/regression/priority_queue_rand.cc: Same.
3796         * testsuite/ext/pb_ds/regression/tree_data_map_rand.cc: Same.
3797         * testsuite/ext/pb_ds/regression/trie_no_data_map_rand.cc: Same.
3798         * testsuite/util/regression/trait/priority_queue/trait.hpp: Same.
3799         * testsuite/util/regression/trait/erase_if_fn.hpp: Same.