aboutsummaryrefslogtreecommitdiff
path: root/gcc/value-prof.c
diff options
context:
space:
mode:
authorJan Hubicka <hubicka@ucw.cz>2019-01-01 13:49:18 +0100
committerJan Hubicka <hubicka@gcc.gnu.org>2019-01-01 12:49:18 +0000
commit962e88a9f5a19736412f8b17b24464e2b700f002 (patch)
tree1f3f47a623168992283688de2d7a2a6b07341b11 /gcc/value-prof.c
parenta5544970246db337977bb8b69ab120e9ef209317 (diff)
downloadgcc-962e88a9f5a19736412f8b17b24464e2b700f002.zip
gcc-962e88a9f5a19736412f8b17b24464e2b700f002.tar.gz
gcc-962e88a9f5a19736412f8b17b24464e2b700f002.tar.bz2
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
Diffstat (limited to 'gcc/value-prof.c')
-rw-r--r--gcc/value-prof.c2
1 files changed, 1 insertions, 1 deletions
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<profile_id_hash, cgraph_node *>;
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)