aboutsummaryrefslogtreecommitdiff
path: root/gcc/statistics.c
diff options
context:
space:
mode:
authorRichard Sandiford <richard.sandiford@arm.com>2015-06-25 17:06:52 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2015-06-25 17:06:52 +0000
commit7edd9b154d9f03c1006722aff36caa0955198c31 (patch)
treeafd045214ddfed54f05d40c03903e01c1702cef3 /gcc/statistics.c
parent6c907cff668b1c4bf305b1988d99acbf841f6f52 (diff)
downloadgcc-7edd9b154d9f03c1006722aff36caa0955198c31.zip
gcc-7edd9b154d9f03c1006722aff36caa0955198c31.tar.gz
gcc-7edd9b154d9f03c1006722aff36caa0955198c31.tar.bz2
cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash.
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. From-SVN: r224961
Diffstat (limited to 'gcc/statistics.c')
-rw-r--r--gcc/statistics.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/gcc/statistics.c b/gcc/statistics.c
index 233926d..97884fa 100644
--- a/gcc/statistics.c
+++ b/gcc/statistics.c
@@ -46,10 +46,8 @@ typedef struct statistics_counter_s {
/* Hashtable helpers. */
-struct stats_counter_hasher
+struct stats_counter_hasher : pointer_hash <statistics_counter_t>
{
- typedef statistics_counter_t *value_type;
- typedef statistics_counter_t *compare_type;
static inline hashval_t hash (const statistics_counter_t *);
static inline bool equal (const statistics_counter_t *,
const statistics_counter_t *);