diff options
author | Martin Liska <mliska@suse.cz> | 2020-05-05 16:15:45 +0200 |
---|---|---|
committer | Martin Liska <mliska@suse.cz> | 2020-05-05 16:15:45 +0200 |
commit | d39f7dc8d558ca31a661b02d08ff090ce65e6652 (patch) | |
tree | 05820428028a09ab19d0acf221fb666b3f222fdc /libgcc/Makefile.in | |
parent | 2d8a60a63cafdd9930bdbfb2ec76c47d7d14cd45 (diff) | |
download | gcc-d39f7dc8d558ca31a661b02d08ff090ce65e6652.zip gcc-d39f7dc8d558ca31a661b02d08ff090ce65e6652.tar.gz gcc-d39f7dc8d558ca31a661b02d08ff090ce65e6652.tar.bz2 |
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.
Diffstat (limited to 'libgcc/Makefile.in')
-rw-r--r-- | libgcc/Makefile.in | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libgcc/Makefile.in b/libgcc/Makefile.in index 851e765..e6ed153 100644 --- a/libgcc/Makefile.in +++ b/libgcc/Makefile.in @@ -906,7 +906,8 @@ LIBGCOV_PROFILER = _gcov_interval_profiler \ _gcov_time_profiler LIBGCOV_INTERFACE = _gcov_dump _gcov_flush _gcov_fork \ _gcov_execl _gcov_execlp \ - _gcov_execle _gcov_execv _gcov_execvp _gcov_execve _gcov_reset + _gcov_execle _gcov_execv _gcov_execvp _gcov_execve _gcov_reset \ + _gcov_lock_unlock LIBGCOV_DRIVER = _gcov libgcov-merge-objects = $(patsubst %,%$(objext),$(LIBGCOV_MERGE)) |