diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2020-05-07 21:43:49 +0100 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2020-05-07 21:43:49 +0100 |
commit | 9c24e97a97aaad4ad0500170cbae4f387d82ddd6 (patch) | |
tree | c6330aaa2600490516bd2276ffcf45a3fdf42dce /libstdc++-v3/ChangeLog | |
parent | 4cbc9d8b346b932f34828a51e8822881413951b7 (diff) |
libstdc++: Fix some C++20 algorithms to work in parallel mode
Some new algorithms need to use _GLIBCXX_STD_A to refer to the "normal"
version of the algorithm, to workaround the namespace dance done for
parallel mode.
PR libstdc++/94971 (partial)
* include/bits/ranges_algo.h (ranges::__sample_fn): Qualify
std::sample using macro to work in parallel mode.
(__sort_fn): Likewise for std::sort.
(ranges::__nth_element_fn): Likewise for std::nth_element.
* include/bits/stl_algobase.h (lexicographical_compare_three_way):
Likewise for std::__min_cmp.
* include/parallel/algobase.h (lexicographical_compare_three_way):
Add to namespace std::__parallel.
Diffstat (limited to 'libstdc++-v3/ChangeLog')
-rw-r--r-- | libstdc++-v3/ChangeLog | 34 |
1 files changed, 22 insertions, 12 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index d0751909dd2..3b8e6d94f87 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,25 @@ +2020-05-07 Jonathan Wakely <jwakely@redhat.com> + + PR libstdc++/94971 (partial) + * include/bits/ranges_algo.h (ranges::__sample_fn): Qualify + std::sample using macro to work in parallel mode. + (__sort_fn): Likewise for std::sort. + (ranges::__nth_element_fn): Likewise for std::nth_element. + * include/bits/stl_algobase.h (lexicographical_compare_three_way): + Likewise for std::__min_cmp. + * include/parallel/algobase.h (lexicographical_compare_three_way): + Add to namespace std::__parallel. + + PR c/92472 + * include/parallel/multiway_merge.h (_GuardedIterator::operator*) + (_GuardedIterator::operator _RAIter, _UnguardedIterator::operator*) + (_UnguardedIterator::operator _RAIter): Add const qualifier. + (operator<(_GuardedIterator&, _GuardedIterator&) + (operator<=(_GuardedIterator&, _GuardedIterator&) + (operator<(_UnguardedIterator&, _UnguardedIterator&) + (operator<=(_UnguardedIterator&, _UnguardedIterator&): Change + parameters to const references. + 2020-05-07 Eric Botcazou <ebotcazou@adacore.com> * config/abi/post/sparc64-linux-gnu/baseline_symbols.txt: Update. @@ -27,18 +49,6 @@ * config/abi/post/sparc-solaris/sparcv9/baseline_symbols.txt: Likewise. -2020-05-07 Jonathan Wakely <jwakely@redhat.com> - - PR c/92472 - * include/parallel/multiway_merge.h (_GuardedIterator::operator*) - (_GuardedIterator::operator _RAIter, _UnguardedIterator::operator*) - (_UnguardedIterator::operator _RAIter): Add const qualifier. - (operator<(_GuardedIterator&, _GuardedIterator&) - (operator<=(_GuardedIterator&, _GuardedIterator&) - (operator<(_UnguardedIterator&, _UnguardedIterator&) - (operator<=(_UnguardedIterator&, _UnguardedIterator&): Change - parameters to const references. - 2020-05-06 Martin Liska <mliska@suse.cz> Revert: |