https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93623
--- Comment #8 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Martin Liska <mar...@gcc.gnu.org>: https://gcc.gnu.org/g:c0532db47d092430f8e8f497b2dc53343527bb13 commit r11-84-gc0532db47d092430f8e8f497b2dc53343527bb13 Author: Martin Liska <mli...@suse.cz> Date: Tue May 5 16:15:46 2020 +0200 Use __gcov_dump and __gcov_reset in execv and fork context. PR gcov-profile/93623 * libgcov-interface.c (__gcov_fork): Do not flush and reset only in child process. (__gcov_execl): Dump counters only and reset them only if exec* fails. (__gcov_execlp): Likewise. (__gcov_execle): Likewise. (__gcov_execv): Likewise. (__gcov_execvp): Likewise. (__gcov_execve): Likewise.