1 2017-06-02 Jonathan Wakely <jwakely@redhat.com>
3 * libsupc++/Makefile.am: Remove custom targets for files that need to
4 be compiled as C++11 or C++14.
5 * libsupc++/Makefile.in: Regenerate.
6 * libsupc++/del_ops.cc: Use pragma to disable -Wsized-deallocation
8 * libsupc++/del_opvs.cc: Likewise.
10 2017-06-02 Richard Biener <rguenther@suse.de>
11 Markus Eisenmann <meisenmann.lba@fh-salzburg.ac.at>
14 * libsupc++/eh_alloc.cc (pool::free): Keep list properly
15 sorted and add missing freelist item merging cases.
17 2017-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19 (GLIBCXX_CROSSCONFIG): Handle *-solaris* like *-linux* etc.
20 Remove *-solaris* section.
21 * configure: Regenerate.
23 2017-05-31 Jonathan Wakely <jwakely@redhat.com>
26 * include/bits/stl_bvector.h (vector<bool>::_M_initialize): Avoid
27 null pointer dereference when size is zero.
28 * testsuite/23_containers/vector/bool/80893.cc: New.
29 * testsuite/util/testsuite_allocator.h (PointerBase::PointerBase):
30 Add non-explicit constructor from nullptr.
31 (PointerBase::derived() const): Add const-qualified overload.
33 2017-05-20 Tim Shen <timshen@google.com>
36 * include/std/variant(variant::variant): SFINAE on is_same first.
37 * testsuite/20_util/variant/any.cc: test case.
39 2017-05-24 Jonathan Wakely <jwakely@redhat.com>
41 * src/c++11/random.cc (random_device::_M_getentropy): Use __CHAR_BIT__
42 instead of fixed number of bits.
44 2017-05-24 Andreas Schwab <schwab@suse.de>
46 * config/abi/post/ia64-linux-gnu/baseline_symbols.txt: Update.
47 * config/abi/post/m68k-linux-gnu/baseline_symbols.txt: Likewise.
49 2017-05-23 Xi Ruoyao <ryxi@stu.xidian.edu.cn>
50 Jonathan Wakely <jwakely@redhat.com>
53 * acinclude.m4: Bump libtool_VERSION.
54 * config/abi/pre/gnu.ver: Create GLIBCXX_3.4.24 with new symbol.
55 * config.h.in: Regenerate.
56 * configure: Regenerate.
57 * configure.ac: Add test for <linux/random.h>.
58 * doc/xml/manual/abi.xml: Document new library version.
59 * include/bits/random.h (random_device::entropy)
60 [_GLIBCXX_USE_RANDOM_TR1]: Add call to new _M_getentropy member.
61 (random_device::_M_getentropy): Declare.
62 * src/c++11/random.cc (random_device::_M_getentropy): Define.
63 * testsuite/util/testsuite_abi.cc: Add GLIBCXX_3.4.24 to known
64 versions, and make it the latest version.
66 2017-05-23 Xi Ruoyao <ryxi@stu.xidian.edu.cn>
69 * include/bits/locale_facets.tcc (num_get::_M_extract_int): Add
70 explicit conversion to avoid signed overflow.
72 2017-05-19 Jonathan Wakely <jwakely@redhat.com>
75 * include/bits/stl_algo.h (search): Add new overload for C++17.
76 * testsuite/25_algorithms/search/searcher.cc: New.
78 2017-05-18 Jonathan Wakely <jwakely@redhat.com>
81 * include/std/functional (_Mem_fn_traits_base): Add specializations
82 for noexcept member function types.
83 * testsuite/20_util/function_objects/mem_fn/80478.cc: New test.
85 2017-05-18 Jonathan Wakely <jwakely@redhat.com>
87 * doc/xml/manual/policy_data_structures.xml: Fix typo.
88 * doc/xml/manual/test_policy_data_structures.xml: Likewise.
89 * doc/html/*: Regenerate.
91 * doc/xml/manual/abi.xml: Document latest library versions.
92 * doc/xml/manual/build_hacking.xml: Document requirement to update
93 abi.xml when bumping library versions.
94 * doc/html/*: Regenerate.
96 2017-05-17 Jonathan Wakely <jwakely@redhat.com>
98 * include/bits/refwrap.h: Fix Doxygen warning.
99 * include/bits/specfun.h: Likewise.
100 * include/bits/std_function.h: Likewise.
101 * include/bits/stl_algo.h (set_union, set_intersection)
102 (set_difference, set_symmetric_difference): Add Doxygen @param tags
103 for output iterator parameters.
104 * include/bits/stl_iterator.h (inserter): Add Doxygen @param tag for
106 * include/std/mutex (try_lock, lock): Change Mutex to Lockable in
109 2017-05-17 Ville Voutilainen <ville.voutilainen@gmail.com>
111 Implement new C++ intrinsics __is_assignable and __is_constructible.
112 * include/std/type_traits (__do_is_static_castable_impl): Remove.
113 (__is_static_castable_impl, __is_static_castable_safe): Likewise.
114 (__is_static_castable, __do_is_direct_constructible_impl): Likewise.
115 (__is_direct_constructible_impl): Likewise.
116 (__is_direct_constructible_new_safe): Likewise.
117 (__is_base_to_derived_ref, __is_lvalue_to_rvalue_ref): Likewise.
118 (__is_direct_constructible_ref_cast): Likewise.
119 (__is_direct_constructible_new, __is_direct_constructible): Likewise.
120 (__do_is_nary_constructible_impl): Likewise.
121 (__is_nary_constructible_impl, __is_nary_constructible): Likewise.
122 (__is_constructible_impl): Likewise.
123 (is_constructible): Call the intrinsic.
124 (__is_assignable_helper): Remove.
125 (is_assignable): Call the intrinsic.
126 (is_trivially_constructible): Likewise.
127 (__is_trivially_copy_constructible_impl): New.
128 (is_trivially_copy_constructible): Use it.
129 (__is_trivially_move_constructible_impl): New.
130 (is_trivially_move_constructible): Use it.
131 (is_trivially_assignable): Call the intrinsic.
132 (__is_trivially_copy_assignable_impl): New.
133 (is_trivially_copy_assignable): Use it.
134 (__is_trivially_move_assignable_impl): New.
135 (is_trivially_move_assignable): Use it.
136 (testsuite/20_util/declval/requirements/1_neg.cc): Adjust.
137 (testsuite/20_util/is_trivially_copy_assignable/value.cc):
139 (testsuite/20_util/is_trivially_copy_constructible/value.cc): Likewise.
140 (testsuite/20_util/is_trivially_move_assignable/value.cc): Likewise.
141 (testsuite/20_util/is_trivially_move_constructible/value.cc): Likewise.
142 (testsuite/20_util/make_signed/requirements/typedefs_neg.cc): Adjust.
143 (testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc):
146 2017-05-16 Jonathan Wakely <jwakely@redhat.com>
148 * testsuite/experimental/source_location/1.cc: Change expected result
149 for source_location::current() used in default member initializer.
151 * doc/xml/manual/status_cxx2017.xml: Update status table.
152 * doc/html/*: Regenerate.
153 * include/Makefile.am: Add new header.
154 * include/Makefile.in: Regenerate.
155 * include/experimental/source_location: New header implementing N4519.
156 * testsuite/experimental/source_location/1.cc: New test.
159 * include/bits/shared_ptr_base.h [!__cpp_rtti] (type_info): Declare
160 outside versioned namespace.
162 * configure: Regenerate.
164 2017-05-16 Marc Glisse <marc.glisse@inria.fr>
166 * include/std/optional (_Optional_base::_M_get): Check precondition.
167 * testsuite/20_util/optional/cons/value_neg.cc: Update line numbers.
169 2017-05-16 Jonathan Wakely <jwakely@redhat.com>
171 * doc/xml/manual/appendix_contributing.xml: Link to test docs and
172 note higher DejaGnu version requirement.
173 * doc/html/*: Regenerate.
175 * doc/xml/manual/appendix_contributing.xml: Link to the list of bad
177 * doc/html/*: Regenerate.
179 2017-05-15 Jonathan Wakely <jwakely@redhat.com>
182 * include/bits/node_handle.h (_Node_insert_return): Reorder members.
183 (tuple_size, tuple_element): Remove partial specializations.
184 * include/bits/stl_tree.h (_Rb_tree::insert_return_type): Use
185 const_iterator for std::set.
186 * testsuite/23_containers/map/modifiers/extract.cc: New.
187 * testsuite/23_containers/set/modifiers/extract.cc: New.
188 * testsuite/23_containers/unordered_map/modifiers/extract.cc: New.
189 * testsuite/23_containers/unordered_set/modifiers/extract.cc: New.
191 2017-05-12 Jonathan Wakely <jwakely@redhat.com>
194 * include/std/utility (tuple_size<cv T>): Only define partial
195 specializations when tuple_size<T>::value is valid.
196 * testsuite/20_util/tuple/78939.cc: New.
197 * testsuite/20_util/tuple/cv_tuple_size_neg.cc: New.
199 2017-05-11 François Dumont <fdumont@gcc.gnu.org>
201 * include/bits/stl_tree.h [_GLIBCXX_INLINE_VERSION]
202 (_Rb_tree_impl<>): Remove _Is_pod_comparator
205 * include/debug/formatter.h [_GLIBCXX_INLINE_VERSION]
206 (__gnu_debug::_Error_formatter::_Parameter::_M_print_field): Remove.
207 (__gnu_debug::_Error_formatter::_Parameter::_M_print_description):
209 (__gnu_debug::_Error_formatter::_M_format_word): Remove.
210 (__gnu_debug::_Error_formatter::_M_print_word): Remove.
211 (__gnu_debug::_Error_formatter::_M_print_string): Remove.
212 (__gnu_debug::_Error_formatter::_M_get_max_length): Remove.
213 * src/c++11/debug.cc: Adapt.
214 * config/abi/pre/gnu-versioned-namespace.ver: Adapt.
216 2017-05-11 Jonathan Wakely <jwakely@redhat.com>
218 * doc/xml/manual/allocator.xml: Fix ViewCVS URLs.
219 * doc/xml/manual/mt_allocator.xml: Likewise.
220 * doc/html/*: Regenerate.
223 * include/bits/shared_ptr_base.h (_Sp_make_shared_tag::_S_ti): Define
224 function to get unique fake std::type_info reference.
225 (_Sp_counted_ptr_inplace::_M_get_deleter) [!__cpp_rtti]: Compare to
226 _S_ti() fake reference.
227 (__shared_ptr(_Sp_make_shared_tag, const Alloc&, Args&&...)): Share
228 single implementation with or without RTTI enable.
229 [!__cpp_rtti]: Pass fake reference to _M_get_deleter.
230 * testsuite/20_util/shared_ptr/creation/alloc.cc: Change expected
231 allocation and deallocation counts.
232 * testsuite/20_util/shared_ptr/creation/single_allocation.cc: New.
233 * testsuite/20_util/shared_ptr/creation/single_allocation_no_rtti.cc:
236 2017-05-10 François Dumont <fdumont@gcc.gnu.org>
238 Bump version namespace.
239 * config/abi/pre/gnu-versioned-namespace.ver: Bump version namespace
240 from __7 to __8. Bump GLIBCXX_7.0 to GLIBCXX_8.0.
241 * acinclude.m4 (libtool_VERSION): Bump to 8:0:0.
242 * include/bits/c++config: Adapt.
243 * include/bits/regex.h: Adapt.
244 * include/experimental/bits/fs_fwd.h: Adapt.
245 * include/experimental/bits/lfts_config.h: Adapt.
246 * include/std/variant: Adapt.
247 * python/libstdcxx/v6/printers.py: Adapt.
248 * testsuite/libstdc++-prettyprinters/48362.cc: Adapt.
250 * include/bits/stl_algobase.h (std::__iter_swap<false>): Remove
253 2017-05-09 Jason Merrill <jason@redhat.com>
255 * testsuite/24_iterators/container_access.cc (test03): Make il3 static.
257 2017-05-08 Jonathan Wakely <jwakely@redhat.com>
259 * include/std/optional: Use a separate static_assert per condition.
260 * testsuite/20_util/optional/cons/value_neg.cc: Update dg-error line
263 * doc/xml/manual/mt_allocator.xml: Clarify deallocation behaviour.
264 * doc/html/*: Regenerate.
266 2017-05-02 Hugo Beauzée-Luyssen <hugo@beauzee.fr>
269 * config/os/mingw32-w64/os_defines.h (_GLIBCXX_USE_WEAK_REF): Define.
271 2017-04-29 François Dumont <fdumont@gcc.gnu.org>
273 * testsuite/libstdc++-prettyprinters/48362.cc: Replace a regexp-test
276 2017-04-28 Jonathan Wakely <jwakely@redhat.com>
279 * include/bits/stl_construct.h (_Destroy, _Destroy_n): Add static
280 assertions to ensure type is destructible.
281 (destroy_at, destroy, destroy_n): Move from stl_uninitialized.h.
282 * include/bits/stl_uninitialized.h (destroy_at, destroy, destroy_n):
283 Move to stl_construct.h.
284 * testsuite/20_util/specialized_algorithms/memory_management_tools/
285 destroy_neg.cc: New test.
286 * testsuite/23_containers/vector/cons/destructible_neg.cc: New test.
288 * testsuite/17_intro/headers/c++1998/stdc++_assert_neg.cc: Remove
289 superfluous "" in dg-error.
291 2017-04-28 Tom de Vries <tom@codesourcery.com>
293 * testsuite/17_intro/headers/c++1998/stdc++_assert_neg.cc: Remove
294 superfluous '{ target *-*-* }' in dg-(error|warning|message|bogus).
296 2017-04-27 Jonathan Wakely <jwakely@redhat.com>
298 * include/ext/pb_ds/detail/list_update_map_/iterators_fn_imps.hpp
299 (PB_DS_CLASS_C_DEC::end()): Remove redundant const in cast type.
300 * testsuite/util/testsuite_rng.h (twister_rand_gen::get_prob()):
303 2017-04-26 Jonathan Wakely <jwakely@redhat.com>
305 * testsuite/23_containers/deque/allocator/move_assign-2.cc: Improve
306 comment. Ensure first test works because allocator type propagates and
307 not because is_always_equal is true.
308 * testsuite/23_containers/vector/52591.cc: Likewise. Restore original
309 testcase that instantiates the move-assignment operator.
311 2017-04-24 Jonathan Wakely <jwakely@redhat.com>
314 * include/bits/random.tcc (gamma_distribution::operator()): Fix magic
315 number used in loop condition.
318 * include/bits/refwrap.h (ref, cref): Qualify calls.
319 * testsuite/20_util/reference_wrapper/80504.cc: New test.
322 * include/experimental/optional (optional::swap): Fix exception
325 2017-04-21 Jonathan Wakely <jwakely@redhat.com>
328 * include/std/future (_State_baseV2::_Setter::operator()): Remove
329 _S_check calls that are done after the pointer to the shared state is
330 already dereferenced.
331 (_State_baseV2::_Setter<_Res, void>): Define specialization for void
332 as partial specialization so it can be defined within the definition
334 (_State_baseV2::__setter): Call _S_check.
335 (_State_baseV2::__setter(promise<void>*)): Add overload for use by
336 promise<void>::set_value and promise<void>::set_value_at_thread_exit.
337 (promise<T>, promise<T&>, promise<void>): Make _State a friend.
338 (_State_baseV2::_Setter<void, void>): Remove explicit specialization.
339 (promise<void>::set_value, promise<void>::set_value_at_thread_exit):
340 Use new __setter overload.
341 * testsuite/30_threads/promise/members/at_thread_exit2.cc: New test.
342 * testsuite/30_threads/promise/members/set_exception.cc: Test
343 promise<T&> and promise<void> specializations.
344 * testsuite/30_threads/promise/members/set_exception2.cc: Likewise.
345 Test for no_state error condition.
346 * testsuite/30_threads/promise/members/set_value2.cc: Likewise.
348 * include/backward/auto_ptr.h: Ignore deprecated warnings from use
350 * include/bits/shared_ptr.h: Likewise.
351 * include/bits/shared_ptr_base.h: Likewise.
352 * include/bits/unique_ptr.h: Likewise.
353 * libstdc++-v3/testsuite/20_util/default_delete/48631_neg.cc: Adjust
355 * libstdc++-v3/testsuite/20_util/default_delete/void_neg.cc: Likewise.
356 * libstdc++-v3/testsuite/20_util/unique_ptr/assign/48635_neg.cc:
358 * libstdc++-v3/testsuite/20_util/unique_ptr/cons/cv_qual_neg.cc:
361 2017-04-20 Edward Smith-Rowland <3dw4rd@verizon.net>
363 PR libstdc++/68397 std::tr1::expint fails ... long double arguments.
364 * include/tr1/exp_integral.tcc: Increase iteration limits.
365 * testsuite/tr1/5_numerical_facilities/special_functions/15_expint/
366 pr68397.cc: New test.
367 * testsuite/special_functions/14_expint/pr68397.cc: New test.
369 2017-04-20 Jonathan Wakely <jwakely@redhat.com>
372 * include/std/atomic [!_GLIBCXX_USE_C99_STDINT_TR1] (atomic_int8_t)
373 (atomic_uint8_t, atomic_int16_t, atomic_uint16_t, atomic_int32_t,
374 (atomic_uint32_t, atomic_int64_t, atomic_uint64_t)
375 (atomic_int_least8_t, atomic_uint_least8_t, atomic_int_least16_t)
376 (atomic_uint_least16_t, atomic_int_least32_t, atomic_uint_least32_t)
377 (atomic_int_least64_t, atomic_uint_least64_t, atomic_int_fast8_t)
378 (atomic_uint_fast8_t, atomic_int_fast16_t, atomic_uint_fast16_t)
379 (atomic_int_fast32_t, atomic_uint_fast32_t, atomic_int_fast64_t)
380 (atomic_uint_fast64_t, atomic_intmax_t, atomic_uintmax_t): Don't
383 2017-04-19 Jonathan Wakely <jwakely@redhat.com>
385 * doc/xml/manual/abi.xml: Rephrase one of the references to the
387 * doc/xml/manual/test.xml: Document DejaGnu 1.5.3 requirement.
388 * doc/html/*: Regenerate.
390 * libsupc++/new: Update comment on #endif directive.
393 * include/experimental/bits/fs_dir.h (directory_iterator)
394 (recursive_directory_iterator): Remove noexcept from defaulted
398 * include/std/type_traits (is_aggregate): Change __has_builtin checks.
399 * libsupc++/new (launder): Likewise.
401 2017-04-18 Jonathan Wakely <jwakely@redhat.com>
403 * include/std/functional (default_searcher, __boyer_moore_array_base)
404 (__is_std_equal_to, __boyer_moore_base_t, boyer_moore_searcher)
405 (boyer_moore_horspool_searcher): Remove redundant namespace
407 (default_searcher::operator()): Construct return value early and
408 advance second member in-place.
409 (boyer_moore_horspool_searcher::operator()): Increment random access
410 iterator directly instead of using std::next.
411 (boyer_moore_searcher::operator()): Fix return value.
412 * testsuite/20_util/function_objects/searchers.cc: Check both parts
415 2017-04-12 Gerald Pfeifer <gerald@pfeifer.com>
417 * doc/xml/faq.xml: Update reference link to C++ ABI for Itanium.
418 * doc/xml/manual/abi.xml. Ditto (thrice).
420 2017-04-03 Jonathan Wakely <jwakely@redhat.com>
422 * doc/xml/manual/status_cxx2017.xml: Remove duplicate table entry.
423 * doc/html/*: Regenerate.
425 * testsuite/20_util/reference_wrapper/invoke.cc: Uncomment tests
428 * include/bits/ios_base.h: Correct comment.
429 * testsuite/util/testsuite_hooks.h: Likewise.
431 * doc/xml/manual/status_cxx2017.xml: Update C++17 status table.
432 * doc/xml/manual/appendix_contributing.xml (contrib.organization): Add
433 directories for debug, parallel and profile headers.
434 * doc/html/*: Regenerate.
436 * include/bits/char_traits.h (__gnu_cxx::char_traits): Add
437 _GLIBCXX14_CONSTEXPR on assign, compare, find, and length.
438 (std::char_traits<char>, std::char_traits<wchar_t>): Add
439 _GLIBCXX17_CONSTEXPR on assign.
440 (std::char_traits<char16_t>, std::char_traits<char32_t>): Add
441 _GLIBCXX17_CONSTEXPR on assign, compare, find, and length.
442 * testsuite/21_strings/char_traits/requirements/
443 constexpr_functions_c++17.cc: New test.
445 2017-04-03 Ville Voutilainen <ville.voutilainen@gmail.com>
448 * include/bits/stl_pair.h (__nonesuch_no_braces): New.
449 (operator=(typename conditional<
450 __and_<is_copy_assignable<_T1>,
451 is_copy_assignable<_T2>>::value,
452 const pair&, const __nonesuch&>::type)): Change __nonesuch
453 to __nonesuch_no_braces.
454 (operator=(typename conditional<
455 __not_<__and_<is_copy_assignable<_T1>,
456 is_copy_assignable<_T2>>>::value,
457 const pair&, const __nonesuch&>::type)): Likewise.
458 (operator=(typename conditional<
459 __and_<is_move_assignable<_T1>,
460 is_move_assignable<_T2>>::value,
461 pair&&, __nonesuch&&>::type)): Likewise.
462 * testsuite/20_util/pair/79141.cc: New.
464 2017-04-03 Ville Voutilainen <ville.voutilainen@gmail.com>
466 Implement std::is_aggregate.
467 * include/std/type_traits (is_aggregate, is_aggregate_v): New.
468 * testsuite/20_util/is_aggregate/requirements/explicit_instantiation.cc:
470 * testsuite/20_util/is_aggregate/requirements/typedefs.cc: Likewise.
471 * testsuite/20_util/is_aggregate/value.cc: Likewise.
473 2017-03-29 Ville Voutilainen <ville.voutilainen@gmail.com>
475 Adjust optional's pretty printer for LWG 2900.
476 * python/libstdcxx/v6/printers.py (StdExpOptionalPrinter.__init__):
477 Look at the nested payload in case of non-experimental optional.
479 2017-03-29 Ville Voutilainen <ville.voutilainen@gmail.com>
481 Implement LWG 2900, The copy and move constructors
482 of optional are not constexpr.
483 * include/std/optional (_Optional_payload): New.
484 (_Optional_base): Remove the bool parameter.
485 (_Optional_base<_Tp, false>): Remove.
486 (_Optional_base()): Adjust.
487 (_Optional_base(nullopt_t)): Likewise.
488 (_Optional_base(in_place_t, _Args&&...)): Likewise.
489 (_Optional_base(in_place_t, initializer_list<_Up>, _Args&&...)):
491 (_Optional_base(const _Optional_base&)): Likewise.
492 (_Optional_base(_Optional_base&&)): Likewise.
493 (operator=(const _Optional_base&)): Likewise.
494 (operator=(_Optional_base&&)): Likewise.
495 (~_Optional_base()): Remove.
496 (_M_is_engaged()): Adjust.
497 (_M_get()): Likewise.
498 (_M_construct(_Args&&...)): Likewise.
499 (_M_destruct()): Likewise.
500 (_M_reset()): Likewise.
501 (_Optional_base::_Empty_byte): Remove.
502 (_Optional_base::_M_empty): Remove.
503 (_Optional_base::_M_payload): Adjust.
504 * testsuite/20_util/optional/cons/value_neg.cc: Adjust.
505 * testsuite/20_util/optional/constexpr/cons/value.cc: Add tests.
507 2017-03-28 Jonathan Wakely <jwakely@redhat.com>
510 * include/bits/random.tcc (generate_canonical): Use std::nextafter
511 or numeric_limits::epsilon() to reduce out-of-range values.
512 * testsuite/26_numerics/random/uniform_real_distribution/operators/
513 64351.cc: Verify complexity requirement is met.
515 * doc/xml/manual/abi.xml: Add xml:id anchor.
516 * doc/xml/manual/using.xml (manual.intro.using.macros): Document
517 _GLIBCXX_RELEASE. Link to new anchor for __GLIBCXX__ notes.
518 (concurrency.io.structure): Add markup.
519 * doc/html/*: Regenerate.
522 * include/bits/shared_ptr_base.h
523 (__shared_ptr::_M_enable_shared_from_this_with): Change parameters to
524 non-const and then use remove_cv to get unqualified type.
525 * testsuite/20_util/enable_shared_from_this/members/const.cc: Don't
526 cast away constness on object created const.
527 * testsuite/20_util/shared_ptr/cons/80229.cc: New test.
529 2017-03-26 Markus Trippelsdorf <markus@trippelsdorf.de>
532 * include/bits/stl_tree.h:
533 (_Rb_tree_header::_M_move_data(_Rb_tree_header&)): Also save _M_color.
535 2017-03-23 Jonathan Wakely <jwakely@redhat.com>
537 * testsuite/23_containers/array/tuple_interface/
538 tuple_element_debug_neg.cc: Adjust dg-error.
539 * testsuite/23_containers/list/operations/78389.cc: Fix less-than to
540 define a valid strict weak ordering.
541 * testsuite/23_containers/priority_queue/67085.cc: Disable test for
542 Debug Mode, due to debug checks making extra copies of predicate.
543 * testsuite/ext/pb_ds/regression/priority_queue_binary_heap-62045.cc:
546 * doc/xml/faq.xml: Add link.
547 * doc/xml/manual/backwards_compatibility.xml: Remove outdated
548 information on pre-ISO headers. Replace broken link to C++ FAQ Lite.
549 * doc/xml/manual/io.xml: Update broken link.
550 * doc/html/*: Regenerate.
552 2017-03-23 Daniel Kruegler <daniel.kruegler@gmail.com>
554 Implement LWG 2686, Why is std::hash specialized for error_code,
555 but not error_condition?
556 * include/std/system_error (hash<error_condition>): Define for C++17.
557 * testsuite/20_util/hash/operators/size_t.cc (hash<error_condition>):
558 Instantiate test for error_condition.
559 * testsuite/20_util/hash/requirements/explicit_instantiation.cc
560 (hash<error_condition>): Instantiate hash<error_condition>.
562 * include/bits/c++config (_GLIBCXX17_INLINE): Define.
563 * include/bits/regex_constants.h (All std::regex_constants constants):
564 Add _GLIBCXX17_INLINE as per P0607R0.
565 * include/bits/std_mutex.h (defer_lock, try_to_lock, adopt_lock):
567 * include/bits/stl_pair.h (piecewise_construct): Likewise.
568 * include/bits/uses_allocator.h (allocator_arg, uses_allocator_v)
569 (__is_uses_allocator_constructible_v)
570 (__is_nothrow_uses_allocator_constructible_v): Likewise.
571 * include/std/chrono (treat_as_floating_point_v): Likewise.
572 * include/std/functional (is_bind_expression_v, is_placeholder_v):
574 * include/std/optional (nullopt): Likewise.
575 * include/std/ratio (ratio_equal_v, ratio_not_equal_v, ratio_less_v)
576 ratio_less_equal_v, ratio_greater_v, ratio_greater_equal_v): Likewise.
577 * include/std/system_error (is_error_code_enum_v)
578 (is_error_condition_enum_v): Likewise.
579 * include/std/tuple (tuple_size_v, ignore): Likewise.
580 (ignore): Declare ignore constexpr as per LWG 2773, declare assignment
581 constexpr as per LWG 2933.
582 * include/std/type_traits (All variable templates): Add
583 _GLIBCXX17_INLINE as per P0607R0.
584 * include/std/variant (variant_size_v, variant_npos, __index_of_v)
585 (__tuple_count_v, __exactly_once): Likewise.
586 * testsuite/18_support/headers/new/synopsis.cc
587 (hardware_destructive_interference_size)
588 (hardware_constructive_interference_size): Likewise for commented-out
590 * testsuite/20_util/tuple/creation_functions/constexpr.cc: Add new
591 test function for constexpr std::ignore (LWG 2773).
592 * testsuite/20_util/tuple/creation_functions/constexpr_cpp14.cc: New
595 2017-03-22 Jonathan Wakely <jwakely@redhat.com>
597 * include/bits/shared_ptr.h (shared_ptr, weak_ptr): Add deduction
599 * include/bits/std_function.h (function): Likewise.
600 * include/bits/stl_pair.h (pair): Likewise.
601 * include/debug/array (__gnu_debug::array): Likewise.
602 * include/std/array (array): Likewise.
603 * include/std/functional (make_default_searcher)
604 (make_boyer_moore_searcher, make_boyer_moore_horspool_searcher):
605 Remove generator functions.
606 * include/std/tuple (tuple): Add deduction guides.
607 * include/std/valarray (valarray): Likewise.
608 * testsuite/20_util/function_objects/searchers.cc: Adjust to use
609 class template argument deduction instead of generator functions.
610 * testsuite/20_util/function/cons/deduction.cc: New test.
611 * testsuite/20_util/optional/cons/deduction_guide.cc: Rename to ...
612 * testsuite/20_util/optional/cons/deduction.cc: ... here.
613 * testsuite/20_util/pair/cons/deduction.cc: New test.
614 * testsuite/20_util/shared_ptr/cons/deduction.cc: New test.
615 * testsuite/20_util/tuple/cons/deduction.cc: New test.
616 * testsuite/20_util/tuple/element_access/get_neg.cc: Adjust dg-error.
617 * testsuite/20_util/unique_ptr/cons/deduction_neg.cc: New test.
618 * testsuite/20_util/weak_ptr/cons/deduction.cc: New test.
619 * testsuite/23_containers/array/cons/deduction.cc: New test.
620 * testsuite/23_containers/array/cons/deduction_neg.cc: New test.
621 * testsuite/23_containers/array/tuple_interface/get_debug_neg.cc:
623 * testsuite/23_containers/array/tuple_interface/get_neg.cc: Likewise.
624 * testsuite/23_containers/array/tuple_interface/tuple_element_neg.cc:
626 * testsuite/26_numerics/valarray/deduction.cc: New test.
627 * testsuite/30_threads/lock_guard/cons/deduction.cc: New test.
628 * testsuite/30_threads/scoped_lock/cons/deduction.cc: New test.
629 * testsuite/30_threads/unique_lock/cons/deduction.cc: New test.
631 2017-03-20 François Dumont <fdumont@gcc.gnu.org>
633 * include/bits/stl_deque.h (deque): Access allocator value_type only if
634 concept checks are enabled.
635 * include/bits/stl_stack.h (stack): Likewise.
636 * include/bits/stl_vector.h (vector): Likewise.
637 * include/bits/stl_list.h (list): Likewise and check
638 _SGIAssignableConcept only in C++03.
639 * include/bits/stl_map.h (map): Likewise.
640 * include/bits/stl_set.h (set): Likewise.
641 * include/bits/stl_multimap.h (multimap): Likewise.
642 * include/bits/stl_multiset.h (multiset): Likewise.
643 * include/bits/stl_queue.h (queue, priority_queue): Likewise.
645 2017-03-18 Gerald Pfeifer <gerald@pfeifer.com>
647 * doc/xml/manual/appendix_contributing.xml: Convert link to
649 Update link to the C++ standard at ansi.org.
651 * doc/xml/faq.xml: Remove information redundant with the above;
652 instead add a reference.
654 2017-03-17 Jonathan Wakely <jwakely@redhat.com>
656 * src/c++11/codecvt.cc (range): Add non-type template parameter and
657 define oerloaded operators for reading and writing code units.
658 (range<Elem, false>): Define partial specialization for accessing
659 wide characters in potentially unaligned byte ranges.
660 (ucs2_span(const char16_t*, const char16_t*, ...))
661 (ucs4_span(const char16_t*, const char16_t*, ...)): Change parameters
662 to range<const char16_t, false> in order to avoid unaligned reads.
663 (__codecvt_utf16_base<char16_t>::do_out)
664 (__codecvt_utf16_base<char32_t>::do_out)
665 (__codecvt_utf16_base<wchar_t>::do_out): Use range specialization for
666 unaligned data to avoid unaligned writes.
667 (__codecvt_utf16_base<char16_t>::do_in)
668 (__codecvt_utf16_base<char32_t>::do_in)
669 (__codecvt_utf16_base<wchar_t>::do_in): Likewise for writes. Return
670 error if there are unprocessable trailing bytes.
671 (__codecvt_utf16_base<char16_t>::do_length)
672 (__codecvt_utf16_base<char32_t>::do_length)
673 (__codecvt_utf16_base<wchar_t>::do_length): Pass arguments of type
674 range<const char16_t, false> to span functions.
675 * testsuite/22_locale/codecvt/codecvt_utf16/misaligned.cc: New test.
677 2017-03-16 Jonathan Wakely <jwakely@redhat.com>
680 * src/c++11/codecvt.cc (to_integer(codecvt_mode)): Fix target type.
683 * src/c++11/codecvt.cc (__codecvt_utf16_base<wchar_t>::do_out)
684 (__codecvt_utf16_base<wchar_t>::do_in): Convert char arguments to
685 char16_t to work with UTF-16 instead of UTF-8.
686 * testsuite/22_locale/codecvt/codecvt_utf16/80041.cc: New test.
688 * src/c++11/codecvt.cc (codecvt<char16_t, char, mbstate_t>)
689 (codecvt<char32_t, char, mbstate_t>, __codecvt_utf8_base<char16_t>)
690 (__codecvt_utf8_base<char32_t>, __codecvt_utf8_base<wchar_t>)
691 (__codecvt_utf16_base<char16_t>, __codecvt_utf16_base<char32_t>)
692 (__codecvt_utf16_base<wchar_t>, __codecvt_utf8_utf16_base<char16_t>)
693 (__codecvt_utf8_utf16_base<char32_t>)
694 (__codecvt_utf8_utf16_base<wchar_t>): Fix do_encoding() and
695 do_max_length() return values.
696 * testsuite/22_locale/codecvt/codecvt_utf16/members.cc: New test.
697 * testsuite/22_locale/codecvt/codecvt_utf8/members.cc: New test.
698 * testsuite/22_locale/codecvt/codecvt_utf8_utf16/members.cc: New test.
701 * include/bits/locale_conv.h (__do_str_codecvt): Set __count on
703 * src/c++11/codecvt.cc (operator&=, operator|=, operator~): Overloads
704 for manipulating codecvt_mode values.
705 (read_utf16_bom): Compare input to BOM constants instead of integral
706 constants that depend on endianness. Take mode parameter by
707 reference and adjust it, to distinguish between no BOM present and
708 UTF-16BE BOM present.
709 (ucs4_in, ucs2_span, ucs4_span): Adjust calls to read_utf16_bom.
710 (surrogates): New enumeration type.
711 (utf16_in, utf16_out): Add surrogates parameter to choose between
712 UTF-16 and UCS2 behaviour.
713 (utf16_span, ucs2_span): Use std::min not std::max.
714 (ucs2_out): Use std::min not std::max. Disallow surrogate pairs.
715 (ucs2_in): Likewise. Adjust calls to read_utf16_bom.
716 * testsuite/22_locale/codecvt/codecvt_utf16/79980.cc: New test.
717 * testsuite/22_locale/codecvt/codecvt_utf8/79980.cc: New test.
720 * src/c++11/codecvt.cc (write_utf16_code_point): Don't write 0xffff
722 (__codecvt_utf8_utf16_base<char32_t>::do_in): Use native endianness
723 for internal representation.
724 (__codecvt_utf8_utf16_base<wchar_t>::do_in): Likewise.
725 * testsuite/22_locale/codecvt/codecvt_utf8_utf16/79511.cc: New test.
728 * include/bits/stl_heap.h (__is_heap, push_heap, __adjust_heap)
729 (pop_heap, make_heap, sort_heap, is_heap_until, is_heap): Cope with
730 invalid instantiations using function types for _Compare argument.
731 * testsuite/25_algorithms/make_heap/80064.cc: New test.
734 * python/libstdcxx/v6/printers.py (find_type): Avoid gdb.Type.name
735 for GDB 7.6 compatibility, use gdb.Type.unqualified instead.
737 2017-03-15 Ville Voutilainen <ville.voutilainen@gmail.com>
739 Implement LWG 2857, {variant,optional,any}::emplace should
740 return the constructed value.
741 * include/std/any (emplace(_Args&&...)): Change the return type and
742 return a reference to the constructed value.
743 (emplace(initializer_list<_Up>, _Args&&...)): Likewise.
744 * include/std/optional (emplace(_Args&&...)): Likewise.
745 (emplace(initializer_list<_Up>, _Args&&...)): Likewise.
746 * include/std/variant (emplace<_Tp>(_Args&&...)): Likewise.
747 (emplace<_Tp>(initializer_list<_Up>, _Args&&...)): Likewise.
748 (emplace<_Np>(_Args&&...)): Likewise.
749 (emplace<_Np>(initializer_list<_Up>, _Args&&...)): Likewise.
750 * testsuite/20_util/any/assign/emplace.cc: Add tests for
751 checking the return value of emplace.
752 * testsuite/20_util/any/misc/any_cast_neg.cc: Adjust.
753 * testsuite/20_util/optional/assignment/6.cc: Add tests for
754 checking the return value of emplace.
755 * testsuite/20_util/variant/run.cc: Likewise.
757 2017-03-15 Xi Ruoyao <ryxi@stu.xidian.edu.cn>
760 * include/ext/pb_ds/qdetail/binary_heap_/binary_heap_.hpp
762 (push_heap): Remove the wrong checking using is_heap.
763 (make_heap): Remove the assertion using is_heap.
764 * include/ext/pb_ds/detail/binary_heap_/insert_fn_imps.hpp
766 (resize_for_insert_if_needed): Add PB_DS_ASSERT_VALID after
769 2017-03-15 Jonathan Wakely <jwakely@redhat.com>
772 * testsuite/ext/pb_ds/regression/priority_queue_binary_heap-62045.cc:
774 * testsuite/ext/pb_ds/regression/priority_queues.cc: Fix copy&paste
777 2017-03-15 Jonathan Wakely <jwakely@redhat.com>
779 * acinclude.m4 (GLIBCXX_CHECK_S_ISREG_OR_S_IFREG): Fix typo in
781 * config.h.in: Regenerate.
782 * configure: Regenerate.
783 * doc/Makefile.in: Regenerate.
785 2017-03-14 Jonathan Wakely <jwakely@redhat.com>
788 * include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI]
789 (basic_string<C,T,A>::operator=(basic_string_view<C,T>)): Replace
790 with a constrained template.
791 [!_GLIBCXX_USE_CXX11_ABI]
792 (basic_string<C,T,A>::operator=(basic_string_view<C,T>)): Likewise.
793 * testsuite/21_strings/basic_string/cons/char/79162.cc: New test.
794 * testsuite/21_strings/basic_string/cons/wchar_t/79162.cc: New test.
796 2017-03-13 Ville Voutilainen <ville.voutilainen@gmail.com>
799 * include/bits/list.tcc (merge(list&&)): Use const for the size_t
801 (merge(list&&, _StrictWeakOrdering)): Likewise.
802 * testsuite/23_containers/list/operations/80034.cc: New.
804 2017-03-13 Ville Voutilainen <ville.voutilainen@gmail.com>
806 Implement LWG 2806, Base class of bad_optional_access.
807 * include/std/optional (bad_optional_access):
808 Derive from std::exception.
809 (bad_optional_access::bad_optional_access): Adjust.
810 (bad_optional_access::what): New.
811 (__throw_bad_optional_access(const char*)):
812 Remove the parameter and adjust calls.
813 * testsuite/20_util/optional/cons/value_neg.cc: Adjust.
814 * testsuite/20_util/optional/typedefs.cc: Likewise.
816 2017-03-12 Ville Voutilainen <ville.voutilainen@gmail.com>
818 Implement LWG 2934, optional<const T> doesn't compare with T.
819 * include/std/optional
820 (operator==(const optional<_Tp>&, const optional<_Tp>&)):
821 Turn into operator==(const optional<_Tp>&, const optional<_Up>&).
822 (operator!=(const optional<_Tp>&, const optional<_Tp>&)):
823 Turn into operator!=(const optional<_Tp>&, const optional<_Up>&).
824 (operator<(const optional<_Tp>&, const optional<_Tp>&)):
825 Turn into operator<(const optional<_Tp>&, const optional<_Up>&.
826 (operator>(const optional<_Tp>&, const optional<_Tp>&)):
827 Turn into operator>(const optional<_Tp>&, const optional<_Up>&.
828 (operator<=(const optional<_Tp>&, const optional<_Tp>&)):
829 Turn into operator<=(const optional<_Tp>&, const optional<_Up>&).
830 (operator>=(const optional<_Tp>&, const optional<_Tp>&)):
831 Turn into operator>=(const optional<_Tp>&, const optional<_Up>&).
832 (operator==(const optional<_Tp>&, const _Tp&)):
833 Turn into operator==(const optional<_Tp>&, const _Up&).
834 (operator==(const _Tp&, const optional<_Tp>&)):
835 Turn into operator==(const _Up&, const optional<_Tp>&).
836 (operator!=(const optional<_Tp>&, const _Tp&)):
837 Turn into operator!=(const optional<_Tp>&, const _Up&).
838 (operator!=(const _Tp&, const optional<_Tp>&)):
839 Turn into operator!=(const _Up&, const optional<_Tp>&).
840 (operator<(const optional<_Tp>&, const _Tp&)):
841 Turn into operator<(const optional<_Tp>&, const _Up&).
842 (operator<(const _Tp&, const optional<_Tp>&)):
843 Turn into operator<(const _Up&, const optional<_Tp>&).
844 (operator>(const optional<_Tp>&, const _Tp&)):
845 Turn into operator>(const optional<_Tp>&, const _Up&).
846 (operator>(const _Tp&, const optional<_Tp>&)):
847 Turn into operator>(const _Up&, const optional<_Tp>&).
848 (operator<=(const optional<_Tp>&, const _Tp&)):
849 Turn into operator<=(const optional<_Tp>&, const _Up&).
850 (operator<=(const _Tp&, const optional<_Tp>&)):
851 Turn into operator<=(const _Up&, const optional<_Tp>&).
852 (operator>=(const optional<_Tp>&, const _Tp&)):
853 Turn into operator>=(const optional<_Tp>&, const _Up&).
854 (operator>=(const _Tp&, const optional<_Tp>&)):
855 Turn into operator>=(const _Up&, const optional<_Tp>&).
856 * testsuite/20_util/optional/relops/7.cc: New.
858 2017-03-10 Jonathan Wakely <jwakely@redhat.com>
860 * testsuite/17_intro/names.cc: Undefine macros that clash with
861 identifiers in AIX system headers.
863 * include/bits/invoke.h (__invoke): Use __invoke_result instead of
864 result_of, and __is_nothrow_invocable instead of
865 __is_nothrow_callable.
866 * include/bits/shared_ptr_base.h (__shared_ptr): Use __is_invocable
867 instead of __is_callable.
868 * include/std/functional (invoke): use invoke_result_t instead of
869 result_of_t and is_nothrow_invocable instead of is_nothrow_callable.
870 (_Not_fn): Use __invoke_result instead of result_of.
871 * include/std/type_traits (__result_of_memobj, __result_of_memfun):
872 Remove partial specializations for reference_wrapper types.
873 (__result_of_impl): Use __inv_unwrap to strip reference_wrapper.
874 (__invoke_result): Define replacement for result_of and then use it to
876 (__is_callable_impl, __is_callable, __is_nothrow_callable): Replace
877 with __is_invocable_impl, __is_invocable, and __is_nothrow_invocable
879 (invoke_result, invoke_result_t): Define for C++17.
880 (is_callable, is_nothrow_callable): Replace with is_invocable,
881 is_invocable_r, is_nothrow_invocable, and is_nothrow_invocable_r.
882 (is_callable_v, is_nothrow_callable_v): Replace with is_invocable_v,
883 is_invocable_r_v, is_nothrow_invocable_v, and is_nothrow_invocable_r_v.
884 * include/std/variant (hash<variant<T...>>): Use is_nothrow_invocable_v
885 instead of is_nothrow_callable_v.
886 * testsuite/20_util/function_objects/invoke/59768.cc: Remove unused
888 * testsuite/20_util/function_objects/not_fn/1.cc: Use is_invocable
889 instead of is_callable.
890 * testsuite/20_util/is_callable/*: Rename directory and adjust tests
892 * testsuite/20_util/is_nothrow_callable/*: Likewise.
893 * testsuite/20_util/optional/hash.cc: Use is_invocable_v instead of
895 * testsuite/20_util/variant/hash.cc: Likewise.
897 2017-03-10 George Lander <george.lander@arm.com>
899 * acinclude.m4 (glibcxx_cv_obsolete_isnan): Define
900 _GLIBCXX_INCLUDE_NEXT_C_HEADERS before including math.h.
901 * configure: Regenerate.
903 2017-03-09 Jonathan Wakely <jwakely@redhat.com>
905 * include/std/functional (_Not_fn): Define macro to simplify
906 repetitive function definitions.
908 * doc/xml/manual/status_cxx2017.xml: Document std::byte support.
909 * include/c_global/cstddef (std::byte): Define for C++17.
910 * testsuite/18_support/byte/global_neg.cc: New test.
911 * testsuite/18_support/byte/ops.cc: New test.
912 * testsuite/18_support/byte/requirements.cc: New test.
914 2017-03-05 Jonathan Wakely <jwakely@redhat.com>
916 * doc/xml/manual/status_cxx2017.xml: Document P0156R2 status.
917 * doc/html/*: Regenerate.
918 * include/std/mutex (scoped_lock): Implement new C++17 template.
919 * testsuite/30_threads/scoped_lock/cons/1.cc: New test.
920 * testsuite/30_threads/scoped_lock/requirements/
921 explicit_instantiation.cc: New test.
922 * testsuite/30_threads/scoped_lock/requirements/typedefs.cc: New test.
924 2017-03-02 Gerald Pfeifer <gerald@pfeifer.com>
925 François Dumont <frs.dumont@gmail.com>
926 Jonathan Wakely <jwakely@redhat.com>
928 * doc/xml/manual/debug_mode.xml: Update and simplify note
929 on link- and run-time coexistence.
931 2017-03-02 Jonathan Wakely <jwakely@redhat.com>
933 * testsuite/17_intro/headers/names.cc: Rename to ...
934 * testsuite/17_intro/names.cc: ... here.
937 * include/bits/hashtable_policy.h (__clp2): Use reserved names for
938 parameters and local variables.
939 * include/bits/ios_base.h (make_error_code, make_error_condition):
941 * include/bits/list.tcc (list::sort): Likewise.
942 * include/bits/mask_array.h (mask_array): Likewise.
943 * include/bits/regex.h (regex_token_iterator): Likewise.
944 * include/bits/slice_array.h (slice_array): Likewise.
945 * include/bits/stl_algo.h (__sample): Likewise.
946 * include/std/memory (undeclare_no_pointers): Likewise.
947 * include/std/type_traits (is_callable_v, is_nothrow_callable_v):
949 * libsupc++/exception_ptr.h (__dest_thunk): Likewise.
950 * testsuite/17_intro/headers/names.cc: New test.
953 * include/std/functional (bind::_Res_type_impl): Fix incorrect use of
954 result_of that loses top-level cv-qualifiers.
955 * testsuite/20_util/bind/79798.cc: New test.
957 2017-03-01 Gerald Pfeifer <gerald@pfeifer.com>
959 * doc/xml/manual/documentation_hacking.xml: Tweak link to
962 2017-02-23 Jonathan Wakely <jwakely@redhat.com>
964 * include/experimental/iterator: Include <iterator>.
965 * testsuite/experimental/iterator/requirements.cc: Check for contents
968 2017-02-19 Dinka Ranns <dinka.ranns@googlemail.com>
970 C++17 GB50 resolution
971 * include/std/chrono (duration::operator++()): Add
972 _GLIBCXX17_CONSTEXPR.
973 (duration::operator++(int)): Likewise.
974 (duration::operator--()): Likewise.
975 (duration::operator--(int)): Likewise.
976 (duration::operator+=(const duration&)): Likewise.
977 (duration::operator-=(const duration&)): Likewise.
978 (duration::operator*=(const rep&)): Likewise.
979 (duration::operator/=(const rep&)): Likewise.
980 (duration::operator%=(const rep&)): Likewise.
981 (duration::operator%=(const duration&)): Likewise.
982 (time_point::operator+=(const duration&)): Likewise.
983 (time_point::operator-=(const duration&)): Likewise.
984 * testsuite/20_util/duration/arithmetic/constexpr_c++17.cc: New test.
985 * testsuite/20_util/duration/literals/range.cc: Adjust dg-error.
986 * testsuite/20_util/time_point/arithmetic/constexpr.cc: New test.
988 2017-02-19 Gerald Pfeifer <gerald@pfeifer.com>
990 * doc/xml/manual/debug.xml: Adjust link to ThreadSanitizer.
992 2017-02-18 Gerald Pfeifer <gerald@pfeifer.com>
994 * doc/xml/manual/io.xml: Update link to groups.google.com.
995 Tweak link description.
997 2017-02-18 Gerald Pfeifer <gerald@pfeifer.com>
999 * doc/xml/manual/profile_mode.xml: Fix link.
1001 2017-02-16 Gerald Pfeifer <gerald@pfeifer.com>
1003 * doc/xml/manual/policy_data_structures.xml: Simplify and
1004 standardize references to boost.org.
1005 * doc/xml/manual/policy_data_structures_biblio.xml: Ditto.
1006 * doc/xml/manual/shared_ptr.xml: Ditto.
1008 2017-02-16 Jonathan Wakely <jwakely@redhat.com>
1011 * src/c++11/snprintf_lite.cc (__concat_size_t): Calculate length
1012 written to buffer, not length remaining in buffer.
1014 2017-02-15 Tim Shen <timshen@google.com>
1017 * include/std/variant (operator<(), operator>(), operator<=(),
1018 operator>=(), operator==(), operator!=()): Implement P0393R3.
1019 * testsuite/20_util/variant/compile.cc: Adjust tests.
1020 * testsuite/20_util/variant/run.cc: Adjust tests.
1022 2017-02-15 Tim Shen <timshen@google.com>
1025 * include/std/variant (visit()): Forward variant types to the return
1026 type detection code.
1027 * testsuite/20_util/variant/compile.cc: Add test cases.
1029 2017-02-13 H.J. Lu <hongjiu.lu@intel.com>
1032 * config/abi/post/x86_64-linux-gnu/x32/baseline_symbols.txt: Updated.
1034 2017-02-13 Jakub Jelinek <jakub@redhat.com>
1037 * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt: Update.
1038 * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt: Likewise.
1039 * config/abi/post/i386-linux-gnu/baseline_symbols.txt: Likewise.
1040 * config/abi/post/i486-linux-gnu/baseline_symbols.txt: Likewise.
1041 * config/abi/post/aarch64-linux-gnu/baseline_symbols.txt: Likewise.
1042 * config/abi/post/s390x-linux-gnu/baseline_symbols.txt: Likewise.
1043 * config/abi/post/s390x-linux-gnu/32/baseline_symbols.txt: Likewise.
1044 * config/abi/post/s390-linux-gnu/baseline_symbols.txt: Likewise.
1045 * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt: Likewise.
1047 2017-02-13 Jonathan Wakely <jwakely@redhat.com>
1050 * include/std/future (__future_base::_Task_state::_M_run)
1051 (__future_base::_Task_state::_M_run_delayed): Use lvalue types in
1052 result_of expressions.
1053 * testsuite/30_threads/packaged_task/79486.cc: New.
1055 2017-02-11 Jonathan Wakely <jwakely@redhat.com>
1058 * include/bits/shared_ptr_base.h (__shared_ptr(_Yp*, _Deleter))
1059 (__shared_ptr(_Yp*, _Deleter, _Alloc)): Use lvalue types in
1060 __is_callable check.
1061 * testsuite/20_util/shared_ptr/cons/79467.cc: New.
1063 * include/bits/atomic_base.h: Re-indent.
1065 2017-02-10 Gerald Pfeifer <gerald@pfeifer.com>
1067 * doc/xml/manual/profile_mode.xml: Update a paper reference.
1069 2017-02-08 Gerald Pfeifer <gerald@pfeifer.com>
1071 * src/c++11/snprintf_lite.cc (__err): Use https for bug reporting.
1073 2017-02-08 Jonathan Wakely <jwakely@redhat.com>
1075 * doc/xml/manual/policy_data_structures.xml: Fix spelling of author's
1077 * doc/xml/manual/policy_data_structures_biblio.xml: Likewise. Remove
1078 broken links to texts that are no longer online.
1079 * doc/xml/manual/profile_mode.xml: Update links to CGO 2009 paper and
1081 * doc/xml/manual/using.xml: Update links to memory model information.
1082 * doc/xml/manual/using_exceptions.xml: Update link to "Appendix E:
1083 Standard-Library Exception Safety".
1084 * doc/html/*: Regenerate.
1086 2017-02-08 Gerald Pfeifer <gerald@pfeifer.com>
1088 * doc/xml/manual/profile_mode.xml: Unbreak link to
1089 "Optimizing Sorting with Machine Learning Algorithms".
1091 2017-02-08 Gerald Pfeifer <gerald@pfeifer.com>
1093 * src/c++11/snprintf_lite.cc (__err): Update bug reporting URL.
1095 2017-02-08 Gerald Pfeifer <gerald@pfeifer.com>
1097 * doc/xml/manual/abi.xml: Update link to "Sun Studio 11: C++
1100 2017-02-07 Gerald Pfeifer <gerald@pfeifer.com>
1102 * doc/html/ext/lwg-active.html: Remove.
1103 * doc/html/ext/lwg-closed.html: Ditto.
1104 * doc/html/ext/lwg-defects.html: Ditto.
1106 * doc/Makefile.am (xml_extradir): Remove.
1108 (stamp-html-docbook-lwg): Remove recipe...
1109 (stamp-html-docbook-data): ...and its use here.
1110 * doc/Makefile.in: Regenerate.
1112 * doc/xml/manual/intro.xml: Shorten two paragraphs explaining
1113 the relationship to the upstream working group.
1114 Replace a local link to ../ext/lwg-active.html by the upstream one.
1115 Replace all reference to ../ext/lwg-defects.html by a new entity
1116 &DR; which refers to the upstream address.
1118 2017-02-07 Gerald Pfeifer <gerald@pfeifer.com>
1120 * doc/xml/manual/status_cxx2017.xml: Fix link to N4284.
1122 2017-02-06 Jonathan Wakely <jwakely@redhat.com>
1125 * testsuite/20_util/duration/literals/range.cc: Prune extra output
1128 2017-02-06 Gerald Pfeifer <gerald@pfeifer.com>
1130 * doc/xml/manual/documentation_hacking.xml: Update URL of the
1131 DocBook Element Reference. Use that term as link description
1132 instead of "online".
1133 epubcheck has moved to GitHub.
1134 Remove obsolete link to DocBook Publishing Tools.
1136 2017-02-03 Jonathan Wakely <jwakely@redhat.com>
1139 * testsuite/27_io/basic_ios/copyfmt/char/1.cc: Restore ABI override
1140 so new ios::failure can be caught even when old ABI is the default.
1141 * testsuite/27_io/basic_ios/exceptions/char/1.cc: Likewise.
1142 * testsuite/27_io/basic_istream/extractors_arithmetic/char/
1143 exceptions_failbit.cc: Likewise.
1144 * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/
1145 exceptions_failbit.cc: Likewise.
1146 * testsuite/27_io/basic_istream/extractors_other/char/
1147 exceptions_null.cc: Likewise.
1148 * testsuite/27_io/basic_istream/extractors_other/wchar_t/
1149 exceptions_null.cc: Likewise.
1150 * testsuite/27_io/basic_istream/sentry/char/12297.cc: Likewise.
1151 * testsuite/27_io/basic_istream/sentry/wchar_t/12297.cc: Likewise.
1152 * testsuite/27_io/basic_ostream/inserters_other/char/
1153 exceptions_null.cc: Likewise.
1154 * testsuite/27_io/basic_ostream/inserters_other/wchar_t/
1155 exceptions_null.cc: Likewise.
1156 * testsuite/27_io/ios_base/storage/2.cc: Likewise.
1159 * src/c++11/Makefile.am: Add new files.
1160 * src/c++11/Makefile.in: Regenerate.
1161 * src/c++11/cow-string-inst.cc [!_GLIBCXX_USE_CXX11_ABI]
1162 (operator<<, operator>>, getline): Move explicit instantiations to ...
1163 * src/c++11/cow-string-io-inst.cc: ... new file.
1164 * src/c++11/cow-wstring-inst.cc [!_GLIBCXX_USE_CXX11_ABI]
1165 (operator<<, operator>>, getline): Move explicit instantiations to ...
1166 * src/c++11/cow-wstring-io-inst.cc: ... new file.
1167 * src/c++11/functexcept.cc (__throw_ios_failure, __throw_system_error)
1168 (__throw_future_error, __throw_bad_function_call):
1169 (__throw_regex_error): Move functions for C++11 exceptions to the
1170 files that define the exception types.
1171 * src/c++11/functional.cc (__throw_bad_function_call): Move here.
1172 * src/c++11/future.cc (__throw_future_error): Likewise.
1173 * src/c++11/ios.cc (__throw_ios_failure): Likewise.
1174 * src/c++11/regex.cc (__throw_regex_error): Likewise.
1175 * src/c++11/snprintf_lite.cc (__concat_size_t): Print decimal
1176 representation directly instead of calling __int_to_char.
1177 * src/c++11/sso_string.cc (__sso_string): New file for definition
1178 of __sso_string type.
1179 * src/c++11/string-io-inst.cc [_GLIBCXX_USE_CXX11_ABI]: New file for
1180 explicit instantiations of narrow string I/O functions.
1181 * src/c++11/system_error.cc (__throw_system_error): Move here.
1182 (__sso_string): Move to new file.
1183 * src/c++11/wstring-io-inst.cc [_GLIBCXX_USE_CXX11_ABI]: New file for
1184 explicit instantiations of wide string I/O functions.
1185 * src/c++98/misc-inst.cc [_GLIBCXX_USE_CXX11_ABI] (operator<<)
1186 (operator>>, getline): Remove explicit instantiations from here.
1188 2017-02-02 H.J. Lu <hongjiu.lu@intel.com>
1190 * config/abi/post/x86_64-linux-gnu/x32/baseline_symbols.txt: Updated.
1192 2017-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1194 * configure.host: Separate Solaris/SPARC and x86 baselines.
1195 * config/abi/post/solaris2.10/baseline_symbols.txt: Move ...
1196 * config/abi/post/sparc-solaris2.10/baseline_symbols.txt: ... here.
1197 * config/abi/post/solaris2.10/sparcv9/baseline_symbols.txt: Move ...
1198 * config/abi/post/sparc-solaris2.10/sparcv9/baseline_symbols.txt:
1200 * config/abi/post/solaris2.10/amd64/baseline_symbols.txt: Move ...
1201 * config/abi/post/i386-solaris2.10/amd64/baseline_symbols.txt: ... here.
1202 * config/abi/post/i386-solaris2.10/baseline_symbols.txt: New file.
1203 * config/abi/post/solaris2.11/baseline_symbols.txt: Move ...
1204 * config/abi/post/sparc-solaris2.11/baseline_symbols.txt: ... here.
1205 * config/abi/post/solaris2.11/sparcv9/baseline_symbols.txt: Move ...
1206 * config/abi/post/sparc-solaris2.11/sparcv9/baseline_symbols.txt:
1208 * config/abi/post/solaris2.11/amd64/baseline_symbols.txt: Move ...
1209 * config/abi/post/i386-solaris2.11/amd64/baseline_symbols.txt: ... here.
1210 * config/abi/post/i386-solaris2.11/baseline_symbols.txt: New file.
1212 * config/abi/post/solaris2.10/baseline_symbols.txt: Regenerate.
1213 * config/abi/post/solaris2.10/amd64/baseline_symbols.txt: Likewise.
1214 * config/abi/post/solaris2.10/sparcv9/baseline_symbols.txt: Likewise.
1215 * config/abi/post/solaris2.11/baseline_symbols.txt: Likewise.
1216 * config/abi/post/solaris2.11/amd64/baseline_symbols.txt: Likewise.
1217 * config/abi/post/solaris2.11/sparcv9/baseline_symbols.txt: Likewise.
1219 2017-02-01 Jonathan Wakely <jwakely@redhat.com>
1222 * include/bits/predefined_ops.h (_Iter_equals_iter): Store iterator
1224 (_Iter_comp_to_iter): Likewise.
1225 * testsuite/25_algorithms/search/78346.cc: New test.
1228 * config/abi/pre/gnu.ver: Remove recently added symbols.
1229 * include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI]
1230 (basic_string::_M_copy_assign): Remove.
1231 (basic_string::operator=(const basic_string&)): Don't dispatch to
1232 _M_copy_assign. If source object is small just deallocate, otherwise
1233 perform new allocation before making any changes.
1234 * include/bits/basic_string.tcc [_GLIBCXX_USE_CXX11_ABI]
1235 (basic_string::_M_copy_assign(const basic_string&, true_type)):
1237 * testsuite/21_strings/basic_string/allocator/char/copy_assign.cc:
1238 Test cases where the allocators are equal or the string is small.
1239 * testsuite/21_strings/basic_string/allocator/wchar_t/copy_assign.cc:
1242 2017-01-30 Ville Voutilainen <ville.voutilainen@gmail.com>
1244 Implement LWG 2825, LWG 2756 breaks class template argument
1245 deduction for optional.
1246 * include/std/optional: Add a deduction guide.
1247 * testsuite/20_util/optional/cons/deduction_guide.cc: New.
1249 2017-01-27 Jonathan Wakely <jwakely@redhat.com>
1252 * config/abi/pre/gnu.ver: Add new symbols.
1253 * include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI]
1254 (basic_string::_M_copy_assign): New overloaded functions to perform
1256 (basic_string::operator=(const basic_string&)): Dispatch to
1258 * include/bits/basic_string.tcc [_GLIBCXX_USE_CXX11_ABI]
1259 (basic_string::_M_copy_assign(const basic_string&, true_type)):
1260 Define, performing rollback on exception.
1261 * testsuite/21_strings/basic_string/allocator/char/copy_assign.cc:
1262 Test exception-safety guarantee.
1263 * testsuite/21_strings/basic_string/allocator/wchar_t/copy_assign.cc:
1265 * testsuite/util/testsuite_allocator.h (uneq_allocator::swap): Make
1268 2017-01-26 Jonathan Wakely <jwakely@redhat.com>
1271 * include/tr1/complex (conj): Remove using-declaration and restore
1272 overloads, reverting previous change.
1274 * testsuite/23_containers/list/operations/78389.cc: Fix for C++11
1276 * testsuite/23_containers/priority_queue/requirements/constructible.cc:
1277 Mark as unsupported in C++98 mode.
1278 * testsuite/23_containers/queue/requirements/constructible.cc:
1280 * testsuite/23_containers/stack/requirements/constructible.cc:
1282 * testsuite/25_algorithms/make_heap/movable.cc: Fix for C++11 mode.
1285 * include/bits/c++config (literals::string_view_literals::__7): Add.
1286 Only declare versioned namespaces for the relevant C++ dialects.
1287 * include/experimental/bits/erase_if.h (fundamentals_v2::__detail):
1288 Add versioning macros.
1289 * include/experimental/bits/lfts_config.h:
1290 (fundamentals_v1::__detail::__7, fundamentals_v2::__detail::__7): Add.
1291 * include/experimental/string_view (fundamentals_v2::__detail):
1292 Add versioning macros.
1293 (fundamentals_v2::__detail::__identity): Remove.
1294 (fundamentals_v2::__detail::__idt): Use common_type instead of
1295 __detail::__identity.
1296 * include/std/string_view (__detail::__identity, __detail::__idt):
1298 (literals::string_view_literals): Fix nesting of versioning macros.
1301 * libsupc++/del_opa.cc (operator delete(void*, std::align_val_t))
1302 [!_GLIBCXX_HAVE_ALIGNED_ALLOC && !_GLIBCXX_HAVE_POSIX_MEMALIGN
1303 && !_GLIBCXX_HAVE_MEMALIGN && !_GLIBCXX_HAVE__ALIGNED_MALLOC]:
1304 Retrieve original pointer value allocated by malloc.
1305 * libsupc++/new_opa.cc [!_GLIBCXX_HAVE_ALIGNED_ALLOC
1306 && !_GLIBCXX_HAVE_POSIX_MEMALIGN && !_GLIBCXX_HAVE_MEMALIGN
1307 && !_GLIBCXX_HAVE__ALIGNED_MALLOC] (aligned_alloc(size_t, size_t)):
1308 Define, adjusting pointer value allocated by malloc and storing for
1309 retrieval by operator delete.
1311 2017-01-26 Jakub Jelinek <jakub@redhat.com>
1313 * libsupc++/eh_atomics.h: Update copyright years.
1314 * testsuite/20_util/unique_ptr/cons/default.cc: Update copyright years.
1316 2017-01-25 Jonathan Wakely <jwakely@redhat.com>
1320 * include/std/complex (real(T), imag(T)): Add _GLIBCXX_CONSTEXPR.
1321 (proj(T), conj(T)): Change return types per DR 1522.
1322 * include/tr1/complex (conj): Remove overloads and use std::conj.
1323 * testsuite/26_numerics/complex/dr781_dr1137.cc: Rename to...
1324 * testsuite/26_numerics/complex/dr781.cc: ... this, and update.
1325 * testsuite/26_numerics/complex/value_operations/constexpr2.cc: Test
1326 real(T) and imag(T). Allow testing for C++11 too.
1328 2017-01-24 Jonathan Wakely <jwakely@redhat.com>
1331 * include/experimental/string_view (operator==): Check sizes first.
1332 * include/std/string_view (operator==): Likewise.
1334 2017-01-23 Jonathan Wakely <jwakely@redhat.com>
1336 * testsuite/experimental/array/make_array.cc: Restore <functional>
1339 2017-01-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
1341 * testsuite/29_atomics/atomic/69301.cc: Require atomic builtins.
1343 2017-01-23 Jonathan Wakely <jwakely@redhat.com>
1346 * include/experimental/array (__make_array_elem): New class template
1347 and partial specialization.
1348 (__is_reference_wrapper): Move into __make_array_elem specialization.
1349 (make_array): Use __make_array_elem to determine element type and move
1350 static assertion into specialization. Qualify std::forward call.
1351 (to_array): Add exception specifiation.
1352 * testsuite/experimental/array/make_array.cc: Test argument types
1353 without a common type.
1354 * testsuite/experimental/array/neg.cc: Adjust expected error message.
1356 2017-01-22 Gerald Pfeifer <gerald@pfeifer.com>
1358 * doc/xml/manual/debug.xml: code.google.com uses https now.
1360 2017-01-22 Gerald Pfeifer <gerald@pfeifer.com>
1362 * doc/xml/manual/test.xml: Fix link into gccint online manual.
1364 2017-01-21 Ville Voutilainen <ville.voutilainen@gmail.com>
1366 Make poisoned hashes SFINAE away the call operator of the hash.
1367 * include/bits/functional_hash.h
1368 (__poison_hash::__enable_hash_call): New.
1369 * include/std/optional (__optional_hash_call_base): New.
1370 (hash<optional<_Tp>>): Derive from the new base,
1371 move the hash function into that base.
1372 * include/std/variant (__variant_hash_call_base_impl): New.
1373 (__variant_hash_call_base): Likewise.
1374 (hash<variant<_Types...>>): Derive from the new base,
1375 move the hash function into that base.
1376 * testsuite/20_util/optional/hash.cc: Add tests for is_callable.
1377 * testsuite/20_util/variant/hash.cc: Likewise.
1379 2017-01-20 Joe Seymour <joe.s@somniumtech.com>
1381 * acinclude.m4 (GLIBCXX_CHECK_SIZE_T_MANGLING): Support uint20_t.
1382 * configure: Regenerate.
1384 2017-01-20 Jonathan Wakely <jwakely@redhat.com>
1387 * include/bits/random.h (uniform_real_distribution::param_type)
1388 (normal_distribution::param_type, lognormal_distribution::param_type)
1389 (gamma_distribution::param_type, chi_squared_distribution::param_type)
1390 (cauchy_distribution::param_type, fisher_f_distribution::param_type)
1391 (student_t_distribution::param_type)
1392 (bernoulli_distribution::param_type, binomial_distribution::param_type)
1393 (geometric_distribution::param_type)
1394 (negative_binomial_distribution::param_type)
1395 (poisson_distribution::param_type)
1396 (exponential_distribution::param_type)
1397 (weibull_distribution::param_type)
1398 (extreme_value_distribution::param_type)
1399 (discrete_distribution::param_type)
1400 (piecewise_constant_distribution::param_type)
1401 (piecewise_linear_distribution::param_type): Define operator!=.
1402 * include/bits/uniform_int_dist.h
1403 (uniform_int_distribution::param_type): Likewise.
1404 * include/ext/random (beta_distribution::param_type)
1405 (rice_distribution::param_type, nakagami_distribution::param_type)
1406 (pareto_distribution::param_type, k_distribution::param_type)
1407 (arcsine_distribution::param_type, hoyt_distribution::param_type)
1408 (triangular_distribution::param_type)
1409 (von_mises_distribution::param_type)
1410 (hypergeometric_distribution::param_type)
1411 (logistic_distribution::param_type)
1412 (uniform_on_sphere_distribution::param_type)
1413 (uniform_inside_sphere_distribution::param_type): Likewise.
1414 * testsuite/26_numerics/random/bernoulli_distribution/cons/parms.cc:
1415 Test construction with param_type.
1416 * testsuite/26_numerics/random/binomial_distribution/cons/parms.cc:
1418 * testsuite/26_numerics/random/cauchy_distribution/cons/parms.cc:
1420 * testsuite/26_numerics/random/chi_squared_distribution/cons/parms.cc:
1422 * testsuite/26_numerics/random/exponential_distribution/cons/parms.cc:
1424 * testsuite/26_numerics/random/extreme_value_distribution/cons/
1426 * testsuite/26_numerics/random/fisher_f_distribution/cons/parms.cc:
1428 * testsuite/26_numerics/random/gamma_distribution/cons/parms.cc:
1430 * testsuite/26_numerics/random/geometric_distribution/cons/parms.cc:
1432 * testsuite/26_numerics/random/lognormal_distribution/cons/parms.cc:
1434 * testsuite/26_numerics/random/negative_binomial_distribution/cons/
1436 * testsuite/26_numerics/random/normal_distribution/cons/parms.cc:
1438 * testsuite/26_numerics/random/poisson_distribution/cons/parms.cc:
1440 * testsuite/26_numerics/random/student_t_distribution/cons/parms.cc:
1442 * testsuite/26_numerics/random/uniform_int_distribution/cons/parms.cc:
1444 * testsuite/26_numerics/random/uniform_real_distribution/cons/parms.cc:
1446 * testsuite/26_numerics/random/weibull_distribution/cons/parms.cc:
1448 * testsuite/ext/random/arcsine_distribution/cons/parms.cc: Likewise.
1449 * testsuite/ext/random/beta_distribution/cons/parms.cc: Likewise.
1450 * testsuite/ext/random/hoyt_distribution/cons/parms.cc: Likewise.
1451 * testsuite/ext/random/hypergeometric_distribution/cons/parms.cc:
1453 * testsuite/ext/random/k_distribution/cons/parms.cc: Likewise.
1454 * testsuite/ext/random/logistic_distribution/cons/parms.cc: Likewise.
1455 * testsuite/ext/random/nakagami_distribution/cons/parms.cc: Likewise.
1456 * testsuite/ext/random/normal_mv_distribution/cons/parms.cc: Likewise.
1457 * testsuite/ext/random/pareto_distribution/cons/parms.cc: Likewise.
1458 * testsuite/ext/random/rice_distribution/cons/parms.cc: Likewise.
1459 * testsuite/ext/random/triangular_distribution/cons/parms.cc:
1461 * testsuite/ext/random/uniform_inside_sphere_distribution/cons/
1463 * testsuite/ext/random/von_mises_distribution/cons/parms.cc: Likewise.
1466 * include/bits/alloc_traits.h (__allocator_traits_base::__diff_type)
1467 (__allocator_traits_base::__size_type): Remove.
1468 (allocator_traits::_Ptr): New class template to detect const and void
1469 pointer types without instantiating pointer_traits::rebind
1471 (allocator_traits::_Diff): Likewise for detecting difference_type.
1472 (allocator_traits::_Size): New class template to detect size_type
1473 without instantiating make_unsigned unnecessarily.
1474 * include/bits/ptr_traits.h (pointer_traits::element_type): Use
1475 __detected_or_t instead of __detected_or_t_.
1476 * include/std/type_traits (__detected_or_t_): Remove.
1477 * testsuite/20_util/allocator_traits/members/pointers.cc: New test.
1481 * include/bits/alloc_traits.h (__allocator_traits_base::__rebind):
1482 Replace with class template using void_t.
1483 (__alloc_rebind): Define in terms of
1484 __allocator_traits_base::__rebind.
1485 (allocator_traits): Remove unconditional static_assert for
1487 * include/bits/ptr_traits.h (__replace_first_arg): Remove type member.
1488 (pointer_traits::__rebind): Replace with class template using void_t.
1489 (pointer_traits::rebind): Define in terms of __rebind.
1490 (pointer_traits): Remove unconditional static_assert for rebind.
1491 * testsuite/20_util/allocator_traits/members/rebind_alloc.cc: New test.
1492 * testsuite/20_util/pointer_traits/rebind.cc: New test.
1495 * include/experimental/any (__any_caster): Avoid instantiating
1496 manager function for types that can't be stored in any.
1497 * include/std/any (__any_caster): Likewise.
1498 * testsuite/20_util/any/misc/any_cast.cc: Test non-copyable type.
1499 * testsuite/experimental/any/misc/any_cast.cc: Likewise.
1502 * include/bits/stl_algo.h (is_partitioned): Use increment instead of
1505 2017-01-19 Jonathan Wakely <jwakely@redhat.com>
1508 * include/bits/shared_ptr_base.h (__enable_shared_from_this_base):
1510 (__enable_shared_from_this): Declare __shared_ptr as a friend.
1511 * testsuite/ext/shared_ptr/1.cc: New test.
1514 * include/bits/stl_algo.h (is_partitioned): Don't retest the partition
1516 * testsuite/25_algorithms/is_partitioned/2.cc: New test.
1518 * doc/xml/manual/abi.xml: Fix typo.
1519 * doc/html/manual/abi.html: Likewise.
1522 * include/bits/predefined_ops.h (_Iter_less_val, _Val_less_iter): Add
1523 converting constructors from _Iter_less_iter.
1524 (_Iter_comp_val, _Val_comp_iter): Add converting constructors from
1526 (__iter_comp_val(_Iter_comp_iter<C>): Use converting constructor.
1527 (__val_comp_iter(_Iter_comp_iter<C>): Likewise.
1528 * include/bits/stl_heap.h (__is_heap_until, __push_heap, __pop_heap)
1529 (__make_heap, __sort_heap): Change _Compare parameters to references.
1530 (__is_heap, push_heap, __adjust_heap, __pop_heap, pop_heap)
1531 (__make_heap, make_heap, sort_heap, is_heap_until): Pass comparison
1532 functions as lvalues.
1533 (is_heap): Call __is_heap_until directly to avoid copying __comp.
1534 * testsuite/23_containers/priority_queue/67085.cc: Adjust test to
1535 count copies during construction with empty sequence.
1538 * include/bits/stl_heap.h (__is_heap): Use _GLIBCXX_MOVE.
1539 (__make_heap, __sort_heap): Don't use _GLIBCXX_MOVE inside loops.
1540 * testsuite/23_containers/priority_queue/67085.cc: Adjust expected
1542 * testsuite/25_algorithms/make_heap/movable.cc: New test.
1545 * include/bits/stl_heap.h (push_heap, __adjust_heap, __pop_heap)
1546 (pop_heap, __make_heap, make_heap, __sort_heap, sort_heap): Use
1547 _GLIBCXX_MOVE when passing comparison function to other functions.
1548 (is_heap_until, is_heap): Use std::move when passing comparison
1550 * testsuite/23_containers/priority_queue/67085.cc: New test.
1553 * doc/xml/manual/abi.xml (abi.versioning.history): Add markup to
1554 macro names, filenames, and literal values. Document _GLIBCXX_RELEASE.
1555 Document that the deprecated _GLIBCXX_VERSION macro was removed for
1557 * doc/html/*: Regenerate.
1558 * include/Makefile.am (_GLIBCXX_RELEASE): Set value.
1559 * include/Makefile.in: Regenerate.
1560 * include/bits/c++config (_GLIBCXX_RELEASE): Add #define.
1561 * testsuite/ext/profile/mutex_extensions_neg.cc: Use lineno of 0 in
1564 2017-01-18 Jonathan Wakely <jwakely@redhat.com>
1567 * include/std/atomic (atomic<T>::load, atomic<T>::exchange): Use
1568 aligned buffer instead of default-initialized variable.
1569 * testsuite/29_atomics/atomic/69301.cc: New test.
1570 * include/experimental/memory (observer_ptr::release): Use reserved
1572 * include/ext/pointer.h (_Pointer_adapter::operator++(int))
1573 (_Pointer_adapter::operator--(int)): Likewise.
1576 * include/experimental/random (randint): Use temporary instead of
1577 thread_local static.
1579 2017-01-17 Joshua Conner <joshconner@google.com>
1581 * crossconfig.m4: Add fuchsia OS.
1582 * configure: Regenerate.
1584 2017-01-17 Jonathan Wakely <jwakely@redhat.com>
1587 * doc/xml/manual/abi.xml (abi.versioning.history): Explain why the
1588 __GLIBCXX__ macro is not useful. Remove redundant date information
1589 and link to the GCC release timeline.
1590 (abi.versioning.active): Move partial sentence into the previous
1592 * doc/html/*: Regenerate.
1595 * libsupc++/nested_exception.h (throw_with_nested): Use decay instead
1596 of remove_reference.
1597 * testsuite/18_support/nested_exception/79114.cc: New test.
1599 2017-01-17 Jakub Jelinek <jakub@redhat.com>
1602 * configure.ac: Add GCC_BASE_VER.
1603 * fragment.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
1604 get version from BASE-VER file.
1605 * po/Makefile.in: Regenerated.
1606 * libsupc++/Makefile.in: Regenerated.
1607 * testsuite/Makefile.in: Regenerated.
1608 * src/Makefile.in: Regenerated.
1609 * configure: Regenerated.
1610 * Makefile.in: Regenerated.
1611 * include/Makefile.in: Regenerated.
1612 * doc/Makefile.in: Regenerated.
1613 * python/Makefile.in: Regenerated.
1614 * src/c++11/Makefile.in: Regenerated.
1615 * src/c++98/Makefile.in: Regenerated.
1616 * src/filesystem/Makefile.in: Regenerated.
1618 2017-01-16 Jonathan Wakely <jwakely@redhat.com>
1621 * src/c++11/functexcept.cc: Use new ABI for std::ios_base::failure
1623 * testsuite/27_io/basic_ios/copyfmt/char/1.cc: Don't override ABI
1624 for test, so new ios::failure can be caught.
1625 * testsuite/27_io/basic_ios/exceptions/char/1.cc: Likewise.
1626 * testsuite/27_io/basic_istream/extractors_arithmetic/char/
1627 exceptions_failbit.cc: Likewise.
1628 * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/
1629 exceptions_failbit.cc: Likewise.
1630 * testsuite/27_io/basic_istream/extractors_other/char/
1631 exceptions_null.cc: Likewise.
1632 * testsuite/27_io/basic_istream/extractors_other/wchar_t/
1633 exceptions_null.cc: Likewise.
1634 * testsuite/27_io/basic_istream/sentry/char/12297.cc: Likewise.
1635 * testsuite/27_io/basic_istream/sentry/wchar_t/12297.cc: Likewise.
1636 * testsuite/27_io/basic_ostream/inserters_other/char/
1637 exceptions_null.cc: Likewise.
1638 * testsuite/27_io/basic_ostream/inserters_other/wchar_t/
1639 exceptions_null.cc: Likewise.
1640 * testsuite/27_io/ios_base/storage/2.cc: Likewise.
1643 * include/bits/locale_classes.h (locale::facet::__shim): Change from
1644 private to protected.
1645 * src/c++11/cxx11-shim_facets.cc (__shim_accessor): Define helper to
1646 make locale::facet::__shim accessible.
1648 2017-01-16 Ville Voutilainen <ville.voutilainen@gmail.com>
1651 * include/bits/list.tcc (merge(list&&)): Fix backwards size adjustments.
1652 (merge(list&&, _StrictWeakOrdering)): Likewise.
1653 * testsuite/23_containers/list/operations/78389.cc: Add
1654 better test for the sizes.
1656 2017-01-14 Jonathan Wakely <jwakely@redhat.com>
1658 * testsuite/23_containers/array/specialized_algorithms/swap_cxx17.cc:
1659 Skip test when -D_GLIBCXX_PROFILE mode is included in options.
1660 * testsuite/23_containers/map/modifiers/extract.cc: Likewise.
1661 * testsuite/23_containers/map/modifiers/insert_or_assign/1.cc:
1663 * testsuite/23_containers/map/modifiers/try_emplace/1.cc: Likewise.
1664 * testsuite/23_containers/multimap/modifiers/extract.cc: Likewise.
1665 * testsuite/23_containers/multiset/modifiers/extract.cc: Likewise.
1666 * testsuite/23_containers/set/modifiers/extract.cc: Likewise.
1667 * testsuite/23_containers/unordered_map/modifiers/extract.cc:
1669 * testsuite/23_containers/unordered_multimap/modifiers/extract.cc::
1671 * testsuite/23_containers/unordered_multiset/modifiers/extract.cc::
1673 * testsuite/23_containers/unordered_set/modifiers/extract.cc:
1675 * testsuite/23_containers/vector/modifiers/insert_vs_emplace.cc:
1677 * testsuite/25_algorithms/binary_search/partitioned.cc: Likewise.
1678 * testsuite/25_algorithms/equal_range/partitioned.cc: Likewise.
1679 * testsuite/25_algorithms/lexicographical_compare/71545.cc: Likewise.
1680 * testsuite/25_algorithms/lower_bound/partitioned.cc: Likewise.
1681 * testsuite/25_algorithms/upper_bound/partitioned.cc: Likewise.
1682 * testsuite/libstdc++-prettyprinters/cxx11.cc: Likewise.
1683 * testsuite/libstdc++-prettyprinters/cxx17.cc: Likewise.
1684 * testsuite/libstdc++-prettyprinters/debug.cc: Likewise.
1685 * testsuite/libstdc++-prettyprinters/debug_cxx11.cc: Likewise.
1686 * testsuite/libstdc++-prettyprinters/libfundts.cc: Likewise.
1687 * testsuite/libstdc++-prettyprinters/simple.cc: Likewise.
1688 * testsuite/libstdc++-prettyprinters/simple11.cc: Likewise.
1689 * testsuite/libstdc++-prettyprinters/whatis.cc: Likewise.
1691 2017-01-13 Jonathan Wakely <jwakely@redhat.com>
1694 * config/io/basic_file_stdio.cc (__basic_file<char>::close()): Don't
1695 retry fclose on EINTR.
1697 * include/profile/base.h: Remove unused header that leads to header
1698 cycle in C++17 mode.
1701 * include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI] (basic_string):
1702 Make _If_sv private.
1703 [!_GLIBCXX_USE_CXX11_ABI] (basic_string): Add member functions taking
1704 basic_string_view arguments.
1707 * testsuite/lib/libstdc++.exp (check_v3_target_filesystem_ts): Remove
1708 redundant option from cxxflags.
1709 (check_effective_target_cxx11-abi): Define.
1710 * testsuite/21_strings/basic_string/allocator/71964.cc: Use cxx11-abi
1712 * testsuite/21_strings/basic_string/allocator/char/copy.cc: Likewise.
1713 * testsuite/21_strings/basic_string/allocator/char/copy_assign.cc:
1715 * testsuite/21_strings/basic_string/allocator/char/minimal.cc:
1717 * testsuite/21_strings/basic_string/allocator/char/move.cc: Likewise.
1718 * testsuite/21_strings/basic_string/allocator/char/move_assign.cc:
1720 * testsuite/21_strings/basic_string/allocator/char/noexcept.cc:
1722 * testsuite/21_strings/basic_string/allocator/char/swap.cc: Likewise.
1723 * testsuite/21_strings/basic_string/allocator/wchar_t/copy.cc:
1725 * testsuite/21_strings/basic_string/allocator/wchar_t/copy_assign.cc:
1727 * testsuite/21_strings/basic_string/allocator/wchar_t/minimal.cc:
1729 * testsuite/21_strings/basic_string/allocator/wchar_t/move.cc:
1731 * testsuite/21_strings/basic_string/allocator/wchar_t/move_assign.cc:
1733 * testsuite/21_strings/basic_string/allocator/wchar_t/noexcept.cc:
1735 * testsuite/21_strings/basic_string/allocator/wchar_t/swap.cc:
1737 * testsuite/23_containers/list/61347.cc: Likewise.
1738 * testsuite/27_io/basic_fstream/cons/base.cc: Likewise.
1739 * testsuite/27_io/ios_base/failure/cxx11.cc: Likewise.
1741 2017-01-13 Ville Voutilainen <ville.voutilainen@gmail.com>
1744 * include/bits/list.tcc (merge(list&&)):
1745 Adjust list sizes if the comparator throws.
1746 (merge(list&&, _StrictWeakOrdering)): Likewise.
1747 (sort()): Splice elements back from the scratch buffers
1748 if the comparator throws.
1749 (sort(_StrictWeakOrdering)): Likewise.
1750 * testsuite/23_containers/list/operations/78389.cc: New.
1752 2017-01-13 Jonathan Wakely <jwakely@redhat.com>
1754 * testsuite/23_containers/unordered_set/allocator/ext_ptr.cc: Mark
1755 XFAIL for C++17 until node reinsertion supports fancy pointers.
1758 * testsuite/20_util/add_pointer/value.cc: Test forming function
1761 2017-01-13 Michael Brune <lucdanton@free.fr>
1764 * include/std/type_traits (__is_referenceable): Handle noexcept
1767 2017-01-12 Jonathan Wakely <jwakely@redhat.com>
1770 * include/bits/stl_queue.h (queue, priority_queue): Remove default
1771 member-initializers and define default constructors as templates with
1773 * include/bits/stl_stack.h (stack): Likewise.
1774 * testsuite/23_containers/priority_queue/requirements/constructible.cc:
1776 * testsuite/23_containers/priority_queue/requirements/
1777 explicit_instantiation/1.cc: Test more instantiations.
1778 * testsuite/23_containers/priority_queue/requirements/
1779 explicit_instantiation/1_c++98.cc: Likewise.
1780 * testsuite/23_containers/queue/requirements/constructible.cc: New.
1781 * testsuite/23_containers/stack/requirements/constructible.cc: New.
1784 * doc/xml/manual/intro.xml: Document LWG 2781 change.
1785 * doc/html/*: Regenerate.
1786 * include/std/functional (_Function_base::_Ref_manager): Remove.
1787 (_Function_handler): Remove partial specializations for
1789 (function::target): Remove special case for const qualification.
1790 * testsuite/20_util/function/6.cc: Adjust tests for target type.
1791 * testsuite/20_util/function/7.cc: Likewise.
1792 * testsuite/20_util/function/8.cc: Likewise.
1794 2017-01-11 Jonathan Wakely <jwakely@redhat.com>
1797 * include/bits/stl_map.h (map::lower_bound, map::upper_bound)
1798 (map::equal_range): Fix return type of heterogeneous overloads.
1799 * include/bits/stl_multimap.h (multimap::lower_bound)
1800 (multimap::upper_bound, multimap::equal_range): Likewise.
1801 * include/bits/stl_multiset.h (multiset::lower_bound)
1802 (multiset::upper_bound, multiset::equal_range): Likewise.
1803 * include/bits/stl_set.h (set::lower_bound, set::upper_bound)
1804 (set::equal_range): Likewise.
1805 * testsuite/23_containers/map/operations/2.cc
1806 * testsuite/23_containers/multimap/operations/2.cc
1807 * testsuite/23_containers/multiset/operations/2.cc
1808 * testsuite/23_containers/set/operations/2.cc
1811 * include/bits/stl_map.h (map::count<_Kt>(const _Kt&)): Don't assume
1812 the heterogeneous comparison can only find one match.
1813 * include/bits/stl_set.h (set::count<_Kt>(const _Kt&)): Likewise.
1814 * testsuite/23_containers/map/operations/2.cc: Test count works with
1815 comparison function that just partitions rather than sorting.
1816 * testsuite/23_containers/set/operations/2.cc: Likewise.
1818 2017-01-11 Ville Voutilainen <ville.voutilainen@gmail.com>
1820 Reduce the size of variant, it doesn't need an index of
1821 type size_t internally.
1822 * include/std/variant (parse_numbers.h): New include.
1823 (__select_index): New.
1824 (_Variant_storage<false, _Types...>::_M_reset_impl): Use
1825 _index_type for comparison with variant_npos.
1826 (_Variant_storage<false, _Types...>::__index_type): New.
1827 (_Variant_storage<false, _Types...>::_M_index): Change the
1828 type from size_t to __index_type.
1829 (_Variant_storage<true, _Types...>::__index_type): New.
1830 (_Variant_storage<true, _Types...>::_M_index): Change the
1831 type from size_t to __index_type.
1832 (_Variant_base::_M_valid): Use _Storage::__index_type
1833 for comparison with variant_npos.
1834 (variant::index): Use _Base::_Storage::__index_type
1835 for comparison with variant_npos.
1836 * testsuite/20_util/variant/index_type.cc: New.
1838 2017-01-10 Jonathan Wakely <jwakely@redhat.com>
1840 * testsuite/18_support/exception_ptr/60612-unexpected.cc: Adjust
1841 effective target selector to prevent running in C++17 mode.
1844 * include/bits/stl_queue.h (queue::c): Add default member initializer.
1845 (queue::queue()): Add constructor and define as defaulted.
1846 (queue::queue(_Sequence&&)): Remove default argument.
1847 (priority_queue::c, priority_queue::comp): Add default member
1849 (priority_queue::priority_queue()): Add constructor and define as
1851 (priority_queue::priority_queue(const _Compare&, _Sequence&&)):
1852 Remove default argument for first parameter.
1853 * include/bits/stl_stack.h (stack::c): Add default member initializer.
1854 (stack::stack()): Add constructor and define as defaulted.
1855 (stack::stack(const _Sequence&)): Remove default argument.
1856 * testsuite/23_containers/priority_queue/requirements/
1857 explicit_instantiation/1.cc: Test explicit instantiation with
1858 non-DefaultConstructible sequence.
1859 * testsuite/23_containers/priority_queue/77528.cc: New test.
1860 * testsuite/23_containers/priority_queue/requirements/
1861 explicit_instantiation/1_c++0x.cc: Replace with 1_c++98.cc.
1862 * testsuite/23_containers/queue/77528.cc: New test.
1863 * testsuite/23_containers/queue/requirements/explicit_instantiation/
1864 1.cc: Test explicit instantiation with non-DefaultConstructible
1866 * testsuite/23_containers/queue/requirements/explicit_instantiation/
1867 1_c++0x.cc: Replace with 1_c++98.cc.
1868 * testsuite/23_containers/stack/77528.cc: New test.
1869 * testsuite/23_containers/stack/requirements/explicit_instantiation/
1870 1.cc: Test explicit instantiation with non-DefaultConstructible
1872 * testsuite/23_containers/stack/requirements/explicit_instantiation/
1873 1_c++0x.cc: Replace with 1_c++98.cc.
1875 2017-01-10 Felipe Magno de Almeida <felipe@expertisesolutions.com.br>
1877 * include/bits/locale_facets_nonio.tcc
1878 (time_get::_M_extract_via_format): Avoid compilation errors with
1879 non-standard struct tm.
1881 2017-01-10 François Dumont <fdumont@gcc.gnu.org>
1882 Jonathan Wakely <jwakely@redhat.com>
1884 * python/libstdcxx/v6/printers.py (_versioned_namespace): Define.
1885 (is_specialization, strip_versioned_namespace): New helpers functions
1886 to work with symbols in the versioned namespace.
1887 (Printer.add_version): Add second name using versioned namespace.
1888 (add_one_template_type_printer, add_one_type_printer): Add second
1889 type printers using versioned namespace.
1890 (register_type_printers): Add template type printer for basic_string.
1891 (build_libstdcxx_dictionary): Remove dead code.
1892 * python/libstdcxx/v6/xmethods.py: Make all matchers look for
1893 versioned namespace.
1894 * testsuite/libstdc++-prettyprinters/48362.cc: Adjust expected
1896 * testsuite/libstdc++-prettyprinters/whatis.cc: Likewise.
1898 2017-01-09 Jonathan Wakely <jwakely@redhat.com>
1901 * acinclude.m4 (GLIBCXX_CHECK_C99_TR1): Check for llrint and llround
1902 functions separately on darwin and if they're missing define
1903 _GLIBCXX_NO_C99_ROUNDING_FUNCS.
1904 * config.h.in: Regenerate.
1905 * configure: Regenerate.
1906 * include/c_global/cmath [_GLIBCXX_NO_C99_ROUNDING_FUNCS] (llrint)
1907 (llrintf, llrintl, llround, llroundf, llroundl): Do not define.
1909 * testsuite/30_threads/condition_variable/members/3.cc: Use new macro
1910 to detect correct thread_local destructors.
1911 * testsuite/util/testsuite_hooks.h (CORRECT_THREAD_LOCAL_DTORS):
1914 2017-01-09 Jonathan Wakely <jwakely@redhat.com>
1915 Aditya Kumar <hiraditya@msn.com>
1918 * include/bits/basic_string.tcc
1919 (basic_string::find(const CharT*, size_type, size_type)): Optimize.
1921 2017-01-06 Jonathan Wakely <jwakely@redhat.com>
1923 * testsuite/21_strings/basic_string/operations/find/char/6.cc: New.
1924 * testsuite/21_strings/basic_string/operations/find/wchar_t/6.cc: New.
1926 * testsuite/util/performance/priority_queue/mem_usage/pop_test.hpp:
1927 Include <cassert> header.
1930 * crossconfig.m4: Check for __cxa_thread_atexit on *-*-freebsd*.
1931 * configure: Regenerate.
1933 2017-01-06 Barrett Adair <barrettellisadair@gmail.com>
1934 Jonathan Wakely <jwakely@redhat.com>
1936 * include/std/variant (variant, swap): Replace __and_ usage with fold
1939 2017-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1942 * acinclude.m4 (GLIBCXX_CHECK_ASSEMBLER_HWCAP): Remove.
1943 * configure.ac: Call GCC_CHECK_ASSEMBLER_HWCAP instead of
1944 GLIBCXX_CHECK_ASSEMBLER_HWCAP.
1945 * fragment.am (CONFIG_CXXFLAGS): Use HWCAP_CFLAGS instead of
1947 * aclocal.m4: Regenerate.
1948 * configure: Regenerate.
1949 * Makefile.in, doc/Makefile.in, include/Makefile.in,
1950 libsupc++/Makefile.in, po/Makefile.in, python/Makefile.in,
1951 src/Makefile.in, src/c++11/Makefile.in, src/c++98/Makefile.in,
1952 src/filesystem/Makefile.in, testsuite/Makefile.in: Regenerate.
1954 2017-01-06 Jonathan Wakely <jwakely@redhat.com>
1956 * include/bits/c++config (_GLIBCXX_ASSERTIONS): Avoid redefinition.
1959 * include/bits/predefined_ops.h (_Iter_comp_iter, _Iter_comp_val)
1960 (_Val_comp_iter, _Iter_equals_val, _Iter_pred, _Iter_comp_to_val)
1961 (_Iter_comp_to_iter, _Iter_negate): Make constructors explicit and
1962 move function objects.
1963 (__iter_comp_iter, __iter_comp_val, __val_comp_iter, __pred_iter)
1964 (__iter_comp_val, __iter_comp_iter, __negate): Move function objects.
1965 * testsuite/25_algorithms/sort/78991.cc: New test.
1967 2017-01-05 Jonathan Wakely <jwakely@redhat.com>
1969 * include/bits/std_function.h (function::_Signature_type): Remove.
1970 (function::function(_Functor)): Adjust.
1972 2017-01-05 Tim Shen <timshen@google.com>
1975 * include/std/variant (__gen_vtable_impl): rename __unused to
1976 __dimensions to avoid naming conflict.
1978 2017-01-04 Jonathan Wakely <jwakely@redhat.com>
1981 * config.h.in: Regenerate.
1982 * configure: Likewise.
1983 * configure.ac: Check for __cxa_thread_atexit.
1984 * libsupc++/atexit_thread.cc [_GLIBCXX_HAVE___CXA_THREAD_ATEXIT]:
1985 Don't define __cxa_thread_atexit if libc provides it.
1987 2017-01-04 Ville Voutilainen <ville.voutilainen@gmail.com>
1989 Implement 2801, Default-constructibility of unique_ptr.
1990 * include/bits/unique_ptr.h (__uniq_ptr_impl::_DeleterConstraint): New.
1991 (unique_ptr::_DeleterConstraint): Likewise.
1992 (unique_ptr()): Constrain.
1993 (unique_ptr(pointer)): Likewise.
1994 (unique_ptr(nullptr_t)): Likewise.
1995 (unique_ptr<_Tp[], _Dp>::_DeleterConstraint): New.
1996 (unique_ptr<_Tp[], _Dp>::unique_ptr()): Constrain.
1997 (unique_ptr<_Tp[], _Dp>::unique_ptr(_Up)): Likewise.
1998 (unique_ptr<_Tp[], _Dp>::unique_ptr(nullptr_t)): Likewise.
1999 * testsuite/20_util/unique_ptr/assign/48635_neg.cc: Adjust.
2000 * testsuite/20_util/unique_ptr/cons/cv_qual_neg.cc: Likewise.
2001 * testsuite/20_util/unique_ptr/cons/default.cc: New.
2002 * testsuite/20_util/unique_ptr/cons/ptr_deleter_neg.cc: Adjust.
2004 2017-01-04 Pauli Nieminen <suokkos@gmail.com>
2005 Jonathan Wakely <jwakely@redhat.com>
2008 * acinclude.m4 (GLIBCXX_CHECK_EXCEPTION_PTR_SYMVER): Define.
2009 * config.h.in: Regenerate.
2010 * config/abi/pre/gnu.ver [HAVE_EXCEPTION_PTR_SINCE_GCC46]
2011 (GLIBCXX_3.4.15, GLIBCXX_3.4.21, CXXABI_1.3.3, CXXABI_1.3.5): Make
2012 exports for exception_ptr, nested_exception, and future conditional.
2013 [HAVE_EXCEPTION_PTR_SINCE_GCC46] (GLIBCXX_3.4.23, CXXABI_1.3.11): Add
2014 exports for exception_ptr, nested_exception, and future conditional.
2015 * configure: Regenerate.
2016 * configure.ac: Use GLIBCXX_CHECK_EXCEPTION_PTR_SYMVER.
2017 * include/std/future: Remove check for ATOMIC_INT_LOCK_FREE
2018 * libsupc++/eh_atomics.h: New file for internal use only.
2019 (__eh_atomic_inc, __eh_atomic_dec): New.
2020 * libsupc++/eh_ptr.cc (exception_ptr::_M_addref)
2021 (exception_ptr::_M_release) (__gxx_dependent_exception_cleanup)
2022 (rethrow_exception): Use eh_atomics.h reference counting helpers.
2023 * libsupc++/eh_throw.cc (__gxx_exception_cleanup): Likewise.
2024 * libsupc++/eh_tm.cc (free_any_cxa_exception): Likewise.
2025 * libsupc++/exception: Remove check for ATOMIC_INT_LOCK_FREE.
2026 * libsupc++/exception_ptr.h: Likewise.
2027 * libsupc++/guard.cc: Include header for ATOMIC_INT_LOCK_FREE macro.
2028 * libsupc++/nested_exception.cc: Remove check for
2029 ATOMIC_INT_LOCK_FREE.
2030 * libsupc++/nested_exception.h: Likewise.
2031 * src/c++11/future.cc: Likewise.
2032 * testsuite/18_support/exception_ptr/*: Remove atomic builtins checks.
2033 * testsuite/18_support/nested_exception/*: Likewise.
2034 * testsuite/30_threads/async/*: Likewise.
2035 * testsuite/30_threads/future/*: Likewise.
2036 * testsuite/30_threads/headers/future/types_std_c++0x.cc: Likewise.
2037 * testsuite/30_threads/packaged_task/*: Likewise.
2038 * testsuite/30_threads/promise/*: Likewise.
2039 * testsuite/30_threads/shared_future/*: Likewise.
2041 2017-01-03 Gerald Pfeifer <gerald@pfeifer.com>
2043 * doc/xml/manual/documentation_hacking.xml: sourceforge.net now
2044 defaults to https; adjust reference.
2046 2017-01-03 Jonathan Wakely <jwakely@redhat.com>
2049 * include/std/thread (thread(const thread&&)): Add deleted
2051 * testsuite/30_threads/thread/cons/lwg2097.cc: New test.
2053 * doc/xml/manual/spine.xml: Update copyright years.
2054 * doc/xml/manual/build_hacking.xml: Fix spelling of libbuilddir.
2055 * doc/xml/manual/test.xml: Likewise.
2056 * doc/html/*: Regenerate.
2058 2017-01-01 Gerald Pfeifer <gerald@pfeifer.com>
2060 * doc/xml/faq.xml: Update address of C++ ABI link.
2061 * doc/xml/manual/abi.xml: Ditto.
2063 2017-01-01 Jakub Jelinek <jakub@redhat.com>
2065 Update copyright years.
2067 Copyright (C) 2017 Free Software Foundation, Inc.
2069 Copying and distribution of this file, with or without modification,
2070 are permitted in any medium without royalty provided the copyright
2071 notice and this notice are preserved.