diff options
author | nathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-07-29 13:48:38 +0000 |
---|---|---|
committer | nathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-07-29 13:48:38 +0000 |
commit | 1186f97a1a6410d6166b1f5499c7e8af43d6681b (patch) | |
tree | a6a115ff7783aca4e43d8fcf658630bb5047a46c /gcc/gcov-tool.c | |
parent | b47d9d2fb810b5a5c95253f65195eb5a2cacd04b (diff) | |
download | gcc-1186f97a1a6410d6166b1f5499c7e8af43d6681b.tar.gz |
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).
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@213188 138bc75d-0d04-0410-961f-82ee72b054a4
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 07b7bfa451d..61e82a3dcb1 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) |