summaryrefslogtreecommitdiff
path: root/gcc/coverage.c
diff options
context:
space:
mode:
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>2015-06-25 17:06:52 +0000
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>2015-06-25 17:06:52 +0000
commit576d4555940264b594088f94d3c4b78d1f72bbb8 (patch)
treeafd045214ddfed54f05d40c03903e01c1702cef3 /gcc/coverage.c
parenteae1ecb4918474af2840cd4b8b5657eb4fe46df7 (diff)
downloadgcc-576d4555940264b594088f94d3c4b78d1f72bbb8.tar.gz
gcc/
* cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash. Remove redundant typedefs and members. * coverage.c (counts_entry): Inherit from pointer_hash. Remove redundant typedefs. * dwarf2out.c (cu_hash_table_entry_hasher): Likewise. * ipa-devirt.c (odr_name_hasher): Likewise. (polymorphic_call_target_hasher): Likewise. * ira-costs.c (cost_classes_hasher): Likewise. * statistics.c (stats_counter_hasher): Likewise. * trans-mem.c (log_entry_hasher): Likewise. * tree-ssa-dom.c (expr_elt_hasher): Likewise. * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise. * tree-ssa-tail-merge.c (same_succ_def): Likewise. * var-tracking.c (variable_hasher): Likewise. * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash. Remove redundant typedefs and members. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@224961 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/coverage.c')
-rw-r--r--gcc/coverage.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/gcc/coverage.c b/gcc/coverage.c
index 40d788f368c..a9c5e86b331 100644
--- a/gcc/coverage.c
+++ b/gcc/coverage.c
@@ -86,7 +86,7 @@ struct GTY((chain_next ("%h.next"))) coverage_data
};
/* Counts information for a function. */
-typedef struct counts_entry
+typedef struct counts_entry : pointer_hash <counts_entry>
{
/* We hash by */
unsigned ident;
@@ -99,8 +99,6 @@ typedef struct counts_entry
struct gcov_ctr_summary summary;
/* hash_table support. */
- typedef counts_entry *value_type;
- typedef counts_entry *compare_type;
static inline hashval_t hash (const counts_entry *);
static int equal (const counts_entry *, const counts_entry *);
static void remove (counts_entry *);