Message ID | DA41BE1DDCA941489001C7FBD7A8820E54A33480@szxema507-mbx.china.huawei.com |
---|---|
State | New |
Headers | show |
Index: gcc/ira-costs.c =================================================================== --- gcc/ira-costs.c (revision 206236) +++ gcc/ira-costs.c (working copy) @@ -155,7 +155,7 @@ inline bool cost_classes_hasher::equal (const value_type *hv1, const compare_type *hv2) { return hv1->num == hv2->num && memcmp (hv1->classes, hv2->classes, - sizeof (enum reg_class) * hv1->num); + sizeof (enum reg_class) * hv1->num) == 0; } /* Delete cost classes info V from the hash table. */