1 2017-01-18 Jonathan Wakely <jwakely@redhat.com>
4 * include/experimental/random (randint): Use temporary instead of
7 2017-01-17 Joshua Conner <joshconner@google.com>
9 * crossconfig.m4: Add fuchsia OS.
10 * configure: Regenerate.
12 2017-01-17 Jonathan Wakely <jwakely@redhat.com>
15 * doc/xml/manual/abi.xml (abi.versioning.history): Explain why the
16 _GLIBCXX__ macro is not useful. Remove redundant date information
17 and link to the GCC release timeline.
18 (abi.versioning.active): Move partial sentence into the previous
20 * doc/html/*: Regenerate.
23 * libsupc++/nested_exception.h (throw_with_nested): Use decay instead
25 * testsuite/18_support/nested_exception/79114.cc: New test.
27 2017-01-17 Jakub Jelinek <jakub@redhat.com>
30 * configure.ac: Add GCC_BASE_VER.
31 * fragment.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
32 get version from BASE-VER file.
33 * po/Makefile.in: Regenerated.
34 * libsupc++/Makefile.in: Regenerated.
35 * testsuite/Makefile.in: Regenerated.
36 * src/Makefile.in: Regenerated.
37 * configure: Regenerated.
38 * Makefile.in: Regenerated.
39 * include/Makefile.in: Regenerated.
40 * doc/Makefile.in: Regenerated.
41 * python/Makefile.in: Regenerated.
42 * src/c++11/Makefile.in: Regenerated.
43 * src/c++98/Makefile.in: Regenerated.
44 * src/filesystem/Makefile.in: Regenerated.
46 2017-01-16 Jonathan Wakely <jwakely@redhat.com>
49 * src/c++11/functexcept.cc: Use new ABI for std::ios_base::failure
51 * testsuite/27_io/basic_ios/copyfmt/char/1.cc: Don't override ABI
52 for test, so new ios::failure can be caught.
53 * testsuite/27_io/basic_ios/exceptions/char/1.cc: Likewise.
54 * testsuite/27_io/basic_istream/extractors_arithmetic/char/
55 exceptions_failbit.cc: Likewise.
56 * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/
57 exceptions_failbit.cc: Likewise.
58 * testsuite/27_io/basic_istream/extractors_other/char/
59 exceptions_null.cc: Likewise.
60 * testsuite/27_io/basic_istream/extractors_other/wchar_t/
61 exceptions_null.cc: Likewise.
62 * testsuite/27_io/basic_istream/sentry/char/12297.cc: Likewise.
63 * testsuite/27_io/basic_istream/sentry/wchar_t/12297.cc: Likewise.
64 * testsuite/27_io/basic_ostream/inserters_other/char/
65 exceptions_null.cc: Likewise.
66 * testsuite/27_io/basic_ostream/inserters_other/wchar_t/
67 exceptions_null.cc: Likewise.
68 * testsuite/27_io/ios_base/storage/2.cc: Likewise.
71 * include/bits/locale_classes.h (locale::facet::__shim): Change from
73 * src/c++11/cxx11-shim_facets.cc (__shim_accessor): Define helper to
74 make locale::facet::__shim accessible.
76 2017-01-16 Ville Voutilainen <ville.voutilainen@gmail.com>
79 * include/bits/list.tcc (merge(list&&)): Fix backwards size adjustments.
80 (merge(list&&, _StrictWeakOrdering)): Likewise.
81 * testsuite/23_containers/list/operations/78389.cc: Add
82 better test for the sizes.
84 2017-01-14 Jonathan Wakely <jwakely@redhat.com>
86 * testsuite/23_containers/array/specialized_algorithms/swap_cxx17.cc:
87 Skip test when -D_GLIBCXX_PROFILE mode is included in options.
88 * testsuite/23_containers/map/modifiers/extract.cc: Likewise.
89 * testsuite/23_containers/map/modifiers/insert_or_assign/1.cc:
91 * testsuite/23_containers/map/modifiers/try_emplace/1.cc: Likewise.
92 * testsuite/23_containers/multimap/modifiers/extract.cc: Likewise.
93 * testsuite/23_containers/multiset/modifiers/extract.cc: Likewise.
94 * testsuite/23_containers/set/modifiers/extract.cc: Likewise.
95 * testsuite/23_containers/unordered_map/modifiers/extract.cc:
97 * testsuite/23_containers/unordered_multimap/modifiers/extract.cc::
99 * testsuite/23_containers/unordered_multiset/modifiers/extract.cc::
101 * testsuite/23_containers/unordered_set/modifiers/extract.cc:
103 * testsuite/23_containers/vector/modifiers/insert_vs_emplace.cc:
105 * testsuite/25_algorithms/binary_search/partitioned.cc: Likewise.
106 * testsuite/25_algorithms/equal_range/partitioned.cc: Likewise.
107 * testsuite/25_algorithms/lexicographical_compare/71545.cc: Likewise.
108 * testsuite/25_algorithms/lower_bound/partitioned.cc: Likewise.
109 * testsuite/25_algorithms/upper_bound/partitioned.cc: Likewise.
110 * testsuite/libstdc++-prettyprinters/cxx11.cc: Likewise.
111 * testsuite/libstdc++-prettyprinters/cxx17.cc: Likewise.
112 * testsuite/libstdc++-prettyprinters/debug.cc: Likewise.
113 * testsuite/libstdc++-prettyprinters/debug_cxx11.cc: Likewise.
114 * testsuite/libstdc++-prettyprinters/libfundts.cc: Likewise.
115 * testsuite/libstdc++-prettyprinters/simple.cc: Likewise.
116 * testsuite/libstdc++-prettyprinters/simple11.cc: Likewise.
117 * testsuite/libstdc++-prettyprinters/whatis.cc: Likewise.
119 2017-01-13 Jonathan Wakely <jwakely@redhat.com>
122 * config/io/basic_file_stdio.cc (__basic_file<char>::close()): Don't
123 retry fclose on EINTR.
125 * include/profile/base.h: Remove unused header that leads to header
129 * include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI] (basic_string):
131 [!_GLIBCXX_USE_CXX11_ABI] (basic_string): Add member functions taking
132 basic_string_view arguments.
135 * testsuite/lib/libstdc++.exp (check_v3_target_filesystem_ts): Remove
136 redundant option from cxxflags.
137 (check_effective_target_cxx11-abi): Define.
138 * testsuite/21_strings/basic_string/allocator/71964.cc: Use cxx11-abi
140 * testsuite/21_strings/basic_string/allocator/char/copy.cc: Likewise.
141 * testsuite/21_strings/basic_string/allocator/char/copy_assign.cc:
143 * testsuite/21_strings/basic_string/allocator/char/minimal.cc:
145 * testsuite/21_strings/basic_string/allocator/char/move.cc: Likewise.
146 * testsuite/21_strings/basic_string/allocator/char/move_assign.cc:
148 * testsuite/21_strings/basic_string/allocator/char/noexcept.cc:
150 * testsuite/21_strings/basic_string/allocator/char/swap.cc: Likewise.
151 * testsuite/21_strings/basic_string/allocator/wchar_t/copy.cc:
153 * testsuite/21_strings/basic_string/allocator/wchar_t/copy_assign.cc:
155 * testsuite/21_strings/basic_string/allocator/wchar_t/minimal.cc:
157 * testsuite/21_strings/basic_string/allocator/wchar_t/move.cc:
159 * testsuite/21_strings/basic_string/allocator/wchar_t/move_assign.cc:
161 * testsuite/21_strings/basic_string/allocator/wchar_t/noexcept.cc:
163 * testsuite/21_strings/basic_string/allocator/wchar_t/swap.cc:
165 * testsuite/23_containers/list/61347.cc: Likewise.
166 * testsuite/27_io/basic_fstream/cons/base.cc: Likewise.
167 * testsuite/27_io/ios_base/failure/cxx11.cc: Likewise.
169 2017-01-13 Ville Voutilainen <ville.voutilainen@gmail.com>
172 * include/bits/list.tcc (merge(list&&)):
173 Adjust list sizes if the comparator throws.
174 (merge(list&&, _StrictWeakOrdering)): Likewise.
175 (sort()): Splice elements back from the scratch buffers
176 if the comparator throws.
177 (sort(_StrictWeakOrdering)): Likewise.
178 * testsuite/23_containers/list/operations/78389.cc: New.
180 2017-01-13 Jonathan Wakely <jwakely@redhat.com>
182 * testsuite/23_containers/unordered_set/allocator/ext_ptr.cc: Mark
183 XFAIL for C++17 until node reinsertion supports fancy pointers.
186 * testsuite/20_util/add_pointer/value.cc: Test forming function
189 2017-01-13 Michael Brune <lucdanton@free.fr>
192 * include/std/type_traits (__is_referenceable): Handle noexcept
195 2017-01-12 Jonathan Wakely <jwakely@redhat.com>
198 * include/bits/stl_queue.h (queue, priority_queue): Remove default
199 member-initializers and define default constructors as templates with
201 * include/bits/stl_stack.h (stack): Likewise.
202 * testsuite/23_containers/priority_queue/requirements/constructible.cc:
204 * testsuite/23_containers/priority_queue/requirements/
205 explicit_instantiation/1.cc: Test more instantiations.
206 * testsuite/23_containers/priority_queue/requirements/
207 explicit_instantiation/1_c++98.cc: Likewise.
208 * testsuite/23_containers/queue/requirements/constructible.cc: New.
209 * testsuite/23_containers/stack/requirements/constructible.cc: New.
212 * doc/xml/manual/intro.xml: Document LWG 2781 change.
213 * doc/html/*: Regenerate.
214 * include/std/functional (_Function_base::_Ref_manager): Remove.
215 (_Function_handler): Remove partial specializations for
217 (function::target): Remove special case for const qualification.
218 * testsuite/20_util/function/6.cc: Adjust tests for target type.
219 * testsuite/20_util/function/7.cc: Likewise.
220 * testsuite/20_util/function/8.cc: Likewise.
222 2017-01-11 Jonathan Wakely <jwakely@redhat.com>
225 * include/bits/stl_map.h (map::lower_bound, map::upper_bound)
226 (map::equal_range): Fix return type of heterogeneous overloads.
227 * include/bits/stl_multimap.h (multimap::lower_bound)
228 (multimap::upper_bound, multimap::equal_range): Likewise.
229 * include/bits/stl_multiset.h (multiset::lower_bound)
230 (multiset::upper_bound, multiset::equal_range): Likewise.
231 * include/bits/stl_set.h (set::lower_bound, set::upper_bound)
232 (set::equal_range): Likewise.
233 * testsuite/23_containers/map/operations/2.cc
234 * testsuite/23_containers/multimap/operations/2.cc
235 * testsuite/23_containers/multiset/operations/2.cc
236 * testsuite/23_containers/set/operations/2.cc
239 * include/bits/stl_map.h (map::count<_Kt>(const _Kt&)): Don't assume
240 the heterogeneous comparison can only find one match.
241 * include/bits/stl_set.h (set::count<_Kt>(const _Kt&)): Likewise.
242 * testsuite/23_containers/map/operations/2.cc: Test count works with
243 comparison function that just partitions rather than sorting.
244 * testsuite/23_containers/set/operations/2.cc: Likewise.
246 2017-01-11 Ville Voutilainen <ville.voutilainen@gmail.com>
248 Reduce the size of variant, it doesn't need an index of
249 type size_t internally.
250 * include/std/variant (parse_numbers.h): New include.
251 (__select_index): New.
252 (_Variant_storage<false, _Types...>::_M_reset_impl): Use
253 _index_type for comparison with variant_npos.
254 (_Variant_storage<false, _Types...>::__index_type): New.
255 (_Variant_storage<false, _Types...>::_M_index): Change the
256 type from size_t to __index_type.
257 (_Variant_storage<true, _Types...>::__index_type): New.
258 (_Variant_storage<true, _Types...>::_M_index): Change the
259 type from size_t to __index_type.
260 (_Variant_base::_M_valid): Use _Storage::__index_type
261 for comparison with variant_npos.
262 (variant::index): Use _Base::_Storage::__index_type
263 for comparison with variant_npos.
264 * testsuite/20_util/variant/index_type.cc: New.
266 2017-01-10 Jonathan Wakely <jwakely@redhat.com>
268 * testsuite/18_support/exception_ptr/60612-unexpected.cc: Adjust
269 effective target selector to prevent running in C++17 mode.
272 * include/bits/stl_queue.h (queue::c): Add default member initializer.
273 (queue::queue()): Add constructor and define as defaulted.
274 (queue::queue(_Sequence&&)): Remove default argument.
275 (priority_queue::c, priority_queue::comp): Add default member
277 (priority_queue::priority_queue()): Add constructor and define as
279 (priority_queue::priority_queue(const _Compare&, _Sequence&&)):
280 Remove default argument for first parameter.
281 * include/bits/stl_stack.h (stack::c): Add default member initializer.
282 (stack::stack()): Add constructor and define as defaulted.
283 (stack::stack(const _Sequence&)): Remove default argument.
284 * testsuite/23_containers/priority_queue/requirements/
285 explicit_instantiation/1.cc: Test explicit instantiation with
286 non-DefaultConstructible sequence.
287 * testsuite/23_containers/priority_queue/77528.cc: New test.
288 * testsuite/23_containers/priority_queue/requirements/
289 explicit_instantiation/1_c++0x.cc: Replace with 1_c++98.cc.
290 * testsuite/23_containers/queue/77528.cc: New test.
291 * testsuite/23_containers/queue/requirements/explicit_instantiation/
292 1.cc: Test explicit instantiation with non-DefaultConstructible
294 * testsuite/23_containers/queue/requirements/explicit_instantiation/
295 1_c++0x.cc: Replace with 1_c++98.cc.
296 * testsuite/23_containers/stack/77528.cc: New test.
297 * testsuite/23_containers/stack/requirements/explicit_instantiation/
298 1.cc: Test explicit instantiation with non-DefaultConstructible
300 * testsuite/23_containers/stack/requirements/explicit_instantiation/
301 1_c++0x.cc: Replace with 1_c++98.cc.
303 2017-01-10 Felipe Magno de Almeida <felipe@expertisesolutions.com.br>
305 * include/bits/locale_facets_nonio.tcc
306 (time_get::_M_extract_via_format): Avoid compilation errors with
307 non-standard struct tm.
309 2017-01-10 François Dumont <fdumont@gcc.gnu.org>
310 Jonathan Wakely <jwakely@redhat.com>
312 * python/libstdcxx/v6/printers.py (_versioned_namespace): Define.
313 (is_specialization, strip_versioned_namespace): New helpers functions
314 to work with symbols in the versioned namespace.
315 (Printer.add_version): Add second name using versioned namespace.
316 (add_one_template_type_printer, add_one_type_printer): Add second
317 type printers using versioned namespace.
318 (register_type_printers): Add template type printer for basic_string.
319 (build_libstdcxx_dictionary): Remove dead code.
320 * python/libstdcxx/v6/xmethods.py: Make all matchers look for
322 * testsuite/libstdc++-prettyprinters/48362.cc: Adjust expected
324 * testsuite/libstdc++-prettyprinters/whatis.cc: Likewise.
326 2017-01-09 Jonathan Wakely <jwakely@redhat.com>
329 * acinclude.m4 (GLIBCXX_CHECK_C99_TR1): Check for llrint and llround
330 functions separately on darwin and if they're missing define
331 _GLIBCXX_NO_C99_ROUNDING_FUNCS.
332 * config.h.in: Regenerate.
333 * configure: Regenerate.
334 * include/c_global/cmath [_GLIBCXX_NO_C99_ROUNDING_FUNCS] (llrint)
335 (llrintf, llrintl, llround, llroundf, llroundl): Do not define.
337 * testsuite/30_threads/condition_variable/members/3.cc: Use new macro
338 to detect correct thread_local destructors.
339 * testsuite/util/testsuite_hooks.h (CORRECT_THREAD_LOCAL_DTORS):
342 2017-01-09 Jonathan Wakely <jwakely@redhat.com>
343 Aditya Kumar <hiraditya@msn.com>
346 * include/bits/basic_string.tcc
347 (basic_string::find(const CharT*, size_type, size_type)): Optimize.
349 2017-01-06 Jonathan Wakely <jwakely@redhat.com>
351 * testsuite/21_strings/basic_string/operations/find/char/6.cc: New.
352 * testsuite/21_strings/basic_string/operations/find/wchar_t/6.cc: New.
354 * testsuite/util/performance/priority_queue/mem_usage/pop_test.hpp:
355 Include <cassert> header.
358 * crossconfig.m4: Check for __cxa_thread_atexit on *-*-freebsd*.
359 * configure: Regenerate.
361 2017-01-06 Barrett Adair <barrettellisadair@gmail.com>
362 Jonathan Wakely <jwakely@redhat.com>
364 * include/std/variant (variant, swap): Replace __and_ usage with fold
367 2017-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
370 * acinclude.m4 (GLIBCXX_CHECK_ASSEMBLER_HWCAP): Remove.
371 * configure.ac: Call GCC_CHECK_ASSEMBLER_HWCAP instead of
372 GLIBCXX_CHECK_ASSEMBLER_HWCAP.
373 * fragment.am (CONFIG_CXXFLAGS): Use HWCAP_CFLAGS instead of
375 * aclocal.m4: Regenerate.
376 * configure: Regenerate.
377 * Makefile.in, doc/Makefile.in, include/Makefile.in,
378 libsupc++/Makefile.in, po/Makefile.in, python/Makefile.in,
379 src/Makefile.in, src/c++11/Makefile.in, src/c++98/Makefile.in,
380 src/filesystem/Makefile.in, testsuite/Makefile.in: Regenerate.
382 2017-01-06 Jonathan Wakely <jwakely@redhat.com>
384 * include/bits/c++config (_GLIBCXX_ASSERTIONS): Avoid redefinition.
387 * include/bits/predefined_ops.h (_Iter_comp_iter, _Iter_comp_val)
388 (_Val_comp_iter, _Iter_equals_val, _Iter_pred, _Iter_comp_to_val)
389 (_Iter_comp_to_iter, _Iter_negate): Make constructors explicit and
390 move function objects.
391 (__iter_comp_iter, __iter_comp_val, __val_comp_iter, __pred_iter)
392 (__iter_comp_val, __iter_comp_iter, __negate): Move function objects.
393 * testsuite/25_algorithms/sort/78991.cc: New test.
395 2017-01-05 Jonathan Wakely <jwakely@redhat.com>
397 * include/bits/std_function.h (function::_Signature_type): Remove.
398 (function::function(_Functor)): Adjust.
400 2017-01-05 Tim Shen <timshen@google.com>
403 * include/std/variant (__gen_vtable_impl): rename __unused to
404 __dimensions to avoid naming conflict.
406 2017-01-04 Jonathan Wakely <jwakely@redhat.com>
409 * config.h.in: Regenerate.
410 * configure: Likewise.
411 * configure.ac: Check for __cxa_thread_atexit.
412 * libsupc++/atexit_thread.cc [_GLIBCXX_HAVE___CXA_THREAD_ATEXIT]:
413 Don't define __cxa_thread_atexit if libc provides it.
415 2017-01-04 Ville Voutilainen <ville.voutilainen@gmail.com>
417 Implement 2801, Default-constructibility of unique_ptr.
418 * include/bits/unique_ptr.h (__uniq_ptr_impl::_DeleterConstraint): New.
419 (unique_ptr::_DeleterConstraint): Likewise.
420 (unique_ptr()): Constrain.
421 (unique_ptr(pointer)): Likewise.
422 (unique_ptr(nullptr_t)): Likewise.
423 (unique_ptr<_Tp[], _Dp>::_DeleterConstraint): New.
424 (unique_ptr<_Tp[], _Dp>::unique_ptr()): Constrain.
425 (unique_ptr<_Tp[], _Dp>::unique_ptr(_Up)): Likewise.
426 (unique_ptr<_Tp[], _Dp>::unique_ptr(nullptr_t)): Likewise.
427 * testsuite/20_util/unique_ptr/assign/48635_neg.cc: Adjust.
428 * testsuite/20_util/unique_ptr/cons/cv_qual_neg.cc: Likewise.
429 * testsuite/20_util/unique_ptr/cons/default.cc: New.
430 * testsuite/20_util/unique_ptr/cons/ptr_deleter_neg.cc: Adjust.
432 2017-01-04 Pauli Nieminen <suokkos@gmail.com>
433 Jonathan Wakely <jwakely@redhat.com>
436 * acinclude.m4 (GLIBCXX_CHECK_EXCEPTION_PTR_SYMVER): Define.
437 * config.h.in: Regenerate.
438 * config/abi/pre/gnu.ver [HAVE_EXCEPTION_PTR_SINCE_GCC46]
439 (GLIBCXX_3.4.15, GLIBCXX_3.4.21, CXXABI_1.3.3, CXXABI_1.3.5): Make
440 exports for exception_ptr, nested_exception, and future conditional.
441 [HAVE_EXCEPTION_PTR_SINCE_GCC46] (GLIBCXX_3.4.23, CXXABI_1.3.11): Add
442 exports for exception_ptr, nested_exception, and future conditional.
443 * configure: Regenerate.
444 * configure.ac: Use GLIBCXX_CHECK_EXCEPTION_PTR_SYMVER.
445 * include/std/future: Remove check for ATOMIC_INT_LOCK_FREE
446 * libsupc++/eh_atomics.h: New file for internal use only.
447 (__eh_atomic_inc, __eh_atomic_dec): New.
448 * libsupc++/eh_ptr.cc (exception_ptr::_M_addref)
449 (exception_ptr::_M_release) (__gxx_dependent_exception_cleanup)
450 (rethrow_exception): Use eh_atomics.h reference counting helpers.
451 * libsupc++/eh_throw.cc (__gxx_exception_cleanup): Likewise.
452 * libsupc++/eh_tm.cc (free_any_cxa_exception): Likewise.
453 * libsupc++/exception: Remove check for ATOMIC_INT_LOCK_FREE.
454 * libsupc++/exception_ptr.h: Likewise.
455 * libsupc++/guard.cc: Include header for ATOMIC_INT_LOCK_FREE macro.
456 * libsupc++/nested_exception.cc: Remove check for
457 ATOMIC_INT_LOCK_FREE.
458 * libsupc++/nested_exception.h: Likewise.
459 * src/c++11/future.cc: Likewise.
460 * testsuite/18_support/exception_ptr/*: Remove atomic builtins checks.
461 * testsuite/18_support/nested_exception/*: Likewise.
462 * testsuite/30_threads/async/*: Likewise.
463 * testsuite/30_threads/future/*: Likewise.
464 * testsuite/30_threads/headers/future/types_std_c++0x.cc: Likewise.
465 * testsuite/30_threads/packaged_task/*: Likewise.
466 * testsuite/30_threads/promise/*: Likewise.
467 * testsuite/30_threads/shared_future/*: Likewise.
469 2017-01-03 Gerald Pfeifer <gerald@pfeifer.com>
471 * doc/xml/manual/documentation_hacking.xml: sourceforge.net now
472 defaults to https; adjust reference.
474 2017-01-03 Jonathan Wakely <jwakely@redhat.com>
477 * include/std/thread (thread(const thread&&)): Add deleted
479 * testsuite/30_threads/thread/cons/lwg2097.cc: New test.
481 * doc/xml/manual/spine.xml: Update copyright years.
482 * doc/xml/manual/build_hacking.xml: Fix spelling of libbuilddir.
483 * doc/xml/manual/test.xml: Likewise.
484 * doc/html/*: Regenerate.
486 2017-01-01 Gerald Pfeifer <gerald@pfeifer.com>
488 * doc/xml/faq.xml: Update address of C++ ABI link.
489 * doc/xml/manual/abi.xml: Ditto.
491 2017-01-01 Jakub Jelinek <jakub@redhat.com>
493 Update copyright years.
495 Copyright (C) 2017 Free Software Foundation, Inc.
497 Copying and distribution of this file, with or without modification,
498 are permitted in any medium without royalty provided the copyright
499 notice and this notice are preserved.