gcov.c: Tidy.
authorNathan Sidwell <nathan@codesourcery.com>
Tue, 6 Aug 2002 23:18:01 +0000 (23:18 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Tue, 6 Aug 2002 23:18:01 +0000 (23:18 +0000)
commit8b219a762a962a9776603018672c9a6cdaf95a2d
tree89c319efbd67ad85a2d028e73c438ca01caeb9b2
parent317e98c03736c282263fb3544d7ed6095b842e24
gcov.c: Tidy.

* gcov.c: Tidy.
(struct line_info, struct coverage): New structures.
(gcov_file_name, gcov_file): Remove globals.
(output_data): Take source file parameter. Fix memory leak. Break
up into ...
(init_line_info, output_line_info, make_gcov_file_name,
accumulate_branch_counts): ... here.
(calculate_branch_probs, function_summary): Adjust.
(main): Adjust.
(function_*): Remove global variables.

From-SVN: r56080
gcc/ChangeLog
gcc/gcov.c