Fix GCOV CFG related issues.
authorMartin Liska <mliska@suse.cz>
Tue, 31 Jul 2018 10:33:21 +0000 (12:33 +0200)
committerMartin Liska <marxin@gcc.gnu.org>
Tue, 31 Jul 2018 10:33:21 +0000 (10:33 +0000)
commit102fcf94e625a2016a65829c73a42bd6c2420376
treeadbc04540f28f40a8827907f4f6b9b8e4883323a
parent5dbc3940fcd15ff477eb556630734017dd2b0cff
Fix GCOV CFG related issues.

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

        PR gcov-profile/83813
        PR gcov-profile/84758
        PR gcov-profile/85217
        PR gcov-profile/85332
* profile.c (branch_prob): Do not record GOTO expressions
        for GIMPLE statements which locations are already streamed.
2018-07-31  Martin Liska  <mliska@suse.cz>

        PR gcov-profile/83813
        PR gcov-profile/84758
        PR gcov-profile/85217
        PR gcov-profile/85332
* gcc.misc-tests/gcov-pr83813.c: New test.
* gcc.misc-tests/gcov-pr84758.c: New test.
* gcc.misc-tests/gcov-pr85217.c: New test.
* gcc.misc-tests/gcov-pr85332.c: New test.

From-SVN: r263111
gcc/ChangeLog
gcc/profile.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.misc-tests/gcov-pr83813.c [new file with mode: 0644]
gcc/testsuite/gcc.misc-tests/gcov-pr84758.c [new file with mode: 0644]
gcc/testsuite/gcc.misc-tests/gcov-pr85217.c [new file with mode: 0644]
gcc/testsuite/gcc.misc-tests/gcov-pr85332.c [new file with mode: 0644]