Fix slowness in gcov (PR gcov-profile/88225).
authorMartin Liska <mliska@suse.cz>
Thu, 27 Dec 2018 08:59:35 +0000 (09:59 +0100)
committerMartin Liska <marxin@gcc.gnu.org>
Thu, 27 Dec 2018 08:59:35 +0000 (08:59 +0000)
commit596883039a3e90fef3aa597d7d5ebae467543e39
tree7654f343d6eda4fb6c4fbb9733a4154798f37342
parent42bdb8f24940aa932e73feda2750e0e80c018441
Fix slowness in gcov (PR gcov-profile/88225).

2018-12-27  Martin Liska  <mliska@suse.cz>

PR gcov-profile/88225
* gcov.c(source_info::get_functions_at_location):
Use newly added line_to_function_map.
(source_info::add_function): New.
(output_json_intermediate_file): Use a pointer return
type for get_functions_at_location.
(process_all_functions): Use add_function instead
of direct push to a s->functions container.
(release_structures): Release ident_to_fn.
(read_graph_file): Register function into ident_to_fn.
(read_count_file): Use the map.
(output_lines): Handle pointer return type of
get_functions_at_location.

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