Commit 0043f606 by Alexandre Oliva Committed by Alexandre Oliva

* tree.c (type_hash_add): Don't violate strict aliasing rules.

From-SVN: r130429
parent 6e0b7c70
2007-11-26 Alexandre Oliva <aoliva@redhat.com>
* tree.c (type_hash_add): Don't violate strict aliasing rules.
2007-11-26 Alexandre Oliva <aoliva@redhat.com>
PR c/27898
* c-typeck.c (tagged_types_tu_compatible_p): Enable exact
matches between anonymous union fields.
......@@ -4677,7 +4677,7 @@ type_hash_add (hashval_t hashcode, tree type)
h->hash = hashcode;
h->type = type;
loc = htab_find_slot_with_hash (type_hash_table, h, hashcode, INSERT);
*(struct type_hash **) loc = h;
*loc = (void*)h;
}
/* Given TYPE, and HASHCODE its hash code, return the canonical
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment