Also accept symbols in other partition in symtab_node::binds_to_current_def_p
authorJan Hubicka <jh@suse.cz>
Thu, 15 Oct 2020 11:50:22 +0000 (13:50 +0200)
committerJan Hubicka <jh@suse.cz>
Thu, 15 Oct 2020 11:50:22 +0000 (13:50 +0200)
* symtab.c (symtab_node::binds_to_current_def_p): Also accept symbols
defined in other partition.

gcc/symtab.c

index 207c9e75890c0e39df94aedb4de26eba0803bfae..bc2865f41210ba468d835d19b63e0996ec959aaf 100644 (file)
@@ -2391,7 +2391,7 @@ symbol_table::symbol_suffix_separator ()
 bool
 symtab_node::binds_to_current_def_p (symtab_node *ref)
 {
-  if (!definition)
+  if (!definition && !in_other_partition)
     return false;
   if (transparent_alias)
     return definition