aboutsummaryrefslogtreecommitdiff
path: root/gcc/coverage.h
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2008-03-08 20:52:50 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2008-03-08 20:52:50 +0000
commitfc9161c19fe6c9301224cc856ea2d29561364e46 (patch)
treea11f8cead0a4695e09503341eb0a32f9c0b9d922 /gcc/coverage.h
parent892f6e652e935a3ea26713d709b7268dd38a5b2e (diff)
downloadgcc-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.h2
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*/,