Add overlap functionality to gcov-tool.
authorRong Xu <xur@google.com>
Wed, 8 Oct 2014 21:51:41 +0000 (21:51 +0000)
committerRong Xu <xur@gcc.gnu.org>
Wed, 8 Oct 2014 21:51:41 +0000 (21:51 +0000)
commit9b84e7a8365e61211975aceec67d086aceee0c58
treea5055f5dbc707735c59ee18b1ffc1a4a658b4ca5
parenta41bb2c947782287f983daac7807f0e0e4ef4b65
Add overlap functionality to gcov-tool.

2014-10-08  Rong Xu  <xur@google.com>

* gcc/gcov-tool.c (profile_overlap): New driver function
        to compute profile overlap.
(print_overlap_usage_message): New.
(overlap_usage): New.
(do_overlap): New.
(print_usage): Add calls to overlap function.
(main): Ditto.
* libgcc/libgcov-util.c (read_gcda_file): Fix format.
(find_match_gcov_info): Ditto.
(calculate_2_entries): New.
(compute_one_gcov): Ditto.
(gcov_info_count_all_cold): Ditto.
(gcov_info_count_all_zero): Ditto.
(extract_file_basename): Ditto.
(get_file_basename): Ditto.
(set_flag): Ditto.
(matched_gcov_info): Ditto.
(calculate_overlap): Ditto.
(gcov_profile_overlap): Ditto.
* libgcc/libgcov-driver.c (compute_summary): Make
        it avavilable for external calls.
* gcc/doc/gcov-tool.texi: Add documentation.

From-SVN: r216015
gcc/ChangeLog
gcc/doc/gcov-tool.texi
gcc/gcov-tool.c
libgcc/ChangeLog
libgcc/libgcov-driver.c
libgcc/libgcov-util.c