GCOV: add cache for streamed locations.
authorMartin Liska <mliska@suse.cz>
Tue, 31 Jul 2018 10:34:36 +0000 (12:34 +0200)
committerMartin Liska <marxin@gcc.gnu.org>
Tue, 31 Jul 2018 10:34:36 +0000 (10:34 +0000)
commite2844b1358f12ae25fd4b7bb95ffcb38c5b2c257
treeb7900aba2f8e4ac6802ec6086fcef6f783b59a18
parent80dde427a00b3121ec7b1b3664208149feaa23a8
GCOV: add cache for streamed locations.

2018-07-31  Martin Liska  <mliska@suse.cz>

        PR gcov-profile/85338
        PR gcov-profile/85350
        PR gcov-profile/85372
        * profile.c (struct location_triplet): New.
(struct location_triplet_hash): Likewise.
(output_location): Do not output a BB that
        is already recorded for a line.
(branch_prob): Use streamed_locations.
2018-07-31  Martin Liska  <mliska@suse.cz>

        PR gcov-profile/85338
        PR gcov-profile/85350
        PR gcov-profile/85372
* gcc.misc-tests/gcov-pr85338.c: New test.
* gcc.misc-tests/gcov-pr85350.c: New test.
* gcc.misc-tests/gcov-pr85372.c: New test.

From-SVN: r263113
gcc/ChangeLog
gcc/profile.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.misc-tests/gcov-pr85338.c [new file with mode: 0644]
gcc/testsuite/gcc.misc-tests/gcov-pr85350.c [new file with mode: 0644]
gcc/testsuite/gcc.misc-tests/gcov-pr85372.c [new file with mode: 0644]