* ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
hard register variables.
From-SVN: r220985
+2015-02-25 Martin Liska <mliska@suse.cz>
+
+ * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
+ hard register variables.
+
2015-02-25 Kai Tietz <ktietz@redhat.com>
PR target/64212
if (t1 == t2)
return true;
+ if (DECL_HARD_REGISTER (t1) != DECL_HARD_REGISTER (t2))
+ return return_false_with_msg ("DECL_HARD_REGISTER are different");
+
+ if (DECL_HARD_REGISTER (t1)
+ && DECL_ASSEMBLER_NAME (t1) != DECL_ASSEMBLER_NAME (t2))
+ return return_false_with_msg ("HARD REGISTERS are different");
+
if (TREE_CODE (t1) == VAR_DECL && (DECL_EXTERNAL (t1) || TREE_STATIC (t1)))
{
symtab_node *n1 = symtab_node::get (t1);