+2015-01-12 Martin Liska <mliska@suse.cz>
+
+ * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as indication
+ that a function is not leaf.
+ (sem_function::compare_polymorphic_p): Likewise.
+
2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
* config/visium/visium.c: Add includes hashtab.h, hash-set.h,
return return_false_with_msg ("NULL argument type");
/* Polymorphic comparison is executed just for non-leaf functions. */
- bool is_not_leaf = get_node ()->callees != NULL;
+ bool is_not_leaf = get_node ()->callees != NULL
+ || get_node ()->indirect_calls != NULL;
if (!func_checker::compatible_types_p (arg_types[i],
m_compared_func->arg_types[i],
sem_function::compare_polymorphic_p (void)
{
return get_node ()->callees != NULL
- || m_compared_func->get_node ()->callees != NULL;
+ || get_node ()->indirect_calls != NULL
+ || m_compared_func->get_node ()->callees != NULL
+ || m_compared_func->get_node ()->indirect_calls != NULL;
}
/* For a given call graph NODE, the function constructs new