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