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