Fix handling of symbols in other partition in symtab_node::binds_to_current_def_p
Jan Hubicka
hubicka@ucw.cz
Thu Oct 15 11:52:38 GMT 2020
Hi,
this patch makes binds_to_current_def_p to return true when the current
def is in other partition. This is needed for modref to propagate info
on loads across partition boundary.
Bootstrapped/regtsted x86_64-linux, comitted.
* symtab.c (symtab_node::binds_to_current_def_p): Also accept symbols
defined in other partition.
diff --git a/gcc/symtab.c b/gcc/symtab.c
index 207c9e75890..bc2865f4121 100644
--- a/gcc/symtab.c
+++ b/gcc/symtab.c
@@ -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
More information about the Gcc-patches
mailing list