Make direct emission of time profiler counter
authorMartin Liska <mliska@suse.cz>
Thu, 3 Nov 2016 15:24:22 +0000 (16:24 +0100)
committerMartin Liska <marxin@gcc.gnu.org>
Thu, 3 Nov 2016 15:24:22 +0000 (15:24 +0000)
commit7d29f8e3dc105bcc948377a3c68250f555119d8c
treec52598610873862306ffb6e9daafae7f170aa0f9
parent5de3e2d862e02f7b0c8efe8fbec2c15592302ba9
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
gcc/ChangeLog
gcc/profile.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/no_profile_instrument_function-attr-1.c
gcc/testsuite/gcc.dg/tree-prof/time-profiler-3.c [new file with mode: 0644]
gcc/tree-profile.c
gcc/value-prof.h
libgcc/ChangeLog
libgcc/libgcov-profiler.c