tree-ssa-dom.c (record_range): Fix violation of strict aliasing rules.
authorAndreas Schwab <schwab@suse.de>
Fri, 24 Sep 2004 12:17:41 +0000 (12:17 +0000)
committerAndreas Schwab <schwab@gcc.gnu.org>
Fri, 24 Sep 2004 12:17:41 +0000 (12:17 +0000)
* tree-ssa-dom.c (record_range): Fix violation of strict aliasing
rules.

From-SVN: r88029

gcc/ChangeLog
gcc/tree-ssa-dom.c

index fa3fac7d33ecb4f803e5bf339fa6b268573bf7d7..b2f6bf779d691c8f215c9596190bc5d795e7fda5 100644 (file)
@@ -1,3 +1,8 @@
+2004-09-24  Andreas Schwab  <schwab@suse.de>
+
+       * tree-ssa-dom.c (record_range): Fix violation of strict aliasing
+       rules.
+
 2004-09-24  Eric Botcazou  <ebotcazou@libertysurf.fr>
 
        * config.gcc (sparc64-*-solaris2*): Include sparc/sol2-gas.h
index 6c0cb785e1ba5e51950019212943124a55ff5e61..97ee199751533732bb88ca930c39fda376816079 100644 (file)
@@ -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));