aboutsummaryrefslogtreecommitdiff
path: root/gcc/profile.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/profile.c')
-rw-r--r--gcc/profile.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/profile.c b/gcc/profile.c
index ff85544..5a0cc60 100644
--- a/gcc/profile.c
+++ b/gcc/profile.c
@@ -1095,7 +1095,11 @@ branch_prob (void)
if (profile_arc_flag
&& coverage_counter_alloc (GCOV_COUNTER_ARCS, num_instrumented))
{
- unsigned n_instrumented = instrument_edges (el);
+ unsigned n_instrumented;
+
+ profile_hooks->init_edge_profiler ();
+
+ n_instrumented = instrument_edges (el);
if (n_instrumented != num_instrumented)
abort ();