diff options
author | Nathan Sidwell <nathan@gcc.gnu.org> | 2014-07-29 13:48:38 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@gcc.gnu.org> | 2014-07-29 13:48:38 +0000 |
commit | 19926161430467836188538c2ae0e967b3803659 (patch) | |
tree | a6a115ff7783aca4e43d8fcf658630bb5047a46c /gcc/gcov-tool.c | |
parent | 3808a9c7296e110a2ba0b40248445f043547b826 (diff) | |
download | gcc-19926161430467836188538c2ae0e967b3803659.zip gcc-19926161430467836188538c2ae0e967b3803659.tar.gz gcc-19926161430467836188538c2ae0e967b3803659.tar.bz2 |
libgcov.h: Move renaming of entry points to lib gcov specific portion.
libgcc/
* libgcov.h: Move renaming of entry points to lib gcov specific
portion.
(gcov_do_dump): New rename.
(gcov_rewrite): Remove inline, make HIDDEN.
* libgcov-driver.c (gcov_clear, gcov_exit): Remove declarations.
(gcov_exit_compute_summary): Rename to ...
(compute_summary): ... here. Add LIST argument.
(gcov_exit_merge_gcda): Rename to ...
(merge_one_data): ... here.
(gcov_exit_write_gcda): Rename to ...
(write_one_data): ... here.
(gcov_exit_merge_summary): Rename to ...
(merge_summary): Add RUN_COUNTED argument.
(gcov_exit_dump_gcov): Rename to ...
(dump_one_gcov): Add RUN_COUNTED argument.
(gcov_do_dump): New function, broken out of ...
(gcov_exit): ... here. Call it.
gcc/
* gcov-io.c (gcov_var): Make hidden.
* gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
(gcov_do_dump): Declare.
(gcov_output_files): Call gcov_do_dump, not gcov_exit).
From-SVN: r213188
Diffstat (limited to 'gcc/gcov-tool.c')
-rw-r--r-- | gcc/gcov-tool.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/gcc/gcov-tool.c b/gcc/gcov-tool.c index 07b7bfa..61e82a3 100644 --- a/gcc/gcov-tool.c +++ b/gcc/gcov-tool.c @@ -38,13 +38,11 @@ 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 gcov_do_dump (struct gcov_info *, int); extern void gcov_set_verbose (void); /* Set to verbose output mode. */ @@ -110,8 +108,7 @@ gcov_output_files (const char *out, struct gcov_info *profile) if (ret) fatal_error ("Cannot change directory to %s", out); - gcov_list = profile; - gcov_exit (); + gcov_do_dump (profile, 0); ret = chdir (pwd); if (ret) |