aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>2015-09-14 14:10:30 -0600
committerJeff Law <law@gcc.gnu.org>2015-09-14 14:10:30 -0600
commit55133eae28369f6e56a0b61f230df3b06beef769 (patch)
tree90dde7843e3e475664134ad02b73c2d6053b93fc /gcc
parent65440c482af0345046416641750df7897c33dc49 (diff)
downloadgcc-55133eae28369f6e56a0b61f230df3b06beef769.zip
gcc-55133eae28369f6e56a0b61f230df3b06beef769.tar.gz
gcc-55133eae28369f6e56a0b61f230df3b06beef769.tar.bz2
[PATCH] Minor DOM cleanup
PR tree-optimization/47679 * tree-ssa-dom.c (avail_expr_hash): Pass a pointer to a real type rather than void *. From-SVN: r227762
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/tree-ssa-dom.c6
2 files changed, 9 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index f731a1f..29029c2 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2015-09-14 Jeff Law <law@redhat.com>
+
+ PR tree-optimization/47679
+ * tree-ssa-dom.c (avail_expr_hash): Pass a pointer to a real
+ type rather than void *.
+
2015-09-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
PR fortran/67460
diff --git a/gcc/tree-ssa-dom.c b/gcc/tree-ssa-dom.c
index e3eb0db..248d24f 100644
--- a/gcc/tree-ssa-dom.c
+++ b/gcc/tree-ssa-dom.c
@@ -231,7 +231,7 @@ static struct opt_stats_d opt_stats;
/* Local functions. */
static void optimize_stmt (basic_block, gimple_stmt_iterator);
static tree lookup_avail_expr (gimple, bool);
-static hashval_t avail_expr_hash (const void *);
+static hashval_t avail_expr_hash (struct expr_hash_elt *);
static void htab_statistics (FILE *,
const hash_table<expr_elt_hasher> &);
static void record_cond (cond_equivalence *);
@@ -2661,9 +2661,9 @@ lookup_avail_expr (gimple stmt, bool insert)
its operands. */
static hashval_t
-avail_expr_hash (const void *p)
+avail_expr_hash (struct expr_hash_elt *p)
{
- const struct hashable_expr *expr = &((const struct expr_hash_elt *)p)->expr;
+ const struct hashable_expr *expr = &p->expr;
inchash::hash hstate;
inchash::add_hashable_expr (expr, hstate);