1 2017-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3 * config/abi/post/solaris2.10/baseline_symbols.txt: Regenerate.
4 * config/abi/post/solaris2.10/amd64/baseline_symbols.txt: Likewise.
5 * config/abi/post/solaris2.10/sparcv9/baseline_symbols.txt: Likewise.
6 * config/abi/post/solaris2.11/baseline_symbols.txt: Likewise.
7 * config/abi/post/solaris2.11/amd64/baseline_symbols.txt: Likewise.
8 * config/abi/post/solaris2.11/sparcv9/baseline_symbols.txt: Likewise.
10 2017-02-01 Jonathan Wakely <jwakely@redhat.com>
13 * include/bits/predefined_ops.h (_Iter_equals_iter): Store iterator
15 (_Iter_comp_to_iter): Likewise.
16 * testsuite/25_algorithms/search/78346.cc: New test.
19 * config/abi/pre/gnu.ver: Remove recently added symbols.
20 * include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI]
21 (basic_string::_M_copy_assign): Remove.
22 (basic_string::operator=(const basic_string&)): Don't dispatch to
23 _M_copy_assign. If source object is small just deallocate, otherwise
24 perform new allocation before making any changes.
25 * include/bits/basic_string.tcc [_GLIBCXX_USE_CXX11_ABI]
26 (basic_string::_M_copy_assign(const basic_string&, true_type)):
28 * testsuite/21_strings/basic_string/allocator/char/copy_assign.cc:
29 Test cases where the allocators are equal or the string is small.
30 * testsuite/21_strings/basic_string/allocator/wchar_t/copy_assign.cc:
33 2017-01-30 Ville Voutilainen <ville.voutilainen@gmail.com>
35 Implement LWG 2825, LWG 2756 breaks class template argument
36 deduction for optional.
37 * include/std/optional: Add a deduction guide.
38 * testsuite/20_util/optional/cons/deduction_guide.cc: New.
40 2017-01-27 Jonathan Wakely <jwakely@redhat.com>
43 * config/abi/pre/gnu.ver: Add new symbols.
44 * include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI]
45 (basic_string::_M_copy_assign): New overloaded functions to perform
47 (basic_string::operator=(const basic_string&)): Dispatch to
49 * include/bits/basic_string.tcc [_GLIBCXX_USE_CXX11_ABI]
50 (basic_string::_M_copy_assign(const basic_string&, true_type)):
51 Define, performing rollback on exception.
52 * testsuite/21_strings/basic_string/allocator/char/copy_assign.cc:
53 Test exception-safety guarantee.
54 * testsuite/21_strings/basic_string/allocator/wchar_t/copy_assign.cc:
56 * testsuite/util/testsuite_allocator.h (uneq_allocator::swap): Make
59 2017-01-26 Jonathan Wakely <jwakely@redhat.com>
62 * include/tr1/complex (conj): Remove using-declaration and restore
63 overloads, reverting previous change.
65 * testsuite/23_containers/list/operations/78389.cc: Fix for C++11
67 * testsuite/23_containers/priority_queue/requirements/constructible.cc:
68 Mark as unsupported in C++98 mode.
69 * testsuite/23_containers/queue/requirements/constructible.cc:
71 * testsuite/23_containers/stack/requirements/constructible.cc:
73 * testsuite/25_algorithms/make_heap/movable.cc: Fix for C++11 mode.
76 * include/bits/c++config (literals::string_view_literals::__7): Add.
77 Only declare versioned namespaces for the relevant C++ dialects.
78 * include/experimental/bits/erase_if.h (fundamentals_v2::__detail):
79 Add versioning macros.
80 * include/experimental/bits/lfts_config.h:
81 (fundamentals_v1::__detail::__7, fundamentals_v2::__detail::__7): Add.
82 * include/experimental/string_view (fundamentals_v2::__detail):
83 Add versioning macros.
84 (fundamentals_v2::__detail::__identity): Remove.
85 (fundamentals_v2::__detail::__idt): Use common_type instead of
87 * include/std/string_view (__detail::__identity, __detail::__idt):
89 (literals::string_view_literals): Fix nesting of versioning macros.
92 * libsupc++/del_opa.cc (operator delete(void*, std::align_val_t))
93 [!_GLIBCXX_HAVE_ALIGNED_ALLOC && !_GLIBCXX_HAVE_POSIX_MEMALIGN
94 && !_GLIBCXX_HAVE_MEMALIGN && !_GLIBCXX_HAVE__ALIGNED_MALLOC]:
95 Retrieve original pointer value allocated by malloc.
96 * libsupc++/new_opa.cc [!_GLIBCXX_HAVE_ALIGNED_ALLOC
97 && !_GLIBCXX_HAVE_POSIX_MEMALIGN && !_GLIBCXX_HAVE_MEMALIGN
98 && !_GLIBCXX_HAVE__ALIGNED_MALLOC] (aligned_alloc(size_t, size_t)):
99 Define, adjusting pointer value allocated by malloc and storing for
100 retrieval by operator delete.
102 2017-01-26 Jakub Jelinek <jakub@redhat.com>
104 * libsupc++/eh_atomics.h: Update copyright years.
105 * testsuite/20_util/unique_ptr/cons/default.cc: Update copyright years.
107 2017-01-25 Jonathan Wakely <jwakely@redhat.com>
111 * include/std/complex (real(T), imag(T)): Add _GLIBCXX_CONSTEXPR.
112 (proj(T), conj(T)): Change return types per DR 1522.
113 * include/tr1/complex (conj): Remove overloads and use std::conj.
114 * testsuite/26_numerics/complex/dr781_dr1137.cc: Rename to...
115 * testsuite/26_numerics/complex/dr781.cc: ... this, and update.
116 * testsuite/26_numerics/complex/value_operations/constexpr2.cc: Test
117 real(T) and imag(T). Allow testing for C++11 too.
119 2017-01-24 Jonathan Wakely <jwakely@redhat.com>
122 * include/experimental/string_view (operator==): Check sizes first.
123 * include/std/string_view (operator==): Likewise.
125 2017-01-23 Jonathan Wakely <jwakely@redhat.com>
127 * testsuite/experimental/array/make_array.cc: Restore <functional>
130 2017-01-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
132 * testsuite/29_atomics/atomic/69301.cc: Require atomic builtins.
134 2017-01-23 Jonathan Wakely <jwakely@redhat.com>
137 * include/experimental/array (__make_array_elem): New class template
138 and partial specialization.
139 (__is_reference_wrapper): Move into __make_array_elem specialization.
140 (make_array): Use __make_array_elem to determine element type and move
141 static assertion into specialization. Qualify std::forward call.
142 (to_array): Add exception specifiation.
143 * testsuite/experimental/array/make_array.cc: Test argument types
144 without a common type.
145 * testsuite/experimental/array/neg.cc: Adjust expected error message.
147 2017-01-22 Gerald Pfeifer <gerald@pfeifer.com>
149 * doc/xml/manual/debug.xml: code.google.com uses https now.
151 2017-01-22 Gerald Pfeifer <gerald@pfeifer.com>
153 * doc/xml/manual/test.xml: Fix link into gccint online manual.
155 2017-01-21 Ville Voutilainen <ville.voutilainen@gmail.com>
157 Make poisoned hashes SFINAE away the call operator of the hash.
158 * include/bits/functional_hash.h
159 (__poison_hash::__enable_hash_call): New.
160 * include/std/optional (__optional_hash_call_base): New.
161 (hash<optional<_Tp>>): Derive from the new base,
162 move the hash function into that base.
163 * include/std/variant (__variant_hash_call_base_impl): New.
164 (__variant_hash_call_base): Likewise.
165 (hash<variant<_Types...>>): Derive from the new base,
166 move the hash function into that base.
167 * testsuite/20_util/optional/hash.cc: Add tests for is_callable.
168 * testsuite/20_util/variant/hash.cc: Likewise.
170 2017-01-20 Joe Seymour <joe.s@somniumtech.com>
172 * acinclude.m4 (GLIBCXX_CHECK_SIZE_T_MANGLING): Support uint20_t.
173 * configure: Regenerate.
175 2017-01-20 Jonathan Wakely <jwakely@redhat.com>
178 * include/bits/random.h (uniform_real_distribution::param_type)
179 (normal_distribution::param_type, lognormal_distribution::param_type)
180 (gamma_distribution::param_type, chi_squared_distribution::param_type)
181 (cauchy_distribution::param_type, fisher_f_distribution::param_type)
182 (student_t_distribution::param_type)
183 (bernoulli_distribution::param_type, binomial_distribution::param_type)
184 (geometric_distribution::param_type)
185 (negative_binomial_distribution::param_type)
186 (poisson_distribution::param_type)
187 (exponential_distribution::param_type)
188 (weibull_distribution::param_type)
189 (extreme_value_distribution::param_type)
190 (discrete_distribution::param_type)
191 (piecewise_constant_distribution::param_type)
192 (piecewise_linear_distribution::param_type): Define operator!=.
193 * include/bits/uniform_int_dist.h
194 (uniform_int_distribution::param_type): Likewise.
195 * include/ext/random (beta_distribution::param_type)
196 (rice_distribution::param_type, nakagami_distribution::param_type)
197 (pareto_distribution::param_type, k_distribution::param_type)
198 (arcsine_distribution::param_type, hoyt_distribution::param_type)
199 (triangular_distribution::param_type)
200 (von_mises_distribution::param_type)
201 (hypergeometric_distribution::param_type)
202 (logistic_distribution::param_type)
203 (uniform_on_sphere_distribution::param_type)
204 (uniform_inside_sphere_distribution::param_type): Likewise.
205 * testsuite/26_numerics/random/bernoulli_distribution/cons/parms.cc:
206 Test construction with param_type.
207 * testsuite/26_numerics/random/binomial_distribution/cons/parms.cc:
209 * testsuite/26_numerics/random/cauchy_distribution/cons/parms.cc:
211 * testsuite/26_numerics/random/chi_squared_distribution/cons/parms.cc:
213 * testsuite/26_numerics/random/exponential_distribution/cons/parms.cc:
215 * testsuite/26_numerics/random/extreme_value_distribution/cons/
217 * testsuite/26_numerics/random/fisher_f_distribution/cons/parms.cc:
219 * testsuite/26_numerics/random/gamma_distribution/cons/parms.cc:
221 * testsuite/26_numerics/random/geometric_distribution/cons/parms.cc:
223 * testsuite/26_numerics/random/lognormal_distribution/cons/parms.cc:
225 * testsuite/26_numerics/random/negative_binomial_distribution/cons/
227 * testsuite/26_numerics/random/normal_distribution/cons/parms.cc:
229 * testsuite/26_numerics/random/poisson_distribution/cons/parms.cc:
231 * testsuite/26_numerics/random/student_t_distribution/cons/parms.cc:
233 * testsuite/26_numerics/random/uniform_int_distribution/cons/parms.cc:
235 * testsuite/26_numerics/random/uniform_real_distribution/cons/parms.cc:
237 * testsuite/26_numerics/random/weibull_distribution/cons/parms.cc:
239 * testsuite/ext/random/arcsine_distribution/cons/parms.cc: Likewise.
240 * testsuite/ext/random/beta_distribution/cons/parms.cc: Likewise.
241 * testsuite/ext/random/hoyt_distribution/cons/parms.cc: Likewise.
242 * testsuite/ext/random/hypergeometric_distribution/cons/parms.cc:
244 * testsuite/ext/random/k_distribution/cons/parms.cc: Likewise.
245 * testsuite/ext/random/logistic_distribution/cons/parms.cc: Likewise.
246 * testsuite/ext/random/nakagami_distribution/cons/parms.cc: Likewise.
247 * testsuite/ext/random/normal_mv_distribution/cons/parms.cc: Likewise.
248 * testsuite/ext/random/pareto_distribution/cons/parms.cc: Likewise.
249 * testsuite/ext/random/rice_distribution/cons/parms.cc: Likewise.
250 * testsuite/ext/random/triangular_distribution/cons/parms.cc:
252 * testsuite/ext/random/uniform_inside_sphere_distribution/cons/
254 * testsuite/ext/random/von_mises_distribution/cons/parms.cc: Likewise.
257 * include/bits/alloc_traits.h (__allocator_traits_base::__diff_type)
258 (__allocator_traits_base::__size_type): Remove.
259 (allocator_traits::_Ptr): New class template to detect const and void
260 pointer types without instantiating pointer_traits::rebind
262 (allocator_traits::_Diff): Likewise for detecting difference_type.
263 (allocator_traits::_Size): New class template to detect size_type
264 without instantiating make_unsigned unnecessarily.
265 * include/bits/ptr_traits.h (pointer_traits::element_type): Use
266 __detected_or_t instead of __detected_or_t_.
267 * include/std/type_traits (__detected_or_t_): Remove.
268 * testsuite/20_util/allocator_traits/members/pointers.cc: New test.
272 * include/bits/alloc_traits.h (__allocator_traits_base::__rebind):
273 Replace with class template using void_t.
274 (__alloc_rebind): Define in terms of
275 __allocator_traits_base::__rebind.
276 (allocator_traits): Remove unconditional static_assert for
278 * include/bits/ptr_traits.h (__replace_first_arg): Remove type member.
279 (pointer_traits::__rebind): Replace with class template using void_t.
280 (pointer_traits::rebind): Define in terms of __rebind.
281 (pointer_traits): Remove unconditional static_assert for rebind.
282 * testsuite/20_util/allocator_traits/members/rebind_alloc.cc: New test.
283 * testsuite/20_util/pointer_traits/rebind.cc: New test.
286 * include/experimental/any (__any_caster): Avoid instantiating
287 manager function for types that can't be stored in any.
288 * include/std/any (__any_caster): Likewise.
289 * testsuite/20_util/any/misc/any_cast.cc: Test non-copyable type.
290 * testsuite/experimental/any/misc/any_cast.cc: Likewise.
293 * include/bits/stl_algo.h (is_partitioned): Use increment instead of
296 2017-01-19 Jonathan Wakely <jwakely@redhat.com>
299 * include/bits/shared_ptr_base.h (__enable_shared_from_this_base):
301 (__enable_shared_from_this): Declare __shared_ptr as a friend.
302 * testsuite/ext/shared_ptr/1.cc: New test.
305 * include/bits/stl_algo.h (is_partitioned): Don't retest the partition
307 * testsuite/25_algorithms/is_partitioned/2.cc: New test.
309 * doc/xml/manual/abi.xml: Fix typo.
310 * doc/html/manual/abi.html: Likewise.
313 * include/bits/predefined_ops.h (_Iter_less_val, _Val_less_iter): Add
314 converting constructors from _Iter_less_iter.
315 (_Iter_comp_val, _Val_comp_iter): Add converting constructors from
317 (__iter_comp_val(_Iter_comp_iter<C>): Use converting constructor.
318 (__val_comp_iter(_Iter_comp_iter<C>): Likewise.
319 * include/bits/stl_heap.h (__is_heap_until, __push_heap, __pop_heap)
320 (__make_heap, __sort_heap): Change _Compare parameters to references.
321 (__is_heap, push_heap, __adjust_heap, __pop_heap, pop_heap)
322 (__make_heap, make_heap, sort_heap, is_heap_until): Pass comparison
323 functions as lvalues.
324 (is_heap): Call __is_heap_until directly to avoid copying __comp.
325 * testsuite/23_containers/priority_queue/67085.cc: Adjust test to
326 count copies during construction with empty sequence.
329 * include/bits/stl_heap.h (__is_heap): Use _GLIBCXX_MOVE.
330 (__make_heap, __sort_heap): Don't use _GLIBCXX_MOVE inside loops.
331 * testsuite/23_containers/priority_queue/67085.cc: Adjust expected
333 * testsuite/25_algorithms/make_heap/movable.cc: New test.
336 * include/bits/stl_heap.h (push_heap, __adjust_heap, __pop_heap)
337 (pop_heap, __make_heap, make_heap, __sort_heap, sort_heap): Use
338 _GLIBCXX_MOVE when passing comparison function to other functions.
339 (is_heap_until, is_heap): Use std::move when passing comparison
341 * testsuite/23_containers/priority_queue/67085.cc: New test.
344 * doc/xml/manual/abi.xml (abi.versioning.history): Add markup to
345 macro names, filenames, and literal values. Document _GLIBCXX_RELEASE.
346 Document that the deprecated _GLIBCXX_VERSION macro was removed for
348 * doc/html/*: Regenerate.
349 * include/Makefile.am (_GLIBCXX_RELEASE): Set value.
350 * include/Makefile.in: Regenerate.
351 * include/bits/c++config (_GLIBCXX_RELEASE): Add #define.
352 * testsuite/ext/profile/mutex_extensions_neg.cc: Use lineno of 0 in
355 2017-01-18 Jonathan Wakely <jwakely@redhat.com>
358 * include/std/atomic (atomic<T>::load, atomic<T>::exchange): Use
359 aligned buffer instead of default-initialized variable.
360 * testsuite/29_atomics/atomic/69301.cc: New test.
361 * include/experimental/memory (observer_ptr::release): Use reserved
363 * include/ext/pointer.h (_Pointer_adapter::operator++(int))
364 (_Pointer_adapter::operator--(int)): Likewise.
367 * include/experimental/random (randint): Use temporary instead of
370 2017-01-17 Joshua Conner <joshconner@google.com>
372 * crossconfig.m4: Add fuchsia OS.
373 * configure: Regenerate.
375 2017-01-17 Jonathan Wakely <jwakely@redhat.com>
378 * doc/xml/manual/abi.xml (abi.versioning.history): Explain why the
379 __GLIBCXX__ macro is not useful. Remove redundant date information
380 and link to the GCC release timeline.
381 (abi.versioning.active): Move partial sentence into the previous
383 * doc/html/*: Regenerate.
386 * libsupc++/nested_exception.h (throw_with_nested): Use decay instead
388 * testsuite/18_support/nested_exception/79114.cc: New test.
390 2017-01-17 Jakub Jelinek <jakub@redhat.com>
393 * configure.ac: Add GCC_BASE_VER.
394 * fragment.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
395 get version from BASE-VER file.
396 * po/Makefile.in: Regenerated.
397 * libsupc++/Makefile.in: Regenerated.
398 * testsuite/Makefile.in: Regenerated.
399 * src/Makefile.in: Regenerated.
400 * configure: Regenerated.
401 * Makefile.in: Regenerated.
402 * include/Makefile.in: Regenerated.
403 * doc/Makefile.in: Regenerated.
404 * python/Makefile.in: Regenerated.
405 * src/c++11/Makefile.in: Regenerated.
406 * src/c++98/Makefile.in: Regenerated.
407 * src/filesystem/Makefile.in: Regenerated.
409 2017-01-16 Jonathan Wakely <jwakely@redhat.com>
412 * src/c++11/functexcept.cc: Use new ABI for std::ios_base::failure
414 * testsuite/27_io/basic_ios/copyfmt/char/1.cc: Don't override ABI
415 for test, so new ios::failure can be caught.
416 * testsuite/27_io/basic_ios/exceptions/char/1.cc: Likewise.
417 * testsuite/27_io/basic_istream/extractors_arithmetic/char/
418 exceptions_failbit.cc: Likewise.
419 * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/
420 exceptions_failbit.cc: Likewise.
421 * testsuite/27_io/basic_istream/extractors_other/char/
422 exceptions_null.cc: Likewise.
423 * testsuite/27_io/basic_istream/extractors_other/wchar_t/
424 exceptions_null.cc: Likewise.
425 * testsuite/27_io/basic_istream/sentry/char/12297.cc: Likewise.
426 * testsuite/27_io/basic_istream/sentry/wchar_t/12297.cc: Likewise.
427 * testsuite/27_io/basic_ostream/inserters_other/char/
428 exceptions_null.cc: Likewise.
429 * testsuite/27_io/basic_ostream/inserters_other/wchar_t/
430 exceptions_null.cc: Likewise.
431 * testsuite/27_io/ios_base/storage/2.cc: Likewise.
434 * include/bits/locale_classes.h (locale::facet::__shim): Change from
435 private to protected.
436 * src/c++11/cxx11-shim_facets.cc (__shim_accessor): Define helper to
437 make locale::facet::__shim accessible.
439 2017-01-16 Ville Voutilainen <ville.voutilainen@gmail.com>
442 * include/bits/list.tcc (merge(list&&)): Fix backwards size adjustments.
443 (merge(list&&, _StrictWeakOrdering)): Likewise.
444 * testsuite/23_containers/list/operations/78389.cc: Add
445 better test for the sizes.
447 2017-01-14 Jonathan Wakely <jwakely@redhat.com>
449 * testsuite/23_containers/array/specialized_algorithms/swap_cxx17.cc:
450 Skip test when -D_GLIBCXX_PROFILE mode is included in options.
451 * testsuite/23_containers/map/modifiers/extract.cc: Likewise.
452 * testsuite/23_containers/map/modifiers/insert_or_assign/1.cc:
454 * testsuite/23_containers/map/modifiers/try_emplace/1.cc: Likewise.
455 * testsuite/23_containers/multimap/modifiers/extract.cc: Likewise.
456 * testsuite/23_containers/multiset/modifiers/extract.cc: Likewise.
457 * testsuite/23_containers/set/modifiers/extract.cc: Likewise.
458 * testsuite/23_containers/unordered_map/modifiers/extract.cc:
460 * testsuite/23_containers/unordered_multimap/modifiers/extract.cc::
462 * testsuite/23_containers/unordered_multiset/modifiers/extract.cc::
464 * testsuite/23_containers/unordered_set/modifiers/extract.cc:
466 * testsuite/23_containers/vector/modifiers/insert_vs_emplace.cc:
468 * testsuite/25_algorithms/binary_search/partitioned.cc: Likewise.
469 * testsuite/25_algorithms/equal_range/partitioned.cc: Likewise.
470 * testsuite/25_algorithms/lexicographical_compare/71545.cc: Likewise.
471 * testsuite/25_algorithms/lower_bound/partitioned.cc: Likewise.
472 * testsuite/25_algorithms/upper_bound/partitioned.cc: Likewise.
473 * testsuite/libstdc++-prettyprinters/cxx11.cc: Likewise.
474 * testsuite/libstdc++-prettyprinters/cxx17.cc: Likewise.
475 * testsuite/libstdc++-prettyprinters/debug.cc: Likewise.
476 * testsuite/libstdc++-prettyprinters/debug_cxx11.cc: Likewise.
477 * testsuite/libstdc++-prettyprinters/libfundts.cc: Likewise.
478 * testsuite/libstdc++-prettyprinters/simple.cc: Likewise.
479 * testsuite/libstdc++-prettyprinters/simple11.cc: Likewise.
480 * testsuite/libstdc++-prettyprinters/whatis.cc: Likewise.
482 2017-01-13 Jonathan Wakely <jwakely@redhat.com>
485 * config/io/basic_file_stdio.cc (__basic_file<char>::close()): Don't
486 retry fclose on EINTR.
488 * include/profile/base.h: Remove unused header that leads to header
492 * include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI] (basic_string):
494 [!_GLIBCXX_USE_CXX11_ABI] (basic_string): Add member functions taking
495 basic_string_view arguments.
498 * testsuite/lib/libstdc++.exp (check_v3_target_filesystem_ts): Remove
499 redundant option from cxxflags.
500 (check_effective_target_cxx11-abi): Define.
501 * testsuite/21_strings/basic_string/allocator/71964.cc: Use cxx11-abi
503 * testsuite/21_strings/basic_string/allocator/char/copy.cc: Likewise.
504 * testsuite/21_strings/basic_string/allocator/char/copy_assign.cc:
506 * testsuite/21_strings/basic_string/allocator/char/minimal.cc:
508 * testsuite/21_strings/basic_string/allocator/char/move.cc: Likewise.
509 * testsuite/21_strings/basic_string/allocator/char/move_assign.cc:
511 * testsuite/21_strings/basic_string/allocator/char/noexcept.cc:
513 * testsuite/21_strings/basic_string/allocator/char/swap.cc: Likewise.
514 * testsuite/21_strings/basic_string/allocator/wchar_t/copy.cc:
516 * testsuite/21_strings/basic_string/allocator/wchar_t/copy_assign.cc:
518 * testsuite/21_strings/basic_string/allocator/wchar_t/minimal.cc:
520 * testsuite/21_strings/basic_string/allocator/wchar_t/move.cc:
522 * testsuite/21_strings/basic_string/allocator/wchar_t/move_assign.cc:
524 * testsuite/21_strings/basic_string/allocator/wchar_t/noexcept.cc:
526 * testsuite/21_strings/basic_string/allocator/wchar_t/swap.cc:
528 * testsuite/23_containers/list/61347.cc: Likewise.
529 * testsuite/27_io/basic_fstream/cons/base.cc: Likewise.
530 * testsuite/27_io/ios_base/failure/cxx11.cc: Likewise.
532 2017-01-13 Ville Voutilainen <ville.voutilainen@gmail.com>
535 * include/bits/list.tcc (merge(list&&)):
536 Adjust list sizes if the comparator throws.
537 (merge(list&&, _StrictWeakOrdering)): Likewise.
538 (sort()): Splice elements back from the scratch buffers
539 if the comparator throws.
540 (sort(_StrictWeakOrdering)): Likewise.
541 * testsuite/23_containers/list/operations/78389.cc: New.
543 2017-01-13 Jonathan Wakely <jwakely@redhat.com>
545 * testsuite/23_containers/unordered_set/allocator/ext_ptr.cc: Mark
546 XFAIL for C++17 until node reinsertion supports fancy pointers.
549 * testsuite/20_util/add_pointer/value.cc: Test forming function
552 2017-01-13 Michael Brune <lucdanton@free.fr>
555 * include/std/type_traits (__is_referenceable): Handle noexcept
558 2017-01-12 Jonathan Wakely <jwakely@redhat.com>
561 * include/bits/stl_queue.h (queue, priority_queue): Remove default
562 member-initializers and define default constructors as templates with
564 * include/bits/stl_stack.h (stack): Likewise.
565 * testsuite/23_containers/priority_queue/requirements/constructible.cc:
567 * testsuite/23_containers/priority_queue/requirements/
568 explicit_instantiation/1.cc: Test more instantiations.
569 * testsuite/23_containers/priority_queue/requirements/
570 explicit_instantiation/1_c++98.cc: Likewise.
571 * testsuite/23_containers/queue/requirements/constructible.cc: New.
572 * testsuite/23_containers/stack/requirements/constructible.cc: New.
575 * doc/xml/manual/intro.xml: Document LWG 2781 change.
576 * doc/html/*: Regenerate.
577 * include/std/functional (_Function_base::_Ref_manager): Remove.
578 (_Function_handler): Remove partial specializations for
580 (function::target): Remove special case for const qualification.
581 * testsuite/20_util/function/6.cc: Adjust tests for target type.
582 * testsuite/20_util/function/7.cc: Likewise.
583 * testsuite/20_util/function/8.cc: Likewise.
585 2017-01-11 Jonathan Wakely <jwakely@redhat.com>
588 * include/bits/stl_map.h (map::lower_bound, map::upper_bound)
589 (map::equal_range): Fix return type of heterogeneous overloads.
590 * include/bits/stl_multimap.h (multimap::lower_bound)
591 (multimap::upper_bound, multimap::equal_range): Likewise.
592 * include/bits/stl_multiset.h (multiset::lower_bound)
593 (multiset::upper_bound, multiset::equal_range): Likewise.
594 * include/bits/stl_set.h (set::lower_bound, set::upper_bound)
595 (set::equal_range): Likewise.
596 * testsuite/23_containers/map/operations/2.cc
597 * testsuite/23_containers/multimap/operations/2.cc
598 * testsuite/23_containers/multiset/operations/2.cc
599 * testsuite/23_containers/set/operations/2.cc
602 * include/bits/stl_map.h (map::count<_Kt>(const _Kt&)): Don't assume
603 the heterogeneous comparison can only find one match.
604 * include/bits/stl_set.h (set::count<_Kt>(const _Kt&)): Likewise.
605 * testsuite/23_containers/map/operations/2.cc: Test count works with
606 comparison function that just partitions rather than sorting.
607 * testsuite/23_containers/set/operations/2.cc: Likewise.
609 2017-01-11 Ville Voutilainen <ville.voutilainen@gmail.com>
611 Reduce the size of variant, it doesn't need an index of
612 type size_t internally.
613 * include/std/variant (parse_numbers.h): New include.
614 (__select_index): New.
615 (_Variant_storage<false, _Types...>::_M_reset_impl): Use
616 _index_type for comparison with variant_npos.
617 (_Variant_storage<false, _Types...>::__index_type): New.
618 (_Variant_storage<false, _Types...>::_M_index): Change the
619 type from size_t to __index_type.
620 (_Variant_storage<true, _Types...>::__index_type): New.
621 (_Variant_storage<true, _Types...>::_M_index): Change the
622 type from size_t to __index_type.
623 (_Variant_base::_M_valid): Use _Storage::__index_type
624 for comparison with variant_npos.
625 (variant::index): Use _Base::_Storage::__index_type
626 for comparison with variant_npos.
627 * testsuite/20_util/variant/index_type.cc: New.
629 2017-01-10 Jonathan Wakely <jwakely@redhat.com>
631 * testsuite/18_support/exception_ptr/60612-unexpected.cc: Adjust
632 effective target selector to prevent running in C++17 mode.
635 * include/bits/stl_queue.h (queue::c): Add default member initializer.
636 (queue::queue()): Add constructor and define as defaulted.
637 (queue::queue(_Sequence&&)): Remove default argument.
638 (priority_queue::c, priority_queue::comp): Add default member
640 (priority_queue::priority_queue()): Add constructor and define as
642 (priority_queue::priority_queue(const _Compare&, _Sequence&&)):
643 Remove default argument for first parameter.
644 * include/bits/stl_stack.h (stack::c): Add default member initializer.
645 (stack::stack()): Add constructor and define as defaulted.
646 (stack::stack(const _Sequence&)): Remove default argument.
647 * testsuite/23_containers/priority_queue/requirements/
648 explicit_instantiation/1.cc: Test explicit instantiation with
649 non-DefaultConstructible sequence.
650 * testsuite/23_containers/priority_queue/77528.cc: New test.
651 * testsuite/23_containers/priority_queue/requirements/
652 explicit_instantiation/1_c++0x.cc: Replace with 1_c++98.cc.
653 * testsuite/23_containers/queue/77528.cc: New test.
654 * testsuite/23_containers/queue/requirements/explicit_instantiation/
655 1.cc: Test explicit instantiation with non-DefaultConstructible
657 * testsuite/23_containers/queue/requirements/explicit_instantiation/
658 1_c++0x.cc: Replace with 1_c++98.cc.
659 * testsuite/23_containers/stack/77528.cc: New test.
660 * testsuite/23_containers/stack/requirements/explicit_instantiation/
661 1.cc: Test explicit instantiation with non-DefaultConstructible
663 * testsuite/23_containers/stack/requirements/explicit_instantiation/
664 1_c++0x.cc: Replace with 1_c++98.cc.
666 2017-01-10 Felipe Magno de Almeida <felipe@expertisesolutions.com.br>
668 * include/bits/locale_facets_nonio.tcc
669 (time_get::_M_extract_via_format): Avoid compilation errors with
670 non-standard struct tm.
672 2017-01-10 François Dumont <fdumont@gcc.gnu.org>
673 Jonathan Wakely <jwakely@redhat.com>
675 * python/libstdcxx/v6/printers.py (_versioned_namespace): Define.
676 (is_specialization, strip_versioned_namespace): New helpers functions
677 to work with symbols in the versioned namespace.
678 (Printer.add_version): Add second name using versioned namespace.
679 (add_one_template_type_printer, add_one_type_printer): Add second
680 type printers using versioned namespace.
681 (register_type_printers): Add template type printer for basic_string.
682 (build_libstdcxx_dictionary): Remove dead code.
683 * python/libstdcxx/v6/xmethods.py: Make all matchers look for
685 * testsuite/libstdc++-prettyprinters/48362.cc: Adjust expected
687 * testsuite/libstdc++-prettyprinters/whatis.cc: Likewise.
689 2017-01-09 Jonathan Wakely <jwakely@redhat.com>
692 * acinclude.m4 (GLIBCXX_CHECK_C99_TR1): Check for llrint and llround
693 functions separately on darwin and if they're missing define
694 _GLIBCXX_NO_C99_ROUNDING_FUNCS.
695 * config.h.in: Regenerate.
696 * configure: Regenerate.
697 * include/c_global/cmath [_GLIBCXX_NO_C99_ROUNDING_FUNCS] (llrint)
698 (llrintf, llrintl, llround, llroundf, llroundl): Do not define.
700 * testsuite/30_threads/condition_variable/members/3.cc: Use new macro
701 to detect correct thread_local destructors.
702 * testsuite/util/testsuite_hooks.h (CORRECT_THREAD_LOCAL_DTORS):
705 2017-01-09 Jonathan Wakely <jwakely@redhat.com>
706 Aditya Kumar <hiraditya@msn.com>
709 * include/bits/basic_string.tcc
710 (basic_string::find(const CharT*, size_type, size_type)): Optimize.
712 2017-01-06 Jonathan Wakely <jwakely@redhat.com>
714 * testsuite/21_strings/basic_string/operations/find/char/6.cc: New.
715 * testsuite/21_strings/basic_string/operations/find/wchar_t/6.cc: New.
717 * testsuite/util/performance/priority_queue/mem_usage/pop_test.hpp:
718 Include <cassert> header.
721 * crossconfig.m4: Check for __cxa_thread_atexit on *-*-freebsd*.
722 * configure: Regenerate.
724 2017-01-06 Barrett Adair <barrettellisadair@gmail.com>
725 Jonathan Wakely <jwakely@redhat.com>
727 * include/std/variant (variant, swap): Replace __and_ usage with fold
730 2017-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
733 * acinclude.m4 (GLIBCXX_CHECK_ASSEMBLER_HWCAP): Remove.
734 * configure.ac: Call GCC_CHECK_ASSEMBLER_HWCAP instead of
735 GLIBCXX_CHECK_ASSEMBLER_HWCAP.
736 * fragment.am (CONFIG_CXXFLAGS): Use HWCAP_CFLAGS instead of
738 * aclocal.m4: Regenerate.
739 * configure: Regenerate.
740 * Makefile.in, doc/Makefile.in, include/Makefile.in,
741 libsupc++/Makefile.in, po/Makefile.in, python/Makefile.in,
742 src/Makefile.in, src/c++11/Makefile.in, src/c++98/Makefile.in,
743 src/filesystem/Makefile.in, testsuite/Makefile.in: Regenerate.
745 2017-01-06 Jonathan Wakely <jwakely@redhat.com>
747 * include/bits/c++config (_GLIBCXX_ASSERTIONS): Avoid redefinition.
750 * include/bits/predefined_ops.h (_Iter_comp_iter, _Iter_comp_val)
751 (_Val_comp_iter, _Iter_equals_val, _Iter_pred, _Iter_comp_to_val)
752 (_Iter_comp_to_iter, _Iter_negate): Make constructors explicit and
753 move function objects.
754 (__iter_comp_iter, __iter_comp_val, __val_comp_iter, __pred_iter)
755 (__iter_comp_val, __iter_comp_iter, __negate): Move function objects.
756 * testsuite/25_algorithms/sort/78991.cc: New test.
758 2017-01-05 Jonathan Wakely <jwakely@redhat.com>
760 * include/bits/std_function.h (function::_Signature_type): Remove.
761 (function::function(_Functor)): Adjust.
763 2017-01-05 Tim Shen <timshen@google.com>
766 * include/std/variant (__gen_vtable_impl): rename __unused to
767 __dimensions to avoid naming conflict.
769 2017-01-04 Jonathan Wakely <jwakely@redhat.com>
772 * config.h.in: Regenerate.
773 * configure: Likewise.
774 * configure.ac: Check for __cxa_thread_atexit.
775 * libsupc++/atexit_thread.cc [_GLIBCXX_HAVE___CXA_THREAD_ATEXIT]:
776 Don't define __cxa_thread_atexit if libc provides it.
778 2017-01-04 Ville Voutilainen <ville.voutilainen@gmail.com>
780 Implement 2801, Default-constructibility of unique_ptr.
781 * include/bits/unique_ptr.h (__uniq_ptr_impl::_DeleterConstraint): New.
782 (unique_ptr::_DeleterConstraint): Likewise.
783 (unique_ptr()): Constrain.
784 (unique_ptr(pointer)): Likewise.
785 (unique_ptr(nullptr_t)): Likewise.
786 (unique_ptr<_Tp[], _Dp>::_DeleterConstraint): New.
787 (unique_ptr<_Tp[], _Dp>::unique_ptr()): Constrain.
788 (unique_ptr<_Tp[], _Dp>::unique_ptr(_Up)): Likewise.
789 (unique_ptr<_Tp[], _Dp>::unique_ptr(nullptr_t)): Likewise.
790 * testsuite/20_util/unique_ptr/assign/48635_neg.cc: Adjust.
791 * testsuite/20_util/unique_ptr/cons/cv_qual_neg.cc: Likewise.
792 * testsuite/20_util/unique_ptr/cons/default.cc: New.
793 * testsuite/20_util/unique_ptr/cons/ptr_deleter_neg.cc: Adjust.
795 2017-01-04 Pauli Nieminen <suokkos@gmail.com>
796 Jonathan Wakely <jwakely@redhat.com>
799 * acinclude.m4 (GLIBCXX_CHECK_EXCEPTION_PTR_SYMVER): Define.
800 * config.h.in: Regenerate.
801 * config/abi/pre/gnu.ver [HAVE_EXCEPTION_PTR_SINCE_GCC46]
802 (GLIBCXX_3.4.15, GLIBCXX_3.4.21, CXXABI_1.3.3, CXXABI_1.3.5): Make
803 exports for exception_ptr, nested_exception, and future conditional.
804 [HAVE_EXCEPTION_PTR_SINCE_GCC46] (GLIBCXX_3.4.23, CXXABI_1.3.11): Add
805 exports for exception_ptr, nested_exception, and future conditional.
806 * configure: Regenerate.
807 * configure.ac: Use GLIBCXX_CHECK_EXCEPTION_PTR_SYMVER.
808 * include/std/future: Remove check for ATOMIC_INT_LOCK_FREE
809 * libsupc++/eh_atomics.h: New file for internal use only.
810 (__eh_atomic_inc, __eh_atomic_dec): New.
811 * libsupc++/eh_ptr.cc (exception_ptr::_M_addref)
812 (exception_ptr::_M_release) (__gxx_dependent_exception_cleanup)
813 (rethrow_exception): Use eh_atomics.h reference counting helpers.
814 * libsupc++/eh_throw.cc (__gxx_exception_cleanup): Likewise.
815 * libsupc++/eh_tm.cc (free_any_cxa_exception): Likewise.
816 * libsupc++/exception: Remove check for ATOMIC_INT_LOCK_FREE.
817 * libsupc++/exception_ptr.h: Likewise.
818 * libsupc++/guard.cc: Include header for ATOMIC_INT_LOCK_FREE macro.
819 * libsupc++/nested_exception.cc: Remove check for
820 ATOMIC_INT_LOCK_FREE.
821 * libsupc++/nested_exception.h: Likewise.
822 * src/c++11/future.cc: Likewise.
823 * testsuite/18_support/exception_ptr/*: Remove atomic builtins checks.
824 * testsuite/18_support/nested_exception/*: Likewise.
825 * testsuite/30_threads/async/*: Likewise.
826 * testsuite/30_threads/future/*: Likewise.
827 * testsuite/30_threads/headers/future/types_std_c++0x.cc: Likewise.
828 * testsuite/30_threads/packaged_task/*: Likewise.
829 * testsuite/30_threads/promise/*: Likewise.
830 * testsuite/30_threads/shared_future/*: Likewise.
832 2017-01-03 Gerald Pfeifer <gerald@pfeifer.com>
834 * doc/xml/manual/documentation_hacking.xml: sourceforge.net now
835 defaults to https; adjust reference.
837 2017-01-03 Jonathan Wakely <jwakely@redhat.com>
840 * include/std/thread (thread(const thread&&)): Add deleted
842 * testsuite/30_threads/thread/cons/lwg2097.cc: New test.
844 * doc/xml/manual/spine.xml: Update copyright years.
845 * doc/xml/manual/build_hacking.xml: Fix spelling of libbuilddir.
846 * doc/xml/manual/test.xml: Likewise.
847 * doc/html/*: Regenerate.
849 2017-01-01 Gerald Pfeifer <gerald@pfeifer.com>
851 * doc/xml/faq.xml: Update address of C++ ABI link.
852 * doc/xml/manual/abi.xml: Ditto.
854 2017-01-01 Jakub Jelinek <jakub@redhat.com>
856 Update copyright years.
858 Copyright (C) 2017 Free Software Foundation, Inc.
860 Copying and distribution of this file, with or without modification,
861 are permitted in any medium without royalty provided the copyright
862 notice and this notice are preserved.