diff options
author | Indu Bhagat <indu.bhagat@oracle.com> | 2018-11-30 23:54:30 +0000 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 2018-11-30 16:54:30 -0700 |
commit | 732779d073130387365b25f83f1c5266382e3db7 (patch) | |
tree | bcacefdd7dad2b72eb700dc648e60fa0ca518648 /gcc/coverage.c | |
parent | 4df6a9063433b4f47a2f49535b448408a9dd6b94 (diff) | |
download | gcc-732779d073130387365b25f83f1c5266382e3db7.zip gcc-732779d073130387365b25f83f1c5266382e3db7.tar.gz gcc-732779d073130387365b25f83f1c5266382e3db7.tar.bz2 |
coverage.c (get_coverage_counts): Use from_function_decl for precise function location.
* coverage.c (get_coverage_counts): Use from_function_decl for precise
function location.
* profile-count.c (profile_count::dump): Add handling for precise
profile quality.
* profile.c (compute_branch_probabilities): Rely on exec_counts instead
of profile_info to set profile_status of function.
(branch_prob): Do not set profile_status of function based on
profile_info. Done above based on exec_counts.
From-SVN: r266702
Diffstat (limited to 'gcc/coverage.c')
-rw-r--r-- | gcc/coverage.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/coverage.c b/gcc/coverage.c index f0cbc1e..9dc1cae 100644 --- a/gcc/coverage.c +++ b/gcc/coverage.c @@ -358,7 +358,7 @@ get_coverage_counts (unsigned counter, unsigned cfg_checksum, if (warning_printed && dump_enabled_p ()) { dump_user_location_t loc - = dump_user_location_t::from_location_t (input_location); + = dump_user_location_t::from_function_decl (current_function_decl); dump_printf_loc (MSG_MISSED_OPTIMIZATION, loc, "use -Wno-error=coverage-mismatch to tolerate " "the mismatch but performance may drop if the " |