From 4a198dea280ea52235713b009c161fce6460aea3 Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Fri, 24 Sep 2004 12:17:41 +0000 Subject: [PATCH] tree-ssa-dom.c (record_range): Fix violation of strict aliasing rules. * tree-ssa-dom.c (record_range): Fix violation of strict aliasing rules. From-SVN: r88029 --- gcc/ChangeLog | 5 +++++ gcc/tree-ssa-dom.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index fa3fac7d33e..b2f6bf779d6 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2004-09-24 Andreas Schwab + + * tree-ssa-dom.c (record_range): Fix violation of strict aliasing + rules. + 2004-09-24 Eric Botcazou * config.gcc (sparc64-*-solaris2*): Include sparc/sol2-gas.h diff --git a/gcc/tree-ssa-dom.c b/gcc/tree-ssa-dom.c index 6c0cb785e1b..97ee1997515 100644 --- a/gcc/tree-ssa-dom.c +++ b/gcc/tree-ssa-dom.c @@ -3004,9 +3004,9 @@ record_range (tree cond, basic_block bb) slot = htab_find_slot (vrp_data, vrp_hash_elt, INSERT); if (*slot == NULL) - *slot = (void *)vrp_hash_elt; + *slot = (void *) vrp_hash_elt; - vrp_hash_elt = *(struct vrp_hash_elt **)slot; + vrp_hash_elt = (struct vrp_hash_elt *) *slot; vrp_records_p = &vrp_hash_elt->records; element = ggc_alloc (sizeof (struct vrp_element)); -- 2.30.2