diff options
author | nathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-08-01 10:05:42 +0000 |
---|---|---|
committer | nathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-08-01 10:05:42 +0000 |
commit | cb3ea3deaa7ac8dcb1d65eb1ef7e4b4a2d5ed376 (patch) | |
tree | 8e8e30935e1249bb36ac049299e6fb8117983da3 /libgcc/libgcov-interface.c | |
parent | 9c8f71d4dc276f3ae565da139fee5df912608f77 (diff) |
* Makefile.in (LIBGCOV_MERGE, LIBGCOV_PROFILER,
LIBGCOV_INTERFACE): Reformat.
* libgcov-driver.c (gcov_exit, __gcov_init): Disable when
IN_GCOV_TOOL.
* libgcov-interface.c: Reformat some comments.
(__gcov_flush_mx): Add declaration. Tidy up definition.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@213442 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgcc/libgcov-interface.c')
-rw-r--r-- | libgcc/libgcov-interface.c | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/libgcc/libgcov-interface.c b/libgcc/libgcov-interface.c index a1a91f2567c2..d4a7f50c22fa 100644 --- a/libgcc/libgcov-interface.c +++ b/libgcc/libgcov-interface.c @@ -44,20 +44,21 @@ void __gcov_dump (void) {} extern void gcov_clear (void) ATTRIBUTE_HIDDEN; extern void gcov_exit (void) ATTRIBUTE_HIDDEN; +extern __gthread_mutex_t __gcov_flush_mx ATTRIBUTE_HIDDEN; #ifdef L_gcov_flush - #ifdef __GTHREAD_MUTEX_INIT -ATTRIBUTE_HIDDEN __gthread_mutex_t __gcov_flush_mx = __GTHREAD_MUTEX_INIT; +__gthread_mutex_t __gcov_flush_mx = __GTHREAD_MUTEX_INIT; #define init_mx_once() #else -__gthread_mutex_t __gcov_flush_mx ATTRIBUTE_HIDDEN; +__gthread_mutex_t __gcov_flush_mx; static void init_mx (void) { __GTHREAD_MUTEX_INIT_FUNCTION (&__gcov_flush_mx); } + static void init_mx_once (void) { @@ -160,8 +161,8 @@ __gcov_execl (const char *path, char *arg, ...) #endif #ifdef L_gcov_execlp -/* A wrapper for the execlp function. Flushes the accumulated profiling data, so - that they are not lost. */ +/* A wrapper for the execlp function. Flushes the accumulated + profiling data, so that they are not lost. */ int __gcov_execlp (const char *path, char *arg, ...) @@ -191,8 +192,8 @@ __gcov_execlp (const char *path, char *arg, ...) #endif #ifdef L_gcov_execle -/* A wrapper for the execle function. Flushes the accumulated profiling data, so - that they are not lost. */ +/* A wrapper for the execle function. Flushes the accumulated + profiling data, so that they are not lost. */ int __gcov_execle (const char *path, char *arg, ...) @@ -224,8 +225,8 @@ __gcov_execle (const char *path, char *arg, ...) #endif #ifdef L_gcov_execv -/* A wrapper for the execv function. Flushes the accumulated profiling data, so - that they are not lost. */ +/* A wrapper for the execv function. Flushes the accumulated + profiling data, so that they are not lost. */ int __gcov_execv (const char *path, char *const argv[]) @@ -236,8 +237,8 @@ __gcov_execv (const char *path, char *const argv[]) #endif #ifdef L_gcov_execvp -/* A wrapper for the execvp function. Flushes the accumulated profiling data, so - that they are not lost. */ +/* A wrapper for the execvp function. Flushes the accumulated + profiling data, so that they are not lost. */ int __gcov_execvp (const char *path, char *const argv[]) @@ -248,8 +249,8 @@ __gcov_execvp (const char *path, char *const argv[]) #endif #ifdef L_gcov_execve -/* A wrapper for the execve function. Flushes the accumulated profiling data, so - that they are not lost. */ +/* A wrapper for the execve function. Flushes the accumulated + profiling data, so that they are not lost. */ int __gcov_execve (const char *path, char *const argv[], char *const envp[]) |