2017-05-11 François Dumont <fdumont@gcc.gnu.org>
[official-gcc.git] / libstdc++-v3 / ChangeLog
blob6d626f2343fa18d37ec7a66f5814a074261d5d9b
1 2017-05-11  François Dumont  <fdumont@gcc.gnu.org>
3         * include/debug/safe_container.h [_GLIBCXX_USE_CXX11_ABI]
4         (_Safe_container<>): Remove _IsCxx11AllocatorAware template parameter.
5         * include/debug/string: Adapt.
7         * include/debug/formatter.h [_GLIBCXX_INLINE_VERSION]
8         (__gnu_debug::_Error_formatter::_Parameter::_M_print_field): Remove.
9         (__gnu_debug::_Error_formatter::_Parameter::_M_print_description):
10         Remove.
11         (__gnu_debug::_Error_formatter::_M_format_word): Remove.
12         (__gnu_debug::_Error_formatter::_M_print_word): Remove.
13         (__gnu_debug::_Error_formatter::_M_print_string): Remove.
14         (__gnu_debug::_Error_formatter::_M_get_max_length): Remove.
15         * src/c++11/debug.cc: Adapt.
16         * config/abi/pre/gnu-versioned-namespace.ver: Adapt.
18 2017-05-11  Jonathan Wakely  <jwakely@redhat.com>
20         * doc/xml/manual/allocator.xml: Fix ViewCVS URLs.
21         * doc/xml/manual/mt_allocator.xml: Likewise.
22         * doc/html/*: Regenerate.
24         PR libstdc++/80285
25         * include/bits/shared_ptr_base.h (_Sp_make_shared_tag::_S_ti): Define
26         function to get unique fake std::type_info reference.
27         (_Sp_counted_ptr_inplace::_M_get_deleter) [!__cpp_rtti]: Compare to
28         _S_ti() fake reference.
29         (__shared_ptr(_Sp_make_shared_tag, const Alloc&, Args&&...)): Share
30         single implementation with or without RTTI enable.
31         [!__cpp_rtti]: Pass fake reference to _M_get_deleter.
32         * testsuite/20_util/shared_ptr/creation/alloc.cc: Change expected
33         allocation and deallocation counts.
34         * testsuite/20_util/shared_ptr/creation/single_allocation.cc: New.
35         * testsuite/20_util/shared_ptr/creation/single_allocation_no_rtti.cc:
36         New.
38 2017-05-10  François Dumont  <fdumont@gcc.gnu.org>
40         Bump version namespace.
41         * config/abi/pre/gnu-versioned-namespace.ver: Bump version namespace
42         from __7 to __8. Bump GLIBCXX_7.0 to GLIBCXX_8.0.
43         * acinclude.m4 (libtool_VERSION): Bump to 8:0:0.
44         * include/bits/c++config: Adapt.
45         * include/bits/regex.h: Adapt.
46         * include/experimental/bits/fs_fwd.h: Adapt.
47         * include/experimental/bits/lfts_config.h: Adapt.
48         * include/std/variant: Adapt.
49         * python/libstdcxx/v6/printers.py: Adapt.
50         * testsuite/libstdc++-prettyprinters/48362.cc: Adapt.
51         * include/bits/stl_tree.h (_Rb_tree_impl<>): Remove _Is_pod_comparator
52         template parameter when version namespace is active.
54         * include/bits/stl_algobase.h (std::__iter_swap<false>): Remove
55         _GLIBCXX_MOVE usage.
57 2017-05-09  Jason Merrill  <jason@redhat.com>
59         * testsuite/24_iterators/container_access.cc (test03): Make il3 static.
61 2017-05-08  Jonathan Wakely  <jwakely@redhat.com>
63         * include/std/optional: Use a separate static_assert per condition.
64         * testsuite/20_util/optional/cons/value_neg.cc: Update dg-error line
65         numbers.
67         * doc/xml/manual/mt_allocator.xml: Clarify deallocation behaviour.
68         * doc/html/*: Regenerate.
70 2017-05-02  Hugo Beauzée-Luyssen <hugo@beauzee.fr>
72         PR libstdc++/69506
73         * config/os/mingw32-w64/os_defines.h (_GLIBCXX_USE_WEAK_REF): Define.
75 2017-04-29  François Dumont  <fdumont@gcc.gnu.org>
77         * testsuite/libstdc++-prettyprinters/48362.cc: Replace a regexp-test
78         by a note-test.
80 2017-04-28  Jonathan Wakely  <jwakely@redhat.com>
82         PR libstdc++/80553
83         * include/bits/stl_construct.h (_Destroy, _Destroy_n): Add static
84         assertions to ensure type is destructible.
85         (destroy_at, destroy, destroy_n): Move from stl_uninitialized.h.
86         * include/bits/stl_uninitialized.h (destroy_at, destroy, destroy_n):
87         Move to stl_construct.h.
88         * testsuite/20_util/specialized_algorithms/memory_management_tools/
89         destroy_neg.cc: New test.
90         * testsuite/23_containers/vector/cons/destructible_neg.cc: New test.
92         * testsuite/17_intro/headers/c++1998/stdc++_assert_neg.cc: Remove
93         superfluous "" in dg-error.
95 2017-04-28  Tom de Vries  <tom@codesourcery.com>
97         * testsuite/17_intro/headers/c++1998/stdc++_assert_neg.cc: Remove
98         superfluous '{ target *-*-* }' in dg-(error|warning|message|bogus).
100 2017-04-27  Jonathan Wakely  <jwakely@redhat.com>
102         * include/ext/pb_ds/detail/list_update_map_/iterators_fn_imps.hpp
103         (PB_DS_CLASS_C_DEC::end()): Remove redundant const in cast type.
104         * testsuite/util/testsuite_rng.h (twister_rand_gen::get_prob()):
105         Likewise.
107 2017-04-26  Jonathan Wakely  <jwakely@redhat.com>
109         * testsuite/23_containers/deque/allocator/move_assign-2.cc: Improve
110         comment. Ensure first test works because allocator type propagates and
111         not because is_always_equal is true.
112         * testsuite/23_containers/vector/52591.cc: Likewise. Restore original
113         testcase that instantiates the move-assignment operator.
115 2017-04-24  Jonathan Wakely  <jwakely@redhat.com>
117         PR libstdc++/80506
118         * include/bits/random.tcc (gamma_distribution::operator()): Fix magic
119         number used in loop condition.
121         PR libstdc++/80504
122         * include/bits/refwrap.h (ref, cref): Qualify calls.
123         * testsuite/20_util/reference_wrapper/80504.cc: New test.
125         PR libstdc++/80493
126         * include/experimental/optional (optional::swap): Fix exception
127         specification.
129 2017-04-21  Jonathan Wakely  <jwakely@redhat.com>
131         PR libstdc++/80316
132         * include/std/future (_State_baseV2::_Setter::operator()): Remove
133         _S_check calls that are done after the pointer to the shared state is
134         already dereferenced.
135         (_State_baseV2::_Setter<_Res, void>): Define specialization for void
136         as partial specialization so it can be defined within the definition
137         of _State_baseV2.
138         (_State_baseV2::__setter): Call _S_check.
139         (_State_baseV2::__setter(promise<void>*)): Add overload for use by
140         promise<void>::set_value and promise<void>::set_value_at_thread_exit.
141         (promise<T>, promise<T&>, promise<void>): Make _State a friend.
142         (_State_baseV2::_Setter<void, void>): Remove explicit specialization.
143         (promise<void>::set_value, promise<void>::set_value_at_thread_exit):
144         Use new __setter overload.
145         * testsuite/30_threads/promise/members/at_thread_exit2.cc: New test.
146         * testsuite/30_threads/promise/members/set_exception.cc: Test
147         promise<T&> and promise<void> specializations.
148         * testsuite/30_threads/promise/members/set_exception2.cc: Likewise.
149         Test for no_state error condition.
150         * testsuite/30_threads/promise/members/set_value2.cc: Likewise.
152         * include/backward/auto_ptr.h: Ignore deprecated warnings from use
153         of auto_ptr.
154         * include/bits/shared_ptr.h: Likewise.
155         * include/bits/shared_ptr_base.h: Likewise.
156         * include/bits/unique_ptr.h: Likewise.
157         * libstdc++-v3/testsuite/20_util/default_delete/48631_neg.cc: Adjust
158         dg-error lineno.
159         * libstdc++-v3/testsuite/20_util/default_delete/void_neg.cc: Likewise.
160         * libstdc++-v3/testsuite/20_util/unique_ptr/assign/48635_neg.cc:
161         Likewise.
162         * libstdc++-v3/testsuite/20_util/unique_ptr/cons/cv_qual_neg.cc:
163         Likewise.
165 2017-04-20  Edward Smith-Rowland  <3dw4rd@verizon.net>
167         PR libstdc++/68397 std::tr1::expint fails ... long double arguments.
168         * include/tr1/exp_integral.tcc: Increase iteration limits.
169         * testsuite/tr1/5_numerical_facilities/special_functions/15_expint/
170         pr68397.cc: New test.
171         * testsuite/special_functions/14_expint/pr68397.cc: New test.
173 2017-04-20  Jonathan Wakely  <jwakely@redhat.com>
175         PR libstdc++/79862
176         * include/std/atomic [!_GLIBCXX_USE_C99_STDINT_TR1] (atomic_int8_t)
177         (atomic_uint8_t, atomic_int16_t, atomic_uint16_t, atomic_int32_t,
178         (atomic_uint32_t, atomic_int64_t, atomic_uint64_t)
179         (atomic_int_least8_t, atomic_uint_least8_t, atomic_int_least16_t)
180         (atomic_uint_least16_t, atomic_int_least32_t, atomic_uint_least32_t)
181         (atomic_int_least64_t, atomic_uint_least64_t, atomic_int_fast8_t)
182         (atomic_uint_fast8_t, atomic_int_fast16_t, atomic_uint_fast16_t)
183         (atomic_int_fast32_t, atomic_uint_fast32_t, atomic_int_fast64_t)
184         (atomic_uint_fast64_t, atomic_intmax_t, atomic_uintmax_t): Don't
185         define.
187 2017-04-19  Jonathan Wakely  <jwakely@redhat.com>
189         * doc/xml/manual/abi.xml: Rephrase one of the references to the
190         Itanium C++ ABI.
191         * doc/xml/manual/test.xml: Document DejaGnu 1.5.3 requirement.
192         * doc/html/*: Regenerate.
194         * libsupc++/new: Update comment on #endif directive.
196         PR libstdc++/80448
197         * include/experimental/bits/fs_dir.h (directory_iterator)
198         (recursive_directory_iterator): Remove noexcept from defaulted
199         constructors.
201         PR libstdc++/80446
202         * include/std/type_traits (is_aggregate): Change __has_builtin checks.
203         * libsupc++/new (launder): Likewise.
205 2017-04-18  Jonathan Wakely  <jwakely@redhat.com>
207         * include/std/functional (default_searcher, __boyer_moore_array_base)
208         (__is_std_equal_to, __boyer_moore_base_t, boyer_moore_searcher)
209         (boyer_moore_horspool_searcher): Remove redundant namespace
210         qualification.
211         (default_searcher::operator()): Construct return value early and
212         advance second member in-place.
213         (boyer_moore_horspool_searcher::operator()): Increment random access
214         iterator directly instead of using std::next.
215         (boyer_moore_searcher::operator()): Fix return value.
216         * testsuite/20_util/function_objects/searchers.cc: Check both parts
217         of return values.
219 2017-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
221         * doc/xml/faq.xml: Update reference link to C++ ABI for Itanium.
222         * doc/xml/manual/abi.xml. Ditto (thrice).
224 2017-04-03  Jonathan Wakely  <jwakely@redhat.com>
226         * doc/xml/manual/status_cxx2017.xml: Remove duplicate table entry.
227         * doc/html/*: Regenerate.
229         * testsuite/20_util/reference_wrapper/invoke.cc: Uncomment tests
230         that no longer fail.
232         * include/bits/ios_base.h: Correct comment.
233         * testsuite/util/testsuite_hooks.h: Likewise.
235         * doc/xml/manual/status_cxx2017.xml: Update C++17 status table.
236         * doc/xml/manual/appendix_contributing.xml (contrib.organization): Add
237         directories for debug, parallel and profile headers.
238         * doc/html/*: Regenerate.
240         * include/bits/char_traits.h (__gnu_cxx::char_traits): Add
241         _GLIBCXX14_CONSTEXPR on assign, compare, find, and length.
242         (std::char_traits<char>, std::char_traits<wchar_t>): Add
243         _GLIBCXX17_CONSTEXPR on assign.
244         (std::char_traits<char16_t>, std::char_traits<char32_t>): Add
245         _GLIBCXX17_CONSTEXPR on assign, compare, find, and length.
246         * testsuite/21_strings/char_traits/requirements/
247         constexpr_functions_c++17.cc: New test.
249 2017-04-03  Ville Voutilainen  <ville.voutilainen@gmail.com>
251         PR libstdc++/79141
252         * include/bits/stl_pair.h (__nonesuch_no_braces): New.
253         (operator=(typename conditional<
254         __and_<is_copy_assignable<_T1>,
255         is_copy_assignable<_T2>>::value,
256         const pair&, const __nonesuch&>::type)): Change __nonesuch
257         to __nonesuch_no_braces.
258         (operator=(typename conditional<
259         __not_<__and_<is_copy_assignable<_T1>,
260         is_copy_assignable<_T2>>>::value,
261         const pair&, const __nonesuch&>::type)): Likewise.
262         (operator=(typename conditional<
263         __and_<is_move_assignable<_T1>,
264         is_move_assignable<_T2>>::value,
265         pair&&, __nonesuch&&>::type)): Likewise.
266         * testsuite/20_util/pair/79141.cc: New.
268 2017-04-03  Ville Voutilainen  <ville.voutilainen@gmail.com>
270         Implement std::is_aggregate.
271         * include/std/type_traits (is_aggregate, is_aggregate_v): New.
272         * testsuite/20_util/is_aggregate/requirements/explicit_instantiation.cc:
273         New.
274         * testsuite/20_util/is_aggregate/requirements/typedefs.cc: Likewise.
275         * testsuite/20_util/is_aggregate/value.cc: Likewise.
277 2017-03-29  Ville Voutilainen  <ville.voutilainen@gmail.com>
279         Adjust optional's pretty printer for LWG 2900.
280         * python/libstdcxx/v6/printers.py (StdExpOptionalPrinter.__init__):
281         Look at the nested payload in case of non-experimental optional.
283 2017-03-29  Ville Voutilainen  <ville.voutilainen@gmail.com>
285         Implement LWG 2900, The copy and move constructors
286         of optional are not constexpr.
287         * include/std/optional (_Optional_payload): New.
288         (_Optional_base): Remove the bool parameter.
289         (_Optional_base<_Tp, false>): Remove.
290         (_Optional_base()): Adjust.
291         (_Optional_base(nullopt_t)): Likewise.
292         (_Optional_base(in_place_t, _Args&&...)): Likewise.
293         (_Optional_base(in_place_t, initializer_list<_Up>, _Args&&...)):
294         Likewise.
295         (_Optional_base(const _Optional_base&)): Likewise.
296         (_Optional_base(_Optional_base&&)): Likewise.
297         (operator=(const _Optional_base&)): Likewise.
298         (operator=(_Optional_base&&)): Likewise.
299         (~_Optional_base()): Remove.
300         (_M_is_engaged()): Adjust.
301         (_M_get()): Likewise.
302         (_M_construct(_Args&&...)): Likewise.
303         (_M_destruct()): Likewise.
304         (_M_reset()): Likewise.
305         (_Optional_base::_Empty_byte): Remove.
306         (_Optional_base::_M_empty): Remove.
307         (_Optional_base::_M_payload): Adjust.
308         * testsuite/20_util/optional/cons/value_neg.cc: Adjust.
309         * testsuite/20_util/optional/constexpr/cons/value.cc: Add tests.
311 2017-03-28  Jonathan Wakely  <jwakely@redhat.com>
313         PR libstdc++/80137
314         * include/bits/random.tcc (generate_canonical): Use std::nextafter
315         or numeric_limits::epsilon() to reduce out-of-range values.
316         * testsuite/26_numerics/random/uniform_real_distribution/operators/
317         64351.cc: Verify complexity requirement is met.
319         * doc/xml/manual/abi.xml: Add xml:id anchor.
320         * doc/xml/manual/using.xml (manual.intro.using.macros): Document
321         _GLIBCXX_RELEASE. Link to new anchor for __GLIBCXX__ notes.
322         (concurrency.io.structure): Add markup.
323         * doc/html/*: Regenerate.
325         PR libstdc++/80229
326         * include/bits/shared_ptr_base.h
327         (__shared_ptr::_M_enable_shared_from_this_with): Change parameters to
328         non-const and then use remove_cv to get unqualified type.
329         * testsuite/20_util/enable_shared_from_this/members/const.cc: Don't
330         cast away constness on object created const.
331         * testsuite/20_util/shared_ptr/cons/80229.cc: New test.
333 2017-03-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
335         PR libstdc++/80183
336         * include/bits/stl_tree.h:
337         (_Rb_tree_header::_M_move_data(_Rb_tree_header&)): Also save _M_color.
339 2017-03-23  Jonathan Wakely  <jwakely@redhat.com>
341         * testsuite/23_containers/array/tuple_interface/
342         tuple_element_debug_neg.cc: Adjust dg-error.
343         * testsuite/23_containers/list/operations/78389.cc: Fix less-than to
344         define a valid strict weak ordering.
345         * testsuite/23_containers/priority_queue/67085.cc: Disable test for
346         Debug Mode, due to debug checks making extra copies of predicate.
347         * testsuite/ext/pb_ds/regression/priority_queue_binary_heap-62045.cc:
348         Likewise.
350         * doc/xml/faq.xml: Add link.
351         * doc/xml/manual/backwards_compatibility.xml: Remove outdated
352         information on pre-ISO headers. Replace broken link to C++ FAQ Lite.
353         * doc/xml/manual/io.xml: Update broken link.
354         * doc/html/*: Regenerate.
356 2017-03-23  Daniel Kruegler  <daniel.kruegler@gmail.com>
358         Implement LWG 2686, Why is std::hash specialized for error_code,
359         but not error_condition?
360         * include/std/system_error (hash<error_condition>): Define for C++17.
361         * testsuite/20_util/hash/operators/size_t.cc (hash<error_condition>):
362         Instantiate test for error_condition.
363         * testsuite/20_util/hash/requirements/explicit_instantiation.cc
364         (hash<error_condition>): Instantiate hash<error_condition>.
366         * include/bits/c++config (_GLIBCXX17_INLINE): Define.
367         * include/bits/regex_constants.h (All std::regex_constants constants):
368         Add _GLIBCXX17_INLINE as per P0607R0.
369         * include/bits/std_mutex.h (defer_lock, try_to_lock, adopt_lock):
370         Likewise.
371         * include/bits/stl_pair.h (piecewise_construct): Likewise.
372         * include/bits/uses_allocator.h (allocator_arg, uses_allocator_v)
373         (__is_uses_allocator_constructible_v)
374         (__is_nothrow_uses_allocator_constructible_v): Likewise.
375         * include/std/chrono (treat_as_floating_point_v): Likewise.
376         * include/std/functional (is_bind_expression_v, is_placeholder_v):
377         Likewise.
378         * include/std/optional (nullopt): Likewise.
379         * include/std/ratio (ratio_equal_v, ratio_not_equal_v, ratio_less_v)
380         ratio_less_equal_v, ratio_greater_v, ratio_greater_equal_v): Likewise.
381         * include/std/system_error (is_error_code_enum_v)
382         (is_error_condition_enum_v): Likewise.
383         * include/std/tuple (tuple_size_v, ignore): Likewise.
384         (ignore): Declare ignore constexpr as per LWG 2773, declare assignment
385         constexpr as per LWG 2933.
386         * include/std/type_traits (All variable templates): Add
387         _GLIBCXX17_INLINE as per P0607R0.
388         * include/std/variant (variant_size_v, variant_npos, __index_of_v)
389         (__tuple_count_v, __exactly_once): Likewise.
390         * testsuite/18_support/headers/new/synopsis.cc
391         (hardware_destructive_interference_size)
392         (hardware_constructive_interference_size): Likewise for commented-out
393         variables.
394         * testsuite/20_util/tuple/creation_functions/constexpr.cc: Add new
395         test function for constexpr std::ignore (LWG 2773).
396         * testsuite/20_util/tuple/creation_functions/constexpr_cpp14.cc: New
397         test for LWG 2933.
399 2017-03-22  Jonathan Wakely  <jwakely@redhat.com>
401         * include/bits/shared_ptr.h (shared_ptr, weak_ptr): Add deduction
402         guides for C++17.
403         * include/bits/std_function.h (function): Likewise.
404         * include/bits/stl_pair.h (pair): Likewise.
405         * include/debug/array (__gnu_debug::array): Likewise.
406         * include/std/array (array): Likewise.
407         * include/std/functional (make_default_searcher)
408         (make_boyer_moore_searcher, make_boyer_moore_horspool_searcher):
409         Remove generator functions.
410         * include/std/tuple (tuple): Add deduction guides.
411         * include/std/valarray (valarray): Likewise.
412         * testsuite/20_util/function_objects/searchers.cc: Adjust to use
413         class template argument deduction instead of generator functions.
414         * testsuite/20_util/function/cons/deduction.cc: New test.
415         * testsuite/20_util/optional/cons/deduction_guide.cc: Rename to ...
416         * testsuite/20_util/optional/cons/deduction.cc: ... here.
417         * testsuite/20_util/pair/cons/deduction.cc: New test.
418         * testsuite/20_util/shared_ptr/cons/deduction.cc: New test.
419         * testsuite/20_util/tuple/cons/deduction.cc: New test.
420         * testsuite/20_util/tuple/element_access/get_neg.cc: Adjust dg-error.
421         * testsuite/20_util/unique_ptr/cons/deduction_neg.cc: New test.
422         * testsuite/20_util/weak_ptr/cons/deduction.cc: New test.
423         * testsuite/23_containers/array/cons/deduction.cc: New test.
424         * testsuite/23_containers/array/cons/deduction_neg.cc: New test.
425         * testsuite/23_containers/array/tuple_interface/get_debug_neg.cc:
426         Adjust dg-error.
427         * testsuite/23_containers/array/tuple_interface/get_neg.cc: Likewise.
428         * testsuite/23_containers/array/tuple_interface/tuple_element_neg.cc:
429         Likewise.
430         * testsuite/26_numerics/valarray/deduction.cc: New test.
431         * testsuite/30_threads/lock_guard/cons/deduction.cc: New test.
432         * testsuite/30_threads/scoped_lock/cons/deduction.cc: New test.
433         * testsuite/30_threads/unique_lock/cons/deduction.cc: New test.
435 2017-03-20  François Dumont  <fdumont@gcc.gnu.org>
437         * include/bits/stl_deque.h (deque): Access allocator value_type only if
438         concept checks are enabled.
439         * include/bits/stl_stack.h (stack): Likewise.
440         * include/bits/stl_vector.h (vector): Likewise.
441         * include/bits/stl_list.h (list): Likewise and check
442         _SGIAssignableConcept only in C++03.
443         * include/bits/stl_map.h (map): Likewise.
444         * include/bits/stl_set.h (set): Likewise.
445         * include/bits/stl_multimap.h (multimap): Likewise.
446         * include/bits/stl_multiset.h (multiset): Likewise.
447         * include/bits/stl_queue.h (queue, priority_queue): Likewise.
449 2017-03-18  Gerald Pfeifer  <gerald@pfeifer.com>
451         * doc/xml/manual/appendix_contributing.xml: Convert link to
452         ansi.org to https.
453         Update link to the C++ standard at ansi.org.
455         * doc/xml/faq.xml: Remove information redundant with the above;
456         instead add a reference.
458 2017-03-17  Jonathan Wakely  <jwakely@redhat.com>
460         * src/c++11/codecvt.cc (range): Add non-type template parameter and
461         define oerloaded operators for reading and writing code units.
462         (range<Elem, false>): Define partial specialization for accessing
463         wide characters in potentially unaligned byte ranges.
464         (ucs2_span(const char16_t*, const char16_t*, ...))
465         (ucs4_span(const char16_t*, const char16_t*, ...)): Change parameters
466         to range<const char16_t, false> in order to avoid unaligned reads.
467         (__codecvt_utf16_base<char16_t>::do_out)
468         (__codecvt_utf16_base<char32_t>::do_out)
469         (__codecvt_utf16_base<wchar_t>::do_out): Use range specialization for
470         unaligned data to avoid unaligned writes.
471         (__codecvt_utf16_base<char16_t>::do_in)
472         (__codecvt_utf16_base<char32_t>::do_in)
473         (__codecvt_utf16_base<wchar_t>::do_in): Likewise for writes. Return
474         error if there are unprocessable trailing bytes.
475         (__codecvt_utf16_base<char16_t>::do_length)
476         (__codecvt_utf16_base<char32_t>::do_length)
477         (__codecvt_utf16_base<wchar_t>::do_length): Pass arguments of type
478         range<const char16_t, false> to span functions.
479         * testsuite/22_locale/codecvt/codecvt_utf16/misaligned.cc: New test.
481 2017-03-16  Jonathan Wakely  <jwakely@redhat.com>
483         PR libstdc++/79980
484         * src/c++11/codecvt.cc (to_integer(codecvt_mode)): Fix target type.
486         PR libstdc++/80041
487         * src/c++11/codecvt.cc (__codecvt_utf16_base<wchar_t>::do_out)
488         (__codecvt_utf16_base<wchar_t>::do_in): Convert char arguments to
489         char16_t to work with UTF-16 instead of UTF-8.
490         * testsuite/22_locale/codecvt/codecvt_utf16/80041.cc: New test.
492         * src/c++11/codecvt.cc (codecvt<char16_t, char, mbstate_t>)
493         (codecvt<char32_t, char, mbstate_t>, __codecvt_utf8_base<char16_t>)
494         (__codecvt_utf8_base<char32_t>, __codecvt_utf8_base<wchar_t>)
495         (__codecvt_utf16_base<char16_t>, __codecvt_utf16_base<char32_t>)
496         (__codecvt_utf16_base<wchar_t>, __codecvt_utf8_utf16_base<char16_t>)
497         (__codecvt_utf8_utf16_base<char32_t>)
498         (__codecvt_utf8_utf16_base<wchar_t>): Fix do_encoding() and
499         do_max_length() return values.
500         * testsuite/22_locale/codecvt/codecvt_utf16/members.cc: New test.
501         * testsuite/22_locale/codecvt/codecvt_utf8/members.cc: New test.
502         * testsuite/22_locale/codecvt/codecvt_utf8_utf16/members.cc: New test.
504         PR libstdc++/79980
505         * include/bits/locale_conv.h (__do_str_codecvt): Set __count on
506         error path.
507         * src/c++11/codecvt.cc (operator&=, operator|=, operator~): Overloads
508         for manipulating codecvt_mode values.
509         (read_utf16_bom): Compare input to BOM constants instead of integral
510         constants that depend on endianness.  Take mode parameter by
511         reference and adjust it, to distinguish between no BOM present and
512         UTF-16BE BOM present.
513         (ucs4_in, ucs2_span, ucs4_span): Adjust calls to read_utf16_bom.
514         (surrogates): New enumeration type.
515         (utf16_in, utf16_out): Add surrogates parameter to choose between
516         UTF-16 and UCS2 behaviour.
517         (utf16_span, ucs2_span): Use std::min not std::max.
518         (ucs2_out): Use std::min not std::max.  Disallow surrogate pairs.
519         (ucs2_in): Likewise. Adjust calls to read_utf16_bom.
520         * testsuite/22_locale/codecvt/codecvt_utf16/79980.cc: New test.
521         * testsuite/22_locale/codecvt/codecvt_utf8/79980.cc: New test.
523         PR libstdc++/79511
524         * src/c++11/codecvt.cc (write_utf16_code_point): Don't write 0xffff
525         as a surrogate pair.
526         (__codecvt_utf8_utf16_base<char32_t>::do_in): Use native endianness
527         for internal representation.
528         (__codecvt_utf8_utf16_base<wchar_t>::do_in): Likewise.
529         * testsuite/22_locale/codecvt/codecvt_utf8_utf16/79511.cc: New test.
531         PR libstdc++/80064
532         * include/bits/stl_heap.h (__is_heap, push_heap, __adjust_heap)
533         (pop_heap, make_heap, sort_heap, is_heap_until, is_heap): Cope with
534         invalid instantiations using function types for _Compare argument.
535         * testsuite/25_algorithms/make_heap/80064.cc: New test.
537         PR libstdc++/67440
538         * python/libstdcxx/v6/printers.py (find_type): Avoid gdb.Type.name
539         for GDB 7.6 compatibility, use gdb.Type.unqualified instead.
541 2017-03-15  Ville Voutilainen  <ville.voutilainen@gmail.com>
543         Implement LWG 2857, {variant,optional,any}::emplace should
544         return the constructed value.
545         * include/std/any (emplace(_Args&&...)): Change the return type and
546         return a reference to the constructed value.
547         (emplace(initializer_list<_Up>, _Args&&...)): Likewise.
548         * include/std/optional (emplace(_Args&&...)): Likewise.
549         (emplace(initializer_list<_Up>, _Args&&...)): Likewise.
550         * include/std/variant (emplace<_Tp>(_Args&&...)): Likewise.
551         (emplace<_Tp>(initializer_list<_Up>, _Args&&...)): Likewise.
552         (emplace<_Np>(_Args&&...)): Likewise.
553         (emplace<_Np>(initializer_list<_Up>, _Args&&...)): Likewise.
554         * testsuite/20_util/any/assign/emplace.cc: Add tests for
555         checking the return value of emplace.
556         * testsuite/20_util/any/misc/any_cast_neg.cc: Adjust.
557         * testsuite/20_util/optional/assignment/6.cc: Add tests for
558         checking the return value of emplace.
559         * testsuite/20_util/variant/run.cc: Likewise.
561 2017-03-15  Xi Ruoyao  <ryxi@stu.xidian.edu.cn>
563         PR libstdc++/62045
564         * include/ext/pb_ds/qdetail/binary_heap_/binary_heap_.hpp
565         (is_heap): Remove.
566         (push_heap): Remove the wrong checking using is_heap.
567         (make_heap): Remove the assertion using is_heap.
568         * include/ext/pb_ds/detail/binary_heap_/insert_fn_imps.hpp
569         (modify): Ditto.
570         (resize_for_insert_if_needed): Add PB_DS_ASSERT_VALID after
571         calling make_heap.
573 2017-03-15  Jonathan Wakely  <jwakely@redhat.com>
575         PR libstdc++/62045
576         * testsuite/ext/pb_ds/regression/priority_queue_binary_heap-62045.cc:
577         New test.
578         * testsuite/ext/pb_ds/regression/priority_queues.cc: Fix copy&paste
579         error in comment.
581 2017-03-15  Jonathan Wakely  <jwakely@redhat.com>
583         * acinclude.m4 (GLIBCXX_CHECK_S_ISREG_OR_S_IFREG): Fix typo in
584         comment.
585         * config.h.in: Regenerate.
586         * configure: Regenerate.
587         * doc/Makefile.in: Regenerate.
589 2017-03-14  Jonathan Wakely  <jwakely@redhat.com>
591         PR libstdc++/79162
592         * include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI]
593         (basic_string<C,T,A>::operator=(basic_string_view<C,T>)): Replace
594         with a constrained template.
595         [!_GLIBCXX_USE_CXX11_ABI]
596         (basic_string<C,T,A>::operator=(basic_string_view<C,T>)): Likewise.
597         * testsuite/21_strings/basic_string/cons/char/79162.cc: New test.
598         * testsuite/21_strings/basic_string/cons/wchar_t/79162.cc: New test.
600 2017-03-13  Ville Voutilainen  <ville.voutilainen@gmail.com>
602         PR libstdc++/80034
603         * include/bits/list.tcc (merge(list&&)): Use const for the size_t
604         in the catch-block.
605         (merge(list&&, _StrictWeakOrdering)): Likewise.
606         * testsuite/23_containers/list/operations/80034.cc: New.
608 2017-03-13  Ville Voutilainen  <ville.voutilainen@gmail.com>
610         Implement LWG 2806, Base class of bad_optional_access.
611         * include/std/optional (bad_optional_access):
612         Derive from std::exception.
613         (bad_optional_access::bad_optional_access): Adjust.
614         (bad_optional_access::what): New.
615         (__throw_bad_optional_access(const char*)):
616         Remove the parameter and adjust calls.
617         * testsuite/20_util/optional/cons/value_neg.cc: Adjust.
618         * testsuite/20_util/optional/typedefs.cc: Likewise.
620 2017-03-12  Ville Voutilainen  <ville.voutilainen@gmail.com>
622         Implement LWG 2934, optional<const T> doesn't compare with T.
623         * include/std/optional
624         (operator==(const optional<_Tp>&, const optional<_Tp>&)):
625         Turn into operator==(const optional<_Tp>&, const optional<_Up>&).
626         (operator!=(const optional<_Tp>&, const optional<_Tp>&)):
627         Turn into operator!=(const optional<_Tp>&, const optional<_Up>&).
628         (operator<(const optional<_Tp>&, const optional<_Tp>&)):
629         Turn into operator<(const optional<_Tp>&, const optional<_Up>&.
630         (operator>(const optional<_Tp>&, const optional<_Tp>&)):
631         Turn into operator>(const optional<_Tp>&, const optional<_Up>&.
632         (operator<=(const optional<_Tp>&, const optional<_Tp>&)):
633         Turn into operator<=(const optional<_Tp>&, const optional<_Up>&).
634         (operator>=(const optional<_Tp>&, const optional<_Tp>&)):
635         Turn into operator>=(const optional<_Tp>&, const optional<_Up>&).
636         (operator==(const optional<_Tp>&, const _Tp&)):
637         Turn into operator==(const optional<_Tp>&, const _Up&).
638         (operator==(const _Tp&, const optional<_Tp>&)):
639         Turn into operator==(const _Up&, const optional<_Tp>&).
640         (operator!=(const optional<_Tp>&, const _Tp&)):
641         Turn into operator!=(const optional<_Tp>&, const _Up&).
642         (operator!=(const _Tp&, const optional<_Tp>&)):
643         Turn into operator!=(const _Up&, const optional<_Tp>&).
644         (operator<(const optional<_Tp>&, const _Tp&)):
645         Turn into operator<(const optional<_Tp>&, const _Up&).
646         (operator<(const _Tp&, const optional<_Tp>&)):
647         Turn into operator<(const _Up&, const optional<_Tp>&).
648         (operator>(const optional<_Tp>&, const _Tp&)):
649         Turn into operator>(const optional<_Tp>&, const _Up&).
650         (operator>(const _Tp&, const optional<_Tp>&)):
651         Turn into operator>(const _Up&, const optional<_Tp>&).
652         (operator<=(const optional<_Tp>&, const _Tp&)):
653         Turn into operator<=(const optional<_Tp>&, const _Up&).
654         (operator<=(const _Tp&, const optional<_Tp>&)):
655         Turn into operator<=(const _Up&, const optional<_Tp>&).
656         (operator>=(const optional<_Tp>&, const _Tp&)):
657         Turn into operator>=(const optional<_Tp>&, const _Up&).
658         (operator>=(const _Tp&, const optional<_Tp>&)):
659         Turn into operator>=(const _Up&, const optional<_Tp>&).
660         * testsuite/20_util/optional/relops/7.cc: New.
662 2017-03-10  Jonathan Wakely  <jwakely@redhat.com>
664         * testsuite/17_intro/names.cc: Undefine macros that clash with
665         identifiers in AIX system headers.
667         * include/bits/invoke.h (__invoke): Use __invoke_result instead of
668         result_of, and __is_nothrow_invocable instead of
669         __is_nothrow_callable.
670         * include/bits/shared_ptr_base.h (__shared_ptr): Use __is_invocable
671         instead of __is_callable.
672         * include/std/functional (invoke): use invoke_result_t instead of
673         result_of_t and is_nothrow_invocable instead of is_nothrow_callable.
674         (_Not_fn): Use __invoke_result instead of result_of.
675         * include/std/type_traits (__result_of_memobj, __result_of_memfun):
676         Remove partial specializations for reference_wrapper types.
677         (__result_of_impl): Use __inv_unwrap to strip reference_wrapper.
678         (__invoke_result): Define replacement for result_of and then use it to
679         define result_of.
680         (__is_callable_impl, __is_callable, __is_nothrow_callable): Replace
681         with __is_invocable_impl, __is_invocable, and __is_nothrow_invocable
682         respectively.
683         (invoke_result, invoke_result_t): Define for C++17.
684         (is_callable, is_nothrow_callable): Replace with is_invocable,
685         is_invocable_r, is_nothrow_invocable, and is_nothrow_invocable_r.
686         (is_callable_v, is_nothrow_callable_v): Replace with is_invocable_v,
687         is_invocable_r_v, is_nothrow_invocable_v, and is_nothrow_invocable_r_v.
688         * include/std/variant (hash<variant<T...>>): Use is_nothrow_invocable_v
689         instead of is_nothrow_callable_v.
690         * testsuite/20_util/function_objects/invoke/59768.cc: Remove unused
691         main function.
692         * testsuite/20_util/function_objects/not_fn/1.cc: Use is_invocable
693         instead of is_callable.
694         * testsuite/20_util/is_callable/*: Rename directory and adjust tests
695         to use new traits.
696         * testsuite/20_util/is_nothrow_callable/*: Likewise.
697         * testsuite/20_util/optional/hash.cc: Use is_invocable_v instead of
698         is_callable.
699         * testsuite/20_util/variant/hash.cc: Likewise.
701 2017-03-10  George Lander  <george.lander@arm.com>
703         * acinclude.m4 (glibcxx_cv_obsolete_isnan): Define
704         _GLIBCXX_INCLUDE_NEXT_C_HEADERS before including math.h.
705         * configure: Regenerate.
707 2017-03-09  Jonathan Wakely  <jwakely@redhat.com>
709         * include/std/functional (_Not_fn): Define macro to simplify
710         repetitive function definitions.
712         * doc/xml/manual/status_cxx2017.xml: Document std::byte support.
713         * include/c_global/cstddef (std::byte): Define for C++17.
714         * testsuite/18_support/byte/global_neg.cc: New test.
715         * testsuite/18_support/byte/ops.cc: New test.
716         * testsuite/18_support/byte/requirements.cc: New test.
718 2017-03-05  Jonathan Wakely  <jwakely@redhat.com>
720         * doc/xml/manual/status_cxx2017.xml: Document P0156R2 status.
721         * doc/html/*: Regenerate.
722         * include/std/mutex (scoped_lock): Implement new C++17 template.
723         * testsuite/30_threads/scoped_lock/cons/1.cc: New test.
724         * testsuite/30_threads/scoped_lock/requirements/
725         explicit_instantiation.cc: New test.
726         * testsuite/30_threads/scoped_lock/requirements/typedefs.cc: New test.
728 2017-03-02  Gerald Pfeifer  <gerald@pfeifer.com>
729             François Dumont  <frs.dumont@gmail.com>
730             Jonathan Wakely  <jwakely@redhat.com>
732         * doc/xml/manual/debug_mode.xml: Update and simplify note
733         on link- and run-time coexistence.
735 2017-03-02  Jonathan Wakely  <jwakely@redhat.com>
737         * testsuite/17_intro/headers/names.cc: Rename to ...
738         * testsuite/17_intro/names.cc: ... here.
740         PR libstdc++/79789
741         * include/bits/hashtable_policy.h (__clp2): Use reserved names for
742         parameters and local variables.
743         * include/bits/ios_base.h (make_error_code, make_error_condition):
744         Likewise.
745         * include/bits/list.tcc (list::sort): Likewise.
746         * include/bits/mask_array.h (mask_array): Likewise.
747         * include/bits/regex.h (regex_token_iterator): Likewise.
748         * include/bits/slice_array.h (slice_array): Likewise.
749         * include/bits/stl_algo.h (__sample): Likewise.
750         * include/std/memory (undeclare_no_pointers): Likewise.
751         * include/std/type_traits (is_callable_v, is_nothrow_callable_v):
752         Likewise.
753         * libsupc++/exception_ptr.h (__dest_thunk): Likewise.
754         * testsuite/17_intro/headers/names.cc: New test.
756         PR libstdc++/79798
757         * include/std/functional (bind::_Res_type_impl): Fix incorrect use of
758         result_of that loses top-level cv-qualifiers.
759         * testsuite/20_util/bind/79798.cc: New test.
761 2017-03-01  Gerald Pfeifer  <gerald@pfeifer.com>
763         * doc/xml/manual/documentation_hacking.xml: Tweak link to
764         doxygen.org.
766 2017-02-23  Jonathan Wakely  <jwakely@redhat.com>
768         * include/experimental/iterator: Include <iterator>.
769         * testsuite/experimental/iterator/requirements.cc: Check for contents
770         of <iterator>.
772 2017-02-19  Dinka Ranns  <dinka.ranns@googlemail.com>
774         C++17 GB50 resolution
775         * include/std/chrono (duration::operator++()): Add
776         _GLIBCXX17_CONSTEXPR.
777         (duration::operator++(int)): Likewise.
778         (duration::operator--()): Likewise.
779         (duration::operator--(int)): Likewise.
780         (duration::operator+=(const duration&)): Likewise.
781         (duration::operator-=(const duration&)): Likewise.
782         (duration::operator*=(const rep&)): Likewise.
783         (duration::operator/=(const rep&)): Likewise.
784         (duration::operator%=(const rep&)): Likewise.
785         (duration::operator%=(const duration&)): Likewise.
786         (time_point::operator+=(const duration&)): Likewise.
787         (time_point::operator-=(const duration&)): Likewise.
788         * testsuite/20_util/duration/arithmetic/constexpr_c++17.cc: New test.
789         * testsuite/20_util/duration/literals/range.cc: Adjust dg-error.
790         * testsuite/20_util/time_point/arithmetic/constexpr.cc: New test.
792 2017-02-19  Gerald Pfeifer  <gerald@pfeifer.com>
794         * doc/xml/manual/debug.xml: Adjust link to ThreadSanitizer.
796 2017-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
798         * doc/xml/manual/io.xml: Update link to groups.google.com.
799         Tweak link description.
801 2017-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
803         * doc/xml/manual/profile_mode.xml: Fix link.
805 2017-02-16  Gerald Pfeifer  <gerald@pfeifer.com>
807         * doc/xml/manual/policy_data_structures.xml: Simplify and
808         standardize references to boost.org.
809         * doc/xml/manual/policy_data_structures_biblio.xml: Ditto.
810         * doc/xml/manual/shared_ptr.xml: Ditto.
812 2017-02-16  Jonathan Wakely  <jwakely@redhat.com>
814         PR libstdc++/60936
815         * src/c++11/snprintf_lite.cc (__concat_size_t): Calculate length
816         written to buffer, not length remaining in buffer.
818 2017-02-15  Tim Shen  <timshen@google.com>
820         PR libstdc++/78723
821         * include/std/variant (operator<(), operator>(), operator<=(),
822         operator>=(), operator==(), operator!=()): Implement P0393R3.
823         * testsuite/20_util/variant/compile.cc: Adjust tests.
824         * testsuite/20_util/variant/run.cc: Adjust tests.
826 2017-02-15  Tim Shen  <timshen@google.com>
828         PR libstdc++/79513
829         * include/std/variant (visit()): Forward variant types to the return
830         type detection code.
831         * testsuite/20_util/variant/compile.cc: Add test cases.
833 2017-02-13  H.J. Lu  <hongjiu.lu@intel.com>
835         PR libstdc++/79348
836         * config/abi/post/x86_64-linux-gnu/x32/baseline_symbols.txt: Updated.
838 2017-02-13  Jakub Jelinek  <jakub@redhat.com>
840         PR libstdc++/79348
841         * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt: Update.
842         * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt: Likewise.
843         * config/abi/post/i386-linux-gnu/baseline_symbols.txt: Likewise.
844         * config/abi/post/i486-linux-gnu/baseline_symbols.txt: Likewise.
845         * config/abi/post/aarch64-linux-gnu/baseline_symbols.txt: Likewise.
846         * config/abi/post/s390x-linux-gnu/baseline_symbols.txt: Likewise.
847         * config/abi/post/s390x-linux-gnu/32/baseline_symbols.txt: Likewise.
848         * config/abi/post/s390-linux-gnu/baseline_symbols.txt: Likewise.
849         * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt: Likewise.
851 2017-02-13  Jonathan Wakely  <jwakely@redhat.com>
853         PR libstdc++/79486
854         * include/std/future (__future_base::_Task_state::_M_run)
855         (__future_base::_Task_state::_M_run_delayed): Use lvalue types in
856         result_of expressions.
857         * testsuite/30_threads/packaged_task/79486.cc: New.
859 2017-02-11  Jonathan Wakely  <jwakely@redhat.com>
861         PR libstdc++/79467
862         * include/bits/shared_ptr_base.h (__shared_ptr(_Yp*, _Deleter))
863         (__shared_ptr(_Yp*, _Deleter, _Alloc)): Use lvalue types in
864         __is_callable check.
865         * testsuite/20_util/shared_ptr/cons/79467.cc: New.
867         * include/bits/atomic_base.h: Re-indent.
869 2017-02-10  Gerald Pfeifer  <gerald@pfeifer.com>
871         * doc/xml/manual/profile_mode.xml: Update a paper reference.
873 2017-02-08  Gerald Pfeifer  <gerald@pfeifer.com>
875         * src/c++11/snprintf_lite.cc (__err): Use https for bug reporting.
877 2017-02-08  Jonathan Wakely  <jwakely@redhat.com>
879         * doc/xml/manual/policy_data_structures.xml: Fix spelling of author's
880         name.
881         * doc/xml/manual/policy_data_structures_biblio.xml: Likewise. Remove
882         broken links to texts that are no longer online.
883         * doc/xml/manual/profile_mode.xml: Update links to CGO 2009 paper and
884         LCPC 2006 paper.
885         * doc/xml/manual/using.xml: Update links to memory model information.
886         * doc/xml/manual/using_exceptions.xml: Update link to "Appendix E:
887         Standard-Library Exception Safety".
888         * doc/html/*: Regenerate.
890 2017-02-08  Gerald Pfeifer  <gerald@pfeifer.com>
892         * doc/xml/manual/profile_mode.xml: Unbreak link to
893         "Optimizing Sorting with Machine Learning Algorithms".
895 2017-02-08  Gerald Pfeifer  <gerald@pfeifer.com>
897         * src/c++11/snprintf_lite.cc (__err): Update bug reporting URL.
899 2017-02-08  Gerald Pfeifer  <gerald@pfeifer.com>
901         * doc/xml/manual/abi.xml: Update link to "Sun Studio 11: C++
902         Migration Guide".
904 2017-02-07  Gerald Pfeifer  <gerald@pfeifer.com>
906         * doc/html/ext/lwg-active.html: Remove.
907         * doc/html/ext/lwg-closed.html: Ditto.
908         * doc/html/ext/lwg-defects.html: Ditto.
910         * doc/Makefile.am (xml_extradir): Remove.
911         (xml_extra): Ditto.
912         (stamp-html-docbook-lwg): Remove recipe...
913         (stamp-html-docbook-data): ...and its use here.
914         * doc/Makefile.in: Regenerate.
916         * doc/xml/manual/intro.xml: Shorten two paragraphs explaining
917         the relationship to the upstream working group.
918         Replace a local link to ../ext/lwg-active.html by the upstream one.
919         Replace all reference to ../ext/lwg-defects.html by a new entity
920         &DR; which refers to the upstream address.
922 2017-02-07  Gerald Pfeifer  <gerald@pfeifer.com>
924         * doc/xml/manual/status_cxx2017.xml: Fix link to N4284.
926 2017-02-06  Jonathan Wakely  <jwakely@redhat.com>
928         PR libstdc++/79323
929         * testsuite/20_util/duration/literals/range.cc: Prune extra output
930         at -O0.
932 2017-02-06  Gerald Pfeifer  <gerald@pfeifer.com>
934         * doc/xml/manual/documentation_hacking.xml: Update URL of the
935         DocBook Element Reference.  Use that term as link description
936         instead of "online".
937         epubcheck has moved to GitHub.
938         Remove obsolete link to DocBook Publishing Tools.
940 2017-02-03  Jonathan Wakely  <jwakely@redhat.com>
942         PR libstdc++/66145
943         * testsuite/27_io/basic_ios/copyfmt/char/1.cc: Restore ABI override
944         so new ios::failure can be caught even when old ABI is the default.
945         * testsuite/27_io/basic_ios/exceptions/char/1.cc: Likewise.
946         * testsuite/27_io/basic_istream/extractors_arithmetic/char/
947         exceptions_failbit.cc: Likewise.
948         * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/
949         exceptions_failbit.cc: Likewise.
950         * testsuite/27_io/basic_istream/extractors_other/char/
951         exceptions_null.cc: Likewise.
952         * testsuite/27_io/basic_istream/extractors_other/wchar_t/
953         exceptions_null.cc: Likewise.
954         * testsuite/27_io/basic_istream/sentry/char/12297.cc: Likewise.
955         * testsuite/27_io/basic_istream/sentry/wchar_t/12297.cc: Likewise.
956         * testsuite/27_io/basic_ostream/inserters_other/char/
957         exceptions_null.cc: Likewise.
958         * testsuite/27_io/basic_ostream/inserters_other/wchar_t/
959         exceptions_null.cc: Likewise.
960         * testsuite/27_io/ios_base/storage/2.cc: Likewise.
962         PR libstdc++/60936
963         * src/c++11/Makefile.am: Add new files.
964         * src/c++11/Makefile.in: Regenerate.
965         * src/c++11/cow-string-inst.cc [!_GLIBCXX_USE_CXX11_ABI]
966         (operator<<, operator>>, getline): Move explicit instantiations to ...
967         * src/c++11/cow-string-io-inst.cc: ... new file.
968         * src/c++11/cow-wstring-inst.cc [!_GLIBCXX_USE_CXX11_ABI]
969         (operator<<, operator>>, getline): Move explicit instantiations to ...
970         * src/c++11/cow-wstring-io-inst.cc: ... new file.
971         * src/c++11/functexcept.cc (__throw_ios_failure, __throw_system_error)
972         (__throw_future_error, __throw_bad_function_call):
973         (__throw_regex_error): Move functions for C++11 exceptions to the
974         files that define the exception types.
975         * src/c++11/functional.cc (__throw_bad_function_call): Move here.
976         * src/c++11/future.cc (__throw_future_error): Likewise.
977         * src/c++11/ios.cc (__throw_ios_failure): Likewise.
978         * src/c++11/regex.cc (__throw_regex_error): Likewise.
979         * src/c++11/snprintf_lite.cc (__concat_size_t): Print decimal
980         representation directly instead of calling __int_to_char.
981         * src/c++11/sso_string.cc (__sso_string): New file for definition
982         of __sso_string type.
983         * src/c++11/string-io-inst.cc [_GLIBCXX_USE_CXX11_ABI]: New file for
984         explicit instantiations of narrow string I/O functions.
985         * src/c++11/system_error.cc (__throw_system_error): Move here.
986         (__sso_string): Move to new file.
987         * src/c++11/wstring-io-inst.cc [_GLIBCXX_USE_CXX11_ABI]: New file for
988         explicit instantiations of wide string I/O functions.
989         * src/c++98/misc-inst.cc [_GLIBCXX_USE_CXX11_ABI] (operator<<)
990         (operator>>, getline): Remove explicit instantiations from here.
992 2017-02-02  H.J. Lu  <hongjiu.lu@intel.com>
994         * config/abi/post/x86_64-linux-gnu/x32/baseline_symbols.txt: Updated.
996 2017-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
998         * configure.host: Separate Solaris/SPARC and x86 baselines.
999         * config/abi/post/solaris2.10/baseline_symbols.txt: Move ...
1000         * config/abi/post/sparc-solaris2.10/baseline_symbols.txt: ... here.
1001         * config/abi/post/solaris2.10/sparcv9/baseline_symbols.txt: Move ...
1002         * config/abi/post/sparc-solaris2.10/sparcv9/baseline_symbols.txt:
1003         ... here.
1004         * config/abi/post/solaris2.10/amd64/baseline_symbols.txt: Move ...
1005         * config/abi/post/i386-solaris2.10/amd64/baseline_symbols.txt: ... here.
1006         * config/abi/post/i386-solaris2.10/baseline_symbols.txt: New file.
1007         * config/abi/post/solaris2.11/baseline_symbols.txt: Move ...
1008         * config/abi/post/sparc-solaris2.11/baseline_symbols.txt: ... here.
1009         * config/abi/post/solaris2.11/sparcv9/baseline_symbols.txt: Move ...
1010         * config/abi/post/sparc-solaris2.11/sparcv9/baseline_symbols.txt:
1011         ... here.
1012         * config/abi/post/solaris2.11/amd64/baseline_symbols.txt: Move ...
1013         * config/abi/post/i386-solaris2.11/amd64/baseline_symbols.txt: ... here.
1014         * config/abi/post/i386-solaris2.11/baseline_symbols.txt: New file.
1016         * config/abi/post/solaris2.10/baseline_symbols.txt: Regenerate.
1017         * config/abi/post/solaris2.10/amd64/baseline_symbols.txt: Likewise.
1018         * config/abi/post/solaris2.10/sparcv9/baseline_symbols.txt: Likewise.
1019         * config/abi/post/solaris2.11/baseline_symbols.txt: Likewise.
1020         * config/abi/post/solaris2.11/amd64/baseline_symbols.txt: Likewise.
1021         * config/abi/post/solaris2.11/sparcv9/baseline_symbols.txt: Likewise.
1023 2017-02-01  Jonathan Wakely  <jwakely@redhat.com>
1025         PR libstdc++/78346
1026         * include/bits/predefined_ops.h (_Iter_equals_iter): Store iterator
1027         not its referent.
1028         (_Iter_comp_to_iter): Likewise.
1029         * testsuite/25_algorithms/search/78346.cc: New test.
1031         PR libstdc++/79254
1032         * config/abi/pre/gnu.ver: Remove recently added symbols.
1033         * include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI]
1034         (basic_string::_M_copy_assign): Remove.
1035         (basic_string::operator=(const basic_string&)): Don't dispatch to
1036         _M_copy_assign. If source object is small just deallocate, otherwise
1037         perform new allocation before making any changes.
1038         * include/bits/basic_string.tcc [_GLIBCXX_USE_CXX11_ABI]
1039         (basic_string::_M_copy_assign(const basic_string&, true_type)):
1040         Remove.
1041         * testsuite/21_strings/basic_string/allocator/char/copy_assign.cc:
1042         Test cases where the allocators are equal or the string is small.
1043         * testsuite/21_strings/basic_string/allocator/wchar_t/copy_assign.cc:
1044         Likewise.
1046 2017-01-30  Ville Voutilainen  <ville.voutilainen@gmail.com>
1048         Implement LWG 2825, LWG 2756 breaks class template argument
1049         deduction for optional.
1050         * include/std/optional: Add a deduction guide.
1051         * testsuite/20_util/optional/cons/deduction_guide.cc: New.
1053 2017-01-27  Jonathan Wakely  <jwakely@redhat.com>
1055         PR libstdc++/79254
1056         * config/abi/pre/gnu.ver: Add new symbols.
1057         * include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI]
1058         (basic_string::_M_copy_assign): New overloaded functions to perform
1059         copy assignment.
1060         (basic_string::operator=(const basic_string&)): Dispatch to
1061         _M_copy_assign.
1062         * include/bits/basic_string.tcc [_GLIBCXX_USE_CXX11_ABI]
1063         (basic_string::_M_copy_assign(const basic_string&, true_type)):
1064         Define, performing rollback on exception.
1065         * testsuite/21_strings/basic_string/allocator/char/copy_assign.cc:
1066         Test exception-safety guarantee.
1067         * testsuite/21_strings/basic_string/allocator/wchar_t/copy_assign.cc:
1068         Likewise.
1069         * testsuite/util/testsuite_allocator.h (uneq_allocator::swap): Make
1070         std::swap visible.
1072 2017-01-26  Jonathan Wakely  <jwakely@redhat.com>
1074         PR libstdc++/70607
1075         * include/tr1/complex (conj): Remove using-declaration and restore
1076         overloads, reverting previous change.
1078         * testsuite/23_containers/list/operations/78389.cc: Fix for C++11
1079         mode.
1080         * testsuite/23_containers/priority_queue/requirements/constructible.cc:
1081         Mark as unsupported in C++98 mode.
1082         * testsuite/23_containers/queue/requirements/constructible.cc:
1083         Likewise.
1084         * testsuite/23_containers/stack/requirements/constructible.cc:
1085         Likewise.
1086         * testsuite/25_algorithms/make_heap/movable.cc: Fix for C++11 mode.
1088         PR libstdc++/79243
1089         * include/bits/c++config (literals::string_view_literals::__7): Add.
1090         Only declare versioned namespaces for the relevant C++ dialects.
1091         * include/experimental/bits/erase_if.h (fundamentals_v2::__detail):
1092         Add versioning macros.
1093         * include/experimental/bits/lfts_config.h:
1094         (fundamentals_v1::__detail::__7, fundamentals_v2::__detail::__7): Add.
1095         * include/experimental/string_view (fundamentals_v2::__detail):
1096         Add versioning macros.
1097         (fundamentals_v2::__detail::__identity): Remove.
1098         (fundamentals_v2::__detail::__idt): Use common_type instead of
1099         __detail::__identity.
1100         * include/std/string_view (__detail::__identity, __detail::__idt):
1101         Likewise.
1102         (literals::string_view_literals): Fix nesting of versioning macros.
1104         PR libstdc++/79190
1105         * libsupc++/del_opa.cc (operator delete(void*, std::align_val_t))
1106         [!_GLIBCXX_HAVE_ALIGNED_ALLOC && !_GLIBCXX_HAVE_POSIX_MEMALIGN
1107         && !_GLIBCXX_HAVE_MEMALIGN && !_GLIBCXX_HAVE__ALIGNED_MALLOC]:
1108         Retrieve original pointer value allocated by malloc.
1109         * libsupc++/new_opa.cc [!_GLIBCXX_HAVE_ALIGNED_ALLOC
1110         && !_GLIBCXX_HAVE_POSIX_MEMALIGN && !_GLIBCXX_HAVE_MEMALIGN
1111         && !_GLIBCXX_HAVE__ALIGNED_MALLOC] (aligned_alloc(size_t, size_t)):
1112         Define, adjusting pointer value allocated by malloc and storing for
1113         retrieval by operator delete.
1115 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
1117         * libsupc++/eh_atomics.h: Update copyright years.
1118         * testsuite/20_util/unique_ptr/cons/default.cc: Update copyright years.
1120 2017-01-25  Jonathan Wakely  <jwakely@redhat.com>
1122         PR libstdc++/61791
1123         PR libstdc++/70607
1124         * include/std/complex (real(T), imag(T)): Add _GLIBCXX_CONSTEXPR.
1125         (proj(T), conj(T)): Change return types per DR 1522.
1126         * include/tr1/complex (conj): Remove overloads and use std::conj.
1127         * testsuite/26_numerics/complex/dr781_dr1137.cc: Rename to...
1128         * testsuite/26_numerics/complex/dr781.cc: ... this, and update.
1129         * testsuite/26_numerics/complex/value_operations/constexpr2.cc: Test
1130         real(T) and imag(T). Allow testing for C++11 too.
1132 2017-01-24  Jonathan Wakely  <jwakely@redhat.com>
1134         PR libstdc++/79206
1135         * include/experimental/string_view (operator==): Check sizes first.
1136         * include/std/string_view (operator==): Likewise.
1138 2017-01-23  Jonathan Wakely  <jwakely@redhat.com>
1140         * testsuite/experimental/array/make_array.cc: Restore <functional>
1141         inclusion.
1143 2017-01-23  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1145         * testsuite/29_atomics/atomic/69301.cc: Require atomic builtins.
1147 2017-01-23  Jonathan Wakely  <jwakely@redhat.com>
1149         PR libstdc++/79195
1150         * include/experimental/array (__make_array_elem): New class template
1151         and partial specialization.
1152         (__is_reference_wrapper): Move into __make_array_elem specialization.
1153         (make_array): Use __make_array_elem to determine element type and move
1154         static assertion into specialization. Qualify std::forward call.
1155         (to_array): Add exception specifiation.
1156         * testsuite/experimental/array/make_array.cc: Test argument types
1157         without a common type.
1158         * testsuite/experimental/array/neg.cc: Adjust expected error message.
1160 2017-01-22  Gerald Pfeifer  <gerald@pfeifer.com>
1162         * doc/xml/manual/debug.xml: code.google.com uses https now.
1164 2017-01-22  Gerald Pfeifer  <gerald@pfeifer.com>
1166         * doc/xml/manual/test.xml: Fix link into gccint online manual.
1168 2017-01-21  Ville Voutilainen  <ville.voutilainen@gmail.com>
1170         Make poisoned hashes SFINAE away the call operator of the hash.
1171         * include/bits/functional_hash.h
1172         (__poison_hash::__enable_hash_call): New.
1173         * include/std/optional (__optional_hash_call_base): New.
1174         (hash<optional<_Tp>>): Derive from the new base,
1175         move the hash function into that base.
1176         * include/std/variant (__variant_hash_call_base_impl): New.
1177         (__variant_hash_call_base): Likewise.
1178         (hash<variant<_Types...>>): Derive from the new base,
1179         move the hash function into that base.
1180         * testsuite/20_util/optional/hash.cc: Add tests for is_callable.
1181         * testsuite/20_util/variant/hash.cc: Likewise.
1183 2017-01-20  Joe Seymour  <joe.s@somniumtech.com>
1185         * acinclude.m4 (GLIBCXX_CHECK_SIZE_T_MANGLING): Support uint20_t.
1186         * configure: Regenerate.
1188 2017-01-20  Jonathan Wakely  <jwakely@redhat.com>
1190         PR libstdc++/69240
1191         * include/bits/random.h (uniform_real_distribution::param_type)
1192         (normal_distribution::param_type, lognormal_distribution::param_type)
1193         (gamma_distribution::param_type, chi_squared_distribution::param_type)
1194         (cauchy_distribution::param_type, fisher_f_distribution::param_type)
1195         (student_t_distribution::param_type)
1196         (bernoulli_distribution::param_type, binomial_distribution::param_type)
1197         (geometric_distribution::param_type)
1198         (negative_binomial_distribution::param_type)
1199         (poisson_distribution::param_type)
1200         (exponential_distribution::param_type)
1201         (weibull_distribution::param_type)
1202         (extreme_value_distribution::param_type)
1203         (discrete_distribution::param_type)
1204         (piecewise_constant_distribution::param_type)
1205         (piecewise_linear_distribution::param_type): Define operator!=.
1206         * include/bits/uniform_int_dist.h
1207         (uniform_int_distribution::param_type): Likewise.
1208         * include/ext/random (beta_distribution::param_type)
1209         (rice_distribution::param_type, nakagami_distribution::param_type)
1210         (pareto_distribution::param_type, k_distribution::param_type)
1211         (arcsine_distribution::param_type, hoyt_distribution::param_type)
1212         (triangular_distribution::param_type)
1213         (von_mises_distribution::param_type)
1214         (hypergeometric_distribution::param_type)
1215         (logistic_distribution::param_type)
1216         (uniform_on_sphere_distribution::param_type)
1217         (uniform_inside_sphere_distribution::param_type): Likewise.
1218         * testsuite/26_numerics/random/bernoulli_distribution/cons/parms.cc:
1219         Test construction with param_type.
1220         * testsuite/26_numerics/random/binomial_distribution/cons/parms.cc:
1221         Likewise.
1222         * testsuite/26_numerics/random/cauchy_distribution/cons/parms.cc:
1223         Likewise.
1224         * testsuite/26_numerics/random/chi_squared_distribution/cons/parms.cc:
1225         Likewise.
1226         * testsuite/26_numerics/random/exponential_distribution/cons/parms.cc:
1227         Likewise.
1228         * testsuite/26_numerics/random/extreme_value_distribution/cons/
1229         parms.cc: Likewise.
1230         * testsuite/26_numerics/random/fisher_f_distribution/cons/parms.cc:
1231         Likewise.
1232         * testsuite/26_numerics/random/gamma_distribution/cons/parms.cc:
1233         Likewise.
1234         * testsuite/26_numerics/random/geometric_distribution/cons/parms.cc:
1235         Likewise.
1236         * testsuite/26_numerics/random/lognormal_distribution/cons/parms.cc:
1237         Likewise.
1238         * testsuite/26_numerics/random/negative_binomial_distribution/cons/
1239         parms.cc: Likewise.
1240         * testsuite/26_numerics/random/normal_distribution/cons/parms.cc:
1241         Likewise.
1242         * testsuite/26_numerics/random/poisson_distribution/cons/parms.cc:
1243         Likewise.
1244         * testsuite/26_numerics/random/student_t_distribution/cons/parms.cc:
1245         Likewise.
1246         * testsuite/26_numerics/random/uniform_int_distribution/cons/parms.cc:
1247         Likewise.
1248         * testsuite/26_numerics/random/uniform_real_distribution/cons/parms.cc:
1249         Likewise.
1250         * testsuite/26_numerics/random/weibull_distribution/cons/parms.cc:
1251         Likewise.
1252         * testsuite/ext/random/arcsine_distribution/cons/parms.cc: Likewise.
1253         * testsuite/ext/random/beta_distribution/cons/parms.cc: Likewise.
1254         * testsuite/ext/random/hoyt_distribution/cons/parms.cc: Likewise.
1255         * testsuite/ext/random/hypergeometric_distribution/cons/parms.cc:
1256         Likewise.
1257         * testsuite/ext/random/k_distribution/cons/parms.cc: Likewise.
1258         * testsuite/ext/random/logistic_distribution/cons/parms.cc: Likewise.
1259         * testsuite/ext/random/nakagami_distribution/cons/parms.cc: Likewise.
1260         * testsuite/ext/random/normal_mv_distribution/cons/parms.cc: Likewise.
1261         * testsuite/ext/random/pareto_distribution/cons/parms.cc: Likewise.
1262         * testsuite/ext/random/rice_distribution/cons/parms.cc: Likewise.
1263         * testsuite/ext/random/triangular_distribution/cons/parms.cc:
1264         Likewise.
1265         * testsuite/ext/random/uniform_inside_sphere_distribution/cons/
1266         parms.cc: Likewise.
1267         * testsuite/ext/random/von_mises_distribution/cons/parms.cc: Likewise.
1269         PR libstdc++/72792
1270         * include/bits/alloc_traits.h (__allocator_traits_base::__diff_type)
1271         (__allocator_traits_base::__size_type): Remove.
1272         (allocator_traits::_Ptr): New class template to detect const and void
1273         pointer types without instantiating pointer_traits::rebind
1274         unnecessarily.
1275         (allocator_traits::_Diff): Likewise for detecting difference_type.
1276         (allocator_traits::_Size): New class template to detect size_type
1277         without instantiating make_unsigned unnecessarily.
1278         * include/bits/ptr_traits.h (pointer_traits::element_type): Use
1279         __detected_or_t instead of __detected_or_t_.
1280         * include/std/type_traits (__detected_or_t_): Remove.
1281         * testsuite/20_util/allocator_traits/members/pointers.cc: New test.
1283         PR libstdc++/72792
1284         PR libstdc++/72793
1285         * include/bits/alloc_traits.h (__allocator_traits_base::__rebind):
1286         Replace with class template using void_t.
1287         (__alloc_rebind): Define in terms of
1288         __allocator_traits_base::__rebind.
1289         (allocator_traits): Remove unconditional static_assert for
1290         rebind_alloc.
1291         * include/bits/ptr_traits.h (__replace_first_arg): Remove type member.
1292         (pointer_traits::__rebind): Replace with class template using void_t.
1293         (pointer_traits::rebind): Define in terms of __rebind.
1294         (pointer_traits): Remove unconditional static_assert for rebind.
1295         * testsuite/20_util/allocator_traits/members/rebind_alloc.cc: New test.
1296         * testsuite/20_util/pointer_traits/rebind.cc: New test.
1298         PR libstdc++/69321
1299         * include/experimental/any (__any_caster): Avoid instantiating
1300         manager function for types that can't be stored in any.
1301         * include/std/any (__any_caster): Likewise.
1302         * testsuite/20_util/any/misc/any_cast.cc: Test non-copyable type.
1303         * testsuite/experimental/any/misc/any_cast.cc: Likewise.
1305         PR libstdc++/64903
1306         * include/bits/stl_algo.h (is_partitioned): Use increment instead of
1307         std::advance.
1309 2017-01-19  Jonathan Wakely  <jwakely@redhat.com>
1311         PR libstdc++/79156
1312         * include/bits/shared_ptr_base.h (__enable_shared_from_this_base):
1313         Fix return type.
1314         (__enable_shared_from_this): Declare __shared_ptr as a friend.
1315         * testsuite/ext/shared_ptr/1.cc: New test.
1317         PR libstdc++/64903
1318         * include/bits/stl_algo.h (is_partitioned): Don't retest the partition
1319         point.
1320         * testsuite/25_algorithms/is_partitioned/2.cc: New test.
1322         * doc/xml/manual/abi.xml: Fix typo.
1323         * doc/html/manual/abi.html: Likewise.
1325         PR libstdc++/67085
1326         * include/bits/predefined_ops.h (_Iter_less_val, _Val_less_iter): Add
1327         converting constructors from _Iter_less_iter.
1328         (_Iter_comp_val, _Val_comp_iter): Add converting constructors from
1329         _Iter_comp_iter.
1330         (__iter_comp_val(_Iter_comp_iter<C>): Use converting constructor.
1331         (__val_comp_iter(_Iter_comp_iter<C>): Likewise.
1332         * include/bits/stl_heap.h (__is_heap_until, __push_heap, __pop_heap)
1333         (__make_heap, __sort_heap): Change _Compare parameters to references.
1334         (__is_heap, push_heap, __adjust_heap, __pop_heap, pop_heap)
1335         (__make_heap, make_heap, sort_heap, is_heap_until): Pass comparison
1336         functions as lvalues.
1337         (is_heap): Call __is_heap_until directly to avoid copying __comp.
1338         * testsuite/23_containers/priority_queue/67085.cc: Adjust test to
1339         count copies during construction with empty sequence.
1341         PR libstdc++/67085
1342         * include/bits/stl_heap.h (__is_heap): Use _GLIBCXX_MOVE.
1343         (__make_heap, __sort_heap): Don't use _GLIBCXX_MOVE inside loops.
1344         * testsuite/23_containers/priority_queue/67085.cc: Adjust expected
1345         number of copies.
1346         * testsuite/25_algorithms/make_heap/movable.cc: New test.
1348         PR libstdc++/67085
1349         * include/bits/stl_heap.h (push_heap, __adjust_heap, __pop_heap)
1350         (pop_heap, __make_heap, make_heap, __sort_heap, sort_heap): Use
1351         _GLIBCXX_MOVE when passing comparison function to other functions.
1352         (is_heap_until, is_heap): Use std::move when passing comparison
1353         function.
1354         * testsuite/23_containers/priority_queue/67085.cc: New test.
1356         PR libstdc++/78905
1357         * doc/xml/manual/abi.xml (abi.versioning.history): Add markup to
1358         macro names, filenames, and literal values. Document _GLIBCXX_RELEASE.
1359         Document that the deprecated _GLIBCXX_VERSION macro was removed for
1360         the 4.0.0 release.
1361         * doc/html/*: Regenerate.
1362         * include/Makefile.am (_GLIBCXX_RELEASE): Set value.
1363         * include/Makefile.in: Regenerate.
1364         * include/bits/c++config (_GLIBCXX_RELEASE): Add #define.
1365         * testsuite/ext/profile/mutex_extensions_neg.cc: Use lineno of 0 in
1366         dg-error.
1368 2017-01-18  Jonathan Wakely  <jwakely@redhat.com>
1370         PR libstdc++/69301
1371         * include/std/atomic (atomic<T>::load, atomic<T>::exchange): Use
1372         aligned buffer instead of default-initialized variable.
1373         * testsuite/29_atomics/atomic/69301.cc: New test.
1374         * include/experimental/memory (observer_ptr::release): Use reserved
1375         name.
1376         * include/ext/pointer.h (_Pointer_adapter::operator++(int))
1377         (_Pointer_adapter::operator--(int)): Likewise.
1379         PR libstdc++/68925
1380         * include/experimental/random (randint): Use temporary instead of
1381         thread_local static.
1383 2017-01-17  Joshua Conner  <joshconner@google.com>
1385         * crossconfig.m4: Add fuchsia OS.
1386         * configure: Regenerate.
1388 2017-01-17  Jonathan Wakely  <jwakely@redhat.com>
1390         PR libstdc++/69699
1391         * doc/xml/manual/abi.xml (abi.versioning.history): Explain why the
1392         __GLIBCXX__ macro is not useful. Remove redundant date information
1393         and link to the GCC release timeline.
1394         (abi.versioning.active): Move partial sentence into the previous
1395         paragraph.
1396         * doc/html/*: Regenerate.
1398         PR libstdc++/79114
1399         * libsupc++/nested_exception.h (throw_with_nested): Use decay instead
1400         of remove_reference.
1401         * testsuite/18_support/nested_exception/79114.cc: New test.
1403 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
1405         PR other/79046
1406         * configure.ac: Add GCC_BASE_VER.
1407         * fragment.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
1408         get version from BASE-VER file.
1409         * po/Makefile.in: Regenerated.
1410         * libsupc++/Makefile.in: Regenerated.
1411         * testsuite/Makefile.in: Regenerated.
1412         * src/Makefile.in: Regenerated.
1413         * configure: Regenerated.
1414         * Makefile.in: Regenerated.
1415         * include/Makefile.in: Regenerated.
1416         * doc/Makefile.in: Regenerated.
1417         * python/Makefile.in: Regenerated.
1418         * src/c++11/Makefile.in: Regenerated.
1419         * src/c++98/Makefile.in: Regenerated.
1420         * src/filesystem/Makefile.in: Regenerated.
1422 2017-01-16  Jonathan Wakely  <jwakely@redhat.com>
1424         PR libstdc++/66145
1425         * src/c++11/functexcept.cc: Use new ABI for std::ios_base::failure
1426         exceptions.
1427         * testsuite/27_io/basic_ios/copyfmt/char/1.cc: Don't override ABI
1428         for test, so new ios::failure can be caught.
1429         * testsuite/27_io/basic_ios/exceptions/char/1.cc: Likewise.
1430         * testsuite/27_io/basic_istream/extractors_arithmetic/char/
1431         exceptions_failbit.cc: Likewise.
1432         * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/
1433         exceptions_failbit.cc: Likewise.
1434         * testsuite/27_io/basic_istream/extractors_other/char/
1435         exceptions_null.cc: Likewise.
1436         * testsuite/27_io/basic_istream/extractors_other/wchar_t/
1437         exceptions_null.cc: Likewise.
1438         * testsuite/27_io/basic_istream/sentry/char/12297.cc: Likewise.
1439         * testsuite/27_io/basic_istream/sentry/wchar_t/12297.cc: Likewise.
1440         * testsuite/27_io/basic_ostream/inserters_other/char/
1441         exceptions_null.cc: Likewise.
1442         * testsuite/27_io/basic_ostream/inserters_other/wchar_t/
1443         exceptions_null.cc: Likewise.
1444         * testsuite/27_io/ios_base/storage/2.cc: Likewise.
1446         PR libstdc++/78702
1447         * include/bits/locale_classes.h (locale::facet::__shim): Change from
1448         private to protected.
1449         * src/c++11/cxx11-shim_facets.cc (__shim_accessor): Define helper to
1450         make locale::facet::__shim accessible.
1452 2017-01-16  Ville Voutilainen  <ville.voutilainen@gmail.com>
1454         PR libstdc++/78389
1455         * include/bits/list.tcc (merge(list&&)): Fix backwards size adjustments.
1456         (merge(list&&, _StrictWeakOrdering)): Likewise.
1457         * testsuite/23_containers/list/operations/78389.cc: Add
1458         better test for the sizes.
1460 2017-01-14  Jonathan Wakely  <jwakely@redhat.com>
1462         * testsuite/23_containers/array/specialized_algorithms/swap_cxx17.cc:
1463         Skip test when -D_GLIBCXX_PROFILE mode is included in options.
1464         * testsuite/23_containers/map/modifiers/extract.cc: Likewise.
1465         * testsuite/23_containers/map/modifiers/insert_or_assign/1.cc:
1466         Likewise.
1467         * testsuite/23_containers/map/modifiers/try_emplace/1.cc: Likewise.
1468         * testsuite/23_containers/multimap/modifiers/extract.cc: Likewise.
1469         * testsuite/23_containers/multiset/modifiers/extract.cc: Likewise.
1470         * testsuite/23_containers/set/modifiers/extract.cc: Likewise.
1471         * testsuite/23_containers/unordered_map/modifiers/extract.cc:
1472         Likewise.
1473         * testsuite/23_containers/unordered_multimap/modifiers/extract.cc::
1474         Likewise.
1475         * testsuite/23_containers/unordered_multiset/modifiers/extract.cc::
1476         Likewise.
1477         * testsuite/23_containers/unordered_set/modifiers/extract.cc:
1478         Likewise.
1479         * testsuite/23_containers/vector/modifiers/insert_vs_emplace.cc:
1480         Likewise.
1481         * testsuite/25_algorithms/binary_search/partitioned.cc: Likewise.
1482         * testsuite/25_algorithms/equal_range/partitioned.cc: Likewise.
1483         * testsuite/25_algorithms/lexicographical_compare/71545.cc: Likewise.
1484         * testsuite/25_algorithms/lower_bound/partitioned.cc: Likewise.
1485         * testsuite/25_algorithms/upper_bound/partitioned.cc: Likewise.
1486         * testsuite/libstdc++-prettyprinters/cxx11.cc: Likewise.
1487         * testsuite/libstdc++-prettyprinters/cxx17.cc: Likewise.
1488         * testsuite/libstdc++-prettyprinters/debug.cc: Likewise.
1489         * testsuite/libstdc++-prettyprinters/debug_cxx11.cc: Likewise.
1490         * testsuite/libstdc++-prettyprinters/libfundts.cc: Likewise.
1491         * testsuite/libstdc++-prettyprinters/simple.cc: Likewise.
1492         * testsuite/libstdc++-prettyprinters/simple11.cc: Likewise.
1493         * testsuite/libstdc++-prettyprinters/whatis.cc: Likewise.
1495 2017-01-13  Jonathan Wakely  <jwakely@redhat.com>
1497         PR libstdc++/65411
1498         * config/io/basic_file_stdio.cc (__basic_file<char>::close()): Don't
1499         retry fclose on EINTR.
1501         * include/profile/base.h: Remove unused header that leads to header
1502         cycle in C++17 mode.
1504         PR libstdc++/79075
1505         * include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI] (basic_string):
1506         Make _If_sv private.
1507         [!_GLIBCXX_USE_CXX11_ABI] (basic_string): Add member functions taking
1508         basic_string_view arguments.
1510         PR libstdc++/79075
1511         * testsuite/lib/libstdc++.exp (check_v3_target_filesystem_ts): Remove
1512         redundant option from cxxflags.
1513         (check_effective_target_cxx11-abi): Define.
1514         * testsuite/21_strings/basic_string/allocator/71964.cc: Use cxx11-abi
1515         effective target.
1516         * testsuite/21_strings/basic_string/allocator/char/copy.cc: Likewise.
1517         * testsuite/21_strings/basic_string/allocator/char/copy_assign.cc:
1518         Likewise.
1519         * testsuite/21_strings/basic_string/allocator/char/minimal.cc:
1520         Likewise.
1521         * testsuite/21_strings/basic_string/allocator/char/move.cc: Likewise.
1522         * testsuite/21_strings/basic_string/allocator/char/move_assign.cc:
1523         Likewise.
1524         * testsuite/21_strings/basic_string/allocator/char/noexcept.cc:
1525         Likewise.
1526         * testsuite/21_strings/basic_string/allocator/char/swap.cc: Likewise.
1527         * testsuite/21_strings/basic_string/allocator/wchar_t/copy.cc:
1528         Likewise.
1529         * testsuite/21_strings/basic_string/allocator/wchar_t/copy_assign.cc:
1530         Likewise.
1531         * testsuite/21_strings/basic_string/allocator/wchar_t/minimal.cc:
1532         Likewise.
1533         * testsuite/21_strings/basic_string/allocator/wchar_t/move.cc:
1534         Likewise.
1535         * testsuite/21_strings/basic_string/allocator/wchar_t/move_assign.cc:
1536         Likewise.
1537         * testsuite/21_strings/basic_string/allocator/wchar_t/noexcept.cc:
1538         Likewise.
1539         * testsuite/21_strings/basic_string/allocator/wchar_t/swap.cc:
1540         Likewise.
1541         * testsuite/23_containers/list/61347.cc: Likewise.
1542         * testsuite/27_io/basic_fstream/cons/base.cc: Likewise.
1543         * testsuite/27_io/ios_base/failure/cxx11.cc: Likewise.
1545 2017-01-13  Ville Voutilainen  <ville.voutilainen@gmail.com>
1547         PR libstdc++/78389
1548         * include/bits/list.tcc (merge(list&&)):
1549         Adjust list sizes if the comparator throws.
1550         (merge(list&&, _StrictWeakOrdering)): Likewise.
1551         (sort()): Splice elements back from the scratch buffers
1552         if the comparator throws.
1553         (sort(_StrictWeakOrdering)): Likewise.
1554         * testsuite/23_containers/list/operations/78389.cc: New.
1556 2017-01-13  Jonathan Wakely  <jwakely@redhat.com>
1558         * testsuite/23_containers/unordered_set/allocator/ext_ptr.cc: Mark
1559         XFAIL for C++17 until node reinsertion supports fancy pointers.
1561         PR libstdc++/78361
1562         * testsuite/20_util/add_pointer/value.cc: Test forming function
1563         pointers.
1565 2017-01-13  Michael Brune  <lucdanton@free.fr>
1567         PR libstdc++/78361
1568         * include/std/type_traits (__is_referenceable): Handle noexcept
1569         function types.
1571 2017-01-12  Jonathan Wakely  <jwakely@redhat.com>
1573         PR libstdc++/77528
1574         * include/bits/stl_queue.h (queue, priority_queue): Remove default
1575         member-initializers and define default constructors as templates with
1576         constraints.
1577         * include/bits/stl_stack.h (stack): Likewise.
1578         * testsuite/23_containers/priority_queue/requirements/constructible.cc:
1579         New.
1580         * testsuite/23_containers/priority_queue/requirements/
1581         explicit_instantiation/1.cc: Test more instantiations.
1582         * testsuite/23_containers/priority_queue/requirements/
1583         explicit_instantiation/1_c++98.cc: Likewise.
1584         * testsuite/23_containers/queue/requirements/constructible.cc: New.
1585         * testsuite/23_containers/stack/requirements/constructible.cc: New.
1587         PR libstdc++/66284
1588         * doc/xml/manual/intro.xml: Document LWG 2781 change.
1589         * doc/html/*: Regenerate.
1590         * include/std/functional (_Function_base::_Ref_manager): Remove.
1591         (_Function_handler): Remove partial specializations for
1592         reference_wrapper.
1593         (function::target): Remove special case for const qualification.
1594         * testsuite/20_util/function/6.cc: Adjust tests for target type.
1595         * testsuite/20_util/function/7.cc: Likewise.
1596         * testsuite/20_util/function/8.cc: Likewise.
1598 2017-01-11  Jonathan Wakely  <jwakely@redhat.com>
1600         PR libstdc++/78134
1601         * include/bits/stl_map.h (map::lower_bound, map::upper_bound)
1602         (map::equal_range): Fix return type of heterogeneous overloads.
1603         * include/bits/stl_multimap.h (multimap::lower_bound)
1604         (multimap::upper_bound, multimap::equal_range): Likewise.
1605         * include/bits/stl_multiset.h (multiset::lower_bound)
1606         (multiset::upper_bound, multiset::equal_range): Likewise.
1607         * include/bits/stl_set.h (set::lower_bound, set::upper_bound)
1608         (set::equal_range): Likewise.
1609         * testsuite/23_containers/map/operations/2.cc
1610         * testsuite/23_containers/multimap/operations/2.cc
1611         * testsuite/23_containers/multiset/operations/2.cc
1612         * testsuite/23_containers/set/operations/2.cc
1614         PR libstdc++/78273
1615         * include/bits/stl_map.h (map::count<_Kt>(const _Kt&)): Don't assume
1616         the heterogeneous comparison can only find one match.
1617         * include/bits/stl_set.h (set::count<_Kt>(const _Kt&)): Likewise.
1618         * testsuite/23_containers/map/operations/2.cc: Test count works with
1619         comparison function that just partitions rather than sorting.
1620         * testsuite/23_containers/set/operations/2.cc: Likewise.
1622 2017-01-11  Ville Voutilainen  <ville.voutilainen@gmail.com>
1624         Reduce the size of variant, it doesn't need an index of
1625         type size_t internally.
1626         * include/std/variant (parse_numbers.h): New include.
1627         (__select_index): New.
1628         (_Variant_storage<false, _Types...>::_M_reset_impl): Use
1629         _index_type for comparison with variant_npos.
1630         (_Variant_storage<false, _Types...>::__index_type): New.
1631         (_Variant_storage<false, _Types...>::_M_index): Change the
1632         type from size_t to __index_type.
1633         (_Variant_storage<true, _Types...>::__index_type): New.
1634         (_Variant_storage<true, _Types...>::_M_index): Change the
1635         type from size_t to __index_type.
1636         (_Variant_base::_M_valid): Use _Storage::__index_type
1637         for comparison with variant_npos.
1638         (variant::index): Use _Base::_Storage::__index_type
1639         for comparison with variant_npos.
1640         * testsuite/20_util/variant/index_type.cc: New.
1642 2017-01-10  Jonathan Wakely  <jwakely@redhat.com>
1644         * testsuite/18_support/exception_ptr/60612-unexpected.cc: Adjust
1645         effective target selector to prevent running in C++17 mode.
1647         PR libstdc++/77528
1648         * include/bits/stl_queue.h (queue::c): Add default member initializer.
1649         (queue::queue()): Add constructor and define as defaulted.
1650         (queue::queue(_Sequence&&)): Remove default argument.
1651         (priority_queue::c, priority_queue::comp): Add default member
1652         initializers.
1653         (priority_queue::priority_queue()): Add constructor and define as
1654         defaulted.
1655         (priority_queue::priority_queue(const _Compare&, _Sequence&&)):
1656         Remove default argument for first parameter.
1657         * include/bits/stl_stack.h (stack::c): Add default member initializer.
1658         (stack::stack()): Add constructor and define as defaulted.
1659         (stack::stack(const _Sequence&)): Remove default argument.
1660         * testsuite/23_containers/priority_queue/requirements/
1661         explicit_instantiation/1.cc: Test explicit instantiation with
1662         non-DefaultConstructible sequence.
1663         * testsuite/23_containers/priority_queue/77528.cc: New test.
1664         * testsuite/23_containers/priority_queue/requirements/
1665         explicit_instantiation/1_c++0x.cc: Replace with 1_c++98.cc.
1666         * testsuite/23_containers/queue/77528.cc: New test.
1667         * testsuite/23_containers/queue/requirements/explicit_instantiation/
1668         1.cc: Test explicit instantiation with non-DefaultConstructible
1669         sequence.
1670         * testsuite/23_containers/queue/requirements/explicit_instantiation/
1671         1_c++0x.cc: Replace with 1_c++98.cc.
1672         * testsuite/23_containers/stack/77528.cc: New test.
1673         * testsuite/23_containers/stack/requirements/explicit_instantiation/
1674         1.cc: Test explicit instantiation with non-DefaultConstructible
1675         sequence.
1676         * testsuite/23_containers/stack/requirements/explicit_instantiation/
1677         1_c++0x.cc: Replace with 1_c++98.cc.
1679 2017-01-10  Felipe Magno de Almeida <felipe@expertisesolutions.com.br>
1681         * include/bits/locale_facets_nonio.tcc
1682         (time_get::_M_extract_via_format): Avoid compilation errors with
1683         non-standard struct tm.
1685 2017-01-10  François Dumont  <fdumont@gcc.gnu.org>
1686             Jonathan Wakely  <jwakely@redhat.com>
1688         * python/libstdcxx/v6/printers.py (_versioned_namespace): Define.
1689         (is_specialization, strip_versioned_namespace): New helpers functions
1690         to work with symbols in the versioned namespace.
1691         (Printer.add_version): Add second name using versioned namespace.
1692         (add_one_template_type_printer, add_one_type_printer): Add second
1693         type printers using versioned namespace.
1694         (register_type_printers): Add template type printer for basic_string.
1695         (build_libstdcxx_dictionary): Remove dead code.
1696         * python/libstdcxx/v6/xmethods.py: Make all matchers look for
1697         versioned namespace.
1698         * testsuite/libstdc++-prettyprinters/48362.cc: Adjust expected
1699         results.
1700         * testsuite/libstdc++-prettyprinters/whatis.cc: Likewise.
1702 2017-01-09  Jonathan Wakely  <jwakely@redhat.com>
1704         PR libstdc++/79017
1705         * acinclude.m4 (GLIBCXX_CHECK_C99_TR1): Check for llrint and llround
1706         functions separately on darwin and if they're missing define
1707         _GLIBCXX_NO_C99_ROUNDING_FUNCS.
1708         * config.h.in: Regenerate.
1709         * configure: Regenerate.
1710         * include/c_global/cmath [_GLIBCXX_NO_C99_ROUNDING_FUNCS] (llrint)
1711         (llrintf, llrintl, llround, llroundf, llroundl): Do not define.
1713         * testsuite/30_threads/condition_variable/members/3.cc: Use new macro
1714         to detect correct thread_local destructors.
1715         * testsuite/util/testsuite_hooks.h (CORRECT_THREAD_LOCAL_DTORS):
1716         Define.
1718 2017-01-09  Jonathan Wakely  <jwakely@redhat.com>
1719             Aditya Kumar  <hiraditya@msn.com>
1721         PR libstdc++/66414
1722         * include/bits/basic_string.tcc
1723         (basic_string::find(const CharT*, size_type, size_type)): Optimize.
1725 2017-01-06  Jonathan Wakely  <jwakely@redhat.com>
1727         * testsuite/21_strings/basic_string/operations/find/char/6.cc: New.
1728         * testsuite/21_strings/basic_string/operations/find/wchar_t/6.cc: New.
1730         * testsuite/util/performance/priority_queue/mem_usage/pop_test.hpp:
1731         Include <cassert> header.
1733         PR libstdc++/78968
1734         * crossconfig.m4: Check for __cxa_thread_atexit on *-*-freebsd*.
1735         * configure: Regenerate.
1737 2017-01-06  Barrett Adair  <barrettellisadair@gmail.com>
1738             Jonathan Wakely  <jwakely@redhat.com>
1740         * include/std/variant (variant, swap): Replace __and_ usage with fold
1741         expressions.
1743 2017-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1745         PR go/78978
1746         * acinclude.m4 (GLIBCXX_CHECK_ASSEMBLER_HWCAP): Remove.
1747         * configure.ac: Call GCC_CHECK_ASSEMBLER_HWCAP instead of
1748         GLIBCXX_CHECK_ASSEMBLER_HWCAP.
1749         * fragment.am (CONFIG_CXXFLAGS): Use HWCAP_CFLAGS instead of
1750         HWCAP_FLAGS.
1751         * aclocal.m4: Regenerate.
1752         * configure: Regenerate.
1753         * Makefile.in, doc/Makefile.in, include/Makefile.in,
1754         libsupc++/Makefile.in, po/Makefile.in, python/Makefile.in,
1755         src/Makefile.in, src/c++11/Makefile.in, src/c++98/Makefile.in,
1756         src/filesystem/Makefile.in, testsuite/Makefile.in: Regenerate.
1758 2017-01-06  Jonathan Wakely  <jwakely@redhat.com>
1760         * include/bits/c++config (_GLIBCXX_ASSERTIONS): Avoid redefinition.
1762         PR libstdc++/78991
1763         * include/bits/predefined_ops.h (_Iter_comp_iter, _Iter_comp_val)
1764         (_Val_comp_iter, _Iter_equals_val, _Iter_pred, _Iter_comp_to_val)
1765         (_Iter_comp_to_iter, _Iter_negate): Make constructors explicit and
1766         move function objects.
1767         (__iter_comp_iter, __iter_comp_val, __val_comp_iter, __pred_iter)
1768         (__iter_comp_val, __iter_comp_iter, __negate): Move function objects.
1769         * testsuite/25_algorithms/sort/78991.cc: New test.
1771 2017-01-05  Jonathan Wakely  <jwakely@redhat.com>
1773         * include/bits/std_function.h (function::_Signature_type): Remove.
1774         (function::function(_Functor)): Adjust.
1776 2017-01-05  Tim Shen  <timshen@google.com>
1778         PR libstdc++/78996
1779         * include/std/variant (__gen_vtable_impl): rename __unused to
1780         __dimensions to avoid naming conflict.
1782 2017-01-04  Jonathan Wakely  <jwakely@redhat.com>
1784         PR libstdc++/78968
1785         * config.h.in: Regenerate.
1786         * configure: Likewise.
1787         * configure.ac: Check for __cxa_thread_atexit.
1788         * libsupc++/atexit_thread.cc [_GLIBCXX_HAVE___CXA_THREAD_ATEXIT]:
1789         Don't define __cxa_thread_atexit if libc provides it.
1791 2017-01-04  Ville Voutilainen  <ville.voutilainen@gmail.com>
1793         Implement 2801, Default-constructibility of unique_ptr.
1794         * include/bits/unique_ptr.h (__uniq_ptr_impl::_DeleterConstraint): New.
1795         (unique_ptr::_DeleterConstraint): Likewise.
1796         (unique_ptr()): Constrain.
1797         (unique_ptr(pointer)): Likewise.
1798         (unique_ptr(nullptr_t)): Likewise.
1799         (unique_ptr<_Tp[], _Dp>::_DeleterConstraint): New.
1800         (unique_ptr<_Tp[], _Dp>::unique_ptr()): Constrain.
1801         (unique_ptr<_Tp[], _Dp>::unique_ptr(_Up)): Likewise.
1802         (unique_ptr<_Tp[], _Dp>::unique_ptr(nullptr_t)): Likewise.
1803         * testsuite/20_util/unique_ptr/assign/48635_neg.cc: Adjust.
1804         * testsuite/20_util/unique_ptr/cons/cv_qual_neg.cc: Likewise.
1805         * testsuite/20_util/unique_ptr/cons/default.cc: New.
1806         * testsuite/20_util/unique_ptr/cons/ptr_deleter_neg.cc: Adjust.
1808 2017-01-04  Pauli Nieminen  <suokkos@gmail.com>
1809             Jonathan Wakely  <jwakely@redhat.com>
1811         PR libstdc++/64735
1812         * acinclude.m4 (GLIBCXX_CHECK_EXCEPTION_PTR_SYMVER): Define.
1813         * config.h.in: Regenerate.
1814         * config/abi/pre/gnu.ver [HAVE_EXCEPTION_PTR_SINCE_GCC46]
1815         (GLIBCXX_3.4.15, GLIBCXX_3.4.21, CXXABI_1.3.3, CXXABI_1.3.5): Make
1816         exports for exception_ptr, nested_exception, and future conditional.
1817         [HAVE_EXCEPTION_PTR_SINCE_GCC46] (GLIBCXX_3.4.23, CXXABI_1.3.11): Add
1818         exports for exception_ptr, nested_exception, and future conditional.
1819         * configure: Regenerate.
1820         * configure.ac: Use GLIBCXX_CHECK_EXCEPTION_PTR_SYMVER.
1821         * include/std/future: Remove check for ATOMIC_INT_LOCK_FREE
1822         * libsupc++/eh_atomics.h: New file for internal use only.
1823         (__eh_atomic_inc, __eh_atomic_dec): New.
1824         * libsupc++/eh_ptr.cc (exception_ptr::_M_addref)
1825         (exception_ptr::_M_release) (__gxx_dependent_exception_cleanup)
1826         (rethrow_exception): Use eh_atomics.h reference counting helpers.
1827         * libsupc++/eh_throw.cc (__gxx_exception_cleanup): Likewise.
1828         * libsupc++/eh_tm.cc (free_any_cxa_exception): Likewise.
1829         * libsupc++/exception: Remove check for ATOMIC_INT_LOCK_FREE.
1830         * libsupc++/exception_ptr.h: Likewise.
1831         * libsupc++/guard.cc: Include header for ATOMIC_INT_LOCK_FREE macro.
1832         * libsupc++/nested_exception.cc: Remove check for
1833         ATOMIC_INT_LOCK_FREE.
1834         * libsupc++/nested_exception.h: Likewise.
1835         * src/c++11/future.cc: Likewise.
1836         * testsuite/18_support/exception_ptr/*: Remove atomic builtins checks.
1837         * testsuite/18_support/nested_exception/*: Likewise.
1838         * testsuite/30_threads/async/*: Likewise.
1839         * testsuite/30_threads/future/*: Likewise.
1840         * testsuite/30_threads/headers/future/types_std_c++0x.cc: Likewise.
1841         * testsuite/30_threads/packaged_task/*: Likewise.
1842         * testsuite/30_threads/promise/*: Likewise.
1843         * testsuite/30_threads/shared_future/*: Likewise.
1845 2017-01-03  Gerald Pfeifer  <gerald@pfeifer.com>
1847         * doc/xml/manual/documentation_hacking.xml: sourceforge.net now
1848         defaults to https; adjust reference.
1850 2017-01-03  Jonathan Wakely  <jwakely@redhat.com>
1852         PR libstdc++/78956
1853         * include/std/thread (thread(const thread&&)): Add deleted
1854         constructor.
1855         * testsuite/30_threads/thread/cons/lwg2097.cc: New test.
1857         * doc/xml/manual/spine.xml: Update copyright years.
1858         * doc/xml/manual/build_hacking.xml: Fix spelling of libbuilddir.
1859         * doc/xml/manual/test.xml: Likewise.
1860         * doc/html/*: Regenerate.
1862 2017-01-01  Gerald Pfeifer  <gerald@pfeifer.com>
1864         * doc/xml/faq.xml: Update address of C++ ABI link.
1865         * doc/xml/manual/abi.xml: Ditto.
1867 2017-01-01  Jakub Jelinek  <jakub@redhat.com>
1869         Update copyright years.
1871 Copyright (C) 2017 Free Software Foundation, Inc.
1873 Copying and distribution of this file, with or without modification,
1874 are permitted in any medium without royalty provided the copyright
1875 notice and this notice are preserved.