aboutsummaryrefslogtreecommitdiff
path: root/libgcc/libgcov-driver-system.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2022-03-23 10:20:56 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2022-04-28 20:46:48 +0200
commit336ea18ad7f48d675fce8c97bf3b7a0ee3a5a450 (patch)
tree37913244bca7c139f0d7d0196150a578cdd1d6dd /libgcc/libgcov-driver-system.c
parent00c4405cd7f6a144d0a439e4d848d246920e6ff3 (diff)
downloadgcc-336ea18ad7f48d675fce8c97bf3b7a0ee3a5a450.zip
gcc-336ea18ad7f48d675fce8c97bf3b7a0ee3a5a450.tar.gz
gcc-336ea18ad7f48d675fce8c97bf3b7a0ee3a5a450.tar.bz2
gcov-tool: Allow merging of empty profile lists
The gcov_profile_merge() already had code to deal with profile information which had no counterpart to merge with. For profile information from files with no associated counterpart, the profile information is simply used as is with the weighting transformation applied. Make sure that gcov_profile_merge() works with an empty target profile list. Return the merged profile list. gcc/ * gcov-tool.cc (gcov_profile_merge): Adjust return type. (profile_merge): Allow merging of directories which contain no profile files. libgcc/ * libgcov-util.c (gcov_profile_merge): Return the list of merged profiles. Accept empty target and source profile lists.
Diffstat (limited to 'libgcc/libgcov-driver-system.c')
0 files changed, 0 insertions, 0 deletions