Doxygen: add default location for filters and output folder.
[official-gcc.git] / libstdc++-v3 / ChangeLog
blob770b5789da7355e353162167d646048059021b99
1 2017-06-27  Tim Shen  <timshen@google.com>
3         PR libstdc++/80187
4         * include/std/variant (variant::variant, variant::~variant,
5         variant::operator=): Implement triviality forwarding for four
6         special member functions.
7         * testsuite/20_util/variant/compile.cc: Tests.
9 2017-06-27  Jonathan Wakely  <jwakely@redhat.com>
11         PR libstdc++/81221
12         * testsuite/25_algorithms/sample/81221.cc: Disable except for
13         check-parallel.
15         PR libstdc++/81221
16         * include/bits/stl_algo.h (sample): Qualify with _GLIBCXX_STD_A not
17         std.
18         * testsuite/25_algorithms/sample/81221.cc: New.
20 2017-06-22  Jonathan Wakely  <jwakely@redhat.com>
22         PR libstdc++/81173
23         * include/bits/stl_bvector.h (vector<bool>::_M_initialize_value):
24         Do not pass null pointer to memset.
26 2017-06-21  Ville Voutilainen  <ville.voutilainen@gmail.com>
28         PR libstdc++/80675
29         PR libstdc++/80940
30         * include/std/istream:
31         (__is_convertible_to_basic_istream_test(basic_istream<_Ch, _Up>*)): New.
32         (__do_is_convertible_to_basic_istream_impl): Likewise.
33         (__is_convertible_to_basic_istream_impl): Likewise.
34         (__is_convertible_to_basic_istream): Use the new base.
35         (__rvalue_istream_type): New.
36         (operator>>(_Istream&&, _Tp&&)): Use the new helper alias
37         for the SFINAE check, convert to the helper alias type before
38         doing the actual extraction.
39         * include/std/ostream:
40         (__is_convertible_to_basic_ostream_test(basic_ostream<_Ch, _Up>*)): New.
41         (__do_is_convertible_to_basic_ostream_impl): Likewise.
42         (__is_convertible_to_basic_ostream_impl): Likewise.
43         (__is_convertible_to_basic_ostream): Use the new base.
44         (__rvalue_ostream_type): New.
45         (operator<<(_Ostream&&, const _Tp&)): Use the new helper alias
46         for the SFINAE check, convert to the helper alias type before
47         doing the actual insertion.
48         * testsuite/27_io/rvalue_streams-2.cc: Add new tests.
50 2017-06-21  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
52         * config/abi/post/aarch64-linux-gnu/baseline_symbols.txt: Update.
54 2017-06-21  Jonathan Wakely  <jwakely@redhat.com>
56         PR libstdc++/81092
57         * configure: Regenerate.
59 2017-06-20  Uros Bizjak  <ubizjak@gmail.com>
61         * config/abi/post/alpha-linux-gnu/baseline_symbols.txt: Update.
63 2017-06-20  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
65         * testsuite/20_util/variant/index_type.cc: Allow for all ilp32 and
66         lp64 targets.
68 2017-06-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
70         * config/abi/post/i386-solaris2.10/baseline_symbols.txt: Regenerate.
71         * config/abi/post/i386-solaris2.10/amd64/baseline_symbols.txt: Likewise.
72         * config/abi/post/i386-solaris2.11/baseline_symbols.txt: Likewise.
73         * config/abi/post/i386-solaris2.11/amd64/baseline_symbols.txt: Likewise.
74         * config/abi/post/sparc-solaris2.10/baseline_symbols.txt: Likewise.
75         * config/abi/post/sparc-solaris2.10/sparcv9/baseline_symbols.txt:
76         Likewise.
77         * config/abi/post/sparc-solaris2.11/baseline_symbols.txt: Likewise.
78         * config/abi/post/sparc-solaris2.11/sparcv9/baseline_symbols.txt:
79         Likewise.
81 2017-06-18  H.J. Lu  <hongjiu.lu@intel.com>
83         PR libstdc++/81092
84         * config/abi/post/x86_64-linux-gnu/x32/baseline_symbols.txt: Updated.
86 2017-06-18  Andreas Schwab  <schwab@linux-m68k.org>
88         PR libstdc++/81092
89         * config/abi/post/m68k-linux-gnu/baseline_symbols.txt: Update.
91 2017-06-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
93         * testsuite: Remove dg-skip-if, dg-xfail-if, dg-xfail-run-if
94         default args.
96 2017-06-17  Jonathan Wakely  <jwakely@redhat.com>
98         PR libstdc++/80893
99         * testsuite/23_containers/vector/bool/80893.cc: Add { target c++11 }.
101 2017-06-16  Jonathan Wakely  <jwakely@redhat.com>
103         * include/bits/shared_ptr.h (get_deleter): Add overload matching
104         standard signature.
105         * include/bits/shared_ptr_base.h (__shared_ptr): Declare new
106         get_deleter overload as a friend.
107         * testsuite/20_util/shared_ptr/misc/get_deleter.cc: New.
109 2017-06-16  Jakub Jelinek  <jakub@redhat.com>
111         PR libstdc++/81092
112         * config/abi/post/i486-linux-gnu/baseline_symbols.txt: Update.
113         * config/abi/post/powerpc-linux-gnu/baseline_symbols.txt: Update.
114         * config/abi/post/powerpc64-linux-gnu/32/baseline_symbols.txt: Update.
116 2017-06-16  Jonathan Wakely  <jwakely@redhat.com>
118         * include/bits/locale_conv.h (wbuffer_convert::sync): Fix condition.
119         * testsuite/22_locale/conversions/buffer/2.cc: New.
121         PR libstdc++/81092
122         * acinclude.m4: Bump libtool_VERSION.
123         * config/abi/post/i386-linux-gnu/baseline_symbols.txt: Update.
124         * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt: Update.
125         * config/abi/pre/gnu.ver: Add wstring constructor symbols to
126         GLIBCXX_3.4.24 version and move random_device::_M_get_entropy() symbol
127         to new GLIBCXX_3.4.25 version.
128         * doc/xml/manual/abi.xml: Document new versions.
129         * doc/html/*: Regenerate.
130         * testsuite/21_strings/basic_string/cons/char/8.cc: Use base object
131         constructors to ensure required symbols are exported.
132         * testsuite/21_strings/basic_string/cons/wchar_t/8.cc: Likewise.
133         * testsuite/util/testsuite_abi.cc: Add new version.
135         * include/bits/locale_conv.h (wbuffer_convert::_M_put): Add missing
136         return statement.
137         * testsuite/21_strings/basic_string_view/operations/copy/char/1.cc:
138         Return void.
139         * testsuite/21_strings/basic_string_view/operations/copy/wchar_t/1.cc:
140         Likewise.
141         * testsuite/23_containers/map/modifiers/insert_or_assign/1.cc: Add
142         missing return statements.
143         * testsuite/23_containers/unordered_map/modifiers/insert_or_assign.cc:
144         Likewise.
145         * testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc:
146         Return void.
147         * testsuite/special_functions/14_expint/pr68397.cc: Likewise.
149 2017-06-16  François Dumont  <fdumont@gcc.gnu.org>
151         * include/bits/stl_bvector.h
152         (__fill_bvector(_Bit_type*, unsigned int, unsigned int, bool)):
153         Change signature.
154         (std::fill(_Bit_iterator, _Bit_iterator, bool)): Adapt.
155         (_Bvector_impl_data): New.
156         (_Bvector_impl): Inherits from latter.
157         (_Bvector_impl(_Bit_alloc_type&&)): Delete.
158         (_Bvector_impl(_Bvector_impl&&)): New, default.
159         (_Bvector_base()): Default.
160         (_Bvector_base(_Bvector_base&&)): Default.
161         (_Bvector_base::_M_move_data(_Bvector_base&&)): New.
162         (vector(vector&&, const allocator_type&)): Use latter.
163         (vector<bool>::operator=(vector&&)): Likewise.
164         (vector<bool>::vector()): Default.
165         (vector<bool>::vector(vector&&)): Default.
166         (vector<bool>::assign(_InputIterator, _InputIterator)): Use
167         _M_assign_aux.
168         (vector<bool>::assign(initializer_list<bool>)): Likewise.
169         (vector<bool>::_M_initialize_value(bool)): New.
170         (vector<bool>(size_type, const bool&, const allocator_type&)): Use
171         latter.
172         (vector<bool>::_M_initialize_dispatch(_Integer, _Integer, __true_type)):
173         Likewise.
174         (vector<bool>::_M_fill_assign(size_t, bool)): Likewise.
176 2017-06-15  François Dumont  <fdumont@gcc.gnu.org>
178         * src/c++98/tree.cc  [!_GLIBCXX_INLINE_VERSION]
179         (_Rb_tree_rotate_left, _Rb_tree_rotate_right): Delete.
181 2017-06-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
183         * testsuite: Add dg-require-effective-target pthread to -pthread
184         tests.
185         Remove explicit target lists from dg-do and dg-options.
187         * testsuite/30_threads/async/forced_unwind.cc: Remove explit
188         target list from dg-options.
189         * testsuite/30_threads/packaged_task/forced_unwind.cc: Likewise.
191         * 30_threads/shared_mutex/cons/1.cc: Likewise.
192         Pass -pthread for all targets.
193         * 30_threads/shared_mutex/try_lock/1.cc: Likewise.
194         * 30_threads/shared_mutex/try_lock/2.cc: Likewise.
195         * 30_threads/shared_mutex/unlock/1.cc: Likewise.
197         * testsuite/30_threads/this_thread/57060.cc: Require c++11 via
198         dg-require-effective-target.
200 2017-06-14  Jonathan Wakely  <jwakely@redhat.com>
202         * doc/xml/manual/test.xml: Correct instructions on running tests.
203         * testsuite/21_strings/basic_string/cons/char/deduction.cc: Adjust to
204         pass when -D_GLIBCXX_USE_CXX11_ABI=0 added to RUNTESTFLAGS.
205         * testsuite/21_strings/basic_string/cons/wchar_t/deduction.cc:
206         Likewise.
207         * testsuite/27_io/basic_ios/copyfmt/char/1.cc: Likewise.
208         * testsuite/27_io/basic_ios/exceptions/char/1.cc: Likewise.
209         * testsuite/27_io/basic_istream/extractors_arithmetic/char/
210         exceptions_failbit.cc: Likewise.
211         * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/
212         exceptions_failbit.cc: Likewise.
213         * testsuite/27_io/basic_istream/extractors_other/char/
214         exceptions_null.cc: Likewise.
215         * testsuite/27_io/basic_istream/extractors_other/wchar_t/
216         exceptions_null.cc: Likewise.
217         * testsuite/27_io/basic_istream/sentry/char/12297.cc: Likewise.
218         * testsuite/27_io/basic_istream/sentry/wchar_t/12297.cc: Likewise.
219         * testsuite/27_io/basic_ostream/inserters_other/char/
220         exceptions_null.cc: Likewise.
221         * testsuite/27_io/basic_ostream/inserters_other/wchar_t/
222         exceptions_null.cc: Likewise.
223         * testsuite/27_io/ios_base/storage/2.cc: Likewise.
225 2017-06-12  Pedro Alves  <palves@redhat.com>
227         * doc/xml/manual/status_cxx2017.xml: Update C++17 constexpr
228         char_traits status.
229         * doc/html/*: Regenerate.
231         * include/bits/char_traits.h (_GLIBCXX_ALWAYS_INLINE): Define if
232         not already defined.
233         (__cpp_lib_constexpr_char_traits): Uncomment.
234         (__constant_string_p, __constant_char_array_p): New.
235         (std::char_traits<char>, std::char_traits<wchar_t>): Add
236         _GLIBCXX17_CONSTEXPR on compare, length and find and use
237         __constant_string_p, __constant_char_array_p and
238         __builtin_constant_p to defer to __gnu_cxx::char_traits at compile
239         time.
241         * testsuite/21_strings/char_traits/requirements/
242         constexpr_functions_c++17.cc: Uncomment
243         __cpp_lib_constexpr_char_traits tests.  Uncomment
244         test_compare<char>, test_length<char>, test_find<char>,
245         test_compare<wchar_t>, test_length<wchar_t> and test_find<wchar_t>
246         static_assert tests.
248 2017-06-12  François Dumont  <fdumont@gcc.gnu.org>
250         * include/bits/stl_tree.h (_Rb_tree_impl()): Restore _Node_allocator
251         default init.
252         * testsuite/util/testsuite_allocator.h
253         (__gnu_test::default_init_allocator<>) New.
254         * testsuite/23_containers/set/allocator/default_init.cc: New.
255         * testsuite/23_containers/map/allocator/default_init.cc: New.
257 2017-06-12  Jonathan Wakely  <jwakely@redhat.com>
259         PR libstdc++/55917
260         * src/c++11/thread.cc (execute_native_thread_routine): Remove
261         try-block so that exceptions propagate out of the thread and terminate
262         is called by the exception-handling runtime.
263         (execute_native_thread_routine_compat): Likewise.
264         * testsuite/30_threads/thread/cons/terminate.cc: New.
266 2017-06-09  Jonathan Wakely  <jwakely@redhat.com>
268         * doc/xml/manual/intro.xml: Document LWG 2802, 2873 and 2942 changes.
269         * include/bits/shared_ptr.h (shared_ptr): Use rvalues for deleters
270         (LWG 2802).
271         * include/bits/shared_ptr_base.h (_Sp_ebo_helper, _Sp_counted_deleter
272         (_Sp_counted_deleter::_Impl, __shared_count, __shared_ptr): Likewise.
273         * testsuite/20_util/shared_ptr/cons/lwg2802.cc: New.
275         * include/bits/forward_list.h (forward_list): Add deduction guide.
276         * include/bits/stl_deque.h (deque): Likewise.
277         * include/bits/stl_list.h (list): Likewise.
278         * include/bits/stl_vector.h (vector): Likewise.
279         * testsuite/23_containers/deque/cons/deduction.cc: New.
280         * testsuite/23_containers/forward_list/cons/deduction.cc: New.
281         * testsuite/23_containers/list/cons/deduction.cc: New.
282         * testsuite/23_containers/vector/cons/deduction.cc: New.
284 2017-06-08  Jonathan Wakely  <jwakely@redhat.com>
286         PR libstdc++/81017
287         * include/bits/std_function.h (function::function(function&&))
288         (function::operator=(funtion&&)): Add noexcept.
289         * testsuite/20_util/function/assign/move.cc: Check for noexcept.
290         * testsuite/20_util/function/cons/move.cc: Likewise.
292 2017-06-07  Jonathan Wakely  <jwakely@redhat.com>
294         * include/bits/regex.h (basic_regex): Add deduction guide from P0433.
295         * testsuite/28_regex/basic_regex/ctors/deduction.cc: New.
297         PR libstdc++/81002
298         * include/bits/regex.h (basic_regex): Adjust call to __compile_nfa
299         so iterator type is deduced.
300         * include/bits/regex_compiler.h (__compile_nfa): Reorder template
301         parameters to allow iterator type to be deduced.
302         * testsuite/28_regex/basic_regex/ctors/basic/iter.cc: New.
304         * include/bits/alloc_traits.h (__is_allocator, _RequireAllocator):
305         New trait and alias for detecting Allocator-like types.
306         * include/bits/basic_string.h (basic_string): Add deduction guide
307         from P0433.
308         * include/ext/alloc_traits.h (__gnu_cxx::__alloc_traits): Add template
309         parameter with default template argument that causes substitution
310         failures for types that cannot be allocators.
311         * testsuite/21_strings/basic_string/cons/char/deduction.cc: New.
312         * testsuite/21_strings/basic_string/cons/wchar_t/deduction.cc: New.
314 2017-06-02  Jonathan Wakely  <jwakely@redhat.com>
316         PR libstdc++/80939
317         * include/std/variant (__erased_ctor, __erased_assign, __erased_swap)
318         (__erased_hash): Remove constexpr specifier and qualify calls to
319         __ref_cast.
320         (__erased_dtor): Remove constexpr specifier and use _Destroy.
322 2017-06-05  Jonathan Wakely  <jwakely@redhat.com>
324         * include/bits/stl_iterator_base_funcs.h
325         (__advance<_RandomAccessIterator, _Distance>): Optimize for next/prev
326         cases where incrementing or decrementing a single step.
328         * include/bits/shared_ptr_base.h (__shared_ptr::owner_before)
329         (__weak_ptr::owner_before, _Sp_owner_less::operator()): Add noexcept
330         specifiers as per LWG 2873 and LWG 2942.
331         * testsuite/20_util/owner_less/noexcept.cc: New.
332         * testsuite/20_util/shared_ptr/observers/owner_before.cc: Test
333         noexcept guarantees.
334         * testsuite/20_util/weak_ptr/observers/owner_before.cc: Likewise.
336 2017-06-03  Andreas Schwab  <schwab@linux-m68k.org>
338         * config/abi/post/powerpc-linux-gnu/baseline_symbols.txt: Update.
340 2017-06-03  Eric Botcazou  <ebotcazou@adacore.com>
342         * src/filesystem/dir.cc (fs::_Dir::advance): Use std::exchange.
344 2017-06-02  Jonathan Wakely  <jwakely@redhat.com>
346         PR libstdc++/80624
347         * doc/xml/manual/status_cxx2011.xml: Document to_int_type behaviour.
348         * include/bits/char_traits.h (char_traits<char16_t>::to_int_type):
349         Transform eof value to U+FFFD.
350         * testsuite/21_strings/char_traits/requirements/char16_t/eof.cc: New.
351         * testsuite/27_io/basic_streambuf/sgetc/char16_t/80624.cc: New.
352         * testsuite/27_io/basic_streambuf/sputc/char16_t/80624.cc: New.
354         * libsupc++/Makefile.am: Remove custom targets for files that need to
355         be compiled as C++11 or C++14.
356         * libsupc++/Makefile.in: Regenerate.
357         * libsupc++/del_ops.cc: Use pragma to disable -Wsized-deallocation
358         warnings.
359         * libsupc++/del_opvs.cc: Likewise.
361 2017-06-02  Richard Biener  <rguenther@suse.de>
362         Markus Eisenmann  <meisenmann.lba@fh-salzburg.ac.at>
364         PR libstdc++/80721
365         * libsupc++/eh_alloc.cc (pool::free): Keep list properly
366         sorted and add missing freelist item merging cases.
368 2017-06-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
370         (GLIBCXX_CROSSCONFIG): Handle *-solaris* like *-linux* etc.
371         Remove *-solaris* section.
372         * configure: Regenerate.
374 2017-05-31  Jonathan Wakely  <jwakely@redhat.com>
376         PR libstdc++/80893
377         * include/bits/stl_bvector.h (vector<bool>::_M_initialize): Avoid
378         null pointer dereference when size is zero.
379         * testsuite/23_containers/vector/bool/80893.cc: New.
380         * testsuite/util/testsuite_allocator.h (PointerBase::PointerBase):
381         Add non-explicit constructor from nullptr.
382         (PointerBase::derived() const): Add const-qualified overload.
384 2017-05-20  Tim Shen  <timshen@google.com>
386         PR libstdc++/80737
387         * include/std/variant(variant::variant): SFINAE on is_same first.
388         * testsuite/20_util/variant/any.cc: test case.
390 2017-05-24  Jonathan Wakely  <jwakely@redhat.com>
392         * src/c++11/random.cc (random_device::_M_getentropy): Use __CHAR_BIT__
393         instead of fixed number of bits.
395 2017-05-24  Andreas Schwab  <schwab@suse.de>
397         * config/abi/post/ia64-linux-gnu/baseline_symbols.txt: Update.
398         * config/abi/post/m68k-linux-gnu/baseline_symbols.txt: Likewise.
400 2017-05-23  Xi Ruoyao  <ryxi@stu.xidian.edu.cn>
401             Jonathan Wakely  <jwakely@redhat.com>
403         PR libstdc++/67578
404         * acinclude.m4: Bump libtool_VERSION.
405         * config/abi/pre/gnu.ver: Create GLIBCXX_3.4.24 with new symbol.
406         * config.h.in: Regenerate.
407         * configure: Regenerate.
408         * configure.ac: Add test for <linux/random.h>.
409         * doc/xml/manual/abi.xml: Document new library version.
410         * include/bits/random.h (random_device::entropy)
411         [_GLIBCXX_USE_RANDOM_TR1]: Add call to new _M_getentropy member.
412         (random_device::_M_getentropy): Declare.
413         * src/c++11/random.cc (random_device::_M_getentropy): Define.
414         * testsuite/util/testsuite_abi.cc: Add GLIBCXX_3.4.24 to known
415         versions, and make it the latest version.
417 2017-05-23  Xi Ruoyao  <ryxi@stu.xidian.edu.cn>
419         PR libstdc++/67214
420         * include/bits/locale_facets.tcc (num_get::_M_extract_int): Add
421         explicit conversion to avoid signed overflow.
423 2017-05-19  Jonathan Wakely  <jwakely@redhat.com>
425         PR libstdc++/80796
426         * include/bits/stl_algo.h (search): Add new overload for C++17.
427         * testsuite/25_algorithms/search/searcher.cc: New.
429 2017-05-18  Jonathan Wakely  <jwakely@redhat.com>
431         PR libstdc++/80478
432         * include/std/functional (_Mem_fn_traits_base): Add specializations
433         for noexcept member function types.
434         * testsuite/20_util/function_objects/mem_fn/80478.cc: New test.
436 2017-05-18  Jonathan Wakely  <jwakely@redhat.com>
438         * doc/xml/manual/policy_data_structures.xml: Fix typo.
439         * doc/xml/manual/test_policy_data_structures.xml: Likewise.
440         * doc/html/*: Regenerate.
442         * doc/xml/manual/abi.xml: Document latest library versions.
443         * doc/xml/manual/build_hacking.xml: Document requirement to update
444         abi.xml when bumping library versions.
445         * doc/html/*: Regenerate.
447 2017-05-17  Jonathan Wakely  <jwakely@redhat.com>
449         * include/bits/refwrap.h: Fix Doxygen warning.
450         * include/bits/specfun.h: Likewise.
451         * include/bits/std_function.h: Likewise.
452         * include/bits/stl_algo.h (set_union, set_intersection)
453         (set_difference, set_symmetric_difference): Add Doxygen @param tags
454         for output iterator parameters.
455         * include/bits/stl_iterator.h (inserter): Add Doxygen @param tag for
456         iterator parameter.
457         * include/std/mutex (try_lock, lock): Change Mutex to Lockable in
458         Doxygen comments.
460 2017-05-17  Ville Voutilainen  <ville.voutilainen@gmail.com>
462         Implement new C++ intrinsics __is_assignable and __is_constructible.
463         * include/std/type_traits (__do_is_static_castable_impl): Remove.
464         (__is_static_castable_impl, __is_static_castable_safe): Likewise.
465         (__is_static_castable, __do_is_direct_constructible_impl): Likewise.
466         (__is_direct_constructible_impl): Likewise.
467         (__is_direct_constructible_new_safe): Likewise.
468         (__is_base_to_derived_ref, __is_lvalue_to_rvalue_ref): Likewise.
469         (__is_direct_constructible_ref_cast): Likewise.
470         (__is_direct_constructible_new, __is_direct_constructible): Likewise.
471         (__do_is_nary_constructible_impl): Likewise.
472         (__is_nary_constructible_impl, __is_nary_constructible): Likewise.
473         (__is_constructible_impl): Likewise.
474         (is_constructible): Call the intrinsic.
475         (__is_assignable_helper): Remove.
476         (is_assignable): Call the intrinsic.
477         (is_trivially_constructible): Likewise.
478         (__is_trivially_copy_constructible_impl): New.
479         (is_trivially_copy_constructible): Use it.
480         (__is_trivially_move_constructible_impl): New.
481         (is_trivially_move_constructible): Use it.
482         (is_trivially_assignable): Call the intrinsic.
483         (__is_trivially_copy_assignable_impl): New.
484         (is_trivially_copy_assignable): Use it.
485         (__is_trivially_move_assignable_impl): New.
486         (is_trivially_move_assignable): Use it.
487         (testsuite/20_util/declval/requirements/1_neg.cc): Adjust.
488         (testsuite/20_util/is_trivially_copy_assignable/value.cc):
489         Add test for void.
490         (testsuite/20_util/is_trivially_copy_constructible/value.cc): Likewise.
491         (testsuite/20_util/is_trivially_move_assignable/value.cc): Likewise.
492         (testsuite/20_util/is_trivially_move_constructible/value.cc): Likewise.
493         (testsuite/20_util/make_signed/requirements/typedefs_neg.cc): Adjust.
494         (testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc):
495         Likewise.
497 2017-05-16  Jonathan Wakely  <jwakely@redhat.com>
499         * testsuite/experimental/source_location/1.cc: Change expected result
500         for source_location::current() used in default member initializer.
502         * doc/xml/manual/status_cxx2017.xml: Update status table.
503         * doc/html/*: Regenerate.
504         * include/Makefile.am: Add new header.
505         * include/Makefile.in: Regenerate.
506         * include/experimental/source_location: New header implementing N4519.
507         * testsuite/experimental/source_location/1.cc: New test.
509         PR libstdc++/80285
510         * include/bits/shared_ptr_base.h [!__cpp_rtti] (type_info): Declare
511         outside versioned namespace.
513         * configure: Regenerate.
515 2017-05-16  Marc Glisse  <marc.glisse@inria.fr>
517         * include/std/optional (_Optional_base::_M_get): Check precondition.
518         * testsuite/20_util/optional/cons/value_neg.cc: Update line numbers.
520 2017-05-16  Jonathan Wakely  <jwakely@redhat.com>
522         * doc/xml/manual/appendix_contributing.xml: Link to test docs and
523         note higher DejaGnu version requirement.
524         * doc/html/*: Regenerate.
526         * doc/xml/manual/appendix_contributing.xml: Link to the list of bad
527         identifiers.
528         * doc/html/*: Regenerate.
530 2017-05-15  Jonathan Wakely  <jwakely@redhat.com>
532         PR libstdc++/80761
533         * include/bits/node_handle.h (_Node_insert_return): Reorder members.
534         (tuple_size, tuple_element): Remove partial specializations.
535         * include/bits/stl_tree.h (_Rb_tree::insert_return_type): Use
536         const_iterator for std::set.
537         * testsuite/23_containers/map/modifiers/extract.cc: New.
538         * testsuite/23_containers/set/modifiers/extract.cc: New.
539         * testsuite/23_containers/unordered_map/modifiers/extract.cc: New.
540         * testsuite/23_containers/unordered_set/modifiers/extract.cc: New.
542 2017-05-12  Jonathan Wakely  <jwakely@redhat.com>
544         PR libstdc++/78939
545         * include/std/utility (tuple_size<cv T>): Only define partial
546         specializations when tuple_size<T>::value is valid.
547         * testsuite/20_util/tuple/78939.cc: New.
548         * testsuite/20_util/tuple/cv_tuple_size_neg.cc: New.
550 2017-05-11  François Dumont  <fdumont@gcc.gnu.org>
552         * include/bits/stl_tree.h [_GLIBCXX_INLINE_VERSION]
553         (_Rb_tree_impl<>): Remove _Is_pod_comparator
554         template parameter.
556         * include/debug/formatter.h [_GLIBCXX_INLINE_VERSION]
557         (__gnu_debug::_Error_formatter::_Parameter::_M_print_field): Remove.
558         (__gnu_debug::_Error_formatter::_Parameter::_M_print_description):
559         Remove.
560         (__gnu_debug::_Error_formatter::_M_format_word): Remove.
561         (__gnu_debug::_Error_formatter::_M_print_word): Remove.
562         (__gnu_debug::_Error_formatter::_M_print_string): Remove.
563         (__gnu_debug::_Error_formatter::_M_get_max_length): Remove.
564         * src/c++11/debug.cc: Adapt.
565         * config/abi/pre/gnu-versioned-namespace.ver: Adapt.
567 2017-05-11  Jonathan Wakely  <jwakely@redhat.com>
569         * doc/xml/manual/allocator.xml: Fix ViewCVS URLs.
570         * doc/xml/manual/mt_allocator.xml: Likewise.
571         * doc/html/*: Regenerate.
573         PR libstdc++/80285
574         * include/bits/shared_ptr_base.h (_Sp_make_shared_tag::_S_ti): Define
575         function to get unique fake std::type_info reference.
576         (_Sp_counted_ptr_inplace::_M_get_deleter) [!__cpp_rtti]: Compare to
577         _S_ti() fake reference.
578         (__shared_ptr(_Sp_make_shared_tag, const Alloc&, Args&&...)): Share
579         single implementation with or without RTTI enable.
580         [!__cpp_rtti]: Pass fake reference to _M_get_deleter.
581         * testsuite/20_util/shared_ptr/creation/alloc.cc: Change expected
582         allocation and deallocation counts.
583         * testsuite/20_util/shared_ptr/creation/single_allocation.cc: New.
584         * testsuite/20_util/shared_ptr/creation/single_allocation_no_rtti.cc:
585         New.
587 2017-05-10  François Dumont  <fdumont@gcc.gnu.org>
589         Bump version namespace.
590         * config/abi/pre/gnu-versioned-namespace.ver: Bump version namespace
591         from __7 to __8. Bump GLIBCXX_7.0 to GLIBCXX_8.0.
592         * acinclude.m4 (libtool_VERSION): Bump to 8:0:0.
593         * include/bits/c++config: Adapt.
594         * include/bits/regex.h: Adapt.
595         * include/experimental/bits/fs_fwd.h: Adapt.
596         * include/experimental/bits/lfts_config.h: Adapt.
597         * include/std/variant: Adapt.
598         * python/libstdcxx/v6/printers.py: Adapt.
599         * testsuite/libstdc++-prettyprinters/48362.cc: Adapt.
601         * include/bits/stl_algobase.h (std::__iter_swap<false>): Remove
602         _GLIBCXX_MOVE usage.
604 2017-05-09  Jason Merrill  <jason@redhat.com>
606         * testsuite/24_iterators/container_access.cc (test03): Make il3 static.
608 2017-05-08  Jonathan Wakely  <jwakely@redhat.com>
610         * include/std/optional: Use a separate static_assert per condition.
611         * testsuite/20_util/optional/cons/value_neg.cc: Update dg-error line
612         numbers.
614         * doc/xml/manual/mt_allocator.xml: Clarify deallocation behaviour.
615         * doc/html/*: Regenerate.
617 2017-05-02  Hugo Beauzée-Luyssen <hugo@beauzee.fr>
619         PR libstdc++/69506
620         * config/os/mingw32-w64/os_defines.h (_GLIBCXX_USE_WEAK_REF): Define.
622 2017-04-29  François Dumont  <fdumont@gcc.gnu.org>
624         * testsuite/libstdc++-prettyprinters/48362.cc: Replace a regexp-test
625         by a note-test.
627 2017-04-28  Jonathan Wakely  <jwakely@redhat.com>
629         PR libstdc++/80553
630         * include/bits/stl_construct.h (_Destroy, _Destroy_n): Add static
631         assertions to ensure type is destructible.
632         (destroy_at, destroy, destroy_n): Move from stl_uninitialized.h.
633         * include/bits/stl_uninitialized.h (destroy_at, destroy, destroy_n):
634         Move to stl_construct.h.
635         * testsuite/20_util/specialized_algorithms/memory_management_tools/
636         destroy_neg.cc: New test.
637         * testsuite/23_containers/vector/cons/destructible_neg.cc: New test.
639         * testsuite/17_intro/headers/c++1998/stdc++_assert_neg.cc: Remove
640         superfluous "" in dg-error.
642 2017-04-28  Tom de Vries  <tom@codesourcery.com>
644         * testsuite/17_intro/headers/c++1998/stdc++_assert_neg.cc: Remove
645         superfluous '{ target *-*-* }' in dg-(error|warning|message|bogus).
647 2017-04-27  Jonathan Wakely  <jwakely@redhat.com>
649         * include/ext/pb_ds/detail/list_update_map_/iterators_fn_imps.hpp
650         (PB_DS_CLASS_C_DEC::end()): Remove redundant const in cast type.
651         * testsuite/util/testsuite_rng.h (twister_rand_gen::get_prob()):
652         Likewise.
654 2017-04-26  Jonathan Wakely  <jwakely@redhat.com>
656         * testsuite/23_containers/deque/allocator/move_assign-2.cc: Improve
657         comment. Ensure first test works because allocator type propagates and
658         not because is_always_equal is true.
659         * testsuite/23_containers/vector/52591.cc: Likewise. Restore original
660         testcase that instantiates the move-assignment operator.
662 2017-04-24  Jonathan Wakely  <jwakely@redhat.com>
664         PR libstdc++/80506
665         * include/bits/random.tcc (gamma_distribution::operator()): Fix magic
666         number used in loop condition.
668         PR libstdc++/80504
669         * include/bits/refwrap.h (ref, cref): Qualify calls.
670         * testsuite/20_util/reference_wrapper/80504.cc: New test.
672         PR libstdc++/80493
673         * include/experimental/optional (optional::swap): Fix exception
674         specification.
676 2017-04-21  Jonathan Wakely  <jwakely@redhat.com>
678         PR libstdc++/80316
679         * include/std/future (_State_baseV2::_Setter::operator()): Remove
680         _S_check calls that are done after the pointer to the shared state is
681         already dereferenced.
682         (_State_baseV2::_Setter<_Res, void>): Define specialization for void
683         as partial specialization so it can be defined within the definition
684         of _State_baseV2.
685         (_State_baseV2::__setter): Call _S_check.
686         (_State_baseV2::__setter(promise<void>*)): Add overload for use by
687         promise<void>::set_value and promise<void>::set_value_at_thread_exit.
688         (promise<T>, promise<T&>, promise<void>): Make _State a friend.
689         (_State_baseV2::_Setter<void, void>): Remove explicit specialization.
690         (promise<void>::set_value, promise<void>::set_value_at_thread_exit):
691         Use new __setter overload.
692         * testsuite/30_threads/promise/members/at_thread_exit2.cc: New test.
693         * testsuite/30_threads/promise/members/set_exception.cc: Test
694         promise<T&> and promise<void> specializations.
695         * testsuite/30_threads/promise/members/set_exception2.cc: Likewise.
696         Test for no_state error condition.
697         * testsuite/30_threads/promise/members/set_value2.cc: Likewise.
699         * include/backward/auto_ptr.h: Ignore deprecated warnings from use
700         of auto_ptr.
701         * include/bits/shared_ptr.h: Likewise.
702         * include/bits/shared_ptr_base.h: Likewise.
703         * include/bits/unique_ptr.h: Likewise.
704         * libstdc++-v3/testsuite/20_util/default_delete/48631_neg.cc: Adjust
705         dg-error lineno.
706         * libstdc++-v3/testsuite/20_util/default_delete/void_neg.cc: Likewise.
707         * libstdc++-v3/testsuite/20_util/unique_ptr/assign/48635_neg.cc:
708         Likewise.
709         * libstdc++-v3/testsuite/20_util/unique_ptr/cons/cv_qual_neg.cc:
710         Likewise.
712 2017-04-20  Edward Smith-Rowland  <3dw4rd@verizon.net>
714         PR libstdc++/68397 std::tr1::expint fails ... long double arguments.
715         * include/tr1/exp_integral.tcc: Increase iteration limits.
716         * testsuite/tr1/5_numerical_facilities/special_functions/15_expint/
717         pr68397.cc: New test.
718         * testsuite/special_functions/14_expint/pr68397.cc: New test.
720 2017-04-20  Jonathan Wakely  <jwakely@redhat.com>
722         PR libstdc++/79862
723         * include/std/atomic [!_GLIBCXX_USE_C99_STDINT_TR1] (atomic_int8_t)
724         (atomic_uint8_t, atomic_int16_t, atomic_uint16_t, atomic_int32_t,
725         (atomic_uint32_t, atomic_int64_t, atomic_uint64_t)
726         (atomic_int_least8_t, atomic_uint_least8_t, atomic_int_least16_t)
727         (atomic_uint_least16_t, atomic_int_least32_t, atomic_uint_least32_t)
728         (atomic_int_least64_t, atomic_uint_least64_t, atomic_int_fast8_t)
729         (atomic_uint_fast8_t, atomic_int_fast16_t, atomic_uint_fast16_t)
730         (atomic_int_fast32_t, atomic_uint_fast32_t, atomic_int_fast64_t)
731         (atomic_uint_fast64_t, atomic_intmax_t, atomic_uintmax_t): Don't
732         define.
734 2017-04-19  Jonathan Wakely  <jwakely@redhat.com>
736         * doc/xml/manual/abi.xml: Rephrase one of the references to the
737         Itanium C++ ABI.
738         * doc/xml/manual/test.xml: Document DejaGnu 1.5.3 requirement.
739         * doc/html/*: Regenerate.
741         * libsupc++/new: Update comment on #endif directive.
743         PR libstdc++/80448
744         * include/experimental/bits/fs_dir.h (directory_iterator)
745         (recursive_directory_iterator): Remove noexcept from defaulted
746         constructors.
748         PR libstdc++/80446
749         * include/std/type_traits (is_aggregate): Change __has_builtin checks.
750         * libsupc++/new (launder): Likewise.
752 2017-04-18  Jonathan Wakely  <jwakely@redhat.com>
754         * include/std/functional (default_searcher, __boyer_moore_array_base)
755         (__is_std_equal_to, __boyer_moore_base_t, boyer_moore_searcher)
756         (boyer_moore_horspool_searcher): Remove redundant namespace
757         qualification.
758         (default_searcher::operator()): Construct return value early and
759         advance second member in-place.
760         (boyer_moore_horspool_searcher::operator()): Increment random access
761         iterator directly instead of using std::next.
762         (boyer_moore_searcher::operator()): Fix return value.
763         * testsuite/20_util/function_objects/searchers.cc: Check both parts
764         of return values.
766 2017-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
768         * doc/xml/faq.xml: Update reference link to C++ ABI for Itanium.
769         * doc/xml/manual/abi.xml. Ditto (thrice).
771 2017-04-03  Jonathan Wakely  <jwakely@redhat.com>
773         * doc/xml/manual/status_cxx2017.xml: Remove duplicate table entry.
774         * doc/html/*: Regenerate.
776         * testsuite/20_util/reference_wrapper/invoke.cc: Uncomment tests
777         that no longer fail.
779         * include/bits/ios_base.h: Correct comment.
780         * testsuite/util/testsuite_hooks.h: Likewise.
782         * doc/xml/manual/status_cxx2017.xml: Update C++17 status table.
783         * doc/xml/manual/appendix_contributing.xml (contrib.organization): Add
784         directories for debug, parallel and profile headers.
785         * doc/html/*: Regenerate.
787         * include/bits/char_traits.h (__gnu_cxx::char_traits): Add
788         _GLIBCXX14_CONSTEXPR on assign, compare, find, and length.
789         (std::char_traits<char>, std::char_traits<wchar_t>): Add
790         _GLIBCXX17_CONSTEXPR on assign.
791         (std::char_traits<char16_t>, std::char_traits<char32_t>): Add
792         _GLIBCXX17_CONSTEXPR on assign, compare, find, and length.
793         * testsuite/21_strings/char_traits/requirements/
794         constexpr_functions_c++17.cc: New test.
796 2017-04-03  Ville Voutilainen  <ville.voutilainen@gmail.com>
798         PR libstdc++/79141
799         * include/bits/stl_pair.h (__nonesuch_no_braces): New.
800         (operator=(typename conditional<
801         __and_<is_copy_assignable<_T1>,
802         is_copy_assignable<_T2>>::value,
803         const pair&, const __nonesuch&>::type)): Change __nonesuch
804         to __nonesuch_no_braces.
805         (operator=(typename conditional<
806         __not_<__and_<is_copy_assignable<_T1>,
807         is_copy_assignable<_T2>>>::value,
808         const pair&, const __nonesuch&>::type)): Likewise.
809         (operator=(typename conditional<
810         __and_<is_move_assignable<_T1>,
811         is_move_assignable<_T2>>::value,
812         pair&&, __nonesuch&&>::type)): Likewise.
813         * testsuite/20_util/pair/79141.cc: New.
815 2017-04-03  Ville Voutilainen  <ville.voutilainen@gmail.com>
817         Implement std::is_aggregate.
818         * include/std/type_traits (is_aggregate, is_aggregate_v): New.
819         * testsuite/20_util/is_aggregate/requirements/explicit_instantiation.cc:
820         New.
821         * testsuite/20_util/is_aggregate/requirements/typedefs.cc: Likewise.
822         * testsuite/20_util/is_aggregate/value.cc: Likewise.
824 2017-03-29  Ville Voutilainen  <ville.voutilainen@gmail.com>
826         Adjust optional's pretty printer for LWG 2900.
827         * python/libstdcxx/v6/printers.py (StdExpOptionalPrinter.__init__):
828         Look at the nested payload in case of non-experimental optional.
830 2017-03-29  Ville Voutilainen  <ville.voutilainen@gmail.com>
832         Implement LWG 2900, The copy and move constructors
833         of optional are not constexpr.
834         * include/std/optional (_Optional_payload): New.
835         (_Optional_base): Remove the bool parameter.
836         (_Optional_base<_Tp, false>): Remove.
837         (_Optional_base()): Adjust.
838         (_Optional_base(nullopt_t)): Likewise.
839         (_Optional_base(in_place_t, _Args&&...)): Likewise.
840         (_Optional_base(in_place_t, initializer_list<_Up>, _Args&&...)):
841         Likewise.
842         (_Optional_base(const _Optional_base&)): Likewise.
843         (_Optional_base(_Optional_base&&)): Likewise.
844         (operator=(const _Optional_base&)): Likewise.
845         (operator=(_Optional_base&&)): Likewise.
846         (~_Optional_base()): Remove.
847         (_M_is_engaged()): Adjust.
848         (_M_get()): Likewise.
849         (_M_construct(_Args&&...)): Likewise.
850         (_M_destruct()): Likewise.
851         (_M_reset()): Likewise.
852         (_Optional_base::_Empty_byte): Remove.
853         (_Optional_base::_M_empty): Remove.
854         (_Optional_base::_M_payload): Adjust.
855         * testsuite/20_util/optional/cons/value_neg.cc: Adjust.
856         * testsuite/20_util/optional/constexpr/cons/value.cc: Add tests.
858 2017-03-28  Jonathan Wakely  <jwakely@redhat.com>
860         PR libstdc++/80137
861         * include/bits/random.tcc (generate_canonical): Use std::nextafter
862         or numeric_limits::epsilon() to reduce out-of-range values.
863         * testsuite/26_numerics/random/uniform_real_distribution/operators/
864         64351.cc: Verify complexity requirement is met.
866         * doc/xml/manual/abi.xml: Add xml:id anchor.
867         * doc/xml/manual/using.xml (manual.intro.using.macros): Document
868         _GLIBCXX_RELEASE. Link to new anchor for __GLIBCXX__ notes.
869         (concurrency.io.structure): Add markup.
870         * doc/html/*: Regenerate.
872         PR libstdc++/80229
873         * include/bits/shared_ptr_base.h
874         (__shared_ptr::_M_enable_shared_from_this_with): Change parameters to
875         non-const and then use remove_cv to get unqualified type.
876         * testsuite/20_util/enable_shared_from_this/members/const.cc: Don't
877         cast away constness on object created const.
878         * testsuite/20_util/shared_ptr/cons/80229.cc: New test.
880 2017-03-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
882         PR libstdc++/80183
883         * include/bits/stl_tree.h:
884         (_Rb_tree_header::_M_move_data(_Rb_tree_header&)): Also save _M_color.
886 2017-03-23  Jonathan Wakely  <jwakely@redhat.com>
888         * testsuite/23_containers/array/tuple_interface/
889         tuple_element_debug_neg.cc: Adjust dg-error.
890         * testsuite/23_containers/list/operations/78389.cc: Fix less-than to
891         define a valid strict weak ordering.
892         * testsuite/23_containers/priority_queue/67085.cc: Disable test for
893         Debug Mode, due to debug checks making extra copies of predicate.
894         * testsuite/ext/pb_ds/regression/priority_queue_binary_heap-62045.cc:
895         Likewise.
897         * doc/xml/faq.xml: Add link.
898         * doc/xml/manual/backwards_compatibility.xml: Remove outdated
899         information on pre-ISO headers. Replace broken link to C++ FAQ Lite.
900         * doc/xml/manual/io.xml: Update broken link.
901         * doc/html/*: Regenerate.
903 2017-03-23  Daniel Kruegler  <daniel.kruegler@gmail.com>
905         Implement LWG 2686, Why is std::hash specialized for error_code,
906         but not error_condition?
907         * include/std/system_error (hash<error_condition>): Define for C++17.
908         * testsuite/20_util/hash/operators/size_t.cc (hash<error_condition>):
909         Instantiate test for error_condition.
910         * testsuite/20_util/hash/requirements/explicit_instantiation.cc
911         (hash<error_condition>): Instantiate hash<error_condition>.
913         * include/bits/c++config (_GLIBCXX17_INLINE): Define.
914         * include/bits/regex_constants.h (All std::regex_constants constants):
915         Add _GLIBCXX17_INLINE as per P0607R0.
916         * include/bits/std_mutex.h (defer_lock, try_to_lock, adopt_lock):
917         Likewise.
918         * include/bits/stl_pair.h (piecewise_construct): Likewise.
919         * include/bits/uses_allocator.h (allocator_arg, uses_allocator_v)
920         (__is_uses_allocator_constructible_v)
921         (__is_nothrow_uses_allocator_constructible_v): Likewise.
922         * include/std/chrono (treat_as_floating_point_v): Likewise.
923         * include/std/functional (is_bind_expression_v, is_placeholder_v):
924         Likewise.
925         * include/std/optional (nullopt): Likewise.
926         * include/std/ratio (ratio_equal_v, ratio_not_equal_v, ratio_less_v)
927         ratio_less_equal_v, ratio_greater_v, ratio_greater_equal_v): Likewise.
928         * include/std/system_error (is_error_code_enum_v)
929         (is_error_condition_enum_v): Likewise.
930         * include/std/tuple (tuple_size_v, ignore): Likewise.
931         (ignore): Declare ignore constexpr as per LWG 2773, declare assignment
932         constexpr as per LWG 2933.
933         * include/std/type_traits (All variable templates): Add
934         _GLIBCXX17_INLINE as per P0607R0.
935         * include/std/variant (variant_size_v, variant_npos, __index_of_v)
936         (__tuple_count_v, __exactly_once): Likewise.
937         * testsuite/18_support/headers/new/synopsis.cc
938         (hardware_destructive_interference_size)
939         (hardware_constructive_interference_size): Likewise for commented-out
940         variables.
941         * testsuite/20_util/tuple/creation_functions/constexpr.cc: Add new
942         test function for constexpr std::ignore (LWG 2773).
943         * testsuite/20_util/tuple/creation_functions/constexpr_cpp14.cc: New
944         test for LWG 2933.
946 2017-03-22  Jonathan Wakely  <jwakely@redhat.com>
948         * include/bits/shared_ptr.h (shared_ptr, weak_ptr): Add deduction
949         guides for C++17.
950         * include/bits/std_function.h (function): Likewise.
951         * include/bits/stl_pair.h (pair): Likewise.
952         * include/debug/array (__gnu_debug::array): Likewise.
953         * include/std/array (array): Likewise.
954         * include/std/functional (make_default_searcher)
955         (make_boyer_moore_searcher, make_boyer_moore_horspool_searcher):
956         Remove generator functions.
957         * include/std/tuple (tuple): Add deduction guides.
958         * include/std/valarray (valarray): Likewise.
959         * testsuite/20_util/function_objects/searchers.cc: Adjust to use
960         class template argument deduction instead of generator functions.
961         * testsuite/20_util/function/cons/deduction.cc: New test.
962         * testsuite/20_util/optional/cons/deduction_guide.cc: Rename to ...
963         * testsuite/20_util/optional/cons/deduction.cc: ... here.
964         * testsuite/20_util/pair/cons/deduction.cc: New test.
965         * testsuite/20_util/shared_ptr/cons/deduction.cc: New test.
966         * testsuite/20_util/tuple/cons/deduction.cc: New test.
967         * testsuite/20_util/tuple/element_access/get_neg.cc: Adjust dg-error.
968         * testsuite/20_util/unique_ptr/cons/deduction_neg.cc: New test.
969         * testsuite/20_util/weak_ptr/cons/deduction.cc: New test.
970         * testsuite/23_containers/array/cons/deduction.cc: New test.
971         * testsuite/23_containers/array/cons/deduction_neg.cc: New test.
972         * testsuite/23_containers/array/tuple_interface/get_debug_neg.cc:
973         Adjust dg-error.
974         * testsuite/23_containers/array/tuple_interface/get_neg.cc: Likewise.
975         * testsuite/23_containers/array/tuple_interface/tuple_element_neg.cc:
976         Likewise.
977         * testsuite/26_numerics/valarray/deduction.cc: New test.
978         * testsuite/30_threads/lock_guard/cons/deduction.cc: New test.
979         * testsuite/30_threads/scoped_lock/cons/deduction.cc: New test.
980         * testsuite/30_threads/unique_lock/cons/deduction.cc: New test.
982 2017-03-20  François Dumont  <fdumont@gcc.gnu.org>
984         * include/bits/stl_deque.h (deque): Access allocator value_type only if
985         concept checks are enabled.
986         * include/bits/stl_stack.h (stack): Likewise.
987         * include/bits/stl_vector.h (vector): Likewise.
988         * include/bits/stl_list.h (list): Likewise and check
989         _SGIAssignableConcept only in C++03.
990         * include/bits/stl_map.h (map): Likewise.
991         * include/bits/stl_set.h (set): Likewise.
992         * include/bits/stl_multimap.h (multimap): Likewise.
993         * include/bits/stl_multiset.h (multiset): Likewise.
994         * include/bits/stl_queue.h (queue, priority_queue): Likewise.
996 2017-03-18  Gerald Pfeifer  <gerald@pfeifer.com>
998         * doc/xml/manual/appendix_contributing.xml: Convert link to
999         ansi.org to https.
1000         Update link to the C++ standard at ansi.org.
1002         * doc/xml/faq.xml: Remove information redundant with the above;
1003         instead add a reference.
1005 2017-03-17  Jonathan Wakely  <jwakely@redhat.com>
1007         * src/c++11/codecvt.cc (range): Add non-type template parameter and
1008         define oerloaded operators for reading and writing code units.
1009         (range<Elem, false>): Define partial specialization for accessing
1010         wide characters in potentially unaligned byte ranges.
1011         (ucs2_span(const char16_t*, const char16_t*, ...))
1012         (ucs4_span(const char16_t*, const char16_t*, ...)): Change parameters
1013         to range<const char16_t, false> in order to avoid unaligned reads.
1014         (__codecvt_utf16_base<char16_t>::do_out)
1015         (__codecvt_utf16_base<char32_t>::do_out)
1016         (__codecvt_utf16_base<wchar_t>::do_out): Use range specialization for
1017         unaligned data to avoid unaligned writes.
1018         (__codecvt_utf16_base<char16_t>::do_in)
1019         (__codecvt_utf16_base<char32_t>::do_in)
1020         (__codecvt_utf16_base<wchar_t>::do_in): Likewise for writes. Return
1021         error if there are unprocessable trailing bytes.
1022         (__codecvt_utf16_base<char16_t>::do_length)
1023         (__codecvt_utf16_base<char32_t>::do_length)
1024         (__codecvt_utf16_base<wchar_t>::do_length): Pass arguments of type
1025         range<const char16_t, false> to span functions.
1026         * testsuite/22_locale/codecvt/codecvt_utf16/misaligned.cc: New test.
1028 2017-03-16  Jonathan Wakely  <jwakely@redhat.com>
1030         PR libstdc++/79980
1031         * src/c++11/codecvt.cc (to_integer(codecvt_mode)): Fix target type.
1033         PR libstdc++/80041
1034         * src/c++11/codecvt.cc (__codecvt_utf16_base<wchar_t>::do_out)
1035         (__codecvt_utf16_base<wchar_t>::do_in): Convert char arguments to
1036         char16_t to work with UTF-16 instead of UTF-8.
1037         * testsuite/22_locale/codecvt/codecvt_utf16/80041.cc: New test.
1039         * src/c++11/codecvt.cc (codecvt<char16_t, char, mbstate_t>)
1040         (codecvt<char32_t, char, mbstate_t>, __codecvt_utf8_base<char16_t>)
1041         (__codecvt_utf8_base<char32_t>, __codecvt_utf8_base<wchar_t>)
1042         (__codecvt_utf16_base<char16_t>, __codecvt_utf16_base<char32_t>)
1043         (__codecvt_utf16_base<wchar_t>, __codecvt_utf8_utf16_base<char16_t>)
1044         (__codecvt_utf8_utf16_base<char32_t>)
1045         (__codecvt_utf8_utf16_base<wchar_t>): Fix do_encoding() and
1046         do_max_length() return values.
1047         * testsuite/22_locale/codecvt/codecvt_utf16/members.cc: New test.
1048         * testsuite/22_locale/codecvt/codecvt_utf8/members.cc: New test.
1049         * testsuite/22_locale/codecvt/codecvt_utf8_utf16/members.cc: New test.
1051         PR libstdc++/79980
1052         * include/bits/locale_conv.h (__do_str_codecvt): Set __count on
1053         error path.
1054         * src/c++11/codecvt.cc (operator&=, operator|=, operator~): Overloads
1055         for manipulating codecvt_mode values.
1056         (read_utf16_bom): Compare input to BOM constants instead of integral
1057         constants that depend on endianness.  Take mode parameter by
1058         reference and adjust it, to distinguish between no BOM present and
1059         UTF-16BE BOM present.
1060         (ucs4_in, ucs2_span, ucs4_span): Adjust calls to read_utf16_bom.
1061         (surrogates): New enumeration type.
1062         (utf16_in, utf16_out): Add surrogates parameter to choose between
1063         UTF-16 and UCS2 behaviour.
1064         (utf16_span, ucs2_span): Use std::min not std::max.
1065         (ucs2_out): Use std::min not std::max.  Disallow surrogate pairs.
1066         (ucs2_in): Likewise. Adjust calls to read_utf16_bom.
1067         * testsuite/22_locale/codecvt/codecvt_utf16/79980.cc: New test.
1068         * testsuite/22_locale/codecvt/codecvt_utf8/79980.cc: New test.
1070         PR libstdc++/79511
1071         * src/c++11/codecvt.cc (write_utf16_code_point): Don't write 0xffff
1072         as a surrogate pair.
1073         (__codecvt_utf8_utf16_base<char32_t>::do_in): Use native endianness
1074         for internal representation.
1075         (__codecvt_utf8_utf16_base<wchar_t>::do_in): Likewise.
1076         * testsuite/22_locale/codecvt/codecvt_utf8_utf16/79511.cc: New test.
1078         PR libstdc++/80064
1079         * include/bits/stl_heap.h (__is_heap, push_heap, __adjust_heap)
1080         (pop_heap, make_heap, sort_heap, is_heap_until, is_heap): Cope with
1081         invalid instantiations using function types for _Compare argument.
1082         * testsuite/25_algorithms/make_heap/80064.cc: New test.
1084         PR libstdc++/67440
1085         * python/libstdcxx/v6/printers.py (find_type): Avoid gdb.Type.name
1086         for GDB 7.6 compatibility, use gdb.Type.unqualified instead.
1088 2017-03-15  Ville Voutilainen  <ville.voutilainen@gmail.com>
1090         Implement LWG 2857, {variant,optional,any}::emplace should
1091         return the constructed value.
1092         * include/std/any (emplace(_Args&&...)): Change the return type and
1093         return a reference to the constructed value.
1094         (emplace(initializer_list<_Up>, _Args&&...)): Likewise.
1095         * include/std/optional (emplace(_Args&&...)): Likewise.
1096         (emplace(initializer_list<_Up>, _Args&&...)): Likewise.
1097         * include/std/variant (emplace<_Tp>(_Args&&...)): Likewise.
1098         (emplace<_Tp>(initializer_list<_Up>, _Args&&...)): Likewise.
1099         (emplace<_Np>(_Args&&...)): Likewise.
1100         (emplace<_Np>(initializer_list<_Up>, _Args&&...)): Likewise.
1101         * testsuite/20_util/any/assign/emplace.cc: Add tests for
1102         checking the return value of emplace.
1103         * testsuite/20_util/any/misc/any_cast_neg.cc: Adjust.
1104         * testsuite/20_util/optional/assignment/6.cc: Add tests for
1105         checking the return value of emplace.
1106         * testsuite/20_util/variant/run.cc: Likewise.
1108 2017-03-15  Xi Ruoyao  <ryxi@stu.xidian.edu.cn>
1110         PR libstdc++/62045
1111         * include/ext/pb_ds/qdetail/binary_heap_/binary_heap_.hpp
1112         (is_heap): Remove.
1113         (push_heap): Remove the wrong checking using is_heap.
1114         (make_heap): Remove the assertion using is_heap.
1115         * include/ext/pb_ds/detail/binary_heap_/insert_fn_imps.hpp
1116         (modify): Ditto.
1117         (resize_for_insert_if_needed): Add PB_DS_ASSERT_VALID after
1118         calling make_heap.
1120 2017-03-15  Jonathan Wakely  <jwakely@redhat.com>
1122         PR libstdc++/62045
1123         * testsuite/ext/pb_ds/regression/priority_queue_binary_heap-62045.cc:
1124         New test.
1125         * testsuite/ext/pb_ds/regression/priority_queues.cc: Fix copy&paste
1126         error in comment.
1128 2017-03-15  Jonathan Wakely  <jwakely@redhat.com>
1130         * acinclude.m4 (GLIBCXX_CHECK_S_ISREG_OR_S_IFREG): Fix typo in
1131         comment.
1132         * config.h.in: Regenerate.
1133         * configure: Regenerate.
1134         * doc/Makefile.in: Regenerate.
1136 2017-03-14  Jonathan Wakely  <jwakely@redhat.com>
1138         PR libstdc++/79162
1139         * include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI]
1140         (basic_string<C,T,A>::operator=(basic_string_view<C,T>)): Replace
1141         with a constrained template.
1142         [!_GLIBCXX_USE_CXX11_ABI]
1143         (basic_string<C,T,A>::operator=(basic_string_view<C,T>)): Likewise.
1144         * testsuite/21_strings/basic_string/cons/char/79162.cc: New test.
1145         * testsuite/21_strings/basic_string/cons/wchar_t/79162.cc: New test.
1147 2017-03-13  Ville Voutilainen  <ville.voutilainen@gmail.com>
1149         PR libstdc++/80034
1150         * include/bits/list.tcc (merge(list&&)): Use const for the size_t
1151         in the catch-block.
1152         (merge(list&&, _StrictWeakOrdering)): Likewise.
1153         * testsuite/23_containers/list/operations/80034.cc: New.
1155 2017-03-13  Ville Voutilainen  <ville.voutilainen@gmail.com>
1157         Implement LWG 2806, Base class of bad_optional_access.
1158         * include/std/optional (bad_optional_access):
1159         Derive from std::exception.
1160         (bad_optional_access::bad_optional_access): Adjust.
1161         (bad_optional_access::what): New.
1162         (__throw_bad_optional_access(const char*)):
1163         Remove the parameter and adjust calls.
1164         * testsuite/20_util/optional/cons/value_neg.cc: Adjust.
1165         * testsuite/20_util/optional/typedefs.cc: Likewise.
1167 2017-03-12  Ville Voutilainen  <ville.voutilainen@gmail.com>
1169         Implement LWG 2934, optional<const T> doesn't compare with T.
1170         * include/std/optional
1171         (operator==(const optional<_Tp>&, const optional<_Tp>&)):
1172         Turn into operator==(const optional<_Tp>&, const optional<_Up>&).
1173         (operator!=(const optional<_Tp>&, const optional<_Tp>&)):
1174         Turn into operator!=(const optional<_Tp>&, const optional<_Up>&).
1175         (operator<(const optional<_Tp>&, const optional<_Tp>&)):
1176         Turn into operator<(const optional<_Tp>&, const optional<_Up>&.
1177         (operator>(const optional<_Tp>&, const optional<_Tp>&)):
1178         Turn into operator>(const optional<_Tp>&, const optional<_Up>&.
1179         (operator<=(const optional<_Tp>&, const optional<_Tp>&)):
1180         Turn into operator<=(const optional<_Tp>&, const optional<_Up>&).
1181         (operator>=(const optional<_Tp>&, const optional<_Tp>&)):
1182         Turn into operator>=(const optional<_Tp>&, const optional<_Up>&).
1183         (operator==(const optional<_Tp>&, const _Tp&)):
1184         Turn into operator==(const optional<_Tp>&, const _Up&).
1185         (operator==(const _Tp&, const optional<_Tp>&)):
1186         Turn into operator==(const _Up&, const optional<_Tp>&).
1187         (operator!=(const optional<_Tp>&, const _Tp&)):
1188         Turn into operator!=(const optional<_Tp>&, const _Up&).
1189         (operator!=(const _Tp&, const optional<_Tp>&)):
1190         Turn into operator!=(const _Up&, const optional<_Tp>&).
1191         (operator<(const optional<_Tp>&, const _Tp&)):
1192         Turn into operator<(const optional<_Tp>&, const _Up&).
1193         (operator<(const _Tp&, const optional<_Tp>&)):
1194         Turn into operator<(const _Up&, const optional<_Tp>&).
1195         (operator>(const optional<_Tp>&, const _Tp&)):
1196         Turn into operator>(const optional<_Tp>&, const _Up&).
1197         (operator>(const _Tp&, const optional<_Tp>&)):
1198         Turn into operator>(const _Up&, const optional<_Tp>&).
1199         (operator<=(const optional<_Tp>&, const _Tp&)):
1200         Turn into operator<=(const optional<_Tp>&, const _Up&).
1201         (operator<=(const _Tp&, const optional<_Tp>&)):
1202         Turn into operator<=(const _Up&, const optional<_Tp>&).
1203         (operator>=(const optional<_Tp>&, const _Tp&)):
1204         Turn into operator>=(const optional<_Tp>&, const _Up&).
1205         (operator>=(const _Tp&, const optional<_Tp>&)):
1206         Turn into operator>=(const _Up&, const optional<_Tp>&).
1207         * testsuite/20_util/optional/relops/7.cc: New.
1209 2017-03-10  Jonathan Wakely  <jwakely@redhat.com>
1211         * testsuite/17_intro/names.cc: Undefine macros that clash with
1212         identifiers in AIX system headers.
1214         * include/bits/invoke.h (__invoke): Use __invoke_result instead of
1215         result_of, and __is_nothrow_invocable instead of
1216         __is_nothrow_callable.
1217         * include/bits/shared_ptr_base.h (__shared_ptr): Use __is_invocable
1218         instead of __is_callable.
1219         * include/std/functional (invoke): use invoke_result_t instead of
1220         result_of_t and is_nothrow_invocable instead of is_nothrow_callable.
1221         (_Not_fn): Use __invoke_result instead of result_of.
1222         * include/std/type_traits (__result_of_memobj, __result_of_memfun):
1223         Remove partial specializations for reference_wrapper types.
1224         (__result_of_impl): Use __inv_unwrap to strip reference_wrapper.
1225         (__invoke_result): Define replacement for result_of and then use it to
1226         define result_of.
1227         (__is_callable_impl, __is_callable, __is_nothrow_callable): Replace
1228         with __is_invocable_impl, __is_invocable, and __is_nothrow_invocable
1229         respectively.
1230         (invoke_result, invoke_result_t): Define for C++17.
1231         (is_callable, is_nothrow_callable): Replace with is_invocable,
1232         is_invocable_r, is_nothrow_invocable, and is_nothrow_invocable_r.
1233         (is_callable_v, is_nothrow_callable_v): Replace with is_invocable_v,
1234         is_invocable_r_v, is_nothrow_invocable_v, and is_nothrow_invocable_r_v.
1235         * include/std/variant (hash<variant<T...>>): Use is_nothrow_invocable_v
1236         instead of is_nothrow_callable_v.
1237         * testsuite/20_util/function_objects/invoke/59768.cc: Remove unused
1238         main function.
1239         * testsuite/20_util/function_objects/not_fn/1.cc: Use is_invocable
1240         instead of is_callable.
1241         * testsuite/20_util/is_callable/*: Rename directory and adjust tests
1242         to use new traits.
1243         * testsuite/20_util/is_nothrow_callable/*: Likewise.
1244         * testsuite/20_util/optional/hash.cc: Use is_invocable_v instead of
1245         is_callable.
1246         * testsuite/20_util/variant/hash.cc: Likewise.
1248 2017-03-10  George Lander  <george.lander@arm.com>
1250         * acinclude.m4 (glibcxx_cv_obsolete_isnan): Define
1251         _GLIBCXX_INCLUDE_NEXT_C_HEADERS before including math.h.
1252         * configure: Regenerate.
1254 2017-03-09  Jonathan Wakely  <jwakely@redhat.com>
1256         * include/std/functional (_Not_fn): Define macro to simplify
1257         repetitive function definitions.
1259         * doc/xml/manual/status_cxx2017.xml: Document std::byte support.
1260         * include/c_global/cstddef (std::byte): Define for C++17.
1261         * testsuite/18_support/byte/global_neg.cc: New test.
1262         * testsuite/18_support/byte/ops.cc: New test.
1263         * testsuite/18_support/byte/requirements.cc: New test.
1265 2017-03-05  Jonathan Wakely  <jwakely@redhat.com>
1267         * doc/xml/manual/status_cxx2017.xml: Document P0156R2 status.
1268         * doc/html/*: Regenerate.
1269         * include/std/mutex (scoped_lock): Implement new C++17 template.
1270         * testsuite/30_threads/scoped_lock/cons/1.cc: New test.
1271         * testsuite/30_threads/scoped_lock/requirements/
1272         explicit_instantiation.cc: New test.
1273         * testsuite/30_threads/scoped_lock/requirements/typedefs.cc: New test.
1275 2017-03-02  Gerald Pfeifer  <gerald@pfeifer.com>
1276             François Dumont  <frs.dumont@gmail.com>
1277             Jonathan Wakely  <jwakely@redhat.com>
1279         * doc/xml/manual/debug_mode.xml: Update and simplify note
1280         on link- and run-time coexistence.
1282 2017-03-02  Jonathan Wakely  <jwakely@redhat.com>
1284         * testsuite/17_intro/headers/names.cc: Rename to ...
1285         * testsuite/17_intro/names.cc: ... here.
1287         PR libstdc++/79789
1288         * include/bits/hashtable_policy.h (__clp2): Use reserved names for
1289         parameters and local variables.
1290         * include/bits/ios_base.h (make_error_code, make_error_condition):
1291         Likewise.
1292         * include/bits/list.tcc (list::sort): Likewise.
1293         * include/bits/mask_array.h (mask_array): Likewise.
1294         * include/bits/regex.h (regex_token_iterator): Likewise.
1295         * include/bits/slice_array.h (slice_array): Likewise.
1296         * include/bits/stl_algo.h (__sample): Likewise.
1297         * include/std/memory (undeclare_no_pointers): Likewise.
1298         * include/std/type_traits (is_callable_v, is_nothrow_callable_v):
1299         Likewise.
1300         * libsupc++/exception_ptr.h (__dest_thunk): Likewise.
1301         * testsuite/17_intro/headers/names.cc: New test.
1303         PR libstdc++/79798
1304         * include/std/functional (bind::_Res_type_impl): Fix incorrect use of
1305         result_of that loses top-level cv-qualifiers.
1306         * testsuite/20_util/bind/79798.cc: New test.
1308 2017-03-01  Gerald Pfeifer  <gerald@pfeifer.com>
1310         * doc/xml/manual/documentation_hacking.xml: Tweak link to
1311         doxygen.org.
1313 2017-02-23  Jonathan Wakely  <jwakely@redhat.com>
1315         * include/experimental/iterator: Include <iterator>.
1316         * testsuite/experimental/iterator/requirements.cc: Check for contents
1317         of <iterator>.
1319 2017-02-19  Dinka Ranns  <dinka.ranns@googlemail.com>
1321         C++17 GB50 resolution
1322         * include/std/chrono (duration::operator++()): Add
1323         _GLIBCXX17_CONSTEXPR.
1324         (duration::operator++(int)): Likewise.
1325         (duration::operator--()): Likewise.
1326         (duration::operator--(int)): Likewise.
1327         (duration::operator+=(const duration&)): Likewise.
1328         (duration::operator-=(const duration&)): Likewise.
1329         (duration::operator*=(const rep&)): Likewise.
1330         (duration::operator/=(const rep&)): Likewise.
1331         (duration::operator%=(const rep&)): Likewise.
1332         (duration::operator%=(const duration&)): Likewise.
1333         (time_point::operator+=(const duration&)): Likewise.
1334         (time_point::operator-=(const duration&)): Likewise.
1335         * testsuite/20_util/duration/arithmetic/constexpr_c++17.cc: New test.
1336         * testsuite/20_util/duration/literals/range.cc: Adjust dg-error.
1337         * testsuite/20_util/time_point/arithmetic/constexpr.cc: New test.
1339 2017-02-19  Gerald Pfeifer  <gerald@pfeifer.com>
1341         * doc/xml/manual/debug.xml: Adjust link to ThreadSanitizer.
1343 2017-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
1345         * doc/xml/manual/io.xml: Update link to groups.google.com.
1346         Tweak link description.
1348 2017-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
1350         * doc/xml/manual/profile_mode.xml: Fix link.
1352 2017-02-16  Gerald Pfeifer  <gerald@pfeifer.com>
1354         * doc/xml/manual/policy_data_structures.xml: Simplify and
1355         standardize references to boost.org.
1356         * doc/xml/manual/policy_data_structures_biblio.xml: Ditto.
1357         * doc/xml/manual/shared_ptr.xml: Ditto.
1359 2017-02-16  Jonathan Wakely  <jwakely@redhat.com>
1361         PR libstdc++/60936
1362         * src/c++11/snprintf_lite.cc (__concat_size_t): Calculate length
1363         written to buffer, not length remaining in buffer.
1365 2017-02-15  Tim Shen  <timshen@google.com>
1367         PR libstdc++/78723
1368         * include/std/variant (operator<(), operator>(), operator<=(),
1369         operator>=(), operator==(), operator!=()): Implement P0393R3.
1370         * testsuite/20_util/variant/compile.cc: Adjust tests.
1371         * testsuite/20_util/variant/run.cc: Adjust tests.
1373 2017-02-15  Tim Shen  <timshen@google.com>
1375         PR libstdc++/79513
1376         * include/std/variant (visit()): Forward variant types to the return
1377         type detection code.
1378         * testsuite/20_util/variant/compile.cc: Add test cases.
1380 2017-02-13  H.J. Lu  <hongjiu.lu@intel.com>
1382         PR libstdc++/79348
1383         * config/abi/post/x86_64-linux-gnu/x32/baseline_symbols.txt: Updated.
1385 2017-02-13  Jakub Jelinek  <jakub@redhat.com>
1387         PR libstdc++/79348
1388         * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt: Update.
1389         * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt: Likewise.
1390         * config/abi/post/i386-linux-gnu/baseline_symbols.txt: Likewise.
1391         * config/abi/post/i486-linux-gnu/baseline_symbols.txt: Likewise.
1392         * config/abi/post/aarch64-linux-gnu/baseline_symbols.txt: Likewise.
1393         * config/abi/post/s390x-linux-gnu/baseline_symbols.txt: Likewise.
1394         * config/abi/post/s390x-linux-gnu/32/baseline_symbols.txt: Likewise.
1395         * config/abi/post/s390-linux-gnu/baseline_symbols.txt: Likewise.
1396         * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt: Likewise.
1398 2017-02-13  Jonathan Wakely  <jwakely@redhat.com>
1400         PR libstdc++/79486
1401         * include/std/future (__future_base::_Task_state::_M_run)
1402         (__future_base::_Task_state::_M_run_delayed): Use lvalue types in
1403         result_of expressions.
1404         * testsuite/30_threads/packaged_task/79486.cc: New.
1406 2017-02-11  Jonathan Wakely  <jwakely@redhat.com>
1408         PR libstdc++/79467
1409         * include/bits/shared_ptr_base.h (__shared_ptr(_Yp*, _Deleter))
1410         (__shared_ptr(_Yp*, _Deleter, _Alloc)): Use lvalue types in
1411         __is_callable check.
1412         * testsuite/20_util/shared_ptr/cons/79467.cc: New.
1414         * include/bits/atomic_base.h: Re-indent.
1416 2017-02-10  Gerald Pfeifer  <gerald@pfeifer.com>
1418         * doc/xml/manual/profile_mode.xml: Update a paper reference.
1420 2017-02-08  Gerald Pfeifer  <gerald@pfeifer.com>
1422         * src/c++11/snprintf_lite.cc (__err): Use https for bug reporting.
1424 2017-02-08  Jonathan Wakely  <jwakely@redhat.com>
1426         * doc/xml/manual/policy_data_structures.xml: Fix spelling of author's
1427         name.
1428         * doc/xml/manual/policy_data_structures_biblio.xml: Likewise. Remove
1429         broken links to texts that are no longer online.
1430         * doc/xml/manual/profile_mode.xml: Update links to CGO 2009 paper and
1431         LCPC 2006 paper.
1432         * doc/xml/manual/using.xml: Update links to memory model information.
1433         * doc/xml/manual/using_exceptions.xml: Update link to "Appendix E:
1434         Standard-Library Exception Safety".
1435         * doc/html/*: Regenerate.
1437 2017-02-08  Gerald Pfeifer  <gerald@pfeifer.com>
1439         * doc/xml/manual/profile_mode.xml: Unbreak link to
1440         "Optimizing Sorting with Machine Learning Algorithms".
1442 2017-02-08  Gerald Pfeifer  <gerald@pfeifer.com>
1444         * src/c++11/snprintf_lite.cc (__err): Update bug reporting URL.
1446 2017-02-08  Gerald Pfeifer  <gerald@pfeifer.com>
1448         * doc/xml/manual/abi.xml: Update link to "Sun Studio 11: C++
1449         Migration Guide".
1451 2017-02-07  Gerald Pfeifer  <gerald@pfeifer.com>
1453         * doc/html/ext/lwg-active.html: Remove.
1454         * doc/html/ext/lwg-closed.html: Ditto.
1455         * doc/html/ext/lwg-defects.html: Ditto.
1457         * doc/Makefile.am (xml_extradir): Remove.
1458         (xml_extra): Ditto.
1459         (stamp-html-docbook-lwg): Remove recipe...
1460         (stamp-html-docbook-data): ...and its use here.
1461         * doc/Makefile.in: Regenerate.
1463         * doc/xml/manual/intro.xml: Shorten two paragraphs explaining
1464         the relationship to the upstream working group.
1465         Replace a local link to ../ext/lwg-active.html by the upstream one.
1466         Replace all reference to ../ext/lwg-defects.html by a new entity
1467         &DR; which refers to the upstream address.
1469 2017-02-07  Gerald Pfeifer  <gerald@pfeifer.com>
1471         * doc/xml/manual/status_cxx2017.xml: Fix link to N4284.
1473 2017-02-06  Jonathan Wakely  <jwakely@redhat.com>
1475         PR libstdc++/79323
1476         * testsuite/20_util/duration/literals/range.cc: Prune extra output
1477         at -O0.
1479 2017-02-06  Gerald Pfeifer  <gerald@pfeifer.com>
1481         * doc/xml/manual/documentation_hacking.xml: Update URL of the
1482         DocBook Element Reference.  Use that term as link description
1483         instead of "online".
1484         epubcheck has moved to GitHub.
1485         Remove obsolete link to DocBook Publishing Tools.
1487 2017-02-03  Jonathan Wakely  <jwakely@redhat.com>
1489         PR libstdc++/66145
1490         * testsuite/27_io/basic_ios/copyfmt/char/1.cc: Restore ABI override
1491         so new ios::failure can be caught even when old ABI is the default.
1492         * testsuite/27_io/basic_ios/exceptions/char/1.cc: Likewise.
1493         * testsuite/27_io/basic_istream/extractors_arithmetic/char/
1494         exceptions_failbit.cc: Likewise.
1495         * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/
1496         exceptions_failbit.cc: Likewise.
1497         * testsuite/27_io/basic_istream/extractors_other/char/
1498         exceptions_null.cc: Likewise.
1499         * testsuite/27_io/basic_istream/extractors_other/wchar_t/
1500         exceptions_null.cc: Likewise.
1501         * testsuite/27_io/basic_istream/sentry/char/12297.cc: Likewise.
1502         * testsuite/27_io/basic_istream/sentry/wchar_t/12297.cc: Likewise.
1503         * testsuite/27_io/basic_ostream/inserters_other/char/
1504         exceptions_null.cc: Likewise.
1505         * testsuite/27_io/basic_ostream/inserters_other/wchar_t/
1506         exceptions_null.cc: Likewise.
1507         * testsuite/27_io/ios_base/storage/2.cc: Likewise.
1509         PR libstdc++/60936
1510         * src/c++11/Makefile.am: Add new files.
1511         * src/c++11/Makefile.in: Regenerate.
1512         * src/c++11/cow-string-inst.cc [!_GLIBCXX_USE_CXX11_ABI]
1513         (operator<<, operator>>, getline): Move explicit instantiations to ...
1514         * src/c++11/cow-string-io-inst.cc: ... new file.
1515         * src/c++11/cow-wstring-inst.cc [!_GLIBCXX_USE_CXX11_ABI]
1516         (operator<<, operator>>, getline): Move explicit instantiations to ...
1517         * src/c++11/cow-wstring-io-inst.cc: ... new file.
1518         * src/c++11/functexcept.cc (__throw_ios_failure, __throw_system_error)
1519         (__throw_future_error, __throw_bad_function_call):
1520         (__throw_regex_error): Move functions for C++11 exceptions to the
1521         files that define the exception types.
1522         * src/c++11/functional.cc (__throw_bad_function_call): Move here.
1523         * src/c++11/future.cc (__throw_future_error): Likewise.
1524         * src/c++11/ios.cc (__throw_ios_failure): Likewise.
1525         * src/c++11/regex.cc (__throw_regex_error): Likewise.
1526         * src/c++11/snprintf_lite.cc (__concat_size_t): Print decimal
1527         representation directly instead of calling __int_to_char.
1528         * src/c++11/sso_string.cc (__sso_string): New file for definition
1529         of __sso_string type.
1530         * src/c++11/string-io-inst.cc [_GLIBCXX_USE_CXX11_ABI]: New file for
1531         explicit instantiations of narrow string I/O functions.
1532         * src/c++11/system_error.cc (__throw_system_error): Move here.
1533         (__sso_string): Move to new file.
1534         * src/c++11/wstring-io-inst.cc [_GLIBCXX_USE_CXX11_ABI]: New file for
1535         explicit instantiations of wide string I/O functions.
1536         * src/c++98/misc-inst.cc [_GLIBCXX_USE_CXX11_ABI] (operator<<)
1537         (operator>>, getline): Remove explicit instantiations from here.
1539 2017-02-02  H.J. Lu  <hongjiu.lu@intel.com>
1541         * config/abi/post/x86_64-linux-gnu/x32/baseline_symbols.txt: Updated.
1543 2017-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1545         * configure.host: Separate Solaris/SPARC and x86 baselines.
1546         * config/abi/post/solaris2.10/baseline_symbols.txt: Move ...
1547         * config/abi/post/sparc-solaris2.10/baseline_symbols.txt: ... here.
1548         * config/abi/post/solaris2.10/sparcv9/baseline_symbols.txt: Move ...
1549         * config/abi/post/sparc-solaris2.10/sparcv9/baseline_symbols.txt:
1550         ... here.
1551         * config/abi/post/solaris2.10/amd64/baseline_symbols.txt: Move ...
1552         * config/abi/post/i386-solaris2.10/amd64/baseline_symbols.txt: ... here.
1553         * config/abi/post/i386-solaris2.10/baseline_symbols.txt: New file.
1554         * config/abi/post/solaris2.11/baseline_symbols.txt: Move ...
1555         * config/abi/post/sparc-solaris2.11/baseline_symbols.txt: ... here.
1556         * config/abi/post/solaris2.11/sparcv9/baseline_symbols.txt: Move ...
1557         * config/abi/post/sparc-solaris2.11/sparcv9/baseline_symbols.txt:
1558         ... here.
1559         * config/abi/post/solaris2.11/amd64/baseline_symbols.txt: Move ...
1560         * config/abi/post/i386-solaris2.11/amd64/baseline_symbols.txt: ... here.
1561         * config/abi/post/i386-solaris2.11/baseline_symbols.txt: New file.
1563         * config/abi/post/solaris2.10/baseline_symbols.txt: Regenerate.
1564         * config/abi/post/solaris2.10/amd64/baseline_symbols.txt: Likewise.
1565         * config/abi/post/solaris2.10/sparcv9/baseline_symbols.txt: Likewise.
1566         * config/abi/post/solaris2.11/baseline_symbols.txt: Likewise.
1567         * config/abi/post/solaris2.11/amd64/baseline_symbols.txt: Likewise.
1568         * config/abi/post/solaris2.11/sparcv9/baseline_symbols.txt: Likewise.
1570 2017-02-01  Jonathan Wakely  <jwakely@redhat.com>
1572         PR libstdc++/78346
1573         * include/bits/predefined_ops.h (_Iter_equals_iter): Store iterator
1574         not its referent.
1575         (_Iter_comp_to_iter): Likewise.
1576         * testsuite/25_algorithms/search/78346.cc: New test.
1578         PR libstdc++/79254
1579         * config/abi/pre/gnu.ver: Remove recently added symbols.
1580         * include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI]
1581         (basic_string::_M_copy_assign): Remove.
1582         (basic_string::operator=(const basic_string&)): Don't dispatch to
1583         _M_copy_assign. If source object is small just deallocate, otherwise
1584         perform new allocation before making any changes.
1585         * include/bits/basic_string.tcc [_GLIBCXX_USE_CXX11_ABI]
1586         (basic_string::_M_copy_assign(const basic_string&, true_type)):
1587         Remove.
1588         * testsuite/21_strings/basic_string/allocator/char/copy_assign.cc:
1589         Test cases where the allocators are equal or the string is small.
1590         * testsuite/21_strings/basic_string/allocator/wchar_t/copy_assign.cc:
1591         Likewise.
1593 2017-01-30  Ville Voutilainen  <ville.voutilainen@gmail.com>
1595         Implement LWG 2825, LWG 2756 breaks class template argument
1596         deduction for optional.
1597         * include/std/optional: Add a deduction guide.
1598         * testsuite/20_util/optional/cons/deduction_guide.cc: New.
1600 2017-01-27  Jonathan Wakely  <jwakely@redhat.com>
1602         PR libstdc++/79254
1603         * config/abi/pre/gnu.ver: Add new symbols.
1604         * include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI]
1605         (basic_string::_M_copy_assign): New overloaded functions to perform
1606         copy assignment.
1607         (basic_string::operator=(const basic_string&)): Dispatch to
1608         _M_copy_assign.
1609         * include/bits/basic_string.tcc [_GLIBCXX_USE_CXX11_ABI]
1610         (basic_string::_M_copy_assign(const basic_string&, true_type)):
1611         Define, performing rollback on exception.
1612         * testsuite/21_strings/basic_string/allocator/char/copy_assign.cc:
1613         Test exception-safety guarantee.
1614         * testsuite/21_strings/basic_string/allocator/wchar_t/copy_assign.cc:
1615         Likewise.
1616         * testsuite/util/testsuite_allocator.h (uneq_allocator::swap): Make
1617         std::swap visible.
1619 2017-01-26  Jonathan Wakely  <jwakely@redhat.com>
1621         PR libstdc++/70607
1622         * include/tr1/complex (conj): Remove using-declaration and restore
1623         overloads, reverting previous change.
1625         * testsuite/23_containers/list/operations/78389.cc: Fix for C++11
1626         mode.
1627         * testsuite/23_containers/priority_queue/requirements/constructible.cc:
1628         Mark as unsupported in C++98 mode.
1629         * testsuite/23_containers/queue/requirements/constructible.cc:
1630         Likewise.
1631         * testsuite/23_containers/stack/requirements/constructible.cc:
1632         Likewise.
1633         * testsuite/25_algorithms/make_heap/movable.cc: Fix for C++11 mode.
1635         PR libstdc++/79243
1636         * include/bits/c++config (literals::string_view_literals::__7): Add.
1637         Only declare versioned namespaces for the relevant C++ dialects.
1638         * include/experimental/bits/erase_if.h (fundamentals_v2::__detail):
1639         Add versioning macros.
1640         * include/experimental/bits/lfts_config.h:
1641         (fundamentals_v1::__detail::__7, fundamentals_v2::__detail::__7): Add.
1642         * include/experimental/string_view (fundamentals_v2::__detail):
1643         Add versioning macros.
1644         (fundamentals_v2::__detail::__identity): Remove.
1645         (fundamentals_v2::__detail::__idt): Use common_type instead of
1646         __detail::__identity.
1647         * include/std/string_view (__detail::__identity, __detail::__idt):
1648         Likewise.
1649         (literals::string_view_literals): Fix nesting of versioning macros.
1651         PR libstdc++/79190
1652         * libsupc++/del_opa.cc (operator delete(void*, std::align_val_t))
1653         [!_GLIBCXX_HAVE_ALIGNED_ALLOC && !_GLIBCXX_HAVE_POSIX_MEMALIGN
1654         && !_GLIBCXX_HAVE_MEMALIGN && !_GLIBCXX_HAVE__ALIGNED_MALLOC]:
1655         Retrieve original pointer value allocated by malloc.
1656         * libsupc++/new_opa.cc [!_GLIBCXX_HAVE_ALIGNED_ALLOC
1657         && !_GLIBCXX_HAVE_POSIX_MEMALIGN && !_GLIBCXX_HAVE_MEMALIGN
1658         && !_GLIBCXX_HAVE__ALIGNED_MALLOC] (aligned_alloc(size_t, size_t)):
1659         Define, adjusting pointer value allocated by malloc and storing for
1660         retrieval by operator delete.
1662 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
1664         * libsupc++/eh_atomics.h: Update copyright years.
1665         * testsuite/20_util/unique_ptr/cons/default.cc: Update copyright years.
1667 2017-01-25  Jonathan Wakely  <jwakely@redhat.com>
1669         PR libstdc++/61791
1670         PR libstdc++/70607
1671         * include/std/complex (real(T), imag(T)): Add _GLIBCXX_CONSTEXPR.
1672         (proj(T), conj(T)): Change return types per DR 1522.
1673         * include/tr1/complex (conj): Remove overloads and use std::conj.
1674         * testsuite/26_numerics/complex/dr781_dr1137.cc: Rename to...
1675         * testsuite/26_numerics/complex/dr781.cc: ... this, and update.
1676         * testsuite/26_numerics/complex/value_operations/constexpr2.cc: Test
1677         real(T) and imag(T). Allow testing for C++11 too.
1679 2017-01-24  Jonathan Wakely  <jwakely@redhat.com>
1681         PR libstdc++/79206
1682         * include/experimental/string_view (operator==): Check sizes first.
1683         * include/std/string_view (operator==): Likewise.
1685 2017-01-23  Jonathan Wakely  <jwakely@redhat.com>
1687         * testsuite/experimental/array/make_array.cc: Restore <functional>
1688         inclusion.
1690 2017-01-23  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1692         * testsuite/29_atomics/atomic/69301.cc: Require atomic builtins.
1694 2017-01-23  Jonathan Wakely  <jwakely@redhat.com>
1696         PR libstdc++/79195
1697         * include/experimental/array (__make_array_elem): New class template
1698         and partial specialization.
1699         (__is_reference_wrapper): Move into __make_array_elem specialization.
1700         (make_array): Use __make_array_elem to determine element type and move
1701         static assertion into specialization. Qualify std::forward call.
1702         (to_array): Add exception specifiation.
1703         * testsuite/experimental/array/make_array.cc: Test argument types
1704         without a common type.
1705         * testsuite/experimental/array/neg.cc: Adjust expected error message.
1707 2017-01-22  Gerald Pfeifer  <gerald@pfeifer.com>
1709         * doc/xml/manual/debug.xml: code.google.com uses https now.
1711 2017-01-22  Gerald Pfeifer  <gerald@pfeifer.com>
1713         * doc/xml/manual/test.xml: Fix link into gccint online manual.
1715 2017-01-21  Ville Voutilainen  <ville.voutilainen@gmail.com>
1717         Make poisoned hashes SFINAE away the call operator of the hash.
1718         * include/bits/functional_hash.h
1719         (__poison_hash::__enable_hash_call): New.
1720         * include/std/optional (__optional_hash_call_base): New.
1721         (hash<optional<_Tp>>): Derive from the new base,
1722         move the hash function into that base.
1723         * include/std/variant (__variant_hash_call_base_impl): New.
1724         (__variant_hash_call_base): Likewise.
1725         (hash<variant<_Types...>>): Derive from the new base,
1726         move the hash function into that base.
1727         * testsuite/20_util/optional/hash.cc: Add tests for is_callable.
1728         * testsuite/20_util/variant/hash.cc: Likewise.
1730 2017-01-20  Joe Seymour  <joe.s@somniumtech.com>
1732         * acinclude.m4 (GLIBCXX_CHECK_SIZE_T_MANGLING): Support uint20_t.
1733         * configure: Regenerate.
1735 2017-01-20  Jonathan Wakely  <jwakely@redhat.com>
1737         PR libstdc++/69240
1738         * include/bits/random.h (uniform_real_distribution::param_type)
1739         (normal_distribution::param_type, lognormal_distribution::param_type)
1740         (gamma_distribution::param_type, chi_squared_distribution::param_type)
1741         (cauchy_distribution::param_type, fisher_f_distribution::param_type)
1742         (student_t_distribution::param_type)
1743         (bernoulli_distribution::param_type, binomial_distribution::param_type)
1744         (geometric_distribution::param_type)
1745         (negative_binomial_distribution::param_type)
1746         (poisson_distribution::param_type)
1747         (exponential_distribution::param_type)
1748         (weibull_distribution::param_type)
1749         (extreme_value_distribution::param_type)
1750         (discrete_distribution::param_type)
1751         (piecewise_constant_distribution::param_type)
1752         (piecewise_linear_distribution::param_type): Define operator!=.
1753         * include/bits/uniform_int_dist.h
1754         (uniform_int_distribution::param_type): Likewise.
1755         * include/ext/random (beta_distribution::param_type)
1756         (rice_distribution::param_type, nakagami_distribution::param_type)
1757         (pareto_distribution::param_type, k_distribution::param_type)
1758         (arcsine_distribution::param_type, hoyt_distribution::param_type)
1759         (triangular_distribution::param_type)
1760         (von_mises_distribution::param_type)
1761         (hypergeometric_distribution::param_type)
1762         (logistic_distribution::param_type)
1763         (uniform_on_sphere_distribution::param_type)
1764         (uniform_inside_sphere_distribution::param_type): Likewise.
1765         * testsuite/26_numerics/random/bernoulli_distribution/cons/parms.cc:
1766         Test construction with param_type.
1767         * testsuite/26_numerics/random/binomial_distribution/cons/parms.cc:
1768         Likewise.
1769         * testsuite/26_numerics/random/cauchy_distribution/cons/parms.cc:
1770         Likewise.
1771         * testsuite/26_numerics/random/chi_squared_distribution/cons/parms.cc:
1772         Likewise.
1773         * testsuite/26_numerics/random/exponential_distribution/cons/parms.cc:
1774         Likewise.
1775         * testsuite/26_numerics/random/extreme_value_distribution/cons/
1776         parms.cc: Likewise.
1777         * testsuite/26_numerics/random/fisher_f_distribution/cons/parms.cc:
1778         Likewise.
1779         * testsuite/26_numerics/random/gamma_distribution/cons/parms.cc:
1780         Likewise.
1781         * testsuite/26_numerics/random/geometric_distribution/cons/parms.cc:
1782         Likewise.
1783         * testsuite/26_numerics/random/lognormal_distribution/cons/parms.cc:
1784         Likewise.
1785         * testsuite/26_numerics/random/negative_binomial_distribution/cons/
1786         parms.cc: Likewise.
1787         * testsuite/26_numerics/random/normal_distribution/cons/parms.cc:
1788         Likewise.
1789         * testsuite/26_numerics/random/poisson_distribution/cons/parms.cc:
1790         Likewise.
1791         * testsuite/26_numerics/random/student_t_distribution/cons/parms.cc:
1792         Likewise.
1793         * testsuite/26_numerics/random/uniform_int_distribution/cons/parms.cc:
1794         Likewise.
1795         * testsuite/26_numerics/random/uniform_real_distribution/cons/parms.cc:
1796         Likewise.
1797         * testsuite/26_numerics/random/weibull_distribution/cons/parms.cc:
1798         Likewise.
1799         * testsuite/ext/random/arcsine_distribution/cons/parms.cc: Likewise.
1800         * testsuite/ext/random/beta_distribution/cons/parms.cc: Likewise.
1801         * testsuite/ext/random/hoyt_distribution/cons/parms.cc: Likewise.
1802         * testsuite/ext/random/hypergeometric_distribution/cons/parms.cc:
1803         Likewise.
1804         * testsuite/ext/random/k_distribution/cons/parms.cc: Likewise.
1805         * testsuite/ext/random/logistic_distribution/cons/parms.cc: Likewise.
1806         * testsuite/ext/random/nakagami_distribution/cons/parms.cc: Likewise.
1807         * testsuite/ext/random/normal_mv_distribution/cons/parms.cc: Likewise.
1808         * testsuite/ext/random/pareto_distribution/cons/parms.cc: Likewise.
1809         * testsuite/ext/random/rice_distribution/cons/parms.cc: Likewise.
1810         * testsuite/ext/random/triangular_distribution/cons/parms.cc:
1811         Likewise.
1812         * testsuite/ext/random/uniform_inside_sphere_distribution/cons/
1813         parms.cc: Likewise.
1814         * testsuite/ext/random/von_mises_distribution/cons/parms.cc: Likewise.
1816         PR libstdc++/72792
1817         * include/bits/alloc_traits.h (__allocator_traits_base::__diff_type)
1818         (__allocator_traits_base::__size_type): Remove.
1819         (allocator_traits::_Ptr): New class template to detect const and void
1820         pointer types without instantiating pointer_traits::rebind
1821         unnecessarily.
1822         (allocator_traits::_Diff): Likewise for detecting difference_type.
1823         (allocator_traits::_Size): New class template to detect size_type
1824         without instantiating make_unsigned unnecessarily.
1825         * include/bits/ptr_traits.h (pointer_traits::element_type): Use
1826         __detected_or_t instead of __detected_or_t_.
1827         * include/std/type_traits (__detected_or_t_): Remove.
1828         * testsuite/20_util/allocator_traits/members/pointers.cc: New test.
1830         PR libstdc++/72792
1831         PR libstdc++/72793
1832         * include/bits/alloc_traits.h (__allocator_traits_base::__rebind):
1833         Replace with class template using void_t.
1834         (__alloc_rebind): Define in terms of
1835         __allocator_traits_base::__rebind.
1836         (allocator_traits): Remove unconditional static_assert for
1837         rebind_alloc.
1838         * include/bits/ptr_traits.h (__replace_first_arg): Remove type member.
1839         (pointer_traits::__rebind): Replace with class template using void_t.
1840         (pointer_traits::rebind): Define in terms of __rebind.
1841         (pointer_traits): Remove unconditional static_assert for rebind.
1842         * testsuite/20_util/allocator_traits/members/rebind_alloc.cc: New test.
1843         * testsuite/20_util/pointer_traits/rebind.cc: New test.
1845         PR libstdc++/69321
1846         * include/experimental/any (__any_caster): Avoid instantiating
1847         manager function for types that can't be stored in any.
1848         * include/std/any (__any_caster): Likewise.
1849         * testsuite/20_util/any/misc/any_cast.cc: Test non-copyable type.
1850         * testsuite/experimental/any/misc/any_cast.cc: Likewise.
1852         PR libstdc++/64903
1853         * include/bits/stl_algo.h (is_partitioned): Use increment instead of
1854         std::advance.
1856 2017-01-19  Jonathan Wakely  <jwakely@redhat.com>
1858         PR libstdc++/79156
1859         * include/bits/shared_ptr_base.h (__enable_shared_from_this_base):
1860         Fix return type.
1861         (__enable_shared_from_this): Declare __shared_ptr as a friend.
1862         * testsuite/ext/shared_ptr/1.cc: New test.
1864         PR libstdc++/64903
1865         * include/bits/stl_algo.h (is_partitioned): Don't retest the partition
1866         point.
1867         * testsuite/25_algorithms/is_partitioned/2.cc: New test.
1869         * doc/xml/manual/abi.xml: Fix typo.
1870         * doc/html/manual/abi.html: Likewise.
1872         PR libstdc++/67085
1873         * include/bits/predefined_ops.h (_Iter_less_val, _Val_less_iter): Add
1874         converting constructors from _Iter_less_iter.
1875         (_Iter_comp_val, _Val_comp_iter): Add converting constructors from
1876         _Iter_comp_iter.
1877         (__iter_comp_val(_Iter_comp_iter<C>): Use converting constructor.
1878         (__val_comp_iter(_Iter_comp_iter<C>): Likewise.
1879         * include/bits/stl_heap.h (__is_heap_until, __push_heap, __pop_heap)
1880         (__make_heap, __sort_heap): Change _Compare parameters to references.
1881         (__is_heap, push_heap, __adjust_heap, __pop_heap, pop_heap)
1882         (__make_heap, make_heap, sort_heap, is_heap_until): Pass comparison
1883         functions as lvalues.
1884         (is_heap): Call __is_heap_until directly to avoid copying __comp.
1885         * testsuite/23_containers/priority_queue/67085.cc: Adjust test to
1886         count copies during construction with empty sequence.
1888         PR libstdc++/67085
1889         * include/bits/stl_heap.h (__is_heap): Use _GLIBCXX_MOVE.
1890         (__make_heap, __sort_heap): Don't use _GLIBCXX_MOVE inside loops.
1891         * testsuite/23_containers/priority_queue/67085.cc: Adjust expected
1892         number of copies.
1893         * testsuite/25_algorithms/make_heap/movable.cc: New test.
1895         PR libstdc++/67085
1896         * include/bits/stl_heap.h (push_heap, __adjust_heap, __pop_heap)
1897         (pop_heap, __make_heap, make_heap, __sort_heap, sort_heap): Use
1898         _GLIBCXX_MOVE when passing comparison function to other functions.
1899         (is_heap_until, is_heap): Use std::move when passing comparison
1900         function.
1901         * testsuite/23_containers/priority_queue/67085.cc: New test.
1903         PR libstdc++/78905
1904         * doc/xml/manual/abi.xml (abi.versioning.history): Add markup to
1905         macro names, filenames, and literal values. Document _GLIBCXX_RELEASE.
1906         Document that the deprecated _GLIBCXX_VERSION macro was removed for
1907         the 4.0.0 release.
1908         * doc/html/*: Regenerate.
1909         * include/Makefile.am (_GLIBCXX_RELEASE): Set value.
1910         * include/Makefile.in: Regenerate.
1911         * include/bits/c++config (_GLIBCXX_RELEASE): Add #define.
1912         * testsuite/ext/profile/mutex_extensions_neg.cc: Use lineno of 0 in
1913         dg-error.
1915 2017-01-18  Jonathan Wakely  <jwakely@redhat.com>
1917         PR libstdc++/69301
1918         * include/std/atomic (atomic<T>::load, atomic<T>::exchange): Use
1919         aligned buffer instead of default-initialized variable.
1920         * testsuite/29_atomics/atomic/69301.cc: New test.
1921         * include/experimental/memory (observer_ptr::release): Use reserved
1922         name.
1923         * include/ext/pointer.h (_Pointer_adapter::operator++(int))
1924         (_Pointer_adapter::operator--(int)): Likewise.
1926         PR libstdc++/68925
1927         * include/experimental/random (randint): Use temporary instead of
1928         thread_local static.
1930 2017-01-17  Joshua Conner  <joshconner@google.com>
1932         * crossconfig.m4: Add fuchsia OS.
1933         * configure: Regenerate.
1935 2017-01-17  Jonathan Wakely  <jwakely@redhat.com>
1937         PR libstdc++/69699
1938         * doc/xml/manual/abi.xml (abi.versioning.history): Explain why the
1939         __GLIBCXX__ macro is not useful. Remove redundant date information
1940         and link to the GCC release timeline.
1941         (abi.versioning.active): Move partial sentence into the previous
1942         paragraph.
1943         * doc/html/*: Regenerate.
1945         PR libstdc++/79114
1946         * libsupc++/nested_exception.h (throw_with_nested): Use decay instead
1947         of remove_reference.
1948         * testsuite/18_support/nested_exception/79114.cc: New test.
1950 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
1952         PR other/79046
1953         * configure.ac: Add GCC_BASE_VER.
1954         * fragment.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
1955         get version from BASE-VER file.
1956         * po/Makefile.in: Regenerated.
1957         * libsupc++/Makefile.in: Regenerated.
1958         * testsuite/Makefile.in: Regenerated.
1959         * src/Makefile.in: Regenerated.
1960         * configure: Regenerated.
1961         * Makefile.in: Regenerated.
1962         * include/Makefile.in: Regenerated.
1963         * doc/Makefile.in: Regenerated.
1964         * python/Makefile.in: Regenerated.
1965         * src/c++11/Makefile.in: Regenerated.
1966         * src/c++98/Makefile.in: Regenerated.
1967         * src/filesystem/Makefile.in: Regenerated.
1969 2017-01-16  Jonathan Wakely  <jwakely@redhat.com>
1971         PR libstdc++/66145
1972         * src/c++11/functexcept.cc: Use new ABI for std::ios_base::failure
1973         exceptions.
1974         * testsuite/27_io/basic_ios/copyfmt/char/1.cc: Don't override ABI
1975         for test, so new ios::failure can be caught.
1976         * testsuite/27_io/basic_ios/exceptions/char/1.cc: Likewise.
1977         * testsuite/27_io/basic_istream/extractors_arithmetic/char/
1978         exceptions_failbit.cc: Likewise.
1979         * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/
1980         exceptions_failbit.cc: Likewise.
1981         * testsuite/27_io/basic_istream/extractors_other/char/
1982         exceptions_null.cc: Likewise.
1983         * testsuite/27_io/basic_istream/extractors_other/wchar_t/
1984         exceptions_null.cc: Likewise.
1985         * testsuite/27_io/basic_istream/sentry/char/12297.cc: Likewise.
1986         * testsuite/27_io/basic_istream/sentry/wchar_t/12297.cc: Likewise.
1987         * testsuite/27_io/basic_ostream/inserters_other/char/
1988         exceptions_null.cc: Likewise.
1989         * testsuite/27_io/basic_ostream/inserters_other/wchar_t/
1990         exceptions_null.cc: Likewise.
1991         * testsuite/27_io/ios_base/storage/2.cc: Likewise.
1993         PR libstdc++/78702
1994         * include/bits/locale_classes.h (locale::facet::__shim): Change from
1995         private to protected.
1996         * src/c++11/cxx11-shim_facets.cc (__shim_accessor): Define helper to
1997         make locale::facet::__shim accessible.
1999 2017-01-16  Ville Voutilainen  <ville.voutilainen@gmail.com>
2001         PR libstdc++/78389
2002         * include/bits/list.tcc (merge(list&&)): Fix backwards size adjustments.
2003         (merge(list&&, _StrictWeakOrdering)): Likewise.
2004         * testsuite/23_containers/list/operations/78389.cc: Add
2005         better test for the sizes.
2007 2017-01-14  Jonathan Wakely  <jwakely@redhat.com>
2009         * testsuite/23_containers/array/specialized_algorithms/swap_cxx17.cc:
2010         Skip test when -D_GLIBCXX_PROFILE mode is included in options.
2011         * testsuite/23_containers/map/modifiers/extract.cc: Likewise.
2012         * testsuite/23_containers/map/modifiers/insert_or_assign/1.cc:
2013         Likewise.
2014         * testsuite/23_containers/map/modifiers/try_emplace/1.cc: Likewise.
2015         * testsuite/23_containers/multimap/modifiers/extract.cc: Likewise.
2016         * testsuite/23_containers/multiset/modifiers/extract.cc: Likewise.
2017         * testsuite/23_containers/set/modifiers/extract.cc: Likewise.
2018         * testsuite/23_containers/unordered_map/modifiers/extract.cc:
2019         Likewise.
2020         * testsuite/23_containers/unordered_multimap/modifiers/extract.cc::
2021         Likewise.
2022         * testsuite/23_containers/unordered_multiset/modifiers/extract.cc::
2023         Likewise.
2024         * testsuite/23_containers/unordered_set/modifiers/extract.cc:
2025         Likewise.
2026         * testsuite/23_containers/vector/modifiers/insert_vs_emplace.cc:
2027         Likewise.
2028         * testsuite/25_algorithms/binary_search/partitioned.cc: Likewise.
2029         * testsuite/25_algorithms/equal_range/partitioned.cc: Likewise.
2030         * testsuite/25_algorithms/lexicographical_compare/71545.cc: Likewise.
2031         * testsuite/25_algorithms/lower_bound/partitioned.cc: Likewise.
2032         * testsuite/25_algorithms/upper_bound/partitioned.cc: Likewise.
2033         * testsuite/libstdc++-prettyprinters/cxx11.cc: Likewise.
2034         * testsuite/libstdc++-prettyprinters/cxx17.cc: Likewise.
2035         * testsuite/libstdc++-prettyprinters/debug.cc: Likewise.
2036         * testsuite/libstdc++-prettyprinters/debug_cxx11.cc: Likewise.
2037         * testsuite/libstdc++-prettyprinters/libfundts.cc: Likewise.
2038         * testsuite/libstdc++-prettyprinters/simple.cc: Likewise.
2039         * testsuite/libstdc++-prettyprinters/simple11.cc: Likewise.
2040         * testsuite/libstdc++-prettyprinters/whatis.cc: Likewise.
2042 2017-01-13  Jonathan Wakely  <jwakely@redhat.com>
2044         PR libstdc++/65411
2045         * config/io/basic_file_stdio.cc (__basic_file<char>::close()): Don't
2046         retry fclose on EINTR.
2048         * include/profile/base.h: Remove unused header that leads to header
2049         cycle in C++17 mode.
2051         PR libstdc++/79075
2052         * include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI] (basic_string):
2053         Make _If_sv private.
2054         [!_GLIBCXX_USE_CXX11_ABI] (basic_string): Add member functions taking
2055         basic_string_view arguments.
2057         PR libstdc++/79075
2058         * testsuite/lib/libstdc++.exp (check_v3_target_filesystem_ts): Remove
2059         redundant option from cxxflags.
2060         (check_effective_target_cxx11-abi): Define.
2061         * testsuite/21_strings/basic_string/allocator/71964.cc: Use cxx11-abi
2062         effective target.
2063         * testsuite/21_strings/basic_string/allocator/char/copy.cc: Likewise.
2064         * testsuite/21_strings/basic_string/allocator/char/copy_assign.cc:
2065         Likewise.
2066         * testsuite/21_strings/basic_string/allocator/char/minimal.cc:
2067         Likewise.
2068         * testsuite/21_strings/basic_string/allocator/char/move.cc: Likewise.
2069         * testsuite/21_strings/basic_string/allocator/char/move_assign.cc:
2070         Likewise.
2071         * testsuite/21_strings/basic_string/allocator/char/noexcept.cc:
2072         Likewise.
2073         * testsuite/21_strings/basic_string/allocator/char/swap.cc: Likewise.
2074         * testsuite/21_strings/basic_string/allocator/wchar_t/copy.cc:
2075         Likewise.
2076         * testsuite/21_strings/basic_string/allocator/wchar_t/copy_assign.cc:
2077         Likewise.
2078         * testsuite/21_strings/basic_string/allocator/wchar_t/minimal.cc:
2079         Likewise.
2080         * testsuite/21_strings/basic_string/allocator/wchar_t/move.cc:
2081         Likewise.
2082         * testsuite/21_strings/basic_string/allocator/wchar_t/move_assign.cc:
2083         Likewise.
2084         * testsuite/21_strings/basic_string/allocator/wchar_t/noexcept.cc:
2085         Likewise.
2086         * testsuite/21_strings/basic_string/allocator/wchar_t/swap.cc:
2087         Likewise.
2088         * testsuite/23_containers/list/61347.cc: Likewise.
2089         * testsuite/27_io/basic_fstream/cons/base.cc: Likewise.
2090         * testsuite/27_io/ios_base/failure/cxx11.cc: Likewise.
2092 2017-01-13  Ville Voutilainen  <ville.voutilainen@gmail.com>
2094         PR libstdc++/78389
2095         * include/bits/list.tcc (merge(list&&)):
2096         Adjust list sizes if the comparator throws.
2097         (merge(list&&, _StrictWeakOrdering)): Likewise.
2098         (sort()): Splice elements back from the scratch buffers
2099         if the comparator throws.
2100         (sort(_StrictWeakOrdering)): Likewise.
2101         * testsuite/23_containers/list/operations/78389.cc: New.
2103 2017-01-13  Jonathan Wakely  <jwakely@redhat.com>
2105         * testsuite/23_containers/unordered_set/allocator/ext_ptr.cc: Mark
2106         XFAIL for C++17 until node reinsertion supports fancy pointers.
2108         PR libstdc++/78361
2109         * testsuite/20_util/add_pointer/value.cc: Test forming function
2110         pointers.
2112 2017-01-13  Michael Brune  <lucdanton@free.fr>
2114         PR libstdc++/78361
2115         * include/std/type_traits (__is_referenceable): Handle noexcept
2116         function types.
2118 2017-01-12  Jonathan Wakely  <jwakely@redhat.com>
2120         PR libstdc++/77528
2121         * include/bits/stl_queue.h (queue, priority_queue): Remove default
2122         member-initializers and define default constructors as templates with
2123         constraints.
2124         * include/bits/stl_stack.h (stack): Likewise.
2125         * testsuite/23_containers/priority_queue/requirements/constructible.cc:
2126         New.
2127         * testsuite/23_containers/priority_queue/requirements/
2128         explicit_instantiation/1.cc: Test more instantiations.
2129         * testsuite/23_containers/priority_queue/requirements/
2130         explicit_instantiation/1_c++98.cc: Likewise.
2131         * testsuite/23_containers/queue/requirements/constructible.cc: New.
2132         * testsuite/23_containers/stack/requirements/constructible.cc: New.
2134         PR libstdc++/66284
2135         * doc/xml/manual/intro.xml: Document LWG 2781 change.
2136         * doc/html/*: Regenerate.
2137         * include/std/functional (_Function_base::_Ref_manager): Remove.
2138         (_Function_handler): Remove partial specializations for
2139         reference_wrapper.
2140         (function::target): Remove special case for const qualification.
2141         * testsuite/20_util/function/6.cc: Adjust tests for target type.
2142         * testsuite/20_util/function/7.cc: Likewise.
2143         * testsuite/20_util/function/8.cc: Likewise.
2145 2017-01-11  Jonathan Wakely  <jwakely@redhat.com>
2147         PR libstdc++/78134
2148         * include/bits/stl_map.h (map::lower_bound, map::upper_bound)
2149         (map::equal_range): Fix return type of heterogeneous overloads.
2150         * include/bits/stl_multimap.h (multimap::lower_bound)
2151         (multimap::upper_bound, multimap::equal_range): Likewise.
2152         * include/bits/stl_multiset.h (multiset::lower_bound)
2153         (multiset::upper_bound, multiset::equal_range): Likewise.
2154         * include/bits/stl_set.h (set::lower_bound, set::upper_bound)
2155         (set::equal_range): Likewise.
2156         * testsuite/23_containers/map/operations/2.cc
2157         * testsuite/23_containers/multimap/operations/2.cc
2158         * testsuite/23_containers/multiset/operations/2.cc
2159         * testsuite/23_containers/set/operations/2.cc
2161         PR libstdc++/78273
2162         * include/bits/stl_map.h (map::count<_Kt>(const _Kt&)): Don't assume
2163         the heterogeneous comparison can only find one match.
2164         * include/bits/stl_set.h (set::count<_Kt>(const _Kt&)): Likewise.
2165         * testsuite/23_containers/map/operations/2.cc: Test count works with
2166         comparison function that just partitions rather than sorting.
2167         * testsuite/23_containers/set/operations/2.cc: Likewise.
2169 2017-01-11  Ville Voutilainen  <ville.voutilainen@gmail.com>
2171         Reduce the size of variant, it doesn't need an index of
2172         type size_t internally.
2173         * include/std/variant (parse_numbers.h): New include.
2174         (__select_index): New.
2175         (_Variant_storage<false, _Types...>::_M_reset_impl): Use
2176         _index_type for comparison with variant_npos.
2177         (_Variant_storage<false, _Types...>::__index_type): New.
2178         (_Variant_storage<false, _Types...>::_M_index): Change the
2179         type from size_t to __index_type.
2180         (_Variant_storage<true, _Types...>::__index_type): New.
2181         (_Variant_storage<true, _Types...>::_M_index): Change the
2182         type from size_t to __index_type.
2183         (_Variant_base::_M_valid): Use _Storage::__index_type
2184         for comparison with variant_npos.
2185         (variant::index): Use _Base::_Storage::__index_type
2186         for comparison with variant_npos.
2187         * testsuite/20_util/variant/index_type.cc: New.
2189 2017-01-10  Jonathan Wakely  <jwakely@redhat.com>
2191         * testsuite/18_support/exception_ptr/60612-unexpected.cc: Adjust
2192         effective target selector to prevent running in C++17 mode.
2194         PR libstdc++/77528
2195         * include/bits/stl_queue.h (queue::c): Add default member initializer.
2196         (queue::queue()): Add constructor and define as defaulted.
2197         (queue::queue(_Sequence&&)): Remove default argument.
2198         (priority_queue::c, priority_queue::comp): Add default member
2199         initializers.
2200         (priority_queue::priority_queue()): Add constructor and define as
2201         defaulted.
2202         (priority_queue::priority_queue(const _Compare&, _Sequence&&)):
2203         Remove default argument for first parameter.
2204         * include/bits/stl_stack.h (stack::c): Add default member initializer.
2205         (stack::stack()): Add constructor and define as defaulted.
2206         (stack::stack(const _Sequence&)): Remove default argument.
2207         * testsuite/23_containers/priority_queue/requirements/
2208         explicit_instantiation/1.cc: Test explicit instantiation with
2209         non-DefaultConstructible sequence.
2210         * testsuite/23_containers/priority_queue/77528.cc: New test.
2211         * testsuite/23_containers/priority_queue/requirements/
2212         explicit_instantiation/1_c++0x.cc: Replace with 1_c++98.cc.
2213         * testsuite/23_containers/queue/77528.cc: New test.
2214         * testsuite/23_containers/queue/requirements/explicit_instantiation/
2215         1.cc: Test explicit instantiation with non-DefaultConstructible
2216         sequence.
2217         * testsuite/23_containers/queue/requirements/explicit_instantiation/
2218         1_c++0x.cc: Replace with 1_c++98.cc.
2219         * testsuite/23_containers/stack/77528.cc: New test.
2220         * testsuite/23_containers/stack/requirements/explicit_instantiation/
2221         1.cc: Test explicit instantiation with non-DefaultConstructible
2222         sequence.
2223         * testsuite/23_containers/stack/requirements/explicit_instantiation/
2224         1_c++0x.cc: Replace with 1_c++98.cc.
2226 2017-01-10  Felipe Magno de Almeida <felipe@expertisesolutions.com.br>
2228         * include/bits/locale_facets_nonio.tcc
2229         (time_get::_M_extract_via_format): Avoid compilation errors with
2230         non-standard struct tm.
2232 2017-01-10  François Dumont  <fdumont@gcc.gnu.org>
2233             Jonathan Wakely  <jwakely@redhat.com>
2235         * python/libstdcxx/v6/printers.py (_versioned_namespace): Define.
2236         (is_specialization, strip_versioned_namespace): New helpers functions
2237         to work with symbols in the versioned namespace.
2238         (Printer.add_version): Add second name using versioned namespace.
2239         (add_one_template_type_printer, add_one_type_printer): Add second
2240         type printers using versioned namespace.
2241         (register_type_printers): Add template type printer for basic_string.
2242         (build_libstdcxx_dictionary): Remove dead code.
2243         * python/libstdcxx/v6/xmethods.py: Make all matchers look for
2244         versioned namespace.
2245         * testsuite/libstdc++-prettyprinters/48362.cc: Adjust expected
2246         results.
2247         * testsuite/libstdc++-prettyprinters/whatis.cc: Likewise.
2249 2017-01-09  Jonathan Wakely  <jwakely@redhat.com>
2251         PR libstdc++/79017
2252         * acinclude.m4 (GLIBCXX_CHECK_C99_TR1): Check for llrint and llround
2253         functions separately on darwin and if they're missing define
2254         _GLIBCXX_NO_C99_ROUNDING_FUNCS.
2255         * config.h.in: Regenerate.
2256         * configure: Regenerate.
2257         * include/c_global/cmath [_GLIBCXX_NO_C99_ROUNDING_FUNCS] (llrint)
2258         (llrintf, llrintl, llround, llroundf, llroundl): Do not define.
2260         * testsuite/30_threads/condition_variable/members/3.cc: Use new macro
2261         to detect correct thread_local destructors.
2262         * testsuite/util/testsuite_hooks.h (CORRECT_THREAD_LOCAL_DTORS):
2263         Define.
2265 2017-01-09  Jonathan Wakely  <jwakely@redhat.com>
2266             Aditya Kumar  <hiraditya@msn.com>
2268         PR libstdc++/66414
2269         * include/bits/basic_string.tcc
2270         (basic_string::find(const CharT*, size_type, size_type)): Optimize.
2272 2017-01-06  Jonathan Wakely  <jwakely@redhat.com>
2274         * testsuite/21_strings/basic_string/operations/find/char/6.cc: New.
2275         * testsuite/21_strings/basic_string/operations/find/wchar_t/6.cc: New.
2277         * testsuite/util/performance/priority_queue/mem_usage/pop_test.hpp:
2278         Include <cassert> header.
2280         PR libstdc++/78968
2281         * crossconfig.m4: Check for __cxa_thread_atexit on *-*-freebsd*.
2282         * configure: Regenerate.
2284 2017-01-06  Barrett Adair  <barrettellisadair@gmail.com>
2285             Jonathan Wakely  <jwakely@redhat.com>
2287         * include/std/variant (variant, swap): Replace __and_ usage with fold
2288         expressions.
2290 2017-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2292         PR go/78978
2293         * acinclude.m4 (GLIBCXX_CHECK_ASSEMBLER_HWCAP): Remove.
2294         * configure.ac: Call GCC_CHECK_ASSEMBLER_HWCAP instead of
2295         GLIBCXX_CHECK_ASSEMBLER_HWCAP.
2296         * fragment.am (CONFIG_CXXFLAGS): Use HWCAP_CFLAGS instead of
2297         HWCAP_FLAGS.
2298         * aclocal.m4: Regenerate.
2299         * configure: Regenerate.
2300         * Makefile.in, doc/Makefile.in, include/Makefile.in,
2301         libsupc++/Makefile.in, po/Makefile.in, python/Makefile.in,
2302         src/Makefile.in, src/c++11/Makefile.in, src/c++98/Makefile.in,
2303         src/filesystem/Makefile.in, testsuite/Makefile.in: Regenerate.
2305 2017-01-06  Jonathan Wakely  <jwakely@redhat.com>
2307         * include/bits/c++config (_GLIBCXX_ASSERTIONS): Avoid redefinition.
2309         PR libstdc++/78991
2310         * include/bits/predefined_ops.h (_Iter_comp_iter, _Iter_comp_val)
2311         (_Val_comp_iter, _Iter_equals_val, _Iter_pred, _Iter_comp_to_val)
2312         (_Iter_comp_to_iter, _Iter_negate): Make constructors explicit and
2313         move function objects.
2314         (__iter_comp_iter, __iter_comp_val, __val_comp_iter, __pred_iter)
2315         (__iter_comp_val, __iter_comp_iter, __negate): Move function objects.
2316         * testsuite/25_algorithms/sort/78991.cc: New test.
2318 2017-01-05  Jonathan Wakely  <jwakely@redhat.com>
2320         * include/bits/std_function.h (function::_Signature_type): Remove.
2321         (function::function(_Functor)): Adjust.
2323 2017-01-05  Tim Shen  <timshen@google.com>
2325         PR libstdc++/78996
2326         * include/std/variant (__gen_vtable_impl): rename __unused to
2327         __dimensions to avoid naming conflict.
2329 2017-01-04  Jonathan Wakely  <jwakely@redhat.com>
2331         PR libstdc++/78968
2332         * config.h.in: Regenerate.
2333         * configure: Likewise.
2334         * configure.ac: Check for __cxa_thread_atexit.
2335         * libsupc++/atexit_thread.cc [_GLIBCXX_HAVE___CXA_THREAD_ATEXIT]:
2336         Don't define __cxa_thread_atexit if libc provides it.
2338 2017-01-04  Ville Voutilainen  <ville.voutilainen@gmail.com>
2340         Implement 2801, Default-constructibility of unique_ptr.
2341         * include/bits/unique_ptr.h (__uniq_ptr_impl::_DeleterConstraint): New.
2342         (unique_ptr::_DeleterConstraint): Likewise.
2343         (unique_ptr()): Constrain.
2344         (unique_ptr(pointer)): Likewise.
2345         (unique_ptr(nullptr_t)): Likewise.
2346         (unique_ptr<_Tp[], _Dp>::_DeleterConstraint): New.
2347         (unique_ptr<_Tp[], _Dp>::unique_ptr()): Constrain.
2348         (unique_ptr<_Tp[], _Dp>::unique_ptr(_Up)): Likewise.
2349         (unique_ptr<_Tp[], _Dp>::unique_ptr(nullptr_t)): Likewise.
2350         * testsuite/20_util/unique_ptr/assign/48635_neg.cc: Adjust.
2351         * testsuite/20_util/unique_ptr/cons/cv_qual_neg.cc: Likewise.
2352         * testsuite/20_util/unique_ptr/cons/default.cc: New.
2353         * testsuite/20_util/unique_ptr/cons/ptr_deleter_neg.cc: Adjust.
2355 2017-01-04  Pauli Nieminen  <suokkos@gmail.com>
2356             Jonathan Wakely  <jwakely@redhat.com>
2358         PR libstdc++/64735
2359         * acinclude.m4 (GLIBCXX_CHECK_EXCEPTION_PTR_SYMVER): Define.
2360         * config.h.in: Regenerate.
2361         * config/abi/pre/gnu.ver [HAVE_EXCEPTION_PTR_SINCE_GCC46]
2362         (GLIBCXX_3.4.15, GLIBCXX_3.4.21, CXXABI_1.3.3, CXXABI_1.3.5): Make
2363         exports for exception_ptr, nested_exception, and future conditional.
2364         [HAVE_EXCEPTION_PTR_SINCE_GCC46] (GLIBCXX_3.4.23, CXXABI_1.3.11): Add
2365         exports for exception_ptr, nested_exception, and future conditional.
2366         * configure: Regenerate.
2367         * configure.ac: Use GLIBCXX_CHECK_EXCEPTION_PTR_SYMVER.
2368         * include/std/future: Remove check for ATOMIC_INT_LOCK_FREE
2369         * libsupc++/eh_atomics.h: New file for internal use only.
2370         (__eh_atomic_inc, __eh_atomic_dec): New.
2371         * libsupc++/eh_ptr.cc (exception_ptr::_M_addref)
2372         (exception_ptr::_M_release) (__gxx_dependent_exception_cleanup)
2373         (rethrow_exception): Use eh_atomics.h reference counting helpers.
2374         * libsupc++/eh_throw.cc (__gxx_exception_cleanup): Likewise.
2375         * libsupc++/eh_tm.cc (free_any_cxa_exception): Likewise.
2376         * libsupc++/exception: Remove check for ATOMIC_INT_LOCK_FREE.
2377         * libsupc++/exception_ptr.h: Likewise.
2378         * libsupc++/guard.cc: Include header for ATOMIC_INT_LOCK_FREE macro.
2379         * libsupc++/nested_exception.cc: Remove check for
2380         ATOMIC_INT_LOCK_FREE.
2381         * libsupc++/nested_exception.h: Likewise.
2382         * src/c++11/future.cc: Likewise.
2383         * testsuite/18_support/exception_ptr/*: Remove atomic builtins checks.
2384         * testsuite/18_support/nested_exception/*: Likewise.
2385         * testsuite/30_threads/async/*: Likewise.
2386         * testsuite/30_threads/future/*: Likewise.
2387         * testsuite/30_threads/headers/future/types_std_c++0x.cc: Likewise.
2388         * testsuite/30_threads/packaged_task/*: Likewise.
2389         * testsuite/30_threads/promise/*: Likewise.
2390         * testsuite/30_threads/shared_future/*: Likewise.
2392 2017-01-03  Gerald Pfeifer  <gerald@pfeifer.com>
2394         * doc/xml/manual/documentation_hacking.xml: sourceforge.net now
2395         defaults to https; adjust reference.
2397 2017-01-03  Jonathan Wakely  <jwakely@redhat.com>
2399         PR libstdc++/78956
2400         * include/std/thread (thread(const thread&&)): Add deleted
2401         constructor.
2402         * testsuite/30_threads/thread/cons/lwg2097.cc: New test.
2404         * doc/xml/manual/spine.xml: Update copyright years.
2405         * doc/xml/manual/build_hacking.xml: Fix spelling of libbuilddir.
2406         * doc/xml/manual/test.xml: Likewise.
2407         * doc/html/*: Regenerate.
2409 2017-01-01  Gerald Pfeifer  <gerald@pfeifer.com>
2411         * doc/xml/faq.xml: Update address of C++ ABI link.
2412         * doc/xml/manual/abi.xml: Ditto.
2414 2017-01-01  Jakub Jelinek  <jakub@redhat.com>
2416         Update copyright years.
2418 Copyright (C) 2017 Free Software Foundation, Inc.
2420 Copying and distribution of this file, with or without modification,
2421 are permitted in any medium without royalty provided the copyright
2422 notice and this notice are preserved.