]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fix slowness in gcov (PR gcov-profile/88225).
authormarxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 27 Dec 2018 08:59:35 +0000 (08:59 +0000)
committermarxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 27 Dec 2018 08:59:35 +0000 (08:59 +0000)
commit68868877b3a0d59ef072e8fafe13196a75d03059
tree7654f343d6eda4fb6c4fbb9733a4154798f37342
parent24c9d723f19a297788019ef070bb4c54c3b49c14
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@267431 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/gcov.c