+2015-03-19 Jan Hubicka <hubicka@ucw.cz>
+
+ PR ipa/65380
+ * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
+ (sem_variable::merge): Likewise.
+
2015-03-19 Martin Liska <mliska@suse.cz>
PR ipa/65465
bool original_address_matters = original->address_matters_p ();
bool alias_address_matters = alias->address_matters_p ();
+ if (DECL_EXTERNAL (alias->decl))
+ {
+ if (dump_file)
+ fprintf (dump_file, "Not unifying; alias is external.\n\n");
+ return false;
+ }
+
if (DECL_NO_INLINE_WARNING_P (original->decl)
!= DECL_NO_INLINE_WARNING_P (alias->decl))
{
return false;
}
+ if (DECL_EXTERNAL (alias_item->decl))
+ {
+ if (dump_file)
+ fprintf (dump_file, "Not unifying; alias is external.\n\n");
+ return false;
+ }
+
sem_variable *alias_var = static_cast<sem_variable *> (alias_item);
varpool_node *original = get_node ();