diff options
author | redi <redi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2019-10-01 21:02:22 +0000 |
---|---|---|
committer | redi <redi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2019-10-01 21:02:22 +0000 |
commit | f259e317ec2952feb7dac77a82fc5fce58efd2b9 (patch) | |
tree | 06f33c5fc83ccb572738cc68fbf24923facd7767 /gcc/c/c-parser.c | |
parent | 8853eee08343a688ab3a92fcf515fab5c41d8545 (diff) |
Make some parallel mode algorithms usable in constexpr contexts
This makes the __parallel::equal and __parallel:lexicographical_compare
algorithms usable in constant expressions, by dispatching to the
sequential algorithm when calling during constant evaluation.
* include/parallel/algobase.h (equal, lexicographical_compare): Add
_GLIBCXX20_CONSTEXPR and dispatch to sequential algorithm when being
constant evaluated.
* include/parallel/algorithmfwd.h (equal, lexicographical_compare):
Add _GLIBCXX20_CONSTEXPR.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@276431 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c/c-parser.c')
0 files changed, 0 insertions, 0 deletions