Simplify representation of locations of a block.
authorMartin Liska <mliska@suse.cz>
Fri, 28 Apr 2017 12:50:29 +0000 (14:50 +0200)
committerMartin Liska <marxin@gcc.gnu.org>
Fri, 28 Apr 2017 12:50:29 +0000 (12:50 +0000)
commit0790260e7ce01b4fb1f2f51da17d6769b289a003
tree00193b02d7b165adbaac47b7c22ff530c043bbbd
parent4ebcdc237376106b055412dfa71cbb0ca8c877e9
Simplify representation of locations of a block.

2017-04-28  Martin Liska  <mliska@suse.cz>

* gcov.c (struct block_location_info): New struct.
(process_file): Fill up the new structure.
(read_graph_file): Replace usage of encoding by the newly added
struct.
(add_line_counts): Likewise.
(accumulate_line_counts): Remove usage of the union.
(function_info::function_info): New function.
(function_info::~function_info): Likewise.
(process_file): Call delete instead of release_function.
(release_function): Release the function.
(release_structures): Call delete instead of release_function.
(solve_flow_graph): Replace usage of num_blocks.
(find_exception_blocks): Likewise.
(output_lines): Fix GNU coding style.

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