diff options
author | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-10-28 16:19:26 +0000 |
---|---|---|
committer | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-10-28 16:19:26 +0000 |
commit | 4b0a9554ad900aa505ed8774de9ac4d700c93234 (patch) | |
tree | 5b78eb120055abb834a6216175418c0de85cefd4 /gcc/profile.c | |
parent | 4ae7d3a8b0dd16f89cf76f91c8052308987f45e2 (diff) | |
download | gcc-4b0a9554ad900aa505ed8774de9ac4d700c93234.tar.gz |
* profile.c (branch_prob): Call to init_edge_profiler added.
* rtl-profile.c (rtl_init_edge_profiler): New function.
(rtl_gen_edge_profiler): Replaced call to insert_insn_on_edge with
call to safe_insert_insn_on_edge.
(rtl_profile_hooks): rtl_init_edge_profiler added.
* tree-profile.c (tree_init_edge_profiler): New function.
(tree_profile_hooks): tree_init_edge_profiler added.
* value-prof.h (profile_hooks) init_edge_profiler prototype added.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@89764 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/profile.c')
-rw-r--r-- | gcc/profile.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/profile.c b/gcc/profile.c index ff85544e595..5a0cc60cfdc 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 (); |