* ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
commitc2f8a09efeb75558e62d637218dabc8f1353f1d0
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 23 Apr 2015 14:55:07 +0000 (23 14:55 +0000)
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 23 Apr 2015 14:55:07 +0000 (23 14:55 +0000)
tree41106bfa12032ca40e72a5e2225acb2794a48811
parent07dfc3c435b6d95c620cda9bc3cb9c9087f123ab
* ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
cleanup.
(sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
(sem_item::compare_referenced_symbol_properties): New.
(sem_item::hash_referenced_symbol_properties): New.
(sem_item::compare_cgraph_references): Rename to ...
(sem_item::compare_symbol_references): ... this one; use
compare_referenced_symbol_properties.
(sem_function::equals_wpa): Do not compare
DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
DECL_IS_OPERATOR_NEW; compare pointer sizes.
(sem_item::update_hash_by_addr_refs): Call
hash_referenced_symbol_properties.
(sem_item::update_hash_by_local_refs): Cleanup.
(sem_function::merge): Do not mix up symbol properties.
(sem_variable::equals_wpa): Use compare_symbol_references.
* ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
(sem_item::hash_referenced_symbol_properties): New.
(sem_item::compare_symbol_references): New.
(sem_item::compare_cgraph_references): Remove.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@222372 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/ipa-icf.c
gcc/ipa-icf.h