summaryrefslogtreecommitdiff
path: root/gcc/gcov-tool.c
diff options
context:
space:
mode:
authornathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>2014-07-23 12:08:31 +0000
committernathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>2014-07-23 12:08:31 +0000
commit145d88ea1883c5fd7164794f71f1e9b0bd2c08f7 (patch)
tree8d19e93cc094b67e3c1999bd026accb03fd32680 /gcc/gcov-tool.c
parent3f4aa4e18025b6d92add7c51d7f30f48f6ba8639 (diff)
downloadgcc-145d88ea1883c5fd7164794f71f1e9b0bd2c08f7.tar.gz
gcc/
* gcov-tool.c (gcov_list): Declare here. (set_gcov_list): Remove. (gcov_output_files): Set gcov_list directly. libgcc/ * libgcov-driver.c (set_gcov_list): Remove. (gcov_list): Make non-static in GCOV_TOOL. * libgcov.h (GCOV_TOOL_LINKAGE): Remove unused #define. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@212931 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/gcov-tool.c')
-rw-r--r--gcc/gcov-tool.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/gcov-tool.c b/gcc/gcov-tool.c
index 71331cab9d1..07b7bfa451d 100644
--- a/gcc/gcov-tool.c
+++ b/gcc/gcov-tool.c
@@ -38,12 +38,13 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
#include <ftw.h>
#include <getopt.h>
+extern struct gcov_info *gcov_list;
+
extern int gcov_profile_merge (struct gcov_info*, struct gcov_info*, int, int);
extern int gcov_profile_normalize (struct gcov_info*, gcov_type);
extern int gcov_profile_scale (struct gcov_info*, float, int, int);
extern struct gcov_info* gcov_read_profile_dir (const char*, int);
extern void gcov_exit (void);
-extern void set_gcov_list (struct gcov_info *);
extern void gcov_set_verbose (void);
/* Set to verbose output mode. */
@@ -109,7 +110,7 @@ gcov_output_files (const char *out, struct gcov_info *profile)
if (ret)
fatal_error ("Cannot change directory to %s", out);
- set_gcov_list (profile);
+ gcov_list = profile;
gcov_exit ();
ret = chdir (pwd);