gcov: fix streaming corruption
authorMartin Liska <mliska@suse.cz>
Mon, 21 Sep 2020 14:26:10 +0000 (16:26 +0200)
committerMartin Liska <mliska@suse.cz>
Wed, 23 Sep 2020 08:04:46 +0000 (10:04 +0200)
commit6b4e8bf88f1172ce8561f57b12fb81063b21a78f
tree8839297e05deb0903851942329bc9cbb3e76cb02
parentca52f937fff52c494ef2951490c1654750ef8157
gcov: fix streaming corruption

gcc/ChangeLog:

PR gcov-profile/97069
* profile.c (branch_prob): Line number must be at least 1.

gcc/testsuite/ChangeLog:

PR gcov-profile/97069
* g++.dg/gcov/pr97069.C: New test.
gcc/profile.c
gcc/testsuite/g++.dg/gcov/pr97069.C [new file with mode: 0644]