OSDN Git Service

* tree-ssa-dom.c (record_range): Fix violation of strict aliasing
authorschwab <schwab@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 24 Sep 2004 12:17:41 +0000 (12:17 +0000)
committerschwab <schwab@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 24 Sep 2004 12:17:41 +0000 (12:17 +0000)
rules.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@88029 138bc75d-0d04-0410-961f-82ee72b054a4

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

index fa3fac7..b2f6bf7 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 6c0cb78..97ee199 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));