summaryrefslogtreecommitdiff
path: root/gcc/ira-costs.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/ira-costs.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/ira-costs.c')
-rw-r--r--gcc/ira-costs.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/gcc/ira-costs.c b/gcc/ira-costs.c
index 972978d603a..0d39215b047 100644
--- a/gcc/ira-costs.c
+++ b/gcc/ira-costs.c
@@ -147,10 +147,8 @@ static cost_classes_t *regno_cost_classes;
/* Helper for cost_classes hashing. */
-struct cost_classes_hasher
+struct cost_classes_hasher : pointer_hash <cost_classes>
{
- typedef cost_classes *value_type;
- typedef cost_classes *compare_type;
static inline hashval_t hash (const cost_classes *);
static inline bool equal (const cost_classes *, const cost_classes *);
static inline void remove (cost_classes *);