diff options
author | François Dumont <fdumont@gcc.gnu.org> | 2019-10-04 20:22:11 +0000 |
---|---|---|
committer | François Dumont <fdumont@gcc.gnu.org> | 2019-10-04 20:22:11 +0000 |
commit | 36edf9cab1d4a444497c2aaf57c4ce61f7a67901 (patch) | |
tree | a88be7904712db89fc6c702cc4caf00bb41b371d /gcc/fortran/decl.c | |
parent | 9af0d5ef3b14a9b3e4b0cb6aaaaba44ea722fb06 (diff) | |
download | gcc-36edf9cab1d4a444497c2aaf57c4ce61f7a67901.zip gcc-36edf9cab1d4a444497c2aaf57c4ce61f7a67901.tar.gz gcc-36edf9cab1d4a444497c2aaf57c4ce61f7a67901.tar.bz2 |
Improve _GLIBCXX_DEBUG safe iterator range size computation.
* include/debug/forward_list
(_Sequence_traits<__debug::forward_list<>>::_S_size): Returns __dp_sign
distance when not empty.
* include/debug/list (_Sequence_traits<__debug::list<>>::_S_size):
Likewise.
* include/debug/helper_functions.h (__dp_sign_max_size): New
_Distance_precision enum entry.
(__valid_range_aux(_IIte, _IIte, _Distance_traits<>::__type,
__false_type)): Adapt.
* include/debug/safe_iterator.tcc
(_Safe_iterator<>::_M_get_distance_to(const _Safe_iterator&)): Review
distance computation.
From-SVN: r276600
Diffstat (limited to 'gcc/fortran/decl.c')
0 files changed, 0 insertions, 0 deletions