aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/init.c
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2020-02-26 15:19:44 +0000
committerJonathan Wakely <jwakely@redhat.com>2020-02-26 15:19:44 +0000
commit113f0a639dbdd78048373a253ec64145ead7d29d (patch)
tree9aef310f7e7e4d1c7b6c58925926538e190b4e5b /gcc/cp/init.c
parent8017d95c7f55b98bcee1caf0216fdfd7fd613849 (diff)
downloadgcc-113f0a639dbdd78048373a253ec64145ead7d29d.zip
gcc-113f0a639dbdd78048373a253ec64145ead7d29d.tar.gz
gcc-113f0a639dbdd78048373a253ec64145ead7d29d.tar.bz2
libstdc++ Two simplifications for lexicographical_compare
* include/bits/ranges_algo.h (__lexicographical_compare_fn): Declare variables in smaller scope and avoid calling ranges::distance when we know they are pointers. Remove statically-unreachable use of __builtin_unreachable(). * include/bits/stl_algobase.h (__lexicographical_compare::__lc): Define inline.
Diffstat (limited to 'gcc/cp/init.c')
0 files changed, 0 insertions, 0 deletions