diff options
author | Jørgen Kvalsvik <j@lambda.is> | 2024-07-10 18:47:27 +0200 |
---|---|---|
committer | Jørgen Kvalsvik <j@lambda.is> | 2024-07-11 09:11:55 +0200 |
commit | 2b3fbac8e37384857cd594c0800fccd99e4d39a1 (patch) | |
tree | 3a261354f5739ba5b360866224824911982559c2 /libbacktrace/dwarf.c | |
parent | 36e5e409190e595638cec053ea034d20d5c74d6b (diff) | |
download | gcc-2b3fbac8e37384857cd594c0800fccd99e4d39a1.zip gcc-2b3fbac8e37384857cd594c0800fccd99e4d39a1.tar.gz gcc-2b3fbac8e37384857cd594c0800fccd99e4d39a1.tar.bz2 |
Ensure function.end_line in source_info.lines
Ensure that the function.end_line in the lines vector for the source
file, even if it is not explicitly touched by a basic block. This
ensures consistency with what you would expect. For example, this file
has sources[sum.cc].lines.size () == 23 and main.end_line == 2 without
adjusting sources.lines, which in this case is a no-op.
#####: 17:int main ()
-: 18:{
#####: 19: sum (1, 2);
#####: 20: sum (1.1, 2);
#####: 21: sum (2.2, 2.3);
#####: 22:}
This is a useful property when combined with selective reporting.
gcc/ChangeLog:
* gcov.cc (process_all_functions): Ensure fn.end_line is
included source[fn].lines.
Diffstat (limited to 'libbacktrace/dwarf.c')
0 files changed, 0 insertions, 0 deletions