ipa-icf.c (sem_item::compare_attributes): New function.
authorJan Hubicka <hubicka@ucw.cz>
Thu, 23 Apr 2015 15:25:26 +0000 (17:25 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Thu, 23 Apr 2015 15:25:26 +0000 (15:25 +0000)
commitb3587b99fb85f57feaff63b3c37cd15e79ec7804
treed6b15aa51b46d77748d8d4c072013fffecdf527f
parent9f468990e1a033fb5b2616238e86e78d2506fdfd
ipa-icf.c (sem_item::compare_attributes): New function.

* ipa-icf.c (sem_item::compare_attributes): New function.
(sem_item::compare_referenced_symbol_properties): Compare variable
attributes.
(sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
(sem_function::param_used_p): New function.
(sem_function::equals_wpa): Fix attribute comparsion; match
parameter type codes; do not compare paremter flags when
they are not used; compare edge flags; compare indirect calls.
(sem_item::update_hash_by_addr_refs): Hash reference type.
(sem_function::equals_private): Do not match DECL_ATTRIBUTES.
(sem_variable::equals_wpa): Do not match DECL_ALIGN; match
reference use type.
(sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
* ipa-icf.h (compare_attributes, param_used_p): Declare.

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