From 962e88a9f5a19736412f8b17b24464e2b700f002 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Tue, 1 Jan 2019 13:49:18 +0100 Subject: coverage.c (get_coverage_counts): Use current_function_decl. * coverage.c (get_coverage_counts): Use current_function_decl. * profile.c (read_thunk_profile): New function. (branch_prob): Add THUNK parameter. * tree-profile.c (tree_profiling): Handle thunks. * value-prof.c (init_node_map): Handle thunks. * value-prof.h (branch_prob): Upate prototype. (read_thunk_profile): Declare. * g++.dg/tree-prof/devirt.C: Update testcase. From-SVN: r267495 --- gcc/value-prof.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/value-prof.c') diff --git a/gcc/value-prof.c b/gcc/value-prof.c index fbca652..5013956 100644 --- a/gcc/value-prof.c +++ b/gcc/value-prof.c @@ -1188,7 +1188,7 @@ init_node_map (bool local) cgraph_node_map = new hash_map; FOR_EACH_DEFINED_FUNCTION (n) - if (n->has_gimple_body_p ()) + if (n->has_gimple_body_p () || n->thunk.thunk_p) { cgraph_node **val; if (local) -- cgit v1.1