1 2017-01-23 Jonathan Wakely <jwakely@redhat.com>
4 * include/experimental/array (__make_array_elem): New class template
5 and partial specialization.
6 (__is_reference_wrapper): Move into __make_array_elem specialization.
7 (make_array): Use __make_array_elem to determine element type and move
8 static assertion into specialization. Qualify std::forward call.
9 (to_array): Add exception specifiation.
10 * testsuite/experimental/array/make_array.cc: Test argument types
11 without a common type.
12 * testsuite/experimental/array/neg.cc: Adjust expected error message.
14 2017-01-22 Gerald Pfeifer <gerald@pfeifer.com>
16 * doc/xml/manual/debug.xml: code.google.com uses https now.
18 2017-01-22 Gerald Pfeifer <gerald@pfeifer.com>
20 * doc/xml/manual/test.xml: Fix link into gccint online manual.
22 2017-01-21 Ville Voutilainen <ville.voutilainen@gmail.com>
24 Make poisoned hashes SFINAE away the call operator of the hash.
25 * include/bits/functional_hash.h
26 (__poison_hash::__enable_hash_call): New.
27 * include/std/optional (__optional_hash_call_base): New.
28 (hash<optional<_Tp>>): Derive from the new base,
29 move the hash function into that base.
30 * include/std/variant (__variant_hash_call_base_impl): New.
31 (__variant_hash_call_base): Likewise.
32 (hash<variant<_Types...>>): Derive from the new base,
33 move the hash function into that base.
34 * testsuite/20_util/optional/hash.cc: Add tests for is_callable.
35 * testsuite/20_util/variant/hash.cc: Likewise.
37 2017-01-20 Joe Seymour <joe.s@somniumtech.com>
39 * acinclude.m4 (GLIBCXX_CHECK_SIZE_T_MANGLING): Support uint20_t.
40 * configure: Regenerate.
42 2017-01-20 Jonathan Wakely <jwakely@redhat.com>
45 * include/bits/random.h (uniform_real_distribution::param_type)
46 (normal_distribution::param_type, lognormal_distribution::param_type)
47 (gamma_distribution::param_type, chi_squared_distribution::param_type)
48 (cauchy_distribution::param_type, fisher_f_distribution::param_type)
49 (student_t_distribution::param_type)
50 (bernoulli_distribution::param_type, binomial_distribution::param_type)
51 (geometric_distribution::param_type)
52 (negative_binomial_distribution::param_type)
53 (poisson_distribution::param_type)
54 (exponential_distribution::param_type)
55 (weibull_distribution::param_type)
56 (extreme_value_distribution::param_type)
57 (discrete_distribution::param_type)
58 (piecewise_constant_distribution::param_type)
59 (piecewise_linear_distribution::param_type): Define operator!=.
60 * include/bits/uniform_int_dist.h
61 (uniform_int_distribution::param_type): Likewise.
62 * include/ext/random (beta_distribution::param_type)
63 (rice_distribution::param_type, nakagami_distribution::param_type)
64 (pareto_distribution::param_type, k_distribution::param_type)
65 (arcsine_distribution::param_type, hoyt_distribution::param_type)
66 (triangular_distribution::param_type)
67 (von_mises_distribution::param_type)
68 (hypergeometric_distribution::param_type)
69 (logistic_distribution::param_type)
70 (uniform_on_sphere_distribution::param_type)
71 (uniform_inside_sphere_distribution::param_type): Likewise.
72 * testsuite/26_numerics/random/bernoulli_distribution/cons/parms.cc:
73 Test construction with param_type.
74 * testsuite/26_numerics/random/binomial_distribution/cons/parms.cc:
76 * testsuite/26_numerics/random/cauchy_distribution/cons/parms.cc:
78 * testsuite/26_numerics/random/chi_squared_distribution/cons/parms.cc:
80 * testsuite/26_numerics/random/exponential_distribution/cons/parms.cc:
82 * testsuite/26_numerics/random/extreme_value_distribution/cons/
84 * testsuite/26_numerics/random/fisher_f_distribution/cons/parms.cc:
86 * testsuite/26_numerics/random/gamma_distribution/cons/parms.cc:
88 * testsuite/26_numerics/random/geometric_distribution/cons/parms.cc:
90 * testsuite/26_numerics/random/lognormal_distribution/cons/parms.cc:
92 * testsuite/26_numerics/random/negative_binomial_distribution/cons/
94 * testsuite/26_numerics/random/normal_distribution/cons/parms.cc:
96 * testsuite/26_numerics/random/poisson_distribution/cons/parms.cc:
98 * testsuite/26_numerics/random/student_t_distribution/cons/parms.cc:
100 * testsuite/26_numerics/random/uniform_int_distribution/cons/parms.cc:
102 * testsuite/26_numerics/random/uniform_real_distribution/cons/parms.cc:
104 * testsuite/26_numerics/random/weibull_distribution/cons/parms.cc:
106 * testsuite/ext/random/arcsine_distribution/cons/parms.cc: Likewise.
107 * testsuite/ext/random/beta_distribution/cons/parms.cc: Likewise.
108 * testsuite/ext/random/hoyt_distribution/cons/parms.cc: Likewise.
109 * testsuite/ext/random/hypergeometric_distribution/cons/parms.cc:
111 * testsuite/ext/random/k_distribution/cons/parms.cc: Likewise.
112 * testsuite/ext/random/logistic_distribution/cons/parms.cc: Likewise.
113 * testsuite/ext/random/nakagami_distribution/cons/parms.cc: Likewise.
114 * testsuite/ext/random/normal_mv_distribution/cons/parms.cc: Likewise.
115 * testsuite/ext/random/pareto_distribution/cons/parms.cc: Likewise.
116 * testsuite/ext/random/rice_distribution/cons/parms.cc: Likewise.
117 * testsuite/ext/random/triangular_distribution/cons/parms.cc:
119 * testsuite/ext/random/uniform_inside_sphere_distribution/cons/
121 * testsuite/ext/random/von_mises_distribution/cons/parms.cc: Likewise.
124 * include/bits/alloc_traits.h (__allocator_traits_base::__diff_type)
125 (__allocator_traits_base::__size_type): Remove.
126 (allocator_traits::_Ptr): New class template to detect const and void
127 pointer types without instantiating pointer_traits::rebind
129 (allocator_traits::_Diff): Likewise for detecting difference_type.
130 (allocator_traits::_Size): New class template to detect size_type
131 without instantiating make_unsigned unnecessarily.
132 * include/bits/ptr_traits.h (pointer_traits::element_type): Use
133 __detected_or_t instead of __detected_or_t_.
134 * include/std/type_traits (__detected_or_t_): Remove.
135 * testsuite/20_util/allocator_traits/members/pointers.cc: New test.
139 * include/bits/alloc_traits.h (__allocator_traits_base::__rebind):
140 Replace with class template using void_t.
141 (__alloc_rebind): Define in terms of
142 __allocator_traits_base::__rebind.
143 (allocator_traits): Remove unconditional static_assert for
145 * include/bits/ptr_traits.h (__replace_first_arg): Remove type member.
146 (pointer_traits::__rebind): Replace with class template using void_t.
147 (pointer_traits::rebind): Define in terms of __rebind.
148 (pointer_traits): Remove unconditional static_assert for rebind.
149 * testsuite/20_util/allocator_traits/members/rebind_alloc.cc: New test.
150 * testsuite/20_util/pointer_traits/rebind.cc: New test.
153 * include/experimental/any (__any_caster): Avoid instantiating
154 manager function for types that can't be stored in any.
155 * include/std/any (__any_caster): Likewise.
156 * testsuite/20_util/any/misc/any_cast.cc: Test non-copyable type.
157 * testsuite/experimental/any/misc/any_cast.cc: Likewise.
160 * include/bits/stl_algo.h (is_partitioned): Use increment instead of
163 2017-01-19 Jonathan Wakely <jwakely@redhat.com>
166 * include/bits/shared_ptr_base.h (__enable_shared_from_this_base):
168 (__enable_shared_from_this): Declare __shared_ptr as a friend.
169 * testsuite/ext/shared_ptr/1.cc: New test.
172 * include/bits/stl_algo.h (is_partitioned): Don't retest the partition
174 * testsuite/25_algorithms/is_partitioned/2.cc: New test.
176 * doc/xml/manual/abi.xml: Fix typo.
177 * doc/html/manual/abi.html: Likewise.
180 * include/bits/predefined_ops.h (_Iter_less_val, _Val_less_iter): Add
181 converting constructors from _Iter_less_iter.
182 (_Iter_comp_val, _Val_comp_iter): Add converting constructors from
184 (__iter_comp_val(_Iter_comp_iter<C>): Use converting constructor.
185 (__val_comp_iter(_Iter_comp_iter<C>): Likewise.
186 * include/bits/stl_heap.h (__is_heap_until, __push_heap, __pop_heap)
187 (__make_heap, __sort_heap): Change _Compare parameters to references.
188 (__is_heap, push_heap, __adjust_heap, __pop_heap, pop_heap)
189 (__make_heap, make_heap, sort_heap, is_heap_until): Pass comparison
190 functions as lvalues.
191 (is_heap): Call __is_heap_until directly to avoid copying __comp.
192 * testsuite/23_containers/priority_queue/67085.cc: Adjust test to
193 count copies during construction with empty sequence.
196 * include/bits/stl_heap.h (__is_heap): Use _GLIBCXX_MOVE.
197 (__make_heap, __sort_heap): Don't use _GLIBCXX_MOVE inside loops.
198 * testsuite/23_containers/priority_queue/67085.cc: Adjust expected
200 * testsuite/25_algorithms/make_heap/movable.cc: New test.
203 * include/bits/stl_heap.h (push_heap, __adjust_heap, __pop_heap)
204 (pop_heap, __make_heap, make_heap, __sort_heap, sort_heap): Use
205 _GLIBCXX_MOVE when passing comparison function to other functions.
206 (is_heap_until, is_heap): Use std::move when passing comparison
208 * testsuite/23_containers/priority_queue/67085.cc: New test.
211 * doc/xml/manual/abi.xml (abi.versioning.history): Add markup to
212 macro names, filenames, and literal values. Document _GLIBCXX_RELEASE.
213 Document that the deprecated _GLIBCXX_VERSION macro was removed for
215 * doc/html/*: Regenerate.
216 * include/Makefile.am (_GLIBCXX_RELEASE): Set value.
217 * include/Makefile.in: Regenerate.
218 * include/bits/c++config (_GLIBCXX_RELEASE): Add #define.
219 * testsuite/ext/profile/mutex_extensions_neg.cc: Use lineno of 0 in
222 2017-01-18 Jonathan Wakely <jwakely@redhat.com>
225 * include/std/atomic (atomic<T>::load, atomic<T>::exchange): Use
226 aligned buffer instead of default-initialized variable.
227 * testsuite/29_atomics/atomic/69301.cc: New test.
228 * include/experimental/memory (observer_ptr::release): Use reserved
230 * include/ext/pointer.h (_Pointer_adapter::operator++(int))
231 (_Pointer_adapter::operator--(int)): Likewise.
234 * include/experimental/random (randint): Use temporary instead of
237 2017-01-17 Joshua Conner <joshconner@google.com>
239 * crossconfig.m4: Add fuchsia OS.
240 * configure: Regenerate.
242 2017-01-17 Jonathan Wakely <jwakely@redhat.com>
245 * doc/xml/manual/abi.xml (abi.versioning.history): Explain why the
246 __GLIBCXX__ macro is not useful. Remove redundant date information
247 and link to the GCC release timeline.
248 (abi.versioning.active): Move partial sentence into the previous
250 * doc/html/*: Regenerate.
253 * libsupc++/nested_exception.h (throw_with_nested): Use decay instead
255 * testsuite/18_support/nested_exception/79114.cc: New test.
257 2017-01-17 Jakub Jelinek <jakub@redhat.com>
260 * configure.ac: Add GCC_BASE_VER.
261 * fragment.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
262 get version from BASE-VER file.
263 * po/Makefile.in: Regenerated.
264 * libsupc++/Makefile.in: Regenerated.
265 * testsuite/Makefile.in: Regenerated.
266 * src/Makefile.in: Regenerated.
267 * configure: Regenerated.
268 * Makefile.in: Regenerated.
269 * include/Makefile.in: Regenerated.
270 * doc/Makefile.in: Regenerated.
271 * python/Makefile.in: Regenerated.
272 * src/c++11/Makefile.in: Regenerated.
273 * src/c++98/Makefile.in: Regenerated.
274 * src/filesystem/Makefile.in: Regenerated.
276 2017-01-16 Jonathan Wakely <jwakely@redhat.com>
279 * src/c++11/functexcept.cc: Use new ABI for std::ios_base::failure
281 * testsuite/27_io/basic_ios/copyfmt/char/1.cc: Don't override ABI
282 for test, so new ios::failure can be caught.
283 * testsuite/27_io/basic_ios/exceptions/char/1.cc: Likewise.
284 * testsuite/27_io/basic_istream/extractors_arithmetic/char/
285 exceptions_failbit.cc: Likewise.
286 * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/
287 exceptions_failbit.cc: Likewise.
288 * testsuite/27_io/basic_istream/extractors_other/char/
289 exceptions_null.cc: Likewise.
290 * testsuite/27_io/basic_istream/extractors_other/wchar_t/
291 exceptions_null.cc: Likewise.
292 * testsuite/27_io/basic_istream/sentry/char/12297.cc: Likewise.
293 * testsuite/27_io/basic_istream/sentry/wchar_t/12297.cc: Likewise.
294 * testsuite/27_io/basic_ostream/inserters_other/char/
295 exceptions_null.cc: Likewise.
296 * testsuite/27_io/basic_ostream/inserters_other/wchar_t/
297 exceptions_null.cc: Likewise.
298 * testsuite/27_io/ios_base/storage/2.cc: Likewise.
301 * include/bits/locale_classes.h (locale::facet::__shim): Change from
302 private to protected.
303 * src/c++11/cxx11-shim_facets.cc (__shim_accessor): Define helper to
304 make locale::facet::__shim accessible.
306 2017-01-16 Ville Voutilainen <ville.voutilainen@gmail.com>
309 * include/bits/list.tcc (merge(list&&)): Fix backwards size adjustments.
310 (merge(list&&, _StrictWeakOrdering)): Likewise.
311 * testsuite/23_containers/list/operations/78389.cc: Add
312 better test for the sizes.
314 2017-01-14 Jonathan Wakely <jwakely@redhat.com>
316 * testsuite/23_containers/array/specialized_algorithms/swap_cxx17.cc:
317 Skip test when -D_GLIBCXX_PROFILE mode is included in options.
318 * testsuite/23_containers/map/modifiers/extract.cc: Likewise.
319 * testsuite/23_containers/map/modifiers/insert_or_assign/1.cc:
321 * testsuite/23_containers/map/modifiers/try_emplace/1.cc: Likewise.
322 * testsuite/23_containers/multimap/modifiers/extract.cc: Likewise.
323 * testsuite/23_containers/multiset/modifiers/extract.cc: Likewise.
324 * testsuite/23_containers/set/modifiers/extract.cc: Likewise.
325 * testsuite/23_containers/unordered_map/modifiers/extract.cc:
327 * testsuite/23_containers/unordered_multimap/modifiers/extract.cc::
329 * testsuite/23_containers/unordered_multiset/modifiers/extract.cc::
331 * testsuite/23_containers/unordered_set/modifiers/extract.cc:
333 * testsuite/23_containers/vector/modifiers/insert_vs_emplace.cc:
335 * testsuite/25_algorithms/binary_search/partitioned.cc: Likewise.
336 * testsuite/25_algorithms/equal_range/partitioned.cc: Likewise.
337 * testsuite/25_algorithms/lexicographical_compare/71545.cc: Likewise.
338 * testsuite/25_algorithms/lower_bound/partitioned.cc: Likewise.
339 * testsuite/25_algorithms/upper_bound/partitioned.cc: Likewise.
340 * testsuite/libstdc++-prettyprinters/cxx11.cc: Likewise.
341 * testsuite/libstdc++-prettyprinters/cxx17.cc: Likewise.
342 * testsuite/libstdc++-prettyprinters/debug.cc: Likewise.
343 * testsuite/libstdc++-prettyprinters/debug_cxx11.cc: Likewise.
344 * testsuite/libstdc++-prettyprinters/libfundts.cc: Likewise.
345 * testsuite/libstdc++-prettyprinters/simple.cc: Likewise.
346 * testsuite/libstdc++-prettyprinters/simple11.cc: Likewise.
347 * testsuite/libstdc++-prettyprinters/whatis.cc: Likewise.
349 2017-01-13 Jonathan Wakely <jwakely@redhat.com>
352 * config/io/basic_file_stdio.cc (__basic_file<char>::close()): Don't
353 retry fclose on EINTR.
355 * include/profile/base.h: Remove unused header that leads to header
359 * include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI] (basic_string):
361 [!_GLIBCXX_USE_CXX11_ABI] (basic_string): Add member functions taking
362 basic_string_view arguments.
365 * testsuite/lib/libstdc++.exp (check_v3_target_filesystem_ts): Remove
366 redundant option from cxxflags.
367 (check_effective_target_cxx11-abi): Define.
368 * testsuite/21_strings/basic_string/allocator/71964.cc: Use cxx11-abi
370 * testsuite/21_strings/basic_string/allocator/char/copy.cc: Likewise.
371 * testsuite/21_strings/basic_string/allocator/char/copy_assign.cc:
373 * testsuite/21_strings/basic_string/allocator/char/minimal.cc:
375 * testsuite/21_strings/basic_string/allocator/char/move.cc: Likewise.
376 * testsuite/21_strings/basic_string/allocator/char/move_assign.cc:
378 * testsuite/21_strings/basic_string/allocator/char/noexcept.cc:
380 * testsuite/21_strings/basic_string/allocator/char/swap.cc: Likewise.
381 * testsuite/21_strings/basic_string/allocator/wchar_t/copy.cc:
383 * testsuite/21_strings/basic_string/allocator/wchar_t/copy_assign.cc:
385 * testsuite/21_strings/basic_string/allocator/wchar_t/minimal.cc:
387 * testsuite/21_strings/basic_string/allocator/wchar_t/move.cc:
389 * testsuite/21_strings/basic_string/allocator/wchar_t/move_assign.cc:
391 * testsuite/21_strings/basic_string/allocator/wchar_t/noexcept.cc:
393 * testsuite/21_strings/basic_string/allocator/wchar_t/swap.cc:
395 * testsuite/23_containers/list/61347.cc: Likewise.
396 * testsuite/27_io/basic_fstream/cons/base.cc: Likewise.
397 * testsuite/27_io/ios_base/failure/cxx11.cc: Likewise.
399 2017-01-13 Ville Voutilainen <ville.voutilainen@gmail.com>
402 * include/bits/list.tcc (merge(list&&)):
403 Adjust list sizes if the comparator throws.
404 (merge(list&&, _StrictWeakOrdering)): Likewise.
405 (sort()): Splice elements back from the scratch buffers
406 if the comparator throws.
407 (sort(_StrictWeakOrdering)): Likewise.
408 * testsuite/23_containers/list/operations/78389.cc: New.
410 2017-01-13 Jonathan Wakely <jwakely@redhat.com>
412 * testsuite/23_containers/unordered_set/allocator/ext_ptr.cc: Mark
413 XFAIL for C++17 until node reinsertion supports fancy pointers.
416 * testsuite/20_util/add_pointer/value.cc: Test forming function
419 2017-01-13 Michael Brune <lucdanton@free.fr>
422 * include/std/type_traits (__is_referenceable): Handle noexcept
425 2017-01-12 Jonathan Wakely <jwakely@redhat.com>
428 * include/bits/stl_queue.h (queue, priority_queue): Remove default
429 member-initializers and define default constructors as templates with
431 * include/bits/stl_stack.h (stack): Likewise.
432 * testsuite/23_containers/priority_queue/requirements/constructible.cc:
434 * testsuite/23_containers/priority_queue/requirements/
435 explicit_instantiation/1.cc: Test more instantiations.
436 * testsuite/23_containers/priority_queue/requirements/
437 explicit_instantiation/1_c++98.cc: Likewise.
438 * testsuite/23_containers/queue/requirements/constructible.cc: New.
439 * testsuite/23_containers/stack/requirements/constructible.cc: New.
442 * doc/xml/manual/intro.xml: Document LWG 2781 change.
443 * doc/html/*: Regenerate.
444 * include/std/functional (_Function_base::_Ref_manager): Remove.
445 (_Function_handler): Remove partial specializations for
447 (function::target): Remove special case for const qualification.
448 * testsuite/20_util/function/6.cc: Adjust tests for target type.
449 * testsuite/20_util/function/7.cc: Likewise.
450 * testsuite/20_util/function/8.cc: Likewise.
452 2017-01-11 Jonathan Wakely <jwakely@redhat.com>
455 * include/bits/stl_map.h (map::lower_bound, map::upper_bound)
456 (map::equal_range): Fix return type of heterogeneous overloads.
457 * include/bits/stl_multimap.h (multimap::lower_bound)
458 (multimap::upper_bound, multimap::equal_range): Likewise.
459 * include/bits/stl_multiset.h (multiset::lower_bound)
460 (multiset::upper_bound, multiset::equal_range): Likewise.
461 * include/bits/stl_set.h (set::lower_bound, set::upper_bound)
462 (set::equal_range): Likewise.
463 * testsuite/23_containers/map/operations/2.cc
464 * testsuite/23_containers/multimap/operations/2.cc
465 * testsuite/23_containers/multiset/operations/2.cc
466 * testsuite/23_containers/set/operations/2.cc
469 * include/bits/stl_map.h (map::count<_Kt>(const _Kt&)): Don't assume
470 the heterogeneous comparison can only find one match.
471 * include/bits/stl_set.h (set::count<_Kt>(const _Kt&)): Likewise.
472 * testsuite/23_containers/map/operations/2.cc: Test count works with
473 comparison function that just partitions rather than sorting.
474 * testsuite/23_containers/set/operations/2.cc: Likewise.
476 2017-01-11 Ville Voutilainen <ville.voutilainen@gmail.com>
478 Reduce the size of variant, it doesn't need an index of
479 type size_t internally.
480 * include/std/variant (parse_numbers.h): New include.
481 (__select_index): New.
482 (_Variant_storage<false, _Types...>::_M_reset_impl): Use
483 _index_type for comparison with variant_npos.
484 (_Variant_storage<false, _Types...>::__index_type): New.
485 (_Variant_storage<false, _Types...>::_M_index): Change the
486 type from size_t to __index_type.
487 (_Variant_storage<true, _Types...>::__index_type): New.
488 (_Variant_storage<true, _Types...>::_M_index): Change the
489 type from size_t to __index_type.
490 (_Variant_base::_M_valid): Use _Storage::__index_type
491 for comparison with variant_npos.
492 (variant::index): Use _Base::_Storage::__index_type
493 for comparison with variant_npos.
494 * testsuite/20_util/variant/index_type.cc: New.
496 2017-01-10 Jonathan Wakely <jwakely@redhat.com>
498 * testsuite/18_support/exception_ptr/60612-unexpected.cc: Adjust
499 effective target selector to prevent running in C++17 mode.
502 * include/bits/stl_queue.h (queue::c): Add default member initializer.
503 (queue::queue()): Add constructor and define as defaulted.
504 (queue::queue(_Sequence&&)): Remove default argument.
505 (priority_queue::c, priority_queue::comp): Add default member
507 (priority_queue::priority_queue()): Add constructor and define as
509 (priority_queue::priority_queue(const _Compare&, _Sequence&&)):
510 Remove default argument for first parameter.
511 * include/bits/stl_stack.h (stack::c): Add default member initializer.
512 (stack::stack()): Add constructor and define as defaulted.
513 (stack::stack(const _Sequence&)): Remove default argument.
514 * testsuite/23_containers/priority_queue/requirements/
515 explicit_instantiation/1.cc: Test explicit instantiation with
516 non-DefaultConstructible sequence.
517 * testsuite/23_containers/priority_queue/77528.cc: New test.
518 * testsuite/23_containers/priority_queue/requirements/
519 explicit_instantiation/1_c++0x.cc: Replace with 1_c++98.cc.
520 * testsuite/23_containers/queue/77528.cc: New test.
521 * testsuite/23_containers/queue/requirements/explicit_instantiation/
522 1.cc: Test explicit instantiation with non-DefaultConstructible
524 * testsuite/23_containers/queue/requirements/explicit_instantiation/
525 1_c++0x.cc: Replace with 1_c++98.cc.
526 * testsuite/23_containers/stack/77528.cc: New test.
527 * testsuite/23_containers/stack/requirements/explicit_instantiation/
528 1.cc: Test explicit instantiation with non-DefaultConstructible
530 * testsuite/23_containers/stack/requirements/explicit_instantiation/
531 1_c++0x.cc: Replace with 1_c++98.cc.
533 2017-01-10 Felipe Magno de Almeida <felipe@expertisesolutions.com.br>
535 * include/bits/locale_facets_nonio.tcc
536 (time_get::_M_extract_via_format): Avoid compilation errors with
537 non-standard struct tm.
539 2017-01-10 François Dumont <fdumont@gcc.gnu.org>
540 Jonathan Wakely <jwakely@redhat.com>
542 * python/libstdcxx/v6/printers.py (_versioned_namespace): Define.
543 (is_specialization, strip_versioned_namespace): New helpers functions
544 to work with symbols in the versioned namespace.
545 (Printer.add_version): Add second name using versioned namespace.
546 (add_one_template_type_printer, add_one_type_printer): Add second
547 type printers using versioned namespace.
548 (register_type_printers): Add template type printer for basic_string.
549 (build_libstdcxx_dictionary): Remove dead code.
550 * python/libstdcxx/v6/xmethods.py: Make all matchers look for
552 * testsuite/libstdc++-prettyprinters/48362.cc: Adjust expected
554 * testsuite/libstdc++-prettyprinters/whatis.cc: Likewise.
556 2017-01-09 Jonathan Wakely <jwakely@redhat.com>
559 * acinclude.m4 (GLIBCXX_CHECK_C99_TR1): Check for llrint and llround
560 functions separately on darwin and if they're missing define
561 _GLIBCXX_NO_C99_ROUNDING_FUNCS.
562 * config.h.in: Regenerate.
563 * configure: Regenerate.
564 * include/c_global/cmath [_GLIBCXX_NO_C99_ROUNDING_FUNCS] (llrint)
565 (llrintf, llrintl, llround, llroundf, llroundl): Do not define.
567 * testsuite/30_threads/condition_variable/members/3.cc: Use new macro
568 to detect correct thread_local destructors.
569 * testsuite/util/testsuite_hooks.h (CORRECT_THREAD_LOCAL_DTORS):
572 2017-01-09 Jonathan Wakely <jwakely@redhat.com>
573 Aditya Kumar <hiraditya@msn.com>
576 * include/bits/basic_string.tcc
577 (basic_string::find(const CharT*, size_type, size_type)): Optimize.
579 2017-01-06 Jonathan Wakely <jwakely@redhat.com>
581 * testsuite/21_strings/basic_string/operations/find/char/6.cc: New.
582 * testsuite/21_strings/basic_string/operations/find/wchar_t/6.cc: New.
584 * testsuite/util/performance/priority_queue/mem_usage/pop_test.hpp:
585 Include <cassert> header.
588 * crossconfig.m4: Check for __cxa_thread_atexit on *-*-freebsd*.
589 * configure: Regenerate.
591 2017-01-06 Barrett Adair <barrettellisadair@gmail.com>
592 Jonathan Wakely <jwakely@redhat.com>
594 * include/std/variant (variant, swap): Replace __and_ usage with fold
597 2017-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
600 * acinclude.m4 (GLIBCXX_CHECK_ASSEMBLER_HWCAP): Remove.
601 * configure.ac: Call GCC_CHECK_ASSEMBLER_HWCAP instead of
602 GLIBCXX_CHECK_ASSEMBLER_HWCAP.
603 * fragment.am (CONFIG_CXXFLAGS): Use HWCAP_CFLAGS instead of
605 * aclocal.m4: Regenerate.
606 * configure: Regenerate.
607 * Makefile.in, doc/Makefile.in, include/Makefile.in,
608 libsupc++/Makefile.in, po/Makefile.in, python/Makefile.in,
609 src/Makefile.in, src/c++11/Makefile.in, src/c++98/Makefile.in,
610 src/filesystem/Makefile.in, testsuite/Makefile.in: Regenerate.
612 2017-01-06 Jonathan Wakely <jwakely@redhat.com>
614 * include/bits/c++config (_GLIBCXX_ASSERTIONS): Avoid redefinition.
617 * include/bits/predefined_ops.h (_Iter_comp_iter, _Iter_comp_val)
618 (_Val_comp_iter, _Iter_equals_val, _Iter_pred, _Iter_comp_to_val)
619 (_Iter_comp_to_iter, _Iter_negate): Make constructors explicit and
620 move function objects.
621 (__iter_comp_iter, __iter_comp_val, __val_comp_iter, __pred_iter)
622 (__iter_comp_val, __iter_comp_iter, __negate): Move function objects.
623 * testsuite/25_algorithms/sort/78991.cc: New test.
625 2017-01-05 Jonathan Wakely <jwakely@redhat.com>
627 * include/bits/std_function.h (function::_Signature_type): Remove.
628 (function::function(_Functor)): Adjust.
630 2017-01-05 Tim Shen <timshen@google.com>
633 * include/std/variant (__gen_vtable_impl): rename __unused to
634 __dimensions to avoid naming conflict.
636 2017-01-04 Jonathan Wakely <jwakely@redhat.com>
639 * config.h.in: Regenerate.
640 * configure: Likewise.
641 * configure.ac: Check for __cxa_thread_atexit.
642 * libsupc++/atexit_thread.cc [_GLIBCXX_HAVE___CXA_THREAD_ATEXIT]:
643 Don't define __cxa_thread_atexit if libc provides it.
645 2017-01-04 Ville Voutilainen <ville.voutilainen@gmail.com>
647 Implement 2801, Default-constructibility of unique_ptr.
648 * include/bits/unique_ptr.h (__uniq_ptr_impl::_DeleterConstraint): New.
649 (unique_ptr::_DeleterConstraint): Likewise.
650 (unique_ptr()): Constrain.
651 (unique_ptr(pointer)): Likewise.
652 (unique_ptr(nullptr_t)): Likewise.
653 (unique_ptr<_Tp[], _Dp>::_DeleterConstraint): New.
654 (unique_ptr<_Tp[], _Dp>::unique_ptr()): Constrain.
655 (unique_ptr<_Tp[], _Dp>::unique_ptr(_Up)): Likewise.
656 (unique_ptr<_Tp[], _Dp>::unique_ptr(nullptr_t)): Likewise.
657 * testsuite/20_util/unique_ptr/assign/48635_neg.cc: Adjust.
658 * testsuite/20_util/unique_ptr/cons/cv_qual_neg.cc: Likewise.
659 * testsuite/20_util/unique_ptr/cons/default.cc: New.
660 * testsuite/20_util/unique_ptr/cons/ptr_deleter_neg.cc: Adjust.
662 2017-01-04 Pauli Nieminen <suokkos@gmail.com>
663 Jonathan Wakely <jwakely@redhat.com>
666 * acinclude.m4 (GLIBCXX_CHECK_EXCEPTION_PTR_SYMVER): Define.
667 * config.h.in: Regenerate.
668 * config/abi/pre/gnu.ver [HAVE_EXCEPTION_PTR_SINCE_GCC46]
669 (GLIBCXX_3.4.15, GLIBCXX_3.4.21, CXXABI_1.3.3, CXXABI_1.3.5): Make
670 exports for exception_ptr, nested_exception, and future conditional.
671 [HAVE_EXCEPTION_PTR_SINCE_GCC46] (GLIBCXX_3.4.23, CXXABI_1.3.11): Add
672 exports for exception_ptr, nested_exception, and future conditional.
673 * configure: Regenerate.
674 * configure.ac: Use GLIBCXX_CHECK_EXCEPTION_PTR_SYMVER.
675 * include/std/future: Remove check for ATOMIC_INT_LOCK_FREE
676 * libsupc++/eh_atomics.h: New file for internal use only.
677 (__eh_atomic_inc, __eh_atomic_dec): New.
678 * libsupc++/eh_ptr.cc (exception_ptr::_M_addref)
679 (exception_ptr::_M_release) (__gxx_dependent_exception_cleanup)
680 (rethrow_exception): Use eh_atomics.h reference counting helpers.
681 * libsupc++/eh_throw.cc (__gxx_exception_cleanup): Likewise.
682 * libsupc++/eh_tm.cc (free_any_cxa_exception): Likewise.
683 * libsupc++/exception: Remove check for ATOMIC_INT_LOCK_FREE.
684 * libsupc++/exception_ptr.h: Likewise.
685 * libsupc++/guard.cc: Include header for ATOMIC_INT_LOCK_FREE macro.
686 * libsupc++/nested_exception.cc: Remove check for
687 ATOMIC_INT_LOCK_FREE.
688 * libsupc++/nested_exception.h: Likewise.
689 * src/c++11/future.cc: Likewise.
690 * testsuite/18_support/exception_ptr/*: Remove atomic builtins checks.
691 * testsuite/18_support/nested_exception/*: Likewise.
692 * testsuite/30_threads/async/*: Likewise.
693 * testsuite/30_threads/future/*: Likewise.
694 * testsuite/30_threads/headers/future/types_std_c++0x.cc: Likewise.
695 * testsuite/30_threads/packaged_task/*: Likewise.
696 * testsuite/30_threads/promise/*: Likewise.
697 * testsuite/30_threads/shared_future/*: Likewise.
699 2017-01-03 Gerald Pfeifer <gerald@pfeifer.com>
701 * doc/xml/manual/documentation_hacking.xml: sourceforge.net now
702 defaults to https; adjust reference.
704 2017-01-03 Jonathan Wakely <jwakely@redhat.com>
707 * include/std/thread (thread(const thread&&)): Add deleted
709 * testsuite/30_threads/thread/cons/lwg2097.cc: New test.
711 * doc/xml/manual/spine.xml: Update copyright years.
712 * doc/xml/manual/build_hacking.xml: Fix spelling of libbuilddir.
713 * doc/xml/manual/test.xml: Likewise.
714 * doc/html/*: Regenerate.
716 2017-01-01 Gerald Pfeifer <gerald@pfeifer.com>
718 * doc/xml/faq.xml: Update address of C++ ABI link.
719 * doc/xml/manual/abi.xml: Ditto.
721 2017-01-01 Jakub Jelinek <jakub@redhat.com>
723 Update copyright years.
725 Copyright (C) 2017 Free Software Foundation, Inc.
727 Copying and distribution of this file, with or without modification,
728 are permitted in any medium without royalty provided the copyright
729 notice and this notice are preserved.