summaryrefslogtreecommitdiff
path: root/gcc/coverage.h
diff options
context:
space:
mode:
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2008-03-08 20:52:50 +0000
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2008-03-08 20:52:50 +0000
commita961cdc2c8dc3499be1e378f8e78cbd3248494db (patch)
treea11f8cead0a4695e09503341eb0a32f9c0b9d922 /gcc/coverage.h
parent5840094dec3166817b8330c31fc7f6efb92353c1 (diff)
downloadgcc-a961cdc2c8dc3499be1e378f8e78cbd3248494db.tar.gz
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@133041 138bc75d-0d04-0410-961f-82ee72b054a4
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 9fa25f1e2fe..bf9917d5280 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*/,