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
This commit is contained in:
Nathan Sidwell 2002-08-06 23:18:01 +00:00 committed by Nathan Sidwell
parent 317e98c037
commit 8b219a762a
2 changed files with 495 additions and 511 deletions

View File

@ -1,3 +1,16 @@
2002-08-06 Nathan Sidwell <nathan@codesourcery.com>
* 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.
2002-08-06 Neil Booth <neil@daikokuya.co.uk>
* dwarf2out.c: Remove unused macros.

File diff suppressed because it is too large Load Diff