Do locking for __gcov_dump and __gcov_reset as well.
authorMartin Liska <mliska@suse.cz>
Tue, 5 May 2020 14:15:45 +0000 (16:15 +0200)
committerMartin Liska <mliska@suse.cz>
Tue, 5 May 2020 14:15:45 +0000 (16:15 +0200)
commitd39f7dc8d558ca31a661b02d08ff090ce65e6652
tree05820428028a09ab19d0acf221fb666b3f222fdc
parent2d8a60a63cafdd9930bdbfb2ec76c47d7d14cd45
Do locking for __gcov_dump and __gcov_reset as well.

PR gcov-profile/93623
* Makefile.in: Add _gcov_lock_unlock to LIBGCOV_INTERFACE.
* libgcov-interface.c (ALIAS_void_fn): Remove.
(__gcov_lock): New.
(__gcov_unlock): New.
(__gcov_flush): Use __gcov_lock and __gcov_unlock.
(__gcov_reset): Likewise.
(__gcov_dump): Likewise.
* libgcov.h (__gcov_lock): New declaration.
(__gcov_unlock): Likewise.
libgcc/ChangeLog
libgcc/Makefile.in
libgcc/libgcov-interface.c
libgcc/libgcov.h