[GCOV] Add all blocks mode, and function summaries
Nathan Sidwell
nathan@codesourcery.com
Thu Mar 27 13:32:00 GMT 2003
whoops,
2003-03-27 Nathan Sidwell <nathan@codesourcery.com>
* gcov.c: Add -a option.
(struct arc_info): Add local_span.
(struct block_info): Add flags member. Make encodings a union with
span member.
(struct function_info): Add line, src, line_next members.
(struct coverage_info): Make branches a union with blocks member.
(struct source_info): Add functions member.
(object_summary, program_count): New global variables.
(flag_all_blocks): New flag.
(find_source, output_branch_count): New functions.
(print_usage): Adjust.
(options): Adjust.
(process_args): Adjust.
(read_graph_file) <GCOV_TAG_FUNCTION>: Adjust.
<GCOV_TAG_BLOCKS>: Read flags.
<GCOV_TAG_LINES>: Adjust.
(read_count_file): Process SUMMARY tags.
(add_line_counts): Deal with all-blocks mode.
(accumulate_line_counts): Adjust, generate local spanning tree for
all-blocks mode.
(output_lines): Adjust.
* profile.c (branch_prob): Alter GCOV_FUNCTION_TAG record.
* doc/gcov.texi: Document.
--
Nathan Sidwell :: http://www.codesourcery.com :: CodeSourcery LLC
The voices in my head said this was stupid too
nathan@codesourcery.com : http://www.cs.bris.ac.uk/~nathan/ : nathan@acm.org
More information about the Gcc-patches
mailing list