ipa-icf.c (symbol_compare_collection::symbol_compare_collection): cleanup.
authorJan Hubicka <hubicka@ucw.cz>
Thu, 23 Apr 2015 14:55:07 +0000 (16:55 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Thu, 23 Apr 2015 14:55:07 +0000 (14:55 +0000)
commit977b01e34d85c3612fa87d47e17bed0e3ac18d0b
tree41106bfa12032ca40e72a5e2225acb2794a48811
parent4cf022385365d3bbf1cfcf265dfd28a21a9be346
ipa-icf.c (symbol_compare_collection::symbol_compare_collection): cleanup.

* 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.

From-SVN: r222372
gcc/ChangeLog
gcc/ipa-icf.c
gcc/ipa-icf.h