diff options
Diffstat (limited to 'gcc/dse.c')
-rw-r--r-- | gcc/dse.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gcc/dse.c b/gcc/dse.c index 1f7588df347..3839f947269 100644 --- a/gcc/dse.c +++ b/gcc/dse.c @@ -441,6 +441,7 @@ struct group_info int offset_map_size_n, offset_map_size_p; }; typedef struct group_info *group_info_t; +typedef const struct group_info *const_group_info_t; static alloc_pool rtx_group_info_pool; /* Tables of group_info structures, hashed by base value. */ @@ -575,8 +576,8 @@ clear_alias_set_lookup (HOST_WIDE_INT alias_set) static int invariant_group_base_eq (const void *p1, const void *p2) { - const group_info_t gi1 = (const group_info_t) p1; - const group_info_t gi2 = (const group_info_t) p2; + const_group_info_t gi1 = (const_group_info_t) p1; + const_group_info_t gi2 = (const_group_info_t) p2; return rtx_equal_p (gi1->rtx_base, gi2->rtx_base); } @@ -584,7 +585,7 @@ invariant_group_base_eq (const void *p1, const void *p2) static hashval_t invariant_group_base_hash (const void *p) { - const group_info_t gi = (const group_info_t) p; + const_group_info_t gi = (const_group_info_t) p; int do_not_record; return hash_rtx (gi->rtx_base, Pmode, &do_not_record, NULL, false); } |