GCOV: add cache for streamed locations.
commite1426f699c2710540a11e1d2ebbf572daa7e3b08
authormarxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 31 Jul 2018 10:34:36 +0000 (31 10:34 +0000)
committermarxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 31 Jul 2018 10:34:36 +0000 (31 10:34 +0000)
treeb7900aba2f8e4ac6802ec6086fcef6f783b59a18
parent9d27748de44d43a2d3183594438b641fb0fae4d2
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@263113 138bc75d-0d04-0410-961f-82ee72b054a4
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]