diff options
author | Nathan Sidwell <nathan@acm.org> | 2014-08-01 10:05:42 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@gcc.gnu.org> | 2014-08-01 10:05:42 +0000 |
commit | b98a872b2227a0a075cce2549db7bb415fe6e083 (patch) | |
tree | 8e8e30935e1249bb36ac049299e6fb8117983da3 /libgcc/libgcov-interface.c | |
parent | 4d49c6e1495d4fb524123042ef1e52738b699733 (diff) | |
download | gcc-b98a872b2227a0a075cce2549db7bb415fe6e083.zip gcc-b98a872b2227a0a075cce2549db7bb415fe6e083.tar.gz gcc-b98a872b2227a0a075cce2549db7bb415fe6e083.tar.bz2 |
Makefile.in (LIBGCOV_MERGE, [...]): Reformat.
* 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.
From-SVN: r213442
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 a1a91f2..d4a7f50 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[]) |