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
This commit is contained in:
Andreas Schwab 2004-09-24 12:17:41 +00:00 committed by Andreas Schwab
parent 667196047f
commit 4a198dea28
2 changed files with 7 additions and 2 deletions

View 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

View 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));