https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100751
Martin Liška <marxin at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
URL| |https://gcc.gnu.org/piperma
| |il/gcc-patches/2021-May/571
| |152.html
Ever confirmed|0 |1
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed| |2021-05-25
Assignee|unassigned at gcc dot gnu.org |marxin at gcc dot
gnu.org
--- Comment #3 from Martin Liška <marxin at gcc dot gnu.org> ---
> For the second time and then onwards, __gcov_dump() invocation (by giving
> 'g' character during the a.out run) doesn't happen.
Yes, one can call __gcov_dump only once per run.
>
> Another thing is that, __gcov_reset() also doesn't appear to work. I tried
> giving the character 'r' during the run of the program but couldn't see the
> counters getting reset to 0 in the sample-prog.gcov file. The previous
> values of lines covered were there.
No, __gcov_reset resets run-time counters (profile collected so far during an
application run). If you want to clear profile, then simply remove .gcda files.
I've just send documentation improvement for it:
https://gcc.gnu.org/pipermail/gcc-patches/2021-May/571152.html