diff options
author | Richard Guenther <rguenther@suse.de> | 2008-03-08 20:52:50 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2008-03-08 20:52:50 +0000 |
commit | fc9161c19fe6c9301224cc856ea2d29561364e46 (patch) | |
tree | a11f8cead0a4695e09503341eb0a32f9c0b9d922 /gcc/coverage.h | |
parent | 892f6e652e935a3ea26713d709b7268dd38a5b2e (diff) | |
download | gcc-fc9161c19fe6c9301224cc856ea2d29561364e46.zip gcc-fc9161c19fe6c9301224cc856ea2d29561364e46.tar.gz gcc-fc9161c19fe6c9301224cc856ea2d29561364e46.tar.bz2 |
coverage.h (tree_coverage_counter_addr): Declare.
2008-03-08 Richard Guenther <rguenther@suse.de>
* coverage.h (tree_coverage_counter_addr): Declare.
* coverage.c (tree_coverage_counter_addr): New function.
* tree-profile.c (tree_gen_edge_profiler): Unshare counter
before using again.
(tree_gen_pow2_profiler): Use tree_coverage_counter_addr.
(tree_gen_one_value_profiler): Likewise.
(tree_gen_ic_profiler): Likewise.
(tree_gen_average_profiler): Likewise.
(tree_gen_ior_profiler): Likewise.
From-SVN: r133041
Diffstat (limited to 'gcc/coverage.h')
-rw-r--r-- | gcc/coverage.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/coverage.h b/gcc/coverage.h index 9fa25f1..bf9917d 100644 --- a/gcc/coverage.h +++ b/gcc/coverage.h @@ -38,6 +38,8 @@ extern int coverage_begin_output (void); extern int coverage_counter_alloc (unsigned /*counter*/, unsigned/*num*/); /* Use a counter from the most recent allocation. */ extern tree tree_coverage_counter_ref (unsigned /*counter*/, unsigned/*num*/); +/* Use a counter address from the most recent allocation. */ +extern tree tree_coverage_counter_addr (unsigned /*counter*/, unsigned/*num*/); /* Get all the counters for the current function. */ extern gcov_type *get_coverage_counts (unsigned /*counter*/, |