Make groups more generic (PR gcov-profile/84548).
authorMartin Liska <mliska@suse.cz>
Tue, 27 Feb 2018 14:11:08 +0000 (15:11 +0100)
committerMartin Liska <marxin@gcc.gnu.org>
Tue, 27 Feb 2018 14:11:08 +0000 (14:11 +0000)
commite59b5e24ea78b6ca06da7ba07ec3218d6b65e989
tree37a97e08eb0d39a05c3aab3a5b11884afbd0d816
parent23c3a0590839e94c94890bb11c2e2e96c1b27f1d
Make groups more generic (PR gcov-profile/84548).

2018-02-27  Martin Liska  <mliska@suse.cz>

PR gcov-profile/84548
* gcov.c (process_file): Allow partial overlap and consider it
also as group functions.
(output_lines): Properly calculate range of lines for a group.
2018-02-27  Martin Liska  <mliska@suse.cz>

PR gcov-profile/84548
* g++.dg/gcov/pr84548.C: New test.

From-SVN: r258033
gcc/ChangeLog
gcc/gcov.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/gcov/pr84548.C [new file with mode: 0644]