1 2017-05-31 Jonathan Wakely <jwakely@redhat.com>
4 * include/bits/stl_bvector.h (vector<bool>::_M_initialize): Avoid
5 null pointer dereference when size is zero.
6 * testsuite/23_containers/vector/bool/80893.cc: New.
7 * testsuite/util/testsuite_allocator.h (PointerBase::PointerBase):
8 Add non-explicit constructor from nullptr.
9 (PointerBase::derived() const): Add const-qualified overload.
11 2017-05-20 Tim Shen <timshen@google.com>
14 * include/std/variant(variant::variant): SFINAE on is_same first.
15 * testsuite/20_util/variant/any.cc: test case.
17 2017-05-24 Jonathan Wakely <jwakely@redhat.com>
19 * src/c++11/random.cc (random_device::_M_getentropy): Use __CHAR_BIT__
20 instead of fixed number of bits.
22 2017-05-24 Andreas Schwab <schwab@suse.de>
24 * config/abi/post/ia64-linux-gnu/baseline_symbols.txt: Update.
25 * config/abi/post/m68k-linux-gnu/baseline_symbols.txt: Likewise.
27 2017-05-23 Xi Ruoyao <ryxi@stu.xidian.edu.cn>
28 Jonathan Wakely <jwakely@redhat.com>
31 * acinclude.m4: Bump libtool_VERSION.
32 * config/abi/pre/gnu.ver: Create GLIBCXX_3.4.24 with new symbol.
33 * config.h.in: Regenerate.
34 * configure: Regenerate.
35 * configure.ac: Add test for <linux/random.h>.
36 * doc/xml/manual/abi.xml: Document new library version.
37 * include/bits/random.h (random_device::entropy)
38 [_GLIBCXX_USE_RANDOM_TR1]: Add call to new _M_getentropy member.
39 (random_device::_M_getentropy): Declare.
40 * src/c++11/random.cc (random_device::_M_getentropy): Define.
41 * testsuite/util/testsuite_abi.cc: Add GLIBCXX_3.4.24 to known
42 versions, and make it the latest version.
44 2017-05-23 Xi Ruoyao <ryxi@stu.xidian.edu.cn>
47 * include/bits/locale_facets.tcc (num_get::_M_extract_int): Add
48 explicit conversion to avoid signed overflow.
50 2017-05-19 Jonathan Wakely <jwakely@redhat.com>
53 * include/bits/stl_algo.h (search): Add new overload for C++17.
54 * testsuite/25_algorithms/search/searcher.cc: New.
56 2017-05-18 Jonathan Wakely <jwakely@redhat.com>
59 * include/std/functional (_Mem_fn_traits_base): Add specializations
60 for noexcept member function types.
61 * testsuite/20_util/function_objects/mem_fn/80478.cc: New test.
63 2017-05-18 Jonathan Wakely <jwakely@redhat.com>
65 * doc/xml/manual/policy_data_structures.xml: Fix typo.
66 * doc/xml/manual/test_policy_data_structures.xml: Likewise.
67 * doc/html/*: Regenerate.
69 * doc/xml/manual/abi.xml: Document latest library versions.
70 * doc/xml/manual/build_hacking.xml: Document requirement to update
71 abi.xml when bumping library versions.
72 * doc/html/*: Regenerate.
74 2017-05-17 Jonathan Wakely <jwakely@redhat.com>
76 * include/bits/refwrap.h: Fix Doxygen warning.
77 * include/bits/specfun.h: Likewise.
78 * include/bits/std_function.h: Likewise.
79 * include/bits/stl_algo.h (set_union, set_intersection)
80 (set_difference, set_symmetric_difference): Add Doxygen @param tags
81 for output iterator parameters.
82 * include/bits/stl_iterator.h (inserter): Add Doxygen @param tag for
84 * include/std/mutex (try_lock, lock): Change Mutex to Lockable in
87 2017-05-17 Ville Voutilainen <ville.voutilainen@gmail.com>
89 Implement new C++ intrinsics __is_assignable and __is_constructible.
90 * include/std/type_traits (__do_is_static_castable_impl): Remove.
91 (__is_static_castable_impl, __is_static_castable_safe): Likewise.
92 (__is_static_castable, __do_is_direct_constructible_impl): Likewise.
93 (__is_direct_constructible_impl): Likewise.
94 (__is_direct_constructible_new_safe): Likewise.
95 (__is_base_to_derived_ref, __is_lvalue_to_rvalue_ref): Likewise.
96 (__is_direct_constructible_ref_cast): Likewise.
97 (__is_direct_constructible_new, __is_direct_constructible): Likewise.
98 (__do_is_nary_constructible_impl): Likewise.
99 (__is_nary_constructible_impl, __is_nary_constructible): Likewise.
100 (__is_constructible_impl): Likewise.
101 (is_constructible): Call the intrinsic.
102 (__is_assignable_helper): Remove.
103 (is_assignable): Call the intrinsic.
104 (is_trivially_constructible): Likewise.
105 (__is_trivially_copy_constructible_impl): New.
106 (is_trivially_copy_constructible): Use it.
107 (__is_trivially_move_constructible_impl): New.
108 (is_trivially_move_constructible): Use it.
109 (is_trivially_assignable): Call the intrinsic.
110 (__is_trivially_copy_assignable_impl): New.
111 (is_trivially_copy_assignable): Use it.
112 (__is_trivially_move_assignable_impl): New.
113 (is_trivially_move_assignable): Use it.
114 (testsuite/20_util/declval/requirements/1_neg.cc): Adjust.
115 (testsuite/20_util/is_trivially_copy_assignable/value.cc):
117 (testsuite/20_util/is_trivially_copy_constructible/value.cc): Likewise.
118 (testsuite/20_util/is_trivially_move_assignable/value.cc): Likewise.
119 (testsuite/20_util/is_trivially_move_constructible/value.cc): Likewise.
120 (testsuite/20_util/make_signed/requirements/typedefs_neg.cc): Adjust.
121 (testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc):
124 2017-05-16 Jonathan Wakely <jwakely@redhat.com>
126 * testsuite/experimental/source_location/1.cc: Change expected result
127 for source_location::current() used in default member initializer.
129 * doc/xml/manual/status_cxx2017.xml: Update status table.
130 * doc/html/*: Regenerate.
131 * include/Makefile.am: Add new header.
132 * include/Makefile.in: Regenerate.
133 * include/experimental/source_location: New header implementing N4519.
134 * testsuite/experimental/source_location/1.cc: New test.
137 * include/bits/shared_ptr_base.h [!__cpp_rtti] (type_info): Declare
138 outside versioned namespace.
140 * configure: Regenerate.
142 2017-05-16 Marc Glisse <marc.glisse@inria.fr>
144 * include/std/optional (_Optional_base::_M_get): Check precondition.
145 * testsuite/20_util/optional/cons/value_neg.cc: Update line numbers.
147 2017-05-16 Jonathan Wakely <jwakely@redhat.com>
149 * doc/xml/manual/appendix_contributing.xml: Link to test docs and
150 note higher DejaGnu version requirement.
151 * doc/html/*: Regenerate.
153 * doc/xml/manual/appendix_contributing.xml: Link to the list of bad
155 * doc/html/*: Regenerate.
157 2017-05-15 Jonathan Wakely <jwakely@redhat.com>
160 * include/bits/node_handle.h (_Node_insert_return): Reorder members.
161 (tuple_size, tuple_element): Remove partial specializations.
162 * include/bits/stl_tree.h (_Rb_tree::insert_return_type): Use
163 const_iterator for std::set.
164 * testsuite/23_containers/map/modifiers/extract.cc: New.
165 * testsuite/23_containers/set/modifiers/extract.cc: New.
166 * testsuite/23_containers/unordered_map/modifiers/extract.cc: New.
167 * testsuite/23_containers/unordered_set/modifiers/extract.cc: New.
169 2017-05-12 Jonathan Wakely <jwakely@redhat.com>
172 * include/std/utility (tuple_size<cv T>): Only define partial
173 specializations when tuple_size<T>::value is valid.
174 * testsuite/20_util/tuple/78939.cc: New.
175 * testsuite/20_util/tuple/cv_tuple_size_neg.cc: New.
177 2017-05-11 François Dumont <fdumont@gcc.gnu.org>
179 * include/bits/stl_tree.h [_GLIBCXX_INLINE_VERSION]
180 (_Rb_tree_impl<>): Remove _Is_pod_comparator
183 * include/debug/formatter.h [_GLIBCXX_INLINE_VERSION]
184 (__gnu_debug::_Error_formatter::_Parameter::_M_print_field): Remove.
185 (__gnu_debug::_Error_formatter::_Parameter::_M_print_description):
187 (__gnu_debug::_Error_formatter::_M_format_word): Remove.
188 (__gnu_debug::_Error_formatter::_M_print_word): Remove.
189 (__gnu_debug::_Error_formatter::_M_print_string): Remove.
190 (__gnu_debug::_Error_formatter::_M_get_max_length): Remove.
191 * src/c++11/debug.cc: Adapt.
192 * config/abi/pre/gnu-versioned-namespace.ver: Adapt.
194 2017-05-11 Jonathan Wakely <jwakely@redhat.com>
196 * doc/xml/manual/allocator.xml: Fix ViewCVS URLs.
197 * doc/xml/manual/mt_allocator.xml: Likewise.
198 * doc/html/*: Regenerate.
201 * include/bits/shared_ptr_base.h (_Sp_make_shared_tag::_S_ti): Define
202 function to get unique fake std::type_info reference.
203 (_Sp_counted_ptr_inplace::_M_get_deleter) [!__cpp_rtti]: Compare to
204 _S_ti() fake reference.
205 (__shared_ptr(_Sp_make_shared_tag, const Alloc&, Args&&...)): Share
206 single implementation with or without RTTI enable.
207 [!__cpp_rtti]: Pass fake reference to _M_get_deleter.
208 * testsuite/20_util/shared_ptr/creation/alloc.cc: Change expected
209 allocation and deallocation counts.
210 * testsuite/20_util/shared_ptr/creation/single_allocation.cc: New.
211 * testsuite/20_util/shared_ptr/creation/single_allocation_no_rtti.cc:
214 2017-05-10 François Dumont <fdumont@gcc.gnu.org>
216 Bump version namespace.
217 * config/abi/pre/gnu-versioned-namespace.ver: Bump version namespace
218 from __7 to __8. Bump GLIBCXX_7.0 to GLIBCXX_8.0.
219 * acinclude.m4 (libtool_VERSION): Bump to 8:0:0.
220 * include/bits/c++config: Adapt.
221 * include/bits/regex.h: Adapt.
222 * include/experimental/bits/fs_fwd.h: Adapt.
223 * include/experimental/bits/lfts_config.h: Adapt.
224 * include/std/variant: Adapt.
225 * python/libstdcxx/v6/printers.py: Adapt.
226 * testsuite/libstdc++-prettyprinters/48362.cc: Adapt.
228 * include/bits/stl_algobase.h (std::__iter_swap<false>): Remove
231 2017-05-09 Jason Merrill <jason@redhat.com>
233 * testsuite/24_iterators/container_access.cc (test03): Make il3 static.
235 2017-05-08 Jonathan Wakely <jwakely@redhat.com>
237 * include/std/optional: Use a separate static_assert per condition.
238 * testsuite/20_util/optional/cons/value_neg.cc: Update dg-error line
241 * doc/xml/manual/mt_allocator.xml: Clarify deallocation behaviour.
242 * doc/html/*: Regenerate.
244 2017-05-02 Hugo Beauzée-Luyssen <hugo@beauzee.fr>
247 * config/os/mingw32-w64/os_defines.h (_GLIBCXX_USE_WEAK_REF): Define.
249 2017-04-29 François Dumont <fdumont@gcc.gnu.org>
251 * testsuite/libstdc++-prettyprinters/48362.cc: Replace a regexp-test
254 2017-04-28 Jonathan Wakely <jwakely@redhat.com>
257 * include/bits/stl_construct.h (_Destroy, _Destroy_n): Add static
258 assertions to ensure type is destructible.
259 (destroy_at, destroy, destroy_n): Move from stl_uninitialized.h.
260 * include/bits/stl_uninitialized.h (destroy_at, destroy, destroy_n):
261 Move to stl_construct.h.
262 * testsuite/20_util/specialized_algorithms/memory_management_tools/
263 destroy_neg.cc: New test.
264 * testsuite/23_containers/vector/cons/destructible_neg.cc: New test.
266 * testsuite/17_intro/headers/c++1998/stdc++_assert_neg.cc: Remove
267 superfluous "" in dg-error.
269 2017-04-28 Tom de Vries <tom@codesourcery.com>
271 * testsuite/17_intro/headers/c++1998/stdc++_assert_neg.cc: Remove
272 superfluous '{ target *-*-* }' in dg-(error|warning|message|bogus).
274 2017-04-27 Jonathan Wakely <jwakely@redhat.com>
276 * include/ext/pb_ds/detail/list_update_map_/iterators_fn_imps.hpp
277 (PB_DS_CLASS_C_DEC::end()): Remove redundant const in cast type.
278 * testsuite/util/testsuite_rng.h (twister_rand_gen::get_prob()):
281 2017-04-26 Jonathan Wakely <jwakely@redhat.com>
283 * testsuite/23_containers/deque/allocator/move_assign-2.cc: Improve
284 comment. Ensure first test works because allocator type propagates and
285 not because is_always_equal is true.
286 * testsuite/23_containers/vector/52591.cc: Likewise. Restore original
287 testcase that instantiates the move-assignment operator.
289 2017-04-24 Jonathan Wakely <jwakely@redhat.com>
292 * include/bits/random.tcc (gamma_distribution::operator()): Fix magic
293 number used in loop condition.
296 * include/bits/refwrap.h (ref, cref): Qualify calls.
297 * testsuite/20_util/reference_wrapper/80504.cc: New test.
300 * include/experimental/optional (optional::swap): Fix exception
303 2017-04-21 Jonathan Wakely <jwakely@redhat.com>
306 * include/std/future (_State_baseV2::_Setter::operator()): Remove
307 _S_check calls that are done after the pointer to the shared state is
308 already dereferenced.
309 (_State_baseV2::_Setter<_Res, void>): Define specialization for void
310 as partial specialization so it can be defined within the definition
312 (_State_baseV2::__setter): Call _S_check.
313 (_State_baseV2::__setter(promise<void>*)): Add overload for use by
314 promise<void>::set_value and promise<void>::set_value_at_thread_exit.
315 (promise<T>, promise<T&>, promise<void>): Make _State a friend.
316 (_State_baseV2::_Setter<void, void>): Remove explicit specialization.
317 (promise<void>::set_value, promise<void>::set_value_at_thread_exit):
318 Use new __setter overload.
319 * testsuite/30_threads/promise/members/at_thread_exit2.cc: New test.
320 * testsuite/30_threads/promise/members/set_exception.cc: Test
321 promise<T&> and promise<void> specializations.
322 * testsuite/30_threads/promise/members/set_exception2.cc: Likewise.
323 Test for no_state error condition.
324 * testsuite/30_threads/promise/members/set_value2.cc: Likewise.
326 * include/backward/auto_ptr.h: Ignore deprecated warnings from use
328 * include/bits/shared_ptr.h: Likewise.
329 * include/bits/shared_ptr_base.h: Likewise.
330 * include/bits/unique_ptr.h: Likewise.
331 * libstdc++-v3/testsuite/20_util/default_delete/48631_neg.cc: Adjust
333 * libstdc++-v3/testsuite/20_util/default_delete/void_neg.cc: Likewise.
334 * libstdc++-v3/testsuite/20_util/unique_ptr/assign/48635_neg.cc:
336 * libstdc++-v3/testsuite/20_util/unique_ptr/cons/cv_qual_neg.cc:
339 2017-04-20 Edward Smith-Rowland <3dw4rd@verizon.net>
341 PR libstdc++/68397 std::tr1::expint fails ... long double arguments.
342 * include/tr1/exp_integral.tcc: Increase iteration limits.
343 * testsuite/tr1/5_numerical_facilities/special_functions/15_expint/
344 pr68397.cc: New test.
345 * testsuite/special_functions/14_expint/pr68397.cc: New test.
347 2017-04-20 Jonathan Wakely <jwakely@redhat.com>
350 * include/std/atomic [!_GLIBCXX_USE_C99_STDINT_TR1] (atomic_int8_t)
351 (atomic_uint8_t, atomic_int16_t, atomic_uint16_t, atomic_int32_t,
352 (atomic_uint32_t, atomic_int64_t, atomic_uint64_t)
353 (atomic_int_least8_t, atomic_uint_least8_t, atomic_int_least16_t)
354 (atomic_uint_least16_t, atomic_int_least32_t, atomic_uint_least32_t)
355 (atomic_int_least64_t, atomic_uint_least64_t, atomic_int_fast8_t)
356 (atomic_uint_fast8_t, atomic_int_fast16_t, atomic_uint_fast16_t)
357 (atomic_int_fast32_t, atomic_uint_fast32_t, atomic_int_fast64_t)
358 (atomic_uint_fast64_t, atomic_intmax_t, atomic_uintmax_t): Don't
361 2017-04-19 Jonathan Wakely <jwakely@redhat.com>
363 * doc/xml/manual/abi.xml: Rephrase one of the references to the
365 * doc/xml/manual/test.xml: Document DejaGnu 1.5.3 requirement.
366 * doc/html/*: Regenerate.
368 * libsupc++/new: Update comment on #endif directive.
371 * include/experimental/bits/fs_dir.h (directory_iterator)
372 (recursive_directory_iterator): Remove noexcept from defaulted
376 * include/std/type_traits (is_aggregate): Change __has_builtin checks.
377 * libsupc++/new (launder): Likewise.
379 2017-04-18 Jonathan Wakely <jwakely@redhat.com>
381 * include/std/functional (default_searcher, __boyer_moore_array_base)
382 (__is_std_equal_to, __boyer_moore_base_t, boyer_moore_searcher)
383 (boyer_moore_horspool_searcher): Remove redundant namespace
385 (default_searcher::operator()): Construct return value early and
386 advance second member in-place.
387 (boyer_moore_horspool_searcher::operator()): Increment random access
388 iterator directly instead of using std::next.
389 (boyer_moore_searcher::operator()): Fix return value.
390 * testsuite/20_util/function_objects/searchers.cc: Check both parts
393 2017-04-12 Gerald Pfeifer <gerald@pfeifer.com>
395 * doc/xml/faq.xml: Update reference link to C++ ABI for Itanium.
396 * doc/xml/manual/abi.xml. Ditto (thrice).
398 2017-04-03 Jonathan Wakely <jwakely@redhat.com>
400 * doc/xml/manual/status_cxx2017.xml: Remove duplicate table entry.
401 * doc/html/*: Regenerate.
403 * testsuite/20_util/reference_wrapper/invoke.cc: Uncomment tests
406 * include/bits/ios_base.h: Correct comment.
407 * testsuite/util/testsuite_hooks.h: Likewise.
409 * doc/xml/manual/status_cxx2017.xml: Update C++17 status table.
410 * doc/xml/manual/appendix_contributing.xml (contrib.organization): Add
411 directories for debug, parallel and profile headers.
412 * doc/html/*: Regenerate.
414 * include/bits/char_traits.h (__gnu_cxx::char_traits): Add
415 _GLIBCXX14_CONSTEXPR on assign, compare, find, and length.
416 (std::char_traits<char>, std::char_traits<wchar_t>): Add
417 _GLIBCXX17_CONSTEXPR on assign.
418 (std::char_traits<char16_t>, std::char_traits<char32_t>): Add
419 _GLIBCXX17_CONSTEXPR on assign, compare, find, and length.
420 * testsuite/21_strings/char_traits/requirements/
421 constexpr_functions_c++17.cc: New test.
423 2017-04-03 Ville Voutilainen <ville.voutilainen@gmail.com>
426 * include/bits/stl_pair.h (__nonesuch_no_braces): New.
427 (operator=(typename conditional<
428 __and_<is_copy_assignable<_T1>,
429 is_copy_assignable<_T2>>::value,
430 const pair&, const __nonesuch&>::type)): Change __nonesuch
431 to __nonesuch_no_braces.
432 (operator=(typename conditional<
433 __not_<__and_<is_copy_assignable<_T1>,
434 is_copy_assignable<_T2>>>::value,
435 const pair&, const __nonesuch&>::type)): Likewise.
436 (operator=(typename conditional<
437 __and_<is_move_assignable<_T1>,
438 is_move_assignable<_T2>>::value,
439 pair&&, __nonesuch&&>::type)): Likewise.
440 * testsuite/20_util/pair/79141.cc: New.
442 2017-04-03 Ville Voutilainen <ville.voutilainen@gmail.com>
444 Implement std::is_aggregate.
445 * include/std/type_traits (is_aggregate, is_aggregate_v): New.
446 * testsuite/20_util/is_aggregate/requirements/explicit_instantiation.cc:
448 * testsuite/20_util/is_aggregate/requirements/typedefs.cc: Likewise.
449 * testsuite/20_util/is_aggregate/value.cc: Likewise.
451 2017-03-29 Ville Voutilainen <ville.voutilainen@gmail.com>
453 Adjust optional's pretty printer for LWG 2900.
454 * python/libstdcxx/v6/printers.py (StdExpOptionalPrinter.__init__):
455 Look at the nested payload in case of non-experimental optional.
457 2017-03-29 Ville Voutilainen <ville.voutilainen@gmail.com>
459 Implement LWG 2900, The copy and move constructors
460 of optional are not constexpr.
461 * include/std/optional (_Optional_payload): New.
462 (_Optional_base): Remove the bool parameter.
463 (_Optional_base<_Tp, false>): Remove.
464 (_Optional_base()): Adjust.
465 (_Optional_base(nullopt_t)): Likewise.
466 (_Optional_base(in_place_t, _Args&&...)): Likewise.
467 (_Optional_base(in_place_t, initializer_list<_Up>, _Args&&...)):
469 (_Optional_base(const _Optional_base&)): Likewise.
470 (_Optional_base(_Optional_base&&)): Likewise.
471 (operator=(const _Optional_base&)): Likewise.
472 (operator=(_Optional_base&&)): Likewise.
473 (~_Optional_base()): Remove.
474 (_M_is_engaged()): Adjust.
475 (_M_get()): Likewise.
476 (_M_construct(_Args&&...)): Likewise.
477 (_M_destruct()): Likewise.
478 (_M_reset()): Likewise.
479 (_Optional_base::_Empty_byte): Remove.
480 (_Optional_base::_M_empty): Remove.
481 (_Optional_base::_M_payload): Adjust.
482 * testsuite/20_util/optional/cons/value_neg.cc: Adjust.
483 * testsuite/20_util/optional/constexpr/cons/value.cc: Add tests.
485 2017-03-28 Jonathan Wakely <jwakely@redhat.com>
488 * include/bits/random.tcc (generate_canonical): Use std::nextafter
489 or numeric_limits::epsilon() to reduce out-of-range values.
490 * testsuite/26_numerics/random/uniform_real_distribution/operators/
491 64351.cc: Verify complexity requirement is met.
493 * doc/xml/manual/abi.xml: Add xml:id anchor.
494 * doc/xml/manual/using.xml (manual.intro.using.macros): Document
495 _GLIBCXX_RELEASE. Link to new anchor for __GLIBCXX__ notes.
496 (concurrency.io.structure): Add markup.
497 * doc/html/*: Regenerate.
500 * include/bits/shared_ptr_base.h
501 (__shared_ptr::_M_enable_shared_from_this_with): Change parameters to
502 non-const and then use remove_cv to get unqualified type.
503 * testsuite/20_util/enable_shared_from_this/members/const.cc: Don't
504 cast away constness on object created const.
505 * testsuite/20_util/shared_ptr/cons/80229.cc: New test.
507 2017-03-26 Markus Trippelsdorf <markus@trippelsdorf.de>
510 * include/bits/stl_tree.h:
511 (_Rb_tree_header::_M_move_data(_Rb_tree_header&)): Also save _M_color.
513 2017-03-23 Jonathan Wakely <jwakely@redhat.com>
515 * testsuite/23_containers/array/tuple_interface/
516 tuple_element_debug_neg.cc: Adjust dg-error.
517 * testsuite/23_containers/list/operations/78389.cc: Fix less-than to
518 define a valid strict weak ordering.
519 * testsuite/23_containers/priority_queue/67085.cc: Disable test for
520 Debug Mode, due to debug checks making extra copies of predicate.
521 * testsuite/ext/pb_ds/regression/priority_queue_binary_heap-62045.cc:
524 * doc/xml/faq.xml: Add link.
525 * doc/xml/manual/backwards_compatibility.xml: Remove outdated
526 information on pre-ISO headers. Replace broken link to C++ FAQ Lite.
527 * doc/xml/manual/io.xml: Update broken link.
528 * doc/html/*: Regenerate.
530 2017-03-23 Daniel Kruegler <daniel.kruegler@gmail.com>
532 Implement LWG 2686, Why is std::hash specialized for error_code,
533 but not error_condition?
534 * include/std/system_error (hash<error_condition>): Define for C++17.
535 * testsuite/20_util/hash/operators/size_t.cc (hash<error_condition>):
536 Instantiate test for error_condition.
537 * testsuite/20_util/hash/requirements/explicit_instantiation.cc
538 (hash<error_condition>): Instantiate hash<error_condition>.
540 * include/bits/c++config (_GLIBCXX17_INLINE): Define.
541 * include/bits/regex_constants.h (All std::regex_constants constants):
542 Add _GLIBCXX17_INLINE as per P0607R0.
543 * include/bits/std_mutex.h (defer_lock, try_to_lock, adopt_lock):
545 * include/bits/stl_pair.h (piecewise_construct): Likewise.
546 * include/bits/uses_allocator.h (allocator_arg, uses_allocator_v)
547 (__is_uses_allocator_constructible_v)
548 (__is_nothrow_uses_allocator_constructible_v): Likewise.
549 * include/std/chrono (treat_as_floating_point_v): Likewise.
550 * include/std/functional (is_bind_expression_v, is_placeholder_v):
552 * include/std/optional (nullopt): Likewise.
553 * include/std/ratio (ratio_equal_v, ratio_not_equal_v, ratio_less_v)
554 ratio_less_equal_v, ratio_greater_v, ratio_greater_equal_v): Likewise.
555 * include/std/system_error (is_error_code_enum_v)
556 (is_error_condition_enum_v): Likewise.
557 * include/std/tuple (tuple_size_v, ignore): Likewise.
558 (ignore): Declare ignore constexpr as per LWG 2773, declare assignment
559 constexpr as per LWG 2933.
560 * include/std/type_traits (All variable templates): Add
561 _GLIBCXX17_INLINE as per P0607R0.
562 * include/std/variant (variant_size_v, variant_npos, __index_of_v)
563 (__tuple_count_v, __exactly_once): Likewise.
564 * testsuite/18_support/headers/new/synopsis.cc
565 (hardware_destructive_interference_size)
566 (hardware_constructive_interference_size): Likewise for commented-out
568 * testsuite/20_util/tuple/creation_functions/constexpr.cc: Add new
569 test function for constexpr std::ignore (LWG 2773).
570 * testsuite/20_util/tuple/creation_functions/constexpr_cpp14.cc: New
573 2017-03-22 Jonathan Wakely <jwakely@redhat.com>
575 * include/bits/shared_ptr.h (shared_ptr, weak_ptr): Add deduction
577 * include/bits/std_function.h (function): Likewise.
578 * include/bits/stl_pair.h (pair): Likewise.
579 * include/debug/array (__gnu_debug::array): Likewise.
580 * include/std/array (array): Likewise.
581 * include/std/functional (make_default_searcher)
582 (make_boyer_moore_searcher, make_boyer_moore_horspool_searcher):
583 Remove generator functions.
584 * include/std/tuple (tuple): Add deduction guides.
585 * include/std/valarray (valarray): Likewise.
586 * testsuite/20_util/function_objects/searchers.cc: Adjust to use
587 class template argument deduction instead of generator functions.
588 * testsuite/20_util/function/cons/deduction.cc: New test.
589 * testsuite/20_util/optional/cons/deduction_guide.cc: Rename to ...
590 * testsuite/20_util/optional/cons/deduction.cc: ... here.
591 * testsuite/20_util/pair/cons/deduction.cc: New test.
592 * testsuite/20_util/shared_ptr/cons/deduction.cc: New test.
593 * testsuite/20_util/tuple/cons/deduction.cc: New test.
594 * testsuite/20_util/tuple/element_access/get_neg.cc: Adjust dg-error.
595 * testsuite/20_util/unique_ptr/cons/deduction_neg.cc: New test.
596 * testsuite/20_util/weak_ptr/cons/deduction.cc: New test.
597 * testsuite/23_containers/array/cons/deduction.cc: New test.
598 * testsuite/23_containers/array/cons/deduction_neg.cc: New test.
599 * testsuite/23_containers/array/tuple_interface/get_debug_neg.cc:
601 * testsuite/23_containers/array/tuple_interface/get_neg.cc: Likewise.
602 * testsuite/23_containers/array/tuple_interface/tuple_element_neg.cc:
604 * testsuite/26_numerics/valarray/deduction.cc: New test.
605 * testsuite/30_threads/lock_guard/cons/deduction.cc: New test.
606 * testsuite/30_threads/scoped_lock/cons/deduction.cc: New test.
607 * testsuite/30_threads/unique_lock/cons/deduction.cc: New test.
609 2017-03-20 François Dumont <fdumont@gcc.gnu.org>
611 * include/bits/stl_deque.h (deque): Access allocator value_type only if
612 concept checks are enabled.
613 * include/bits/stl_stack.h (stack): Likewise.
614 * include/bits/stl_vector.h (vector): Likewise.
615 * include/bits/stl_list.h (list): Likewise and check
616 _SGIAssignableConcept only in C++03.
617 * include/bits/stl_map.h (map): Likewise.
618 * include/bits/stl_set.h (set): Likewise.
619 * include/bits/stl_multimap.h (multimap): Likewise.
620 * include/bits/stl_multiset.h (multiset): Likewise.
621 * include/bits/stl_queue.h (queue, priority_queue): Likewise.
623 2017-03-18 Gerald Pfeifer <gerald@pfeifer.com>
625 * doc/xml/manual/appendix_contributing.xml: Convert link to
627 Update link to the C++ standard at ansi.org.
629 * doc/xml/faq.xml: Remove information redundant with the above;
630 instead add a reference.
632 2017-03-17 Jonathan Wakely <jwakely@redhat.com>
634 * src/c++11/codecvt.cc (range): Add non-type template parameter and
635 define oerloaded operators for reading and writing code units.
636 (range<Elem, false>): Define partial specialization for accessing
637 wide characters in potentially unaligned byte ranges.
638 (ucs2_span(const char16_t*, const char16_t*, ...))
639 (ucs4_span(const char16_t*, const char16_t*, ...)): Change parameters
640 to range<const char16_t, false> in order to avoid unaligned reads.
641 (__codecvt_utf16_base<char16_t>::do_out)
642 (__codecvt_utf16_base<char32_t>::do_out)
643 (__codecvt_utf16_base<wchar_t>::do_out): Use range specialization for
644 unaligned data to avoid unaligned writes.
645 (__codecvt_utf16_base<char16_t>::do_in)
646 (__codecvt_utf16_base<char32_t>::do_in)
647 (__codecvt_utf16_base<wchar_t>::do_in): Likewise for writes. Return
648 error if there are unprocessable trailing bytes.
649 (__codecvt_utf16_base<char16_t>::do_length)
650 (__codecvt_utf16_base<char32_t>::do_length)
651 (__codecvt_utf16_base<wchar_t>::do_length): Pass arguments of type
652 range<const char16_t, false> to span functions.
653 * testsuite/22_locale/codecvt/codecvt_utf16/misaligned.cc: New test.
655 2017-03-16 Jonathan Wakely <jwakely@redhat.com>
658 * src/c++11/codecvt.cc (to_integer(codecvt_mode)): Fix target type.
661 * src/c++11/codecvt.cc (__codecvt_utf16_base<wchar_t>::do_out)
662 (__codecvt_utf16_base<wchar_t>::do_in): Convert char arguments to
663 char16_t to work with UTF-16 instead of UTF-8.
664 * testsuite/22_locale/codecvt/codecvt_utf16/80041.cc: New test.
666 * src/c++11/codecvt.cc (codecvt<char16_t, char, mbstate_t>)
667 (codecvt<char32_t, char, mbstate_t>, __codecvt_utf8_base<char16_t>)
668 (__codecvt_utf8_base<char32_t>, __codecvt_utf8_base<wchar_t>)
669 (__codecvt_utf16_base<char16_t>, __codecvt_utf16_base<char32_t>)
670 (__codecvt_utf16_base<wchar_t>, __codecvt_utf8_utf16_base<char16_t>)
671 (__codecvt_utf8_utf16_base<char32_t>)
672 (__codecvt_utf8_utf16_base<wchar_t>): Fix do_encoding() and
673 do_max_length() return values.
674 * testsuite/22_locale/codecvt/codecvt_utf16/members.cc: New test.
675 * testsuite/22_locale/codecvt/codecvt_utf8/members.cc: New test.
676 * testsuite/22_locale/codecvt/codecvt_utf8_utf16/members.cc: New test.
679 * include/bits/locale_conv.h (__do_str_codecvt): Set __count on
681 * src/c++11/codecvt.cc (operator&=, operator|=, operator~): Overloads
682 for manipulating codecvt_mode values.
683 (read_utf16_bom): Compare input to BOM constants instead of integral
684 constants that depend on endianness. Take mode parameter by
685 reference and adjust it, to distinguish between no BOM present and
686 UTF-16BE BOM present.
687 (ucs4_in, ucs2_span, ucs4_span): Adjust calls to read_utf16_bom.
688 (surrogates): New enumeration type.
689 (utf16_in, utf16_out): Add surrogates parameter to choose between
690 UTF-16 and UCS2 behaviour.
691 (utf16_span, ucs2_span): Use std::min not std::max.
692 (ucs2_out): Use std::min not std::max. Disallow surrogate pairs.
693 (ucs2_in): Likewise. Adjust calls to read_utf16_bom.
694 * testsuite/22_locale/codecvt/codecvt_utf16/79980.cc: New test.
695 * testsuite/22_locale/codecvt/codecvt_utf8/79980.cc: New test.
698 * src/c++11/codecvt.cc (write_utf16_code_point): Don't write 0xffff
700 (__codecvt_utf8_utf16_base<char32_t>::do_in): Use native endianness
701 for internal representation.
702 (__codecvt_utf8_utf16_base<wchar_t>::do_in): Likewise.
703 * testsuite/22_locale/codecvt/codecvt_utf8_utf16/79511.cc: New test.
706 * include/bits/stl_heap.h (__is_heap, push_heap, __adjust_heap)
707 (pop_heap, make_heap, sort_heap, is_heap_until, is_heap): Cope with
708 invalid instantiations using function types for _Compare argument.
709 * testsuite/25_algorithms/make_heap/80064.cc: New test.
712 * python/libstdcxx/v6/printers.py (find_type): Avoid gdb.Type.name
713 for GDB 7.6 compatibility, use gdb.Type.unqualified instead.
715 2017-03-15 Ville Voutilainen <ville.voutilainen@gmail.com>
717 Implement LWG 2857, {variant,optional,any}::emplace should
718 return the constructed value.
719 * include/std/any (emplace(_Args&&...)): Change the return type and
720 return a reference to the constructed value.
721 (emplace(initializer_list<_Up>, _Args&&...)): Likewise.
722 * include/std/optional (emplace(_Args&&...)): Likewise.
723 (emplace(initializer_list<_Up>, _Args&&...)): Likewise.
724 * include/std/variant (emplace<_Tp>(_Args&&...)): Likewise.
725 (emplace<_Tp>(initializer_list<_Up>, _Args&&...)): Likewise.
726 (emplace<_Np>(_Args&&...)): Likewise.
727 (emplace<_Np>(initializer_list<_Up>, _Args&&...)): Likewise.
728 * testsuite/20_util/any/assign/emplace.cc: Add tests for
729 checking the return value of emplace.
730 * testsuite/20_util/any/misc/any_cast_neg.cc: Adjust.
731 * testsuite/20_util/optional/assignment/6.cc: Add tests for
732 checking the return value of emplace.
733 * testsuite/20_util/variant/run.cc: Likewise.
735 2017-03-15 Xi Ruoyao <ryxi@stu.xidian.edu.cn>
738 * include/ext/pb_ds/qdetail/binary_heap_/binary_heap_.hpp
740 (push_heap): Remove the wrong checking using is_heap.
741 (make_heap): Remove the assertion using is_heap.
742 * include/ext/pb_ds/detail/binary_heap_/insert_fn_imps.hpp
744 (resize_for_insert_if_needed): Add PB_DS_ASSERT_VALID after
747 2017-03-15 Jonathan Wakely <jwakely@redhat.com>
750 * testsuite/ext/pb_ds/regression/priority_queue_binary_heap-62045.cc:
752 * testsuite/ext/pb_ds/regression/priority_queues.cc: Fix copy&paste
755 2017-03-15 Jonathan Wakely <jwakely@redhat.com>
757 * acinclude.m4 (GLIBCXX_CHECK_S_ISREG_OR_S_IFREG): Fix typo in
759 * config.h.in: Regenerate.
760 * configure: Regenerate.
761 * doc/Makefile.in: Regenerate.
763 2017-03-14 Jonathan Wakely <jwakely@redhat.com>
766 * include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI]
767 (basic_string<C,T,A>::operator=(basic_string_view<C,T>)): Replace
768 with a constrained template.
769 [!_GLIBCXX_USE_CXX11_ABI]
770 (basic_string<C,T,A>::operator=(basic_string_view<C,T>)): Likewise.
771 * testsuite/21_strings/basic_string/cons/char/79162.cc: New test.
772 * testsuite/21_strings/basic_string/cons/wchar_t/79162.cc: New test.
774 2017-03-13 Ville Voutilainen <ville.voutilainen@gmail.com>
777 * include/bits/list.tcc (merge(list&&)): Use const for the size_t
779 (merge(list&&, _StrictWeakOrdering)): Likewise.
780 * testsuite/23_containers/list/operations/80034.cc: New.
782 2017-03-13 Ville Voutilainen <ville.voutilainen@gmail.com>
784 Implement LWG 2806, Base class of bad_optional_access.
785 * include/std/optional (bad_optional_access):
786 Derive from std::exception.
787 (bad_optional_access::bad_optional_access): Adjust.
788 (bad_optional_access::what): New.
789 (__throw_bad_optional_access(const char*)):
790 Remove the parameter and adjust calls.
791 * testsuite/20_util/optional/cons/value_neg.cc: Adjust.
792 * testsuite/20_util/optional/typedefs.cc: Likewise.
794 2017-03-12 Ville Voutilainen <ville.voutilainen@gmail.com>
796 Implement LWG 2934, optional<const T> doesn't compare with T.
797 * include/std/optional
798 (operator==(const optional<_Tp>&, const optional<_Tp>&)):
799 Turn into operator==(const optional<_Tp>&, const optional<_Up>&).
800 (operator!=(const optional<_Tp>&, const optional<_Tp>&)):
801 Turn into operator!=(const optional<_Tp>&, const optional<_Up>&).
802 (operator<(const optional<_Tp>&, const optional<_Tp>&)):
803 Turn into operator<(const optional<_Tp>&, const optional<_Up>&.
804 (operator>(const optional<_Tp>&, const optional<_Tp>&)):
805 Turn into operator>(const optional<_Tp>&, const optional<_Up>&.
806 (operator<=(const optional<_Tp>&, const optional<_Tp>&)):
807 Turn into operator<=(const optional<_Tp>&, const optional<_Up>&).
808 (operator>=(const optional<_Tp>&, const optional<_Tp>&)):
809 Turn into operator>=(const optional<_Tp>&, const optional<_Up>&).
810 (operator==(const optional<_Tp>&, const _Tp&)):
811 Turn into operator==(const optional<_Tp>&, const _Up&).
812 (operator==(const _Tp&, const optional<_Tp>&)):
813 Turn into operator==(const _Up&, const optional<_Tp>&).
814 (operator!=(const optional<_Tp>&, const _Tp&)):
815 Turn into operator!=(const optional<_Tp>&, const _Up&).
816 (operator!=(const _Tp&, const optional<_Tp>&)):
817 Turn into operator!=(const _Up&, const optional<_Tp>&).
818 (operator<(const optional<_Tp>&, const _Tp&)):
819 Turn into operator<(const optional<_Tp>&, const _Up&).
820 (operator<(const _Tp&, const optional<_Tp>&)):
821 Turn into operator<(const _Up&, const optional<_Tp>&).
822 (operator>(const optional<_Tp>&, const _Tp&)):
823 Turn into operator>(const optional<_Tp>&, const _Up&).
824 (operator>(const _Tp&, const optional<_Tp>&)):
825 Turn into operator>(const _Up&, const optional<_Tp>&).
826 (operator<=(const optional<_Tp>&, const _Tp&)):
827 Turn into operator<=(const optional<_Tp>&, const _Up&).
828 (operator<=(const _Tp&, const optional<_Tp>&)):
829 Turn into operator<=(const _Up&, const optional<_Tp>&).
830 (operator>=(const optional<_Tp>&, const _Tp&)):
831 Turn into operator>=(const optional<_Tp>&, const _Up&).
832 (operator>=(const _Tp&, const optional<_Tp>&)):
833 Turn into operator>=(const _Up&, const optional<_Tp>&).
834 * testsuite/20_util/optional/relops/7.cc: New.
836 2017-03-10 Jonathan Wakely <jwakely@redhat.com>
838 * testsuite/17_intro/names.cc: Undefine macros that clash with
839 identifiers in AIX system headers.
841 * include/bits/invoke.h (__invoke): Use __invoke_result instead of
842 result_of, and __is_nothrow_invocable instead of
843 __is_nothrow_callable.
844 * include/bits/shared_ptr_base.h (__shared_ptr): Use __is_invocable
845 instead of __is_callable.
846 * include/std/functional (invoke): use invoke_result_t instead of
847 result_of_t and is_nothrow_invocable instead of is_nothrow_callable.
848 (_Not_fn): Use __invoke_result instead of result_of.
849 * include/std/type_traits (__result_of_memobj, __result_of_memfun):
850 Remove partial specializations for reference_wrapper types.
851 (__result_of_impl): Use __inv_unwrap to strip reference_wrapper.
852 (__invoke_result): Define replacement for result_of and then use it to
854 (__is_callable_impl, __is_callable, __is_nothrow_callable): Replace
855 with __is_invocable_impl, __is_invocable, and __is_nothrow_invocable
857 (invoke_result, invoke_result_t): Define for C++17.
858 (is_callable, is_nothrow_callable): Replace with is_invocable,
859 is_invocable_r, is_nothrow_invocable, and is_nothrow_invocable_r.
860 (is_callable_v, is_nothrow_callable_v): Replace with is_invocable_v,
861 is_invocable_r_v, is_nothrow_invocable_v, and is_nothrow_invocable_r_v.
862 * include/std/variant (hash<variant<T...>>): Use is_nothrow_invocable_v
863 instead of is_nothrow_callable_v.
864 * testsuite/20_util/function_objects/invoke/59768.cc: Remove unused
866 * testsuite/20_util/function_objects/not_fn/1.cc: Use is_invocable
867 instead of is_callable.
868 * testsuite/20_util/is_callable/*: Rename directory and adjust tests
870 * testsuite/20_util/is_nothrow_callable/*: Likewise.
871 * testsuite/20_util/optional/hash.cc: Use is_invocable_v instead of
873 * testsuite/20_util/variant/hash.cc: Likewise.
875 2017-03-10 George Lander <george.lander@arm.com>
877 * acinclude.m4 (glibcxx_cv_obsolete_isnan): Define
878 _GLIBCXX_INCLUDE_NEXT_C_HEADERS before including math.h.
879 * configure: Regenerate.
881 2017-03-09 Jonathan Wakely <jwakely@redhat.com>
883 * include/std/functional (_Not_fn): Define macro to simplify
884 repetitive function definitions.
886 * doc/xml/manual/status_cxx2017.xml: Document std::byte support.
887 * include/c_global/cstddef (std::byte): Define for C++17.
888 * testsuite/18_support/byte/global_neg.cc: New test.
889 * testsuite/18_support/byte/ops.cc: New test.
890 * testsuite/18_support/byte/requirements.cc: New test.
892 2017-03-05 Jonathan Wakely <jwakely@redhat.com>
894 * doc/xml/manual/status_cxx2017.xml: Document P0156R2 status.
895 * doc/html/*: Regenerate.
896 * include/std/mutex (scoped_lock): Implement new C++17 template.
897 * testsuite/30_threads/scoped_lock/cons/1.cc: New test.
898 * testsuite/30_threads/scoped_lock/requirements/
899 explicit_instantiation.cc: New test.
900 * testsuite/30_threads/scoped_lock/requirements/typedefs.cc: New test.
902 2017-03-02 Gerald Pfeifer <gerald@pfeifer.com>
903 François Dumont <frs.dumont@gmail.com>
904 Jonathan Wakely <jwakely@redhat.com>
906 * doc/xml/manual/debug_mode.xml: Update and simplify note
907 on link- and run-time coexistence.
909 2017-03-02 Jonathan Wakely <jwakely@redhat.com>
911 * testsuite/17_intro/headers/names.cc: Rename to ...
912 * testsuite/17_intro/names.cc: ... here.
915 * include/bits/hashtable_policy.h (__clp2): Use reserved names for
916 parameters and local variables.
917 * include/bits/ios_base.h (make_error_code, make_error_condition):
919 * include/bits/list.tcc (list::sort): Likewise.
920 * include/bits/mask_array.h (mask_array): Likewise.
921 * include/bits/regex.h (regex_token_iterator): Likewise.
922 * include/bits/slice_array.h (slice_array): Likewise.
923 * include/bits/stl_algo.h (__sample): Likewise.
924 * include/std/memory (undeclare_no_pointers): Likewise.
925 * include/std/type_traits (is_callable_v, is_nothrow_callable_v):
927 * libsupc++/exception_ptr.h (__dest_thunk): Likewise.
928 * testsuite/17_intro/headers/names.cc: New test.
931 * include/std/functional (bind::_Res_type_impl): Fix incorrect use of
932 result_of that loses top-level cv-qualifiers.
933 * testsuite/20_util/bind/79798.cc: New test.
935 2017-03-01 Gerald Pfeifer <gerald@pfeifer.com>
937 * doc/xml/manual/documentation_hacking.xml: Tweak link to
940 2017-02-23 Jonathan Wakely <jwakely@redhat.com>
942 * include/experimental/iterator: Include <iterator>.
943 * testsuite/experimental/iterator/requirements.cc: Check for contents
946 2017-02-19 Dinka Ranns <dinka.ranns@googlemail.com>
948 C++17 GB50 resolution
949 * include/std/chrono (duration::operator++()): Add
950 _GLIBCXX17_CONSTEXPR.
951 (duration::operator++(int)): Likewise.
952 (duration::operator--()): Likewise.
953 (duration::operator--(int)): Likewise.
954 (duration::operator+=(const duration&)): Likewise.
955 (duration::operator-=(const duration&)): Likewise.
956 (duration::operator*=(const rep&)): Likewise.
957 (duration::operator/=(const rep&)): Likewise.
958 (duration::operator%=(const rep&)): Likewise.
959 (duration::operator%=(const duration&)): Likewise.
960 (time_point::operator+=(const duration&)): Likewise.
961 (time_point::operator-=(const duration&)): Likewise.
962 * testsuite/20_util/duration/arithmetic/constexpr_c++17.cc: New test.
963 * testsuite/20_util/duration/literals/range.cc: Adjust dg-error.
964 * testsuite/20_util/time_point/arithmetic/constexpr.cc: New test.
966 2017-02-19 Gerald Pfeifer <gerald@pfeifer.com>
968 * doc/xml/manual/debug.xml: Adjust link to ThreadSanitizer.
970 2017-02-18 Gerald Pfeifer <gerald@pfeifer.com>
972 * doc/xml/manual/io.xml: Update link to groups.google.com.
973 Tweak link description.
975 2017-02-18 Gerald Pfeifer <gerald@pfeifer.com>
977 * doc/xml/manual/profile_mode.xml: Fix link.
979 2017-02-16 Gerald Pfeifer <gerald@pfeifer.com>
981 * doc/xml/manual/policy_data_structures.xml: Simplify and
982 standardize references to boost.org.
983 * doc/xml/manual/policy_data_structures_biblio.xml: Ditto.
984 * doc/xml/manual/shared_ptr.xml: Ditto.
986 2017-02-16 Jonathan Wakely <jwakely@redhat.com>
989 * src/c++11/snprintf_lite.cc (__concat_size_t): Calculate length
990 written to buffer, not length remaining in buffer.
992 2017-02-15 Tim Shen <timshen@google.com>
995 * include/std/variant (operator<(), operator>(), operator<=(),
996 operator>=(), operator==(), operator!=()): Implement P0393R3.
997 * testsuite/20_util/variant/compile.cc: Adjust tests.
998 * testsuite/20_util/variant/run.cc: Adjust tests.
1000 2017-02-15 Tim Shen <timshen@google.com>
1003 * include/std/variant (visit()): Forward variant types to the return
1004 type detection code.
1005 * testsuite/20_util/variant/compile.cc: Add test cases.
1007 2017-02-13 H.J. Lu <hongjiu.lu@intel.com>
1010 * config/abi/post/x86_64-linux-gnu/x32/baseline_symbols.txt: Updated.
1012 2017-02-13 Jakub Jelinek <jakub@redhat.com>
1015 * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt: Update.
1016 * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt: Likewise.
1017 * config/abi/post/i386-linux-gnu/baseline_symbols.txt: Likewise.
1018 * config/abi/post/i486-linux-gnu/baseline_symbols.txt: Likewise.
1019 * config/abi/post/aarch64-linux-gnu/baseline_symbols.txt: Likewise.
1020 * config/abi/post/s390x-linux-gnu/baseline_symbols.txt: Likewise.
1021 * config/abi/post/s390x-linux-gnu/32/baseline_symbols.txt: Likewise.
1022 * config/abi/post/s390-linux-gnu/baseline_symbols.txt: Likewise.
1023 * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt: Likewise.
1025 2017-02-13 Jonathan Wakely <jwakely@redhat.com>
1028 * include/std/future (__future_base::_Task_state::_M_run)
1029 (__future_base::_Task_state::_M_run_delayed): Use lvalue types in
1030 result_of expressions.
1031 * testsuite/30_threads/packaged_task/79486.cc: New.
1033 2017-02-11 Jonathan Wakely <jwakely@redhat.com>
1036 * include/bits/shared_ptr_base.h (__shared_ptr(_Yp*, _Deleter))
1037 (__shared_ptr(_Yp*, _Deleter, _Alloc)): Use lvalue types in
1038 __is_callable check.
1039 * testsuite/20_util/shared_ptr/cons/79467.cc: New.
1041 * include/bits/atomic_base.h: Re-indent.
1043 2017-02-10 Gerald Pfeifer <gerald@pfeifer.com>
1045 * doc/xml/manual/profile_mode.xml: Update a paper reference.
1047 2017-02-08 Gerald Pfeifer <gerald@pfeifer.com>
1049 * src/c++11/snprintf_lite.cc (__err): Use https for bug reporting.
1051 2017-02-08 Jonathan Wakely <jwakely@redhat.com>
1053 * doc/xml/manual/policy_data_structures.xml: Fix spelling of author's
1055 * doc/xml/manual/policy_data_structures_biblio.xml: Likewise. Remove
1056 broken links to texts that are no longer online.
1057 * doc/xml/manual/profile_mode.xml: Update links to CGO 2009 paper and
1059 * doc/xml/manual/using.xml: Update links to memory model information.
1060 * doc/xml/manual/using_exceptions.xml: Update link to "Appendix E:
1061 Standard-Library Exception Safety".
1062 * doc/html/*: Regenerate.
1064 2017-02-08 Gerald Pfeifer <gerald@pfeifer.com>
1066 * doc/xml/manual/profile_mode.xml: Unbreak link to
1067 "Optimizing Sorting with Machine Learning Algorithms".
1069 2017-02-08 Gerald Pfeifer <gerald@pfeifer.com>
1071 * src/c++11/snprintf_lite.cc (__err): Update bug reporting URL.
1073 2017-02-08 Gerald Pfeifer <gerald@pfeifer.com>
1075 * doc/xml/manual/abi.xml: Update link to "Sun Studio 11: C++
1078 2017-02-07 Gerald Pfeifer <gerald@pfeifer.com>
1080 * doc/html/ext/lwg-active.html: Remove.
1081 * doc/html/ext/lwg-closed.html: Ditto.
1082 * doc/html/ext/lwg-defects.html: Ditto.
1084 * doc/Makefile.am (xml_extradir): Remove.
1086 (stamp-html-docbook-lwg): Remove recipe...
1087 (stamp-html-docbook-data): ...and its use here.
1088 * doc/Makefile.in: Regenerate.
1090 * doc/xml/manual/intro.xml: Shorten two paragraphs explaining
1091 the relationship to the upstream working group.
1092 Replace a local link to ../ext/lwg-active.html by the upstream one.
1093 Replace all reference to ../ext/lwg-defects.html by a new entity
1094 &DR; which refers to the upstream address.
1096 2017-02-07 Gerald Pfeifer <gerald@pfeifer.com>
1098 * doc/xml/manual/status_cxx2017.xml: Fix link to N4284.
1100 2017-02-06 Jonathan Wakely <jwakely@redhat.com>
1103 * testsuite/20_util/duration/literals/range.cc: Prune extra output
1106 2017-02-06 Gerald Pfeifer <gerald@pfeifer.com>
1108 * doc/xml/manual/documentation_hacking.xml: Update URL of the
1109 DocBook Element Reference. Use that term as link description
1110 instead of "online".
1111 epubcheck has moved to GitHub.
1112 Remove obsolete link to DocBook Publishing Tools.
1114 2017-02-03 Jonathan Wakely <jwakely@redhat.com>
1117 * testsuite/27_io/basic_ios/copyfmt/char/1.cc: Restore ABI override
1118 so new ios::failure can be caught even when old ABI is the default.
1119 * testsuite/27_io/basic_ios/exceptions/char/1.cc: Likewise.
1120 * testsuite/27_io/basic_istream/extractors_arithmetic/char/
1121 exceptions_failbit.cc: Likewise.
1122 * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/
1123 exceptions_failbit.cc: Likewise.
1124 * testsuite/27_io/basic_istream/extractors_other/char/
1125 exceptions_null.cc: Likewise.
1126 * testsuite/27_io/basic_istream/extractors_other/wchar_t/
1127 exceptions_null.cc: Likewise.
1128 * testsuite/27_io/basic_istream/sentry/char/12297.cc: Likewise.
1129 * testsuite/27_io/basic_istream/sentry/wchar_t/12297.cc: Likewise.
1130 * testsuite/27_io/basic_ostream/inserters_other/char/
1131 exceptions_null.cc: Likewise.
1132 * testsuite/27_io/basic_ostream/inserters_other/wchar_t/
1133 exceptions_null.cc: Likewise.
1134 * testsuite/27_io/ios_base/storage/2.cc: Likewise.
1137 * src/c++11/Makefile.am: Add new files.
1138 * src/c++11/Makefile.in: Regenerate.
1139 * src/c++11/cow-string-inst.cc [!_GLIBCXX_USE_CXX11_ABI]
1140 (operator<<, operator>>, getline): Move explicit instantiations to ...
1141 * src/c++11/cow-string-io-inst.cc: ... new file.
1142 * src/c++11/cow-wstring-inst.cc [!_GLIBCXX_USE_CXX11_ABI]
1143 (operator<<, operator>>, getline): Move explicit instantiations to ...
1144 * src/c++11/cow-wstring-io-inst.cc: ... new file.
1145 * src/c++11/functexcept.cc (__throw_ios_failure, __throw_system_error)
1146 (__throw_future_error, __throw_bad_function_call):
1147 (__throw_regex_error): Move functions for C++11 exceptions to the
1148 files that define the exception types.
1149 * src/c++11/functional.cc (__throw_bad_function_call): Move here.
1150 * src/c++11/future.cc (__throw_future_error): Likewise.
1151 * src/c++11/ios.cc (__throw_ios_failure): Likewise.
1152 * src/c++11/regex.cc (__throw_regex_error): Likewise.
1153 * src/c++11/snprintf_lite.cc (__concat_size_t): Print decimal
1154 representation directly instead of calling __int_to_char.
1155 * src/c++11/sso_string.cc (__sso_string): New file for definition
1156 of __sso_string type.
1157 * src/c++11/string-io-inst.cc [_GLIBCXX_USE_CXX11_ABI]: New file for
1158 explicit instantiations of narrow string I/O functions.
1159 * src/c++11/system_error.cc (__throw_system_error): Move here.
1160 (__sso_string): Move to new file.
1161 * src/c++11/wstring-io-inst.cc [_GLIBCXX_USE_CXX11_ABI]: New file for
1162 explicit instantiations of wide string I/O functions.
1163 * src/c++98/misc-inst.cc [_GLIBCXX_USE_CXX11_ABI] (operator<<)
1164 (operator>>, getline): Remove explicit instantiations from here.
1166 2017-02-02 H.J. Lu <hongjiu.lu@intel.com>
1168 * config/abi/post/x86_64-linux-gnu/x32/baseline_symbols.txt: Updated.
1170 2017-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1172 * configure.host: Separate Solaris/SPARC and x86 baselines.
1173 * config/abi/post/solaris2.10/baseline_symbols.txt: Move ...
1174 * config/abi/post/sparc-solaris2.10/baseline_symbols.txt: ... here.
1175 * config/abi/post/solaris2.10/sparcv9/baseline_symbols.txt: Move ...
1176 * config/abi/post/sparc-solaris2.10/sparcv9/baseline_symbols.txt:
1178 * config/abi/post/solaris2.10/amd64/baseline_symbols.txt: Move ...
1179 * config/abi/post/i386-solaris2.10/amd64/baseline_symbols.txt: ... here.
1180 * config/abi/post/i386-solaris2.10/baseline_symbols.txt: New file.
1181 * config/abi/post/solaris2.11/baseline_symbols.txt: Move ...
1182 * config/abi/post/sparc-solaris2.11/baseline_symbols.txt: ... here.
1183 * config/abi/post/solaris2.11/sparcv9/baseline_symbols.txt: Move ...
1184 * config/abi/post/sparc-solaris2.11/sparcv9/baseline_symbols.txt:
1186 * config/abi/post/solaris2.11/amd64/baseline_symbols.txt: Move ...
1187 * config/abi/post/i386-solaris2.11/amd64/baseline_symbols.txt: ... here.
1188 * config/abi/post/i386-solaris2.11/baseline_symbols.txt: New file.
1190 * config/abi/post/solaris2.10/baseline_symbols.txt: Regenerate.
1191 * config/abi/post/solaris2.10/amd64/baseline_symbols.txt: Likewise.
1192 * config/abi/post/solaris2.10/sparcv9/baseline_symbols.txt: Likewise.
1193 * config/abi/post/solaris2.11/baseline_symbols.txt: Likewise.
1194 * config/abi/post/solaris2.11/amd64/baseline_symbols.txt: Likewise.
1195 * config/abi/post/solaris2.11/sparcv9/baseline_symbols.txt: Likewise.
1197 2017-02-01 Jonathan Wakely <jwakely@redhat.com>
1200 * include/bits/predefined_ops.h (_Iter_equals_iter): Store iterator
1202 (_Iter_comp_to_iter): Likewise.
1203 * testsuite/25_algorithms/search/78346.cc: New test.
1206 * config/abi/pre/gnu.ver: Remove recently added symbols.
1207 * include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI]
1208 (basic_string::_M_copy_assign): Remove.
1209 (basic_string::operator=(const basic_string&)): Don't dispatch to
1210 _M_copy_assign. If source object is small just deallocate, otherwise
1211 perform new allocation before making any changes.
1212 * include/bits/basic_string.tcc [_GLIBCXX_USE_CXX11_ABI]
1213 (basic_string::_M_copy_assign(const basic_string&, true_type)):
1215 * testsuite/21_strings/basic_string/allocator/char/copy_assign.cc:
1216 Test cases where the allocators are equal or the string is small.
1217 * testsuite/21_strings/basic_string/allocator/wchar_t/copy_assign.cc:
1220 2017-01-30 Ville Voutilainen <ville.voutilainen@gmail.com>
1222 Implement LWG 2825, LWG 2756 breaks class template argument
1223 deduction for optional.
1224 * include/std/optional: Add a deduction guide.
1225 * testsuite/20_util/optional/cons/deduction_guide.cc: New.
1227 2017-01-27 Jonathan Wakely <jwakely@redhat.com>
1230 * config/abi/pre/gnu.ver: Add new symbols.
1231 * include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI]
1232 (basic_string::_M_copy_assign): New overloaded functions to perform
1234 (basic_string::operator=(const basic_string&)): Dispatch to
1236 * include/bits/basic_string.tcc [_GLIBCXX_USE_CXX11_ABI]
1237 (basic_string::_M_copy_assign(const basic_string&, true_type)):
1238 Define, performing rollback on exception.
1239 * testsuite/21_strings/basic_string/allocator/char/copy_assign.cc:
1240 Test exception-safety guarantee.
1241 * testsuite/21_strings/basic_string/allocator/wchar_t/copy_assign.cc:
1243 * testsuite/util/testsuite_allocator.h (uneq_allocator::swap): Make
1246 2017-01-26 Jonathan Wakely <jwakely@redhat.com>
1249 * include/tr1/complex (conj): Remove using-declaration and restore
1250 overloads, reverting previous change.
1252 * testsuite/23_containers/list/operations/78389.cc: Fix for C++11
1254 * testsuite/23_containers/priority_queue/requirements/constructible.cc:
1255 Mark as unsupported in C++98 mode.
1256 * testsuite/23_containers/queue/requirements/constructible.cc:
1258 * testsuite/23_containers/stack/requirements/constructible.cc:
1260 * testsuite/25_algorithms/make_heap/movable.cc: Fix for C++11 mode.
1263 * include/bits/c++config (literals::string_view_literals::__7): Add.
1264 Only declare versioned namespaces for the relevant C++ dialects.
1265 * include/experimental/bits/erase_if.h (fundamentals_v2::__detail):
1266 Add versioning macros.
1267 * include/experimental/bits/lfts_config.h:
1268 (fundamentals_v1::__detail::__7, fundamentals_v2::__detail::__7): Add.
1269 * include/experimental/string_view (fundamentals_v2::__detail):
1270 Add versioning macros.
1271 (fundamentals_v2::__detail::__identity): Remove.
1272 (fundamentals_v2::__detail::__idt): Use common_type instead of
1273 __detail::__identity.
1274 * include/std/string_view (__detail::__identity, __detail::__idt):
1276 (literals::string_view_literals): Fix nesting of versioning macros.
1279 * libsupc++/del_opa.cc (operator delete(void*, std::align_val_t))
1280 [!_GLIBCXX_HAVE_ALIGNED_ALLOC && !_GLIBCXX_HAVE_POSIX_MEMALIGN
1281 && !_GLIBCXX_HAVE_MEMALIGN && !_GLIBCXX_HAVE__ALIGNED_MALLOC]:
1282 Retrieve original pointer value allocated by malloc.
1283 * libsupc++/new_opa.cc [!_GLIBCXX_HAVE_ALIGNED_ALLOC
1284 && !_GLIBCXX_HAVE_POSIX_MEMALIGN && !_GLIBCXX_HAVE_MEMALIGN
1285 && !_GLIBCXX_HAVE__ALIGNED_MALLOC] (aligned_alloc(size_t, size_t)):
1286 Define, adjusting pointer value allocated by malloc and storing for
1287 retrieval by operator delete.
1289 2017-01-26 Jakub Jelinek <jakub@redhat.com>
1291 * libsupc++/eh_atomics.h: Update copyright years.
1292 * testsuite/20_util/unique_ptr/cons/default.cc: Update copyright years.
1294 2017-01-25 Jonathan Wakely <jwakely@redhat.com>
1298 * include/std/complex (real(T), imag(T)): Add _GLIBCXX_CONSTEXPR.
1299 (proj(T), conj(T)): Change return types per DR 1522.
1300 * include/tr1/complex (conj): Remove overloads and use std::conj.
1301 * testsuite/26_numerics/complex/dr781_dr1137.cc: Rename to...
1302 * testsuite/26_numerics/complex/dr781.cc: ... this, and update.
1303 * testsuite/26_numerics/complex/value_operations/constexpr2.cc: Test
1304 real(T) and imag(T). Allow testing for C++11 too.
1306 2017-01-24 Jonathan Wakely <jwakely@redhat.com>
1309 * include/experimental/string_view (operator==): Check sizes first.
1310 * include/std/string_view (operator==): Likewise.
1312 2017-01-23 Jonathan Wakely <jwakely@redhat.com>
1314 * testsuite/experimental/array/make_array.cc: Restore <functional>
1317 2017-01-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
1319 * testsuite/29_atomics/atomic/69301.cc: Require atomic builtins.
1321 2017-01-23 Jonathan Wakely <jwakely@redhat.com>
1324 * include/experimental/array (__make_array_elem): New class template
1325 and partial specialization.
1326 (__is_reference_wrapper): Move into __make_array_elem specialization.
1327 (make_array): Use __make_array_elem to determine element type and move
1328 static assertion into specialization. Qualify std::forward call.
1329 (to_array): Add exception specifiation.
1330 * testsuite/experimental/array/make_array.cc: Test argument types
1331 without a common type.
1332 * testsuite/experimental/array/neg.cc: Adjust expected error message.
1334 2017-01-22 Gerald Pfeifer <gerald@pfeifer.com>
1336 * doc/xml/manual/debug.xml: code.google.com uses https now.
1338 2017-01-22 Gerald Pfeifer <gerald@pfeifer.com>
1340 * doc/xml/manual/test.xml: Fix link into gccint online manual.
1342 2017-01-21 Ville Voutilainen <ville.voutilainen@gmail.com>
1344 Make poisoned hashes SFINAE away the call operator of the hash.
1345 * include/bits/functional_hash.h
1346 (__poison_hash::__enable_hash_call): New.
1347 * include/std/optional (__optional_hash_call_base): New.
1348 (hash<optional<_Tp>>): Derive from the new base,
1349 move the hash function into that base.
1350 * include/std/variant (__variant_hash_call_base_impl): New.
1351 (__variant_hash_call_base): Likewise.
1352 (hash<variant<_Types...>>): Derive from the new base,
1353 move the hash function into that base.
1354 * testsuite/20_util/optional/hash.cc: Add tests for is_callable.
1355 * testsuite/20_util/variant/hash.cc: Likewise.
1357 2017-01-20 Joe Seymour <joe.s@somniumtech.com>
1359 * acinclude.m4 (GLIBCXX_CHECK_SIZE_T_MANGLING): Support uint20_t.
1360 * configure: Regenerate.
1362 2017-01-20 Jonathan Wakely <jwakely@redhat.com>
1365 * include/bits/random.h (uniform_real_distribution::param_type)
1366 (normal_distribution::param_type, lognormal_distribution::param_type)
1367 (gamma_distribution::param_type, chi_squared_distribution::param_type)
1368 (cauchy_distribution::param_type, fisher_f_distribution::param_type)
1369 (student_t_distribution::param_type)
1370 (bernoulli_distribution::param_type, binomial_distribution::param_type)
1371 (geometric_distribution::param_type)
1372 (negative_binomial_distribution::param_type)
1373 (poisson_distribution::param_type)
1374 (exponential_distribution::param_type)
1375 (weibull_distribution::param_type)
1376 (extreme_value_distribution::param_type)
1377 (discrete_distribution::param_type)
1378 (piecewise_constant_distribution::param_type)
1379 (piecewise_linear_distribution::param_type): Define operator!=.
1380 * include/bits/uniform_int_dist.h
1381 (uniform_int_distribution::param_type): Likewise.
1382 * include/ext/random (beta_distribution::param_type)
1383 (rice_distribution::param_type, nakagami_distribution::param_type)
1384 (pareto_distribution::param_type, k_distribution::param_type)
1385 (arcsine_distribution::param_type, hoyt_distribution::param_type)
1386 (triangular_distribution::param_type)
1387 (von_mises_distribution::param_type)
1388 (hypergeometric_distribution::param_type)
1389 (logistic_distribution::param_type)
1390 (uniform_on_sphere_distribution::param_type)
1391 (uniform_inside_sphere_distribution::param_type): Likewise.
1392 * testsuite/26_numerics/random/bernoulli_distribution/cons/parms.cc:
1393 Test construction with param_type.
1394 * testsuite/26_numerics/random/binomial_distribution/cons/parms.cc:
1396 * testsuite/26_numerics/random/cauchy_distribution/cons/parms.cc:
1398 * testsuite/26_numerics/random/chi_squared_distribution/cons/parms.cc:
1400 * testsuite/26_numerics/random/exponential_distribution/cons/parms.cc:
1402 * testsuite/26_numerics/random/extreme_value_distribution/cons/
1404 * testsuite/26_numerics/random/fisher_f_distribution/cons/parms.cc:
1406 * testsuite/26_numerics/random/gamma_distribution/cons/parms.cc:
1408 * testsuite/26_numerics/random/geometric_distribution/cons/parms.cc:
1410 * testsuite/26_numerics/random/lognormal_distribution/cons/parms.cc:
1412 * testsuite/26_numerics/random/negative_binomial_distribution/cons/
1414 * testsuite/26_numerics/random/normal_distribution/cons/parms.cc:
1416 * testsuite/26_numerics/random/poisson_distribution/cons/parms.cc:
1418 * testsuite/26_numerics/random/student_t_distribution/cons/parms.cc:
1420 * testsuite/26_numerics/random/uniform_int_distribution/cons/parms.cc:
1422 * testsuite/26_numerics/random/uniform_real_distribution/cons/parms.cc:
1424 * testsuite/26_numerics/random/weibull_distribution/cons/parms.cc:
1426 * testsuite/ext/random/arcsine_distribution/cons/parms.cc: Likewise.
1427 * testsuite/ext/random/beta_distribution/cons/parms.cc: Likewise.
1428 * testsuite/ext/random/hoyt_distribution/cons/parms.cc: Likewise.
1429 * testsuite/ext/random/hypergeometric_distribution/cons/parms.cc:
1431 * testsuite/ext/random/k_distribution/cons/parms.cc: Likewise.
1432 * testsuite/ext/random/logistic_distribution/cons/parms.cc: Likewise.
1433 * testsuite/ext/random/nakagami_distribution/cons/parms.cc: Likewise.
1434 * testsuite/ext/random/normal_mv_distribution/cons/parms.cc: Likewise.
1435 * testsuite/ext/random/pareto_distribution/cons/parms.cc: Likewise.
1436 * testsuite/ext/random/rice_distribution/cons/parms.cc: Likewise.
1437 * testsuite/ext/random/triangular_distribution/cons/parms.cc:
1439 * testsuite/ext/random/uniform_inside_sphere_distribution/cons/
1441 * testsuite/ext/random/von_mises_distribution/cons/parms.cc: Likewise.
1444 * include/bits/alloc_traits.h (__allocator_traits_base::__diff_type)
1445 (__allocator_traits_base::__size_type): Remove.
1446 (allocator_traits::_Ptr): New class template to detect const and void
1447 pointer types without instantiating pointer_traits::rebind
1449 (allocator_traits::_Diff): Likewise for detecting difference_type.
1450 (allocator_traits::_Size): New class template to detect size_type
1451 without instantiating make_unsigned unnecessarily.
1452 * include/bits/ptr_traits.h (pointer_traits::element_type): Use
1453 __detected_or_t instead of __detected_or_t_.
1454 * include/std/type_traits (__detected_or_t_): Remove.
1455 * testsuite/20_util/allocator_traits/members/pointers.cc: New test.
1459 * include/bits/alloc_traits.h (__allocator_traits_base::__rebind):
1460 Replace with class template using void_t.
1461 (__alloc_rebind): Define in terms of
1462 __allocator_traits_base::__rebind.
1463 (allocator_traits): Remove unconditional static_assert for
1465 * include/bits/ptr_traits.h (__replace_first_arg): Remove type member.
1466 (pointer_traits::__rebind): Replace with class template using void_t.
1467 (pointer_traits::rebind): Define in terms of __rebind.
1468 (pointer_traits): Remove unconditional static_assert for rebind.
1469 * testsuite/20_util/allocator_traits/members/rebind_alloc.cc: New test.
1470 * testsuite/20_util/pointer_traits/rebind.cc: New test.
1473 * include/experimental/any (__any_caster): Avoid instantiating
1474 manager function for types that can't be stored in any.
1475 * include/std/any (__any_caster): Likewise.
1476 * testsuite/20_util/any/misc/any_cast.cc: Test non-copyable type.
1477 * testsuite/experimental/any/misc/any_cast.cc: Likewise.
1480 * include/bits/stl_algo.h (is_partitioned): Use increment instead of
1483 2017-01-19 Jonathan Wakely <jwakely@redhat.com>
1486 * include/bits/shared_ptr_base.h (__enable_shared_from_this_base):
1488 (__enable_shared_from_this): Declare __shared_ptr as a friend.
1489 * testsuite/ext/shared_ptr/1.cc: New test.
1492 * include/bits/stl_algo.h (is_partitioned): Don't retest the partition
1494 * testsuite/25_algorithms/is_partitioned/2.cc: New test.
1496 * doc/xml/manual/abi.xml: Fix typo.
1497 * doc/html/manual/abi.html: Likewise.
1500 * include/bits/predefined_ops.h (_Iter_less_val, _Val_less_iter): Add
1501 converting constructors from _Iter_less_iter.
1502 (_Iter_comp_val, _Val_comp_iter): Add converting constructors from
1504 (__iter_comp_val(_Iter_comp_iter<C>): Use converting constructor.
1505 (__val_comp_iter(_Iter_comp_iter<C>): Likewise.
1506 * include/bits/stl_heap.h (__is_heap_until, __push_heap, __pop_heap)
1507 (__make_heap, __sort_heap): Change _Compare parameters to references.
1508 (__is_heap, push_heap, __adjust_heap, __pop_heap, pop_heap)
1509 (__make_heap, make_heap, sort_heap, is_heap_until): Pass comparison
1510 functions as lvalues.
1511 (is_heap): Call __is_heap_until directly to avoid copying __comp.
1512 * testsuite/23_containers/priority_queue/67085.cc: Adjust test to
1513 count copies during construction with empty sequence.
1516 * include/bits/stl_heap.h (__is_heap): Use _GLIBCXX_MOVE.
1517 (__make_heap, __sort_heap): Don't use _GLIBCXX_MOVE inside loops.
1518 * testsuite/23_containers/priority_queue/67085.cc: Adjust expected
1520 * testsuite/25_algorithms/make_heap/movable.cc: New test.
1523 * include/bits/stl_heap.h (push_heap, __adjust_heap, __pop_heap)
1524 (pop_heap, __make_heap, make_heap, __sort_heap, sort_heap): Use
1525 _GLIBCXX_MOVE when passing comparison function to other functions.
1526 (is_heap_until, is_heap): Use std::move when passing comparison
1528 * testsuite/23_containers/priority_queue/67085.cc: New test.
1531 * doc/xml/manual/abi.xml (abi.versioning.history): Add markup to
1532 macro names, filenames, and literal values. Document _GLIBCXX_RELEASE.
1533 Document that the deprecated _GLIBCXX_VERSION macro was removed for
1535 * doc/html/*: Regenerate.
1536 * include/Makefile.am (_GLIBCXX_RELEASE): Set value.
1537 * include/Makefile.in: Regenerate.
1538 * include/bits/c++config (_GLIBCXX_RELEASE): Add #define.
1539 * testsuite/ext/profile/mutex_extensions_neg.cc: Use lineno of 0 in
1542 2017-01-18 Jonathan Wakely <jwakely@redhat.com>
1545 * include/std/atomic (atomic<T>::load, atomic<T>::exchange): Use
1546 aligned buffer instead of default-initialized variable.
1547 * testsuite/29_atomics/atomic/69301.cc: New test.
1548 * include/experimental/memory (observer_ptr::release): Use reserved
1550 * include/ext/pointer.h (_Pointer_adapter::operator++(int))
1551 (_Pointer_adapter::operator--(int)): Likewise.
1554 * include/experimental/random (randint): Use temporary instead of
1555 thread_local static.
1557 2017-01-17 Joshua Conner <joshconner@google.com>
1559 * crossconfig.m4: Add fuchsia OS.
1560 * configure: Regenerate.
1562 2017-01-17 Jonathan Wakely <jwakely@redhat.com>
1565 * doc/xml/manual/abi.xml (abi.versioning.history): Explain why the
1566 __GLIBCXX__ macro is not useful. Remove redundant date information
1567 and link to the GCC release timeline.
1568 (abi.versioning.active): Move partial sentence into the previous
1570 * doc/html/*: Regenerate.
1573 * libsupc++/nested_exception.h (throw_with_nested): Use decay instead
1574 of remove_reference.
1575 * testsuite/18_support/nested_exception/79114.cc: New test.
1577 2017-01-17 Jakub Jelinek <jakub@redhat.com>
1580 * configure.ac: Add GCC_BASE_VER.
1581 * fragment.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
1582 get version from BASE-VER file.
1583 * po/Makefile.in: Regenerated.
1584 * libsupc++/Makefile.in: Regenerated.
1585 * testsuite/Makefile.in: Regenerated.
1586 * src/Makefile.in: Regenerated.
1587 * configure: Regenerated.
1588 * Makefile.in: Regenerated.
1589 * include/Makefile.in: Regenerated.
1590 * doc/Makefile.in: Regenerated.
1591 * python/Makefile.in: Regenerated.
1592 * src/c++11/Makefile.in: Regenerated.
1593 * src/c++98/Makefile.in: Regenerated.
1594 * src/filesystem/Makefile.in: Regenerated.
1596 2017-01-16 Jonathan Wakely <jwakely@redhat.com>
1599 * src/c++11/functexcept.cc: Use new ABI for std::ios_base::failure
1601 * testsuite/27_io/basic_ios/copyfmt/char/1.cc: Don't override ABI
1602 for test, so new ios::failure can be caught.
1603 * testsuite/27_io/basic_ios/exceptions/char/1.cc: Likewise.
1604 * testsuite/27_io/basic_istream/extractors_arithmetic/char/
1605 exceptions_failbit.cc: Likewise.
1606 * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/
1607 exceptions_failbit.cc: Likewise.
1608 * testsuite/27_io/basic_istream/extractors_other/char/
1609 exceptions_null.cc: Likewise.
1610 * testsuite/27_io/basic_istream/extractors_other/wchar_t/
1611 exceptions_null.cc: Likewise.
1612 * testsuite/27_io/basic_istream/sentry/char/12297.cc: Likewise.
1613 * testsuite/27_io/basic_istream/sentry/wchar_t/12297.cc: Likewise.
1614 * testsuite/27_io/basic_ostream/inserters_other/char/
1615 exceptions_null.cc: Likewise.
1616 * testsuite/27_io/basic_ostream/inserters_other/wchar_t/
1617 exceptions_null.cc: Likewise.
1618 * testsuite/27_io/ios_base/storage/2.cc: Likewise.
1621 * include/bits/locale_classes.h (locale::facet::__shim): Change from
1622 private to protected.
1623 * src/c++11/cxx11-shim_facets.cc (__shim_accessor): Define helper to
1624 make locale::facet::__shim accessible.
1626 2017-01-16 Ville Voutilainen <ville.voutilainen@gmail.com>
1629 * include/bits/list.tcc (merge(list&&)): Fix backwards size adjustments.
1630 (merge(list&&, _StrictWeakOrdering)): Likewise.
1631 * testsuite/23_containers/list/operations/78389.cc: Add
1632 better test for the sizes.
1634 2017-01-14 Jonathan Wakely <jwakely@redhat.com>
1636 * testsuite/23_containers/array/specialized_algorithms/swap_cxx17.cc:
1637 Skip test when -D_GLIBCXX_PROFILE mode is included in options.
1638 * testsuite/23_containers/map/modifiers/extract.cc: Likewise.
1639 * testsuite/23_containers/map/modifiers/insert_or_assign/1.cc:
1641 * testsuite/23_containers/map/modifiers/try_emplace/1.cc: Likewise.
1642 * testsuite/23_containers/multimap/modifiers/extract.cc: Likewise.
1643 * testsuite/23_containers/multiset/modifiers/extract.cc: Likewise.
1644 * testsuite/23_containers/set/modifiers/extract.cc: Likewise.
1645 * testsuite/23_containers/unordered_map/modifiers/extract.cc:
1647 * testsuite/23_containers/unordered_multimap/modifiers/extract.cc::
1649 * testsuite/23_containers/unordered_multiset/modifiers/extract.cc::
1651 * testsuite/23_containers/unordered_set/modifiers/extract.cc:
1653 * testsuite/23_containers/vector/modifiers/insert_vs_emplace.cc:
1655 * testsuite/25_algorithms/binary_search/partitioned.cc: Likewise.
1656 * testsuite/25_algorithms/equal_range/partitioned.cc: Likewise.
1657 * testsuite/25_algorithms/lexicographical_compare/71545.cc: Likewise.
1658 * testsuite/25_algorithms/lower_bound/partitioned.cc: Likewise.
1659 * testsuite/25_algorithms/upper_bound/partitioned.cc: Likewise.
1660 * testsuite/libstdc++-prettyprinters/cxx11.cc: Likewise.
1661 * testsuite/libstdc++-prettyprinters/cxx17.cc: Likewise.
1662 * testsuite/libstdc++-prettyprinters/debug.cc: Likewise.
1663 * testsuite/libstdc++-prettyprinters/debug_cxx11.cc: Likewise.
1664 * testsuite/libstdc++-prettyprinters/libfundts.cc: Likewise.
1665 * testsuite/libstdc++-prettyprinters/simple.cc: Likewise.
1666 * testsuite/libstdc++-prettyprinters/simple11.cc: Likewise.
1667 * testsuite/libstdc++-prettyprinters/whatis.cc: Likewise.
1669 2017-01-13 Jonathan Wakely <jwakely@redhat.com>
1672 * config/io/basic_file_stdio.cc (__basic_file<char>::close()): Don't
1673 retry fclose on EINTR.
1675 * include/profile/base.h: Remove unused header that leads to header
1676 cycle in C++17 mode.
1679 * include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI] (basic_string):
1680 Make _If_sv private.
1681 [!_GLIBCXX_USE_CXX11_ABI] (basic_string): Add member functions taking
1682 basic_string_view arguments.
1685 * testsuite/lib/libstdc++.exp (check_v3_target_filesystem_ts): Remove
1686 redundant option from cxxflags.
1687 (check_effective_target_cxx11-abi): Define.
1688 * testsuite/21_strings/basic_string/allocator/71964.cc: Use cxx11-abi
1690 * testsuite/21_strings/basic_string/allocator/char/copy.cc: Likewise.
1691 * testsuite/21_strings/basic_string/allocator/char/copy_assign.cc:
1693 * testsuite/21_strings/basic_string/allocator/char/minimal.cc:
1695 * testsuite/21_strings/basic_string/allocator/char/move.cc: Likewise.
1696 * testsuite/21_strings/basic_string/allocator/char/move_assign.cc:
1698 * testsuite/21_strings/basic_string/allocator/char/noexcept.cc:
1700 * testsuite/21_strings/basic_string/allocator/char/swap.cc: Likewise.
1701 * testsuite/21_strings/basic_string/allocator/wchar_t/copy.cc:
1703 * testsuite/21_strings/basic_string/allocator/wchar_t/copy_assign.cc:
1705 * testsuite/21_strings/basic_string/allocator/wchar_t/minimal.cc:
1707 * testsuite/21_strings/basic_string/allocator/wchar_t/move.cc:
1709 * testsuite/21_strings/basic_string/allocator/wchar_t/move_assign.cc:
1711 * testsuite/21_strings/basic_string/allocator/wchar_t/noexcept.cc:
1713 * testsuite/21_strings/basic_string/allocator/wchar_t/swap.cc:
1715 * testsuite/23_containers/list/61347.cc: Likewise.
1716 * testsuite/27_io/basic_fstream/cons/base.cc: Likewise.
1717 * testsuite/27_io/ios_base/failure/cxx11.cc: Likewise.
1719 2017-01-13 Ville Voutilainen <ville.voutilainen@gmail.com>
1722 * include/bits/list.tcc (merge(list&&)):
1723 Adjust list sizes if the comparator throws.
1724 (merge(list&&, _StrictWeakOrdering)): Likewise.
1725 (sort()): Splice elements back from the scratch buffers
1726 if the comparator throws.
1727 (sort(_StrictWeakOrdering)): Likewise.
1728 * testsuite/23_containers/list/operations/78389.cc: New.
1730 2017-01-13 Jonathan Wakely <jwakely@redhat.com>
1732 * testsuite/23_containers/unordered_set/allocator/ext_ptr.cc: Mark
1733 XFAIL for C++17 until node reinsertion supports fancy pointers.
1736 * testsuite/20_util/add_pointer/value.cc: Test forming function
1739 2017-01-13 Michael Brune <lucdanton@free.fr>
1742 * include/std/type_traits (__is_referenceable): Handle noexcept
1745 2017-01-12 Jonathan Wakely <jwakely@redhat.com>
1748 * include/bits/stl_queue.h (queue, priority_queue): Remove default
1749 member-initializers and define default constructors as templates with
1751 * include/bits/stl_stack.h (stack): Likewise.
1752 * testsuite/23_containers/priority_queue/requirements/constructible.cc:
1754 * testsuite/23_containers/priority_queue/requirements/
1755 explicit_instantiation/1.cc: Test more instantiations.
1756 * testsuite/23_containers/priority_queue/requirements/
1757 explicit_instantiation/1_c++98.cc: Likewise.
1758 * testsuite/23_containers/queue/requirements/constructible.cc: New.
1759 * testsuite/23_containers/stack/requirements/constructible.cc: New.
1762 * doc/xml/manual/intro.xml: Document LWG 2781 change.
1763 * doc/html/*: Regenerate.
1764 * include/std/functional (_Function_base::_Ref_manager): Remove.
1765 (_Function_handler): Remove partial specializations for
1767 (function::target): Remove special case for const qualification.
1768 * testsuite/20_util/function/6.cc: Adjust tests for target type.
1769 * testsuite/20_util/function/7.cc: Likewise.
1770 * testsuite/20_util/function/8.cc: Likewise.
1772 2017-01-11 Jonathan Wakely <jwakely@redhat.com>
1775 * include/bits/stl_map.h (map::lower_bound, map::upper_bound)
1776 (map::equal_range): Fix return type of heterogeneous overloads.
1777 * include/bits/stl_multimap.h (multimap::lower_bound)
1778 (multimap::upper_bound, multimap::equal_range): Likewise.
1779 * include/bits/stl_multiset.h (multiset::lower_bound)
1780 (multiset::upper_bound, multiset::equal_range): Likewise.
1781 * include/bits/stl_set.h (set::lower_bound, set::upper_bound)
1782 (set::equal_range): Likewise.
1783 * testsuite/23_containers/map/operations/2.cc
1784 * testsuite/23_containers/multimap/operations/2.cc
1785 * testsuite/23_containers/multiset/operations/2.cc
1786 * testsuite/23_containers/set/operations/2.cc
1789 * include/bits/stl_map.h (map::count<_Kt>(const _Kt&)): Don't assume
1790 the heterogeneous comparison can only find one match.
1791 * include/bits/stl_set.h (set::count<_Kt>(const _Kt&)): Likewise.
1792 * testsuite/23_containers/map/operations/2.cc: Test count works with
1793 comparison function that just partitions rather than sorting.
1794 * testsuite/23_containers/set/operations/2.cc: Likewise.
1796 2017-01-11 Ville Voutilainen <ville.voutilainen@gmail.com>
1798 Reduce the size of variant, it doesn't need an index of
1799 type size_t internally.
1800 * include/std/variant (parse_numbers.h): New include.
1801 (__select_index): New.
1802 (_Variant_storage<false, _Types...>::_M_reset_impl): Use
1803 _index_type for comparison with variant_npos.
1804 (_Variant_storage<false, _Types...>::__index_type): New.
1805 (_Variant_storage<false, _Types...>::_M_index): Change the
1806 type from size_t to __index_type.
1807 (_Variant_storage<true, _Types...>::__index_type): New.
1808 (_Variant_storage<true, _Types...>::_M_index): Change the
1809 type from size_t to __index_type.
1810 (_Variant_base::_M_valid): Use _Storage::__index_type
1811 for comparison with variant_npos.
1812 (variant::index): Use _Base::_Storage::__index_type
1813 for comparison with variant_npos.
1814 * testsuite/20_util/variant/index_type.cc: New.
1816 2017-01-10 Jonathan Wakely <jwakely@redhat.com>
1818 * testsuite/18_support/exception_ptr/60612-unexpected.cc: Adjust
1819 effective target selector to prevent running in C++17 mode.
1822 * include/bits/stl_queue.h (queue::c): Add default member initializer.
1823 (queue::queue()): Add constructor and define as defaulted.
1824 (queue::queue(_Sequence&&)): Remove default argument.
1825 (priority_queue::c, priority_queue::comp): Add default member
1827 (priority_queue::priority_queue()): Add constructor and define as
1829 (priority_queue::priority_queue(const _Compare&, _Sequence&&)):
1830 Remove default argument for first parameter.
1831 * include/bits/stl_stack.h (stack::c): Add default member initializer.
1832 (stack::stack()): Add constructor and define as defaulted.
1833 (stack::stack(const _Sequence&)): Remove default argument.
1834 * testsuite/23_containers/priority_queue/requirements/
1835 explicit_instantiation/1.cc: Test explicit instantiation with
1836 non-DefaultConstructible sequence.
1837 * testsuite/23_containers/priority_queue/77528.cc: New test.
1838 * testsuite/23_containers/priority_queue/requirements/
1839 explicit_instantiation/1_c++0x.cc: Replace with 1_c++98.cc.
1840 * testsuite/23_containers/queue/77528.cc: New test.
1841 * testsuite/23_containers/queue/requirements/explicit_instantiation/
1842 1.cc: Test explicit instantiation with non-DefaultConstructible
1844 * testsuite/23_containers/queue/requirements/explicit_instantiation/
1845 1_c++0x.cc: Replace with 1_c++98.cc.
1846 * testsuite/23_containers/stack/77528.cc: New test.
1847 * testsuite/23_containers/stack/requirements/explicit_instantiation/
1848 1.cc: Test explicit instantiation with non-DefaultConstructible
1850 * testsuite/23_containers/stack/requirements/explicit_instantiation/
1851 1_c++0x.cc: Replace with 1_c++98.cc.
1853 2017-01-10 Felipe Magno de Almeida <felipe@expertisesolutions.com.br>
1855 * include/bits/locale_facets_nonio.tcc
1856 (time_get::_M_extract_via_format): Avoid compilation errors with
1857 non-standard struct tm.
1859 2017-01-10 François Dumont <fdumont@gcc.gnu.org>
1860 Jonathan Wakely <jwakely@redhat.com>
1862 * python/libstdcxx/v6/printers.py (_versioned_namespace): Define.
1863 (is_specialization, strip_versioned_namespace): New helpers functions
1864 to work with symbols in the versioned namespace.
1865 (Printer.add_version): Add second name using versioned namespace.
1866 (add_one_template_type_printer, add_one_type_printer): Add second
1867 type printers using versioned namespace.
1868 (register_type_printers): Add template type printer for basic_string.
1869 (build_libstdcxx_dictionary): Remove dead code.
1870 * python/libstdcxx/v6/xmethods.py: Make all matchers look for
1871 versioned namespace.
1872 * testsuite/libstdc++-prettyprinters/48362.cc: Adjust expected
1874 * testsuite/libstdc++-prettyprinters/whatis.cc: Likewise.
1876 2017-01-09 Jonathan Wakely <jwakely@redhat.com>
1879 * acinclude.m4 (GLIBCXX_CHECK_C99_TR1): Check for llrint and llround
1880 functions separately on darwin and if they're missing define
1881 _GLIBCXX_NO_C99_ROUNDING_FUNCS.
1882 * config.h.in: Regenerate.
1883 * configure: Regenerate.
1884 * include/c_global/cmath [_GLIBCXX_NO_C99_ROUNDING_FUNCS] (llrint)
1885 (llrintf, llrintl, llround, llroundf, llroundl): Do not define.
1887 * testsuite/30_threads/condition_variable/members/3.cc: Use new macro
1888 to detect correct thread_local destructors.
1889 * testsuite/util/testsuite_hooks.h (CORRECT_THREAD_LOCAL_DTORS):
1892 2017-01-09 Jonathan Wakely <jwakely@redhat.com>
1893 Aditya Kumar <hiraditya@msn.com>
1896 * include/bits/basic_string.tcc
1897 (basic_string::find(const CharT*, size_type, size_type)): Optimize.
1899 2017-01-06 Jonathan Wakely <jwakely@redhat.com>
1901 * testsuite/21_strings/basic_string/operations/find/char/6.cc: New.
1902 * testsuite/21_strings/basic_string/operations/find/wchar_t/6.cc: New.
1904 * testsuite/util/performance/priority_queue/mem_usage/pop_test.hpp:
1905 Include <cassert> header.
1908 * crossconfig.m4: Check for __cxa_thread_atexit on *-*-freebsd*.
1909 * configure: Regenerate.
1911 2017-01-06 Barrett Adair <barrettellisadair@gmail.com>
1912 Jonathan Wakely <jwakely@redhat.com>
1914 * include/std/variant (variant, swap): Replace __and_ usage with fold
1917 2017-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1920 * acinclude.m4 (GLIBCXX_CHECK_ASSEMBLER_HWCAP): Remove.
1921 * configure.ac: Call GCC_CHECK_ASSEMBLER_HWCAP instead of
1922 GLIBCXX_CHECK_ASSEMBLER_HWCAP.
1923 * fragment.am (CONFIG_CXXFLAGS): Use HWCAP_CFLAGS instead of
1925 * aclocal.m4: Regenerate.
1926 * configure: Regenerate.
1927 * Makefile.in, doc/Makefile.in, include/Makefile.in,
1928 libsupc++/Makefile.in, po/Makefile.in, python/Makefile.in,
1929 src/Makefile.in, src/c++11/Makefile.in, src/c++98/Makefile.in,
1930 src/filesystem/Makefile.in, testsuite/Makefile.in: Regenerate.
1932 2017-01-06 Jonathan Wakely <jwakely@redhat.com>
1934 * include/bits/c++config (_GLIBCXX_ASSERTIONS): Avoid redefinition.
1937 * include/bits/predefined_ops.h (_Iter_comp_iter, _Iter_comp_val)
1938 (_Val_comp_iter, _Iter_equals_val, _Iter_pred, _Iter_comp_to_val)
1939 (_Iter_comp_to_iter, _Iter_negate): Make constructors explicit and
1940 move function objects.
1941 (__iter_comp_iter, __iter_comp_val, __val_comp_iter, __pred_iter)
1942 (__iter_comp_val, __iter_comp_iter, __negate): Move function objects.
1943 * testsuite/25_algorithms/sort/78991.cc: New test.
1945 2017-01-05 Jonathan Wakely <jwakely@redhat.com>
1947 * include/bits/std_function.h (function::_Signature_type): Remove.
1948 (function::function(_Functor)): Adjust.
1950 2017-01-05 Tim Shen <timshen@google.com>
1953 * include/std/variant (__gen_vtable_impl): rename __unused to
1954 __dimensions to avoid naming conflict.
1956 2017-01-04 Jonathan Wakely <jwakely@redhat.com>
1959 * config.h.in: Regenerate.
1960 * configure: Likewise.
1961 * configure.ac: Check for __cxa_thread_atexit.
1962 * libsupc++/atexit_thread.cc [_GLIBCXX_HAVE___CXA_THREAD_ATEXIT]:
1963 Don't define __cxa_thread_atexit if libc provides it.
1965 2017-01-04 Ville Voutilainen <ville.voutilainen@gmail.com>
1967 Implement 2801, Default-constructibility of unique_ptr.
1968 * include/bits/unique_ptr.h (__uniq_ptr_impl::_DeleterConstraint): New.
1969 (unique_ptr::_DeleterConstraint): Likewise.
1970 (unique_ptr()): Constrain.
1971 (unique_ptr(pointer)): Likewise.
1972 (unique_ptr(nullptr_t)): Likewise.
1973 (unique_ptr<_Tp[], _Dp>::_DeleterConstraint): New.
1974 (unique_ptr<_Tp[], _Dp>::unique_ptr()): Constrain.
1975 (unique_ptr<_Tp[], _Dp>::unique_ptr(_Up)): Likewise.
1976 (unique_ptr<_Tp[], _Dp>::unique_ptr(nullptr_t)): Likewise.
1977 * testsuite/20_util/unique_ptr/assign/48635_neg.cc: Adjust.
1978 * testsuite/20_util/unique_ptr/cons/cv_qual_neg.cc: Likewise.
1979 * testsuite/20_util/unique_ptr/cons/default.cc: New.
1980 * testsuite/20_util/unique_ptr/cons/ptr_deleter_neg.cc: Adjust.
1982 2017-01-04 Pauli Nieminen <suokkos@gmail.com>
1983 Jonathan Wakely <jwakely@redhat.com>
1986 * acinclude.m4 (GLIBCXX_CHECK_EXCEPTION_PTR_SYMVER): Define.
1987 * config.h.in: Regenerate.
1988 * config/abi/pre/gnu.ver [HAVE_EXCEPTION_PTR_SINCE_GCC46]
1989 (GLIBCXX_3.4.15, GLIBCXX_3.4.21, CXXABI_1.3.3, CXXABI_1.3.5): Make
1990 exports for exception_ptr, nested_exception, and future conditional.
1991 [HAVE_EXCEPTION_PTR_SINCE_GCC46] (GLIBCXX_3.4.23, CXXABI_1.3.11): Add
1992 exports for exception_ptr, nested_exception, and future conditional.
1993 * configure: Regenerate.
1994 * configure.ac: Use GLIBCXX_CHECK_EXCEPTION_PTR_SYMVER.
1995 * include/std/future: Remove check for ATOMIC_INT_LOCK_FREE
1996 * libsupc++/eh_atomics.h: New file for internal use only.
1997 (__eh_atomic_inc, __eh_atomic_dec): New.
1998 * libsupc++/eh_ptr.cc (exception_ptr::_M_addref)
1999 (exception_ptr::_M_release) (__gxx_dependent_exception_cleanup)
2000 (rethrow_exception): Use eh_atomics.h reference counting helpers.
2001 * libsupc++/eh_throw.cc (__gxx_exception_cleanup): Likewise.
2002 * libsupc++/eh_tm.cc (free_any_cxa_exception): Likewise.
2003 * libsupc++/exception: Remove check for ATOMIC_INT_LOCK_FREE.
2004 * libsupc++/exception_ptr.h: Likewise.
2005 * libsupc++/guard.cc: Include header for ATOMIC_INT_LOCK_FREE macro.
2006 * libsupc++/nested_exception.cc: Remove check for
2007 ATOMIC_INT_LOCK_FREE.
2008 * libsupc++/nested_exception.h: Likewise.
2009 * src/c++11/future.cc: Likewise.
2010 * testsuite/18_support/exception_ptr/*: Remove atomic builtins checks.
2011 * testsuite/18_support/nested_exception/*: Likewise.
2012 * testsuite/30_threads/async/*: Likewise.
2013 * testsuite/30_threads/future/*: Likewise.
2014 * testsuite/30_threads/headers/future/types_std_c++0x.cc: Likewise.
2015 * testsuite/30_threads/packaged_task/*: Likewise.
2016 * testsuite/30_threads/promise/*: Likewise.
2017 * testsuite/30_threads/shared_future/*: Likewise.
2019 2017-01-03 Gerald Pfeifer <gerald@pfeifer.com>
2021 * doc/xml/manual/documentation_hacking.xml: sourceforge.net now
2022 defaults to https; adjust reference.
2024 2017-01-03 Jonathan Wakely <jwakely@redhat.com>
2027 * include/std/thread (thread(const thread&&)): Add deleted
2029 * testsuite/30_threads/thread/cons/lwg2097.cc: New test.
2031 * doc/xml/manual/spine.xml: Update copyright years.
2032 * doc/xml/manual/build_hacking.xml: Fix spelling of libbuilddir.
2033 * doc/xml/manual/test.xml: Likewise.
2034 * doc/html/*: Regenerate.
2036 2017-01-01 Gerald Pfeifer <gerald@pfeifer.com>
2038 * doc/xml/faq.xml: Update address of C++ ABI link.
2039 * doc/xml/manual/abi.xml: Ditto.
2041 2017-01-01 Jakub Jelinek <jakub@redhat.com>
2043 Update copyright years.
2045 Copyright (C) 2017 Free Software Foundation, Inc.
2047 Copying and distribution of this file, with or without modification,
2048 are permitted in any medium without royalty provided the copyright
2049 notice and this notice are preserved.