summaryrefslogtreecommitdiff
path: root/libstdc++-v3
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix invalid dg-do directiveJonathan Wakely2016-10-172-1/+9
| | | | | | | | | | Backport from mainline: 2016-08-17 Jonathan Wakely <jwakely@redhat.com> * testsuite/20_util/reference_wrapper/invoke-2.cc: Fix invalid dg-do directive. From-SVN: r241251
* Use ::new to avoid finding overloaded operator newJonathan Wakely2016-10-173-2/+39
| | | | | | | | | | | | Backport from mainline: 2016-08-06 Jonathan Wakely <jwakely@redhat.com> PR libstdc++/72820 * include/std/functional (_Function_base::_Base_manager::_M_clone): Qualify new operator. * testsuite/20_util/function/cons/72820.cc: New test. From-SVN: r241250
* Backport fixes to std::experimental::sampleJonathan Wakely2016-10-173-3/+15
| | | | | | | | | PR libstdc++/77994 * include/experimental/algorithm (experimental::sample): Convert size argument to iterator difference type. Fix invalid use of input iterator. Defend against overloaded comma operator. From-SVN: r241249
* PR 70101 fix allocator-extended ctors for std::priority_queueJonathan Wakely2016-10-053-6/+73
| | | | | | | | | PR libstdc++/70101 * include/bits/stl_queue.h (priority_queue): Fix allocator-extended constructors. * testsuite/23_containers/priority_queue/allocator.cc: New test. From-SVN: r240788
* 77864 Fix noexcept conditions for map/set default constructorsJonathan Wakely2016-10-059-12/+162
| | | | | | | | | | | | | | | | | | | PR libstdc++/77864 * include/bits/stl_map.h (map::map()): Use nothrow constructibility of comparison function in conditional noexcept. * include/bits/stl_multimap.h (multimap::multimap()): Likewise. * include/bits/stl_multiset.h (multiset::multiset()): Likewise. * include/bits/stl_set.h (set::set()): Likewise. * testsuite/23_containers/map/cons/noexcept_default_construct.cc: New test. * testsuite/23_containers/multimap/cons/noexcept_default_construct.cc: Likewise. * testsuite/23_containers/multiset/cons/noexcept_default_construct.cc: Likewise. * testsuite/23_containers/set/cons/noexcept_default_construct.cc: Likewise. From-SVN: r240787
* PR 70564 disambiguate constructor for not_fn call wrapperJonathan Wakely2016-10-053-2/+31
| | | | | | | | | | | PR libstdc++/70564 * include/experimental/functional (_Not_fn): Add second parameter to disambiguate copying from initialization by not_fn. (not_fn): Add second argument to initialization. * testsuite/experimental/functional/not_fn.cc: Copy call wrapper using direct-initialization. Test abstract class. From-SVN: r240786
* Fix libstdc++ versioned namespace buildJonathan Wakely2016-10-033-2/+117
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PR libstdc++/68323 PR libstdc++/77794 * config/abi/pre/gnu-versioned-namespace.ver: Add exports for __cxa_thread_atexit and __gnu_cxx::__freeres. * include/Makefile.am: Add <experimental/bits/lfts_config.h> * include/Makefile.in: Regenerate. * include.bits/basic_string.h: Fix nesting of versioned namespaces. * include/bits/c++config: Declare versioned namespaces for literals. * include/bits/regex.h (basic_regex, match_results): Add workarounds for PR c++/59256. * include/bits/uniform_int_dist.h: Fix nesting of versioned namespace. * include/std/chrono: Likewise. * include/std/complex: Likewise. * include/experimental/bits/fs_fwd.h: Declare versioned namespace. * include/experimental/bits/lfts_config.h: Declare versioned namespaces. * include/experimental/algorithm: Include <experimental/bits/lfts_config.h>. * include/experimental/any: Likewise. * include/experimental/bits/erase_if.h: Likewise. * include/experimental/chrono: Likewise. * include/experimental/functional: Likewise. * include/experimental/memory_resource: Likewise. * include/experimental/optional: Likewise. * include/experimental/propagate_const: Likewise. * include/experimental/random: Likewise. * include/experimental/ratio: Likewise. * include/experimental/system_error: Likewise. * include/experimental/tuple: Likewise. * include/experimental/type_traits: Likewise. * include/experimental/utility: Likewise. * include/experimental/string_view: Likewise. Fix nesting of versioned namespaces. * include/experimental/bits/string_view.tcc: Reopen inline namespace for non-inline function definitions. * testsuite/17_intro/using_namespace_std_exp_neg.cc: New test. * testsuite/20_util/duration/literals/range.cc: Adjust dg-error line. * testsuite/experimental/any/misc/any_cast_neg.cc: Likewise. * testsuite/experimental/propagate_const/assignment/move_neg.cc: Likewise. * testsuite/experimental/propagate_const/cons/move_neg.cc: Likewise. * testsuite/experimental/propagate_const/requirements2.cc: Likewise. * testsuite/experimental/propagate_const/requirements3.cc: Likewise. * testsuite/experimental/propagate_const/requirements4.cc: Likewise. * testsuite/experimental/propagate_const/requirements5.cc: Likewise. * testsuite/ext/profile/mutex_extensions_neg.cc: Likewise. From-SVN: r240719
* add exportsJonathan Wakely2016-10-031-0/+4
| | | | From-SVN: r240718
* Fix misuse of versioned namespace for LFTSJonathan Wakely2016-10-0326-25/+102
| | | | From-SVN: r240717
* Declare inline namespaces for filesystemJonathan Wakely2016-10-031-1/+4
| | | | From-SVN: r240716
* fix misplaced version namespace macrosJonathan Wakely2016-10-038-16/+40
| | | | From-SVN: r240715
* libstdc++/77795 Only declare ::gets for C++98 and C++11Jonathan Wakely2016-09-307-4/+49
| | | | | | | | | | | | | | PR libstdc++/77795 * acinclude.m4 (GLIBCXX_CHECK_STDIO_PROTO): Use -std=gnu++11 to check for gets. * config.h.in: Regenerate. * configure: Regenerate. * include/c_global/cstdio [!_GLIBCXX_HAVE_GETS] (gets): Only declare for C++98 and C++11. * include/c_std/cstdio [!_GLIBCXX_HAVE_GETS] (gets): Likewise. * testsuite/27_io/headers/cstdio/functions_neg.cc: New test. From-SVN: r240674
* Remove use of std::abs in experimental::{gcd,lcm}Jonathan Wakely2016-09-305-4/+57
| | | | | | | | | | | | PR libstdc++/77801 * include/experimental/numeric: Include <numeric>. (__abs): Define. (gcd, lcm): Use __abs instead of std::abs. * testsuite/experimental/numeric/77801.cc: New test. * testsuite/experimental/numeric/gcd.cc: Test unsigned inputs. * testsuite/experimental/numeric/lcm.cc: Likewise. From-SVN: r240673
* libstdc++/77686 use may_alias for std::function storageJonathan Wakely2016-09-282-1/+6
| | | | | | | PR libstdc++/77686 * include/std/functional (_Any_data): Add may_alias attribute. From-SVN: r240571
* Fix lifetime of mutex lock in debug iteratorJonathan Wakely2016-09-272-1/+6
| | | | | | | * include/debug/safe_iterator.h (_Safe_iterator::operator++()): Fix lifetime of lock. From-SVN: r240548
* [RTEMS] Always use atomic builtins for libstdc++Sebastian Huber2016-09-275-9/+31
| | | | | | | | | | | libstdc++-v3/ * config/cpu/m68k/atomicity.h: Adjust comment. * acinclude.m4 (GLIBCXX_ENABLE_ATOMIC_BUILTINS): Honor explicit atomicity_dir setup via configure.host. * configure.host (rtems-*): Set atomicity_dir. * configure: Regenerate. From-SVN: r240519
* Fix testsuite failures.Ville Voutilainen2016-09-273-4/+4
| | | | From-SVN: r240516
* Fix the date of the last ChangeLog entry.Ville Voutilainen2016-09-261-1/+1
| | | | From-SVN: r240508
* backport: re PR libstdc++/77537 (pair constructors do not properly SFINAE)Ville Voutilainen2016-09-264-89/+266
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Backport from mainline 2016-09-21 Ville Voutilainen <ville.voutilainen@gmail.com> PR libstdc++/77537 Implement LWG 2729 for pair. * include/bits/stl_pair.h (_PCC): New. (_ConstructiblePair, _ImplicitlyConvertiblePair): Turn into static member functions of _PCC. (_MoveConstructiblePair, _ImplicitlyMoveConvertiblePair): Likewise. (_PCCP): New. (pair(const _T1&, const _T2&)): Adjust. (_PCCFP): New. (pair(const pair<_U1, _U2>&)): Adjust. (pair(_U1&&, const _T2&)): Likewise. (pair(const _T1&, _U2&&)): Likewise. (pair(_U1&&, _U2&&)): Likewise. (pair(pair<_U1, _U2>&&)): Likewise. (operator=(const pair&)): Make conditionally deleted. (operator=(pair&&)): Make conditionally suppressed. (operator=(const pair<_U1, _U2>&)): Constrain. (operator=(pair<_U1, _U2>&&): Likewise. * include/std/type_traits (__nonesuch): New. * testsuite/20_util/pair/traits.cc: New. From-SVN: r240507
* Replace casts with floordiv operator in Python xmethodsJonathan Wakely2016-09-202-3/+8
| | | | | | | * python/libstdcxx/v6/xmethods.py (DequeWorkerBase.__init__) (DequeWorkerBase.index, VectorWorkerBase.get): Use // for division. From-SVN: r240259
* libstdc++/77645 fix deque and vector xmethods for Python 3Jonathan Wakely2016-09-192-3/+8
| | | | | | | | | PR libstdc++/77645 * python/libstdcxx/v6/xmethods.py (DequeWorkerBase.__init__) (DequeWorkerBase.index, VectorWorkerBase.get): Cast results of division to int to work with Python 3. From-SVN: r240243
* libstdc++/77645 Fix xmethods for std::listJonathan Wakely2016-09-192-5/+22
| | | | | | | | | | PR libstdc++/77645 * python/libstdcxx/v6/xmethods.py (DequeWorkerBase.index): Rename argument. (ListWorkerBase.get_value_from_node): Define new method. (ListFrontWorker.__call__, ListBackWorker.__call__): Use it. From-SVN: r240235
* re PR libstdc++/77395 (std::is_constructible is false for type constructible ↵Ville Voutilainen2016-08-317-5/+123
| | | | | | | | | | | | | | | | via implicit conversion operator affecting std::tuple) PR libstdc++/77395 * include/std/type_traits (is_constructible): Forward-declare... (__is_base_to_derived_ref): ...and use here. * testsuite/20_util/declval/requirements/1_neg.cc: Adjust. * testsuite/20_util/is_constructible/77395.cc: New. * testsuite/20_util/make_signed/requirements/typedefs_neg.cc: Adjust. * testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc: Likewise. * testsuite/20_util/tuple/77395.cc: New. From-SVN: r239890
* Add -fno-show-column to libstdc++ test flagsJonathan Wakely2016-08-303-3/+15
| | | | | | | | | | | | | | Backport from mainline 2016-08-02 Jonathan Wakely <jwakely@redhat.com> * scripts/testsuite_flags.in: Add -fno-show-column to cxxflags. Backport from mainline 2016-07-27 Jonathan Wakely <jwakely@redhat.com> * testsuite/20_util/forward/1_neg.cc: Move dg-error to right line. From-SVN: r239864
* * testsuite/23_containers/map/77334.cc: Use dg-options for C++11.Jonathan Wakely2016-08-232-1/+6
| | | | From-SVN: r239704
* libstdc++/77334 move assign RB trees of non-copyable typesJonathan Wakely2016-08-233-16/+74
| | | | | | | | | PR libstdc++/77334 * include/bits/stl_tree.h (_Rb_tree::_M_move_assign): New functions. (_Rb_tree::operator=(_Rb_tree&&)): Dispatch to _M_move_assign. * testsuite/23_containers/map/77334.cc: New test. From-SVN: r239702
* Update links to libstdc++ Doxygen pagesJonathan Wakely2016-08-233-107/+19
| | | | | | | | * doc/xml/api.xml: Replace hardcoded links for specific versions with link to docs for all releases. * doc/html/*: Regenerate. From-SVN: r239695
* libstdc++/71771 constrain reverse_iterator difference opJonathan Wakely2016-08-233-0/+57
| | | | | | | | | * include/bits/stl_iterator.h (operator-(reverse_iterator<Iter>, reverse_iterator<Iter>): Constrain for C++11 and later. * testsuite/24_iterators/reverse_iterator/71771.cc: New test. From-SVN: r239694
* Update ChangeLog and version files for releasereleases/gcc-6.2.0Richard Biener2016-08-221-0/+4
| | | | From-SVN: r239651
* Use correct value category in std::function constraintJonathan Wakely2016-08-063-1/+39
| | | | | | | | * include/std/functional (function::_Callable): Use lvalue in result_of expression. * testsuite/20_util/function/cons/refqual.cc: New test. From-SVN: r239202
* Move allocator in RB tree move constructorsJonathan Wakely2016-08-063-1/+80
| | | | | | | | | | | Backport from mainline 2016-07-22 Jonathan Wakely <jwakely@redhat.com> PR libstdc++/71964 * include/bits/stl_tree.h (_Rb_tree(_Rb_tree&&)): Move allocator. * testsuite/23_containers/set/allocator/71964.cc: New test. From-SVN: r239201
* Fix std::wstring allocator testsJonathan Wakely2016-08-068-19/+37
| | | | | | | | | | | | | | | | | | | * testsuite/21_strings/basic_string/allocator/wchar_t/copy.cc: Remove reundant check for _GLIBCXX_USE_WCHAR_T and fix char type. * testsuite/21_strings/basic_string/allocator/wchar_t/copy_assign.cc: Likewise. * testsuite/21_strings/basic_string/allocator/wchar_t/minimal.cc: Likewise. * testsuite/21_strings/basic_string/allocator/wchar_t/move.cc: Likewise. * testsuite/21_strings/basic_string/allocator/wchar_t/move_assign.cc: Likewise. * testsuite/21_strings/basic_string/allocator/wchar_t/noexcept.cc: Likewise. * testsuite/21_strings/basic_string/allocator/wchar_t/swap.cc: Likewise. From-SVN: r239200
* libstdc++/70940 Start fixing polymorphic memory resourcesJonathan Wakely2016-08-065-32/+169
| | | | | | | | | | | | | | | | | | | | | | | Backport from mainline 2016-05-04 Jonathan Wakely <jwakely@redhat.com> PR libstdc++/70940 * include/experimental/memory_resource (__resource_adaptor_imp::do_allocate): Do not default-construct rebound allocator. (__resource_adaptor_imp::do_deallocate): Likewise. Use allocator_traits to get pointer type. (__null_memory_resource::do_allocate): Remove unused parameters. (__null_memory_resource::do_deallocate): Likewise. (__null_memory_resource::do_is_equal): Likewise. Add return statement. * testsuite/experimental/type_erased_allocator/1.cc: Combine with ... * testsuite/experimental/type_erased_allocator/1_neg.cc: This, and move to ... * testsuite/experimental/memory_resource/1.cc: Here. * testsuite/experimental/memory_resource/null_memory_resource.cc: New. * testsuite/experimental/memory_resource/resource_adaptor.cc: New. From-SVN: r239199
* Define C++17 feature-test macrosJonathan Wakely2016-08-064-2/+12
| | | | | | | | | | | | Backport from mainline 2016-08-03 Jonathan Wakely <jwakely@redhat.com> * include/bits/allocator.h (__cpp_lib_incomplete_container_elements): Define feature-test macro. * include/std/shared_mutex (__cpp_lib_shared_mutex): Uncomment. * include/std/type_traits (__cpp_lib_logical_traits): Fix value. From-SVN: r239198
* Define __cpp_lib_generic_associative_lookup feature-test macroJonathan Wakely2016-08-064-6/+31
| | | | | | | | | | | | Backport from mainline 2016-08-03 Jonathan Wakely <jwakely@redhat.com> * include/bits/stl_function.h: Remove commented-out macro. * include/bits/stl_tree.h (__cpp_lib_generic_associative_lookup): Define feature-test macro. * testsuite/experimental/feat-cxx14.cc: Add tests for more macros. From-SVN: r239197
* Improve comments on check_v3_target_filesystem_tsJonathan Wakely2016-08-062-1/+6
| | | | | | | * testsuite/lib/libstdc++.exp (check_v3_target_filesystem_ts): Improve comments. From-SVN: r239196
* Change libstdc++ manual to refer to release not trunkJonathan Wakely2016-08-065-21/+20
| | | | | | | | | | * doc/xml/manual/status_cxx2011.xml: Change "mainline GCC SVN" to refer to the release series. * doc/xml/manual/status_cxx2014.xml: Likewise. Update TS status. * doc/xml/manual/status_cxx2017.xml: Likewise. * doc/html/manual/status.html: Regenerate. From-SVN: r239195
* Fix naming, qualification and broken test for propagate_constJonathan Wakely2016-08-063-15/+22
| | | | | | | | * include/experimental/propagate_const (propagate_const::__t): Rename to _M_t and remove comment. Qualify std::move and std::forward. * testsuite/experimental/propagate_const/cons/default.cc: Fix test. From-SVN: r239194
* Support using -flto with libstdc++ testsuiteJonathan Wakely2016-08-022-1/+7
| | | | | | | * testsuite/lib/libstdc++.exp (v3-build_support): Add -fno-lto to additional flags for compiling libtestc++.a objects. From-SVN: r238979
* Update libstdc++ docs for library version historyJonathan Wakely2016-07-293-1/+7
| | | | | | | * doc/xml/manual/abi.xml: Document 6.0.22 library version. * doc/html/manual/abi.html: Regenerate. From-SVN: r238854
* Include header for std::__parallel::searchJonathan Wakely2016-07-192-0/+9
| | | | | | | | | | Backport from mainline 2016-07-14 Jonathan Wakely <jwakely@redhat.com> * include/experimental/functional: Include <parallel/algorithm> in Parallel Mode. From-SVN: r238500
* Add header for std::search to testcaseJonathan Wakely2016-07-192-0/+7
| | | | | | | | | | Backport from mainline 2016-07-14 Jonathan Wakely <jwakely@redhat.com> * testsuite/experimental/functional/searchers.cc: Include <algorithm> for std::search. From-SVN: r238499
* Do not define _GLIBCXX_ASSERTIONS in Parallel ModeJonathan Wakely2016-07-194-7/+10
| | | | | | | | | | PR libstdc++/71856 * include/bits/c++config (_GLIBCXX_ASSERTIONS): Define to 1 not empty. * include/parallel/balanced_quicksort.h: Include <unistd.h> for sleep. * include/parallel/compiletime_settings.h (_GLIBCXX_ASSERTIONS): Do not define here. From-SVN: r238498
* libstdc++/71320 Add or remove file permissions correctlyJonathan Wakely2016-07-193-0/+84
| | | | | | | | | | | | | Backport from mainline 2016-06-06 Jonathan Wakely <jwakely@redhat.com> PR libstdc++/71320 * src/filesystem/ops.cc (permissions(const path&, perms, error_code&)): Add or remove permissions according to perms argument. * testsuite/experimental/filesystem/operations/permissions.cc: New test. From-SVN: r238480
* Implement LWG 2451, optional<T> should 'forward' T's implicit conversions.Ville Voutilainen2016-07-064-2/+219
| | | | | | | | | | | | | | | | | Implement LWG 2451, optional<T> should 'forward' T's implicit conversions. * include/experimental/optional (__is_optional_impl, __is_optional): New. (optional()): Make constexpr and default. (optional(_Up&&), optional(const optional<_Up>&), optional(optional<_Up>&& __t): New. (operator=(_Up&&)): Constrain. (operator=(const optional<_Up>&), operator=(optional<_Up>&&)): New. * testsuite/experimental/optional/cons/value.cc: Add tests for the functionality added by LWG 2451. * testsuite/experimental/optional/cons/value_neg.cc: New. From-SVN: r238054
* Implement LWG 2509,Ville Voutilainen2016-07-054-3/+76
| | | | | | | | | | | | any_cast doesn't work with rvalue reference targets and cannot move with a value target. * include/experimental/any (any(_ValueType&&)): Constrain and add an overload that doesn't forward. (any_cast(any&&)): Constrain and add an overload that moves. * testsuite/experimental/any/misc/any_cast.cc: Add tests for the functionality added by LWG 2509. From-SVN: r238025
* re PR libstdc++/71313 ([Filesystem TS] remove_all fails to remove directory ↵Ville Voutilainen2016-07-043-2/+11
| | | | | | | | | | | | contents recursively) PR libstdc++/71313 * src/filesystem/ops.cc (remove_all(const path&, error_code&)): Call remove_all for children of a directory. * testsuite/experimental/filesystem/operations/create_directories.cc: Adjust. From-SVN: r237980
* libstdc++/71545 fix debug checks in binary search algorithmsJonathan Wakely2016-06-179-12/+387
| | | | | | | | | | | | | | | | PR libstdc++/71545 * include/bits/stl_algobase.h (lower_bound, lexicographical_compare): Remove irreflexive checks. * include/bits/stl_algo.h (lower_bound, upper_bound, equal_range, binary_search): Likewise. * testsuite/25_algorithms/equal_range/partitioned.cc: New test. * testsuite/25_algorithms/lexicographical_compare/71545.cc: New test. * testsuite/25_algorithms/lower_bound/partitioned.cc: New test. * testsuite/25_algorithms/upper_bound/partitioned.cc: New test. * testsuite/util/testsuite_iterators.h (__gnu_test::test_container): Add constructor from array. From-SVN: r237561
* libstdc++/70762 fix fallback implementation of nonexistent_pathJonathan Wakely2016-05-262-2/+11
| | | | | | | | | | | Backport from mainline 2016-04-24 Jonathan Wakely <jwakely@redhat.com> PR libstdc++/70762 * testsuite/util/testsuite_fs.h (__gnu_test::nonexistent_path): Use static counter to return a different path on every call. From-SVN: r236786
* Add dg-require-filesystem-ts directive to testJonathan Wakely2016-05-262-0/+6
| | | | | | | * testsuite/experimental/filesystem/path/native/string.cc: Add dg-require-filesystem-ts directive. From-SVN: r236777