From 732779d073130387365b25f83f1c5266382e3db7 Mon Sep 17 00:00:00 2001 From: Indu Bhagat Date: Fri, 30 Nov 2018 23:54:30 +0000 Subject: 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 --- gcc/coverage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/coverage.c') 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 " -- cgit v1.1