* ipa-icf.c (sem_item::compare_attributes): New function.
commitb08f05cd687754b82d31cbe585b47d5e03570610
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 23 Apr 2015 15:25:26 +0000 (23 15:25 +0000)
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 23 Apr 2015 15:25:26 +0000 (23 15:25 +0000)
treed6b15aa51b46d77748d8d4c072013fffecdf527f
parent15bfcab1ecdc8cd219d3ff3d1eb3c2cbf059005e
* 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.

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