Use __gcov_dump and __gcov_reset in execv and fork context.
authorMartin Liska <mliska@suse.cz>
Tue, 5 May 2020 14:15:46 +0000 (16:15 +0200)
committerMartin Liska <mliska@suse.cz>
Tue, 5 May 2020 14:15:46 +0000 (16:15 +0200)
commitc0532db47d092430f8e8f497b2dc53343527bb13
tree2e6692771353d20ab12a16d8768ae8b0a4da4ea7
parentd39f7dc8d558ca31a661b02d08ff090ce65e6652
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.
libgcc/ChangeLog
libgcc/libgcov-interface.c