aboutsummaryrefslogtreecommitdiff
path: root/gcc/gcov-tool.c
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@acm.org>2014-07-23 12:08:31 +0000
committerNathan Sidwell <nathan@gcc.gnu.org>2014-07-23 12:08:31 +0000
commitd10ee722fd82c07ada865db142fffec1a992295b (patch)
tree8d19e93cc094b67e3c1999bd026accb03fd32680 /gcc/gcov-tool.c
parentda03858bf025666c6fad437b833be11ca9badd54 (diff)
downloadgcc-d10ee722fd82c07ada865db142fffec1a992295b.zip
gcc-d10ee722fd82c07ada865db142fffec1a992295b.tar.gz
gcc-d10ee722fd82c07ada865db142fffec1a992295b.tar.bz2
gcov-tool.c (gcov_list): Declare here.
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. From-SVN: r212931
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 71331ca..07b7bfa 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);