OSDN Git Service

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