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