aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/gcov-tool.c5
2 files changed, 9 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 20eda93..00b4cf1 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2014-07-23 Nathan Sidwell <nathan@acm.org>
+
+ * gcov-tool.c (gcov_list): Declare here.
+ (set_gcov_list): Remove.
+ (gcov_output_files): Set gcov_list directly.
+
2014-07-23 Host Schirmeier <horst@schirmeier.com>
* doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
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);