diff options
author | Martin Liska <mliska@suse.cz> | 2018-12-27 09:59:35 +0100 |
---|---|---|
committer | Martin Liska <marxin@gcc.gnu.org> | 2018-12-27 08:59:35 +0000 |
commit | 596883039a3e90fef3aa597d7d5ebae467543e39 (patch) | |
tree | 7654f343d6eda4fb6c4fbb9733a4154798f37342 /gcc/fortran/expr.c | |
parent | 42bdb8f24940aa932e73feda2750e0e80c018441 (diff) | |
download | gcc-596883039a3e90fef3aa597d7d5ebae467543e39.zip gcc-596883039a3e90fef3aa597d7d5ebae467543e39.tar.gz gcc-596883039a3e90fef3aa597d7d5ebae467543e39.tar.bz2 |
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
Diffstat (limited to 'gcc/fortran/expr.c')
0 files changed, 0 insertions, 0 deletions