PR78991 make __gnu_cxx::__ops constructors explicit
[gcc.git] / libstdc++-v3 / ChangeLog
1 2017-01-06 Jonathan Wakely <jwakely@redhat.com>
2
3 PR libstdc++/78991
4 * include/bits/predefined_ops.h (_Iter_comp_iter, _Iter_comp_val)
5 (_Val_comp_iter, _Iter_equals_val, _Iter_pred, _Iter_comp_to_val)
6 (_Iter_comp_to_iter, _Iter_negate): Make constructors explicit and
7 move function objects.
8 (__iter_comp_iter, __iter_comp_val, __val_comp_iter, __pred_iter)
9 (__iter_comp_val, __iter_comp_iter, __negate): Move function objects.
10 * testsuite/25_algorithms/sort/78991.cc: New test.
11
12 2017-01-05 Jonathan Wakely <jwakely@redhat.com>
13
14 * include/bits/std_function.h (function::_Signature_type): Remove.
15 (function::function(_Functor)): Adjust.
16
17 2017-01-05 Tim Shen <timshen@google.com>
18
19 PR libstdc++/78996
20 * include/std/variant (__gen_vtable_impl): rename __unused to
21 __dimensions to avoid naming conflict.
22
23 2017-01-04 Jonathan Wakely <jwakely@redhat.com>
24
25 PR libstdc++/78968
26 * config.h.in: Regenerate.
27 * configure: Likewise.
28 * configure.ac: Check for __cxa_thread_atexit.
29 * libsupc++/atexit_thread.cc [_GLIBCXX_HAVE___CXA_THREAD_ATEXIT]:
30 Don't define __cxa_thread_atexit if libc provides it.
31
32 2017-01-04 Ville Voutilainen <ville.voutilainen@gmail.com>
33
34 Implement 2801, Default-constructibility of unique_ptr.
35 * include/bits/unique_ptr.h (__uniq_ptr_impl::_DeleterConstraint): New.
36 (unique_ptr::_DeleterConstraint): Likewise.
37 (unique_ptr()): Constrain.
38 (unique_ptr(pointer)): Likewise.
39 (unique_ptr(nullptr_t)): Likewise.
40 (unique_ptr<_Tp[], _Dp>::_DeleterConstraint): New.
41 (unique_ptr<_Tp[], _Dp>::unique_ptr()): Constrain.
42 (unique_ptr<_Tp[], _Dp>::unique_ptr(_Up)): Likewise.
43 (unique_ptr<_Tp[], _Dp>::unique_ptr(nullptr_t)): Likewise.
44 * testsuite/20_util/unique_ptr/assign/48635_neg.cc: Adjust.
45 * testsuite/20_util/unique_ptr/cons/cv_qual_neg.cc: Likewise.
46 * testsuite/20_util/unique_ptr/cons/default.cc: New.
47 * testsuite/20_util/unique_ptr/cons/ptr_deleter_neg.cc: Adjust.
48
49 2017-01-04 Pauli Nieminen <suokkos@gmail.com>
50 Jonathan Wakely <jwakely@redhat.com>
51
52 PR libstdc++/64735
53 * acinclude.m4 (GLIBCXX_CHECK_EXCEPTION_PTR_SYMVER): Define.
54 * config.h.in: Regenerate.
55 * config/abi/pre/gnu.ver [HAVE_EXCEPTION_PTR_SINCE_GCC46]
56 (GLIBCXX_3.4.15, GLIBCXX_3.4.21, CXXABI_1.3.3, CXXABI_1.3.5): Make
57 exports for exception_ptr, nested_exception, and future conditional.
58 [HAVE_EXCEPTION_PTR_SINCE_GCC46] (GLIBCXX_3.4.23, CXXABI_1.3.11): Add
59 exports for exception_ptr, nested_exception, and future conditional.
60 * configure: Regenerate.
61 * configure.ac: Use GLIBCXX_CHECK_EXCEPTION_PTR_SYMVER.
62 * include/std/future: Remove check for ATOMIC_INT_LOCK_FREE
63 * libsupc++/eh_atomics.h: New file for internal use only.
64 (__eh_atomic_inc, __eh_atomic_dec): New.
65 * libsupc++/eh_ptr.cc (exception_ptr::_M_addref)
66 (exception_ptr::_M_release) (__gxx_dependent_exception_cleanup)
67 (rethrow_exception): Use eh_atomics.h reference counting helpers.
68 * libsupc++/eh_throw.cc (__gxx_exception_cleanup): Likewise.
69 * libsupc++/eh_tm.cc (free_any_cxa_exception): Likewise.
70 * libsupc++/exception: Remove check for ATOMIC_INT_LOCK_FREE.
71 * libsupc++/exception_ptr.h: Likewise.
72 * libsupc++/guard.cc: Include header for ATOMIC_INT_LOCK_FREE macro.
73 * libsupc++/nested_exception.cc: Remove check for
74 ATOMIC_INT_LOCK_FREE.
75 * libsupc++/nested_exception.h: Likewise.
76 * src/c++11/future.cc: Likewise.
77 * testsuite/18_support/exception_ptr/*: Remove atomic builtins checks.
78 * testsuite/18_support/nested_exception/*: Likewise.
79 * testsuite/30_threads/async/*: Likewise.
80 * testsuite/30_threads/future/*: Likewise.
81 * testsuite/30_threads/headers/future/types_std_c++0x.cc: Likewise.
82 * testsuite/30_threads/packaged_task/*: Likewise.
83 * testsuite/30_threads/promise/*: Likewise.
84 * testsuite/30_threads/shared_future/*: Likewise.
85
86 2017-01-03 Gerald Pfeifer <gerald@pfeifer.com>
87
88 * doc/xml/manual/documentation_hacking.xml: sourceforge.net now
89 defaults to https; adjust reference.
90
91 2017-01-03 Jonathan Wakely <jwakely@redhat.com>
92
93 PR libstdc++/78956
94 * include/std/thread (thread(const thread&&)): Add deleted
95 constructor.
96 * testsuite/30_threads/thread/cons/lwg2097.cc: New test.
97
98 * doc/xml/manual/spine.xml: Update copyright years.
99 * doc/xml/manual/build_hacking.xml: Fix spelling of libbuilddir.
100 * doc/xml/manual/test.xml: Likewise.
101 * doc/html/*: Regenerate.
102
103 2017-01-01 Gerald Pfeifer <gerald@pfeifer.com>
104
105 * doc/xml/faq.xml: Update address of C++ ABI link.
106 * doc/xml/manual/abi.xml: Ditto.
107
108 2017-01-01 Jakub Jelinek <jakub@redhat.com>
109
110 Update copyright years.
111 \f
112 Copyright (C) 2017 Free Software Foundation, Inc.
113
114 Copying and distribution of this file, with or without modification,
115 are permitted in any medium without royalty provided the copyright
116 notice and this notice are preserved.