diff options
author | Martin Liska <mliska@suse.cz> | 2016-11-03 16:24:22 +0100 |
---|---|---|
committer | Martin Liska <marxin@gcc.gnu.org> | 2016-11-03 15:24:22 +0000 |
commit | 7d29f8e3dc105bcc948377a3c68250f555119d8c (patch) | |
tree | c52598610873862306ffb6e9daafae7f170aa0f9 /gcc/value-prof.h | |
parent | 5de3e2d862e02f7b0c8efe8fbec2c15592302ba9 (diff) | |
download | gcc-7d29f8e3dc105bcc948377a3c68250f555119d8c.zip gcc-7d29f8e3dc105bcc948377a3c68250f555119d8c.tar.gz gcc-7d29f8e3dc105bcc948377a3c68250f555119d8c.tar.bz2 |
Make direct emission of time profiler counter
* libgcov-profiler.c (__gcov_time_profiler): Remove.
(__gcov_time_profiler_atomic): Likewise.
* profile.c (instrument_values): Fix coding style.
(branch_prob): Use renamed function.
* tree-profile.c (init_ic_make_global_vars): Likewise.
(gimple_init_edge_profiler): Rename to
gimple_init_gcov_profiler.
tree_time_profiler_counter variable declaration.
(gimple_gen_time_profiler): Rewrite to do a direct gimple code
emission.
* value-prof.h: Remove an argument.
* gcc.dg/no_profile_instrument_function-attr-1.c: Update scanned
output.
* gcc.dg/tree-prof/time-profiler-3.c: New test.
From-SVN: r241821
Diffstat (limited to 'gcc/value-prof.h')
-rw-r--r-- | gcc/value-prof.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/value-prof.h b/gcc/value-prof.h index 07e2b3b..02220ac 100644 --- a/gcc/value-prof.h +++ b/gcc/value-prof.h @@ -96,15 +96,14 @@ bool check_ic_target (gcall *, struct cgraph_node *); /* In tree-profile.c. */ -extern void gimple_init_edge_profiler (void); +extern void gimple_init_gcov_profiler (void); extern void gimple_gen_edge_profiler (int, edge); extern void gimple_gen_interval_profiler (histogram_value, unsigned, unsigned); extern void gimple_gen_pow2_profiler (histogram_value, unsigned, unsigned); extern void gimple_gen_one_value_profiler (histogram_value, unsigned, unsigned); extern void gimple_gen_ic_profiler (histogram_value, unsigned, unsigned); extern void gimple_gen_ic_func_profiler (void); -extern void gimple_gen_time_profiler (unsigned, unsigned, - gimple_stmt_iterator &); +extern void gimple_gen_time_profiler (unsigned, unsigned); extern void gimple_gen_average_profiler (histogram_value, unsigned, unsigned); extern void gimple_gen_ior_profiler (histogram_value, unsigned, unsigned); extern void stream_out_histogram_value (struct output_block *, histogram_value); |