aboutsummaryrefslogtreecommitdiff
path: root/libgcc/libgcov-driver.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 /libgcc/libgcov-driver.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 'libgcc/libgcov-driver.c')
-rw-r--r--libgcc/libgcov-driver.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/libgcc/libgcov-driver.c b/libgcc/libgcov-driver.c
index 529f4de..cf38f52 100644
--- a/libgcc/libgcov-driver.c
+++ b/libgcc/libgcov-driver.c
@@ -54,7 +54,6 @@ extern void gcov_exit (void) ATTRIBUTE_HIDDEN;
extern void set_gcov_dump_complete (void) ATTRIBUTE_HIDDEN;
extern void reset_gcov_dump_complete (void) ATTRIBUTE_HIDDEN;
extern int get_gcov_dump_complete (void) ATTRIBUTE_HIDDEN;
-extern void set_gcov_list (struct gcov_info *) ATTRIBUTE_HIDDEN;
struct gcov_fn_buffer
{
@@ -71,14 +70,11 @@ struct gcov_summary_buffer
};
/* Chain of per-object gcov structures. */
-static struct gcov_info *gcov_list;
-
-/* Set the head of gcov_list. */
-void
-set_gcov_list (struct gcov_info *head)
-{
- gcov_list = head;
-}
+#ifndef IN_GCOV_TOOL
+/* We need to expose this static variable when compiling for gcov-tool. */
+static
+#endif
+struct gcov_info *gcov_list;
/* Size of the longest file name. */
/* We need to expose this static variable when compiling for gcov-tool. */