aboutsummaryrefslogtreecommitdiff
path: root/gcc/cgraph.c
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2020-09-17 12:41:07 +0200
committerJan Hubicka <jh@suse.cz>2020-09-17 12:41:07 +0200
commit27eac88a3f23ef7efbbd725504963cffc71dcad4 (patch)
tree69239f5d420fd5435430fa153f2d5dd5ab029000 /gcc/cgraph.c
parentec7ef3042106fd5981bfaa86dc32965a508d05f3 (diff)
downloadgcc-27eac88a3f23ef7efbbd725504963cffc71dcad4.zip
gcc-27eac88a3f23ef7efbbd725504963cffc71dcad4.tar.gz
gcc-27eac88a3f23ef7efbbd725504963cffc71dcad4.tar.bz2
Fix availability of functions in other partitions
* cgraph.c (cgraph_node::get_availability): Fix availability of functions in other partitions * varpool.c (varpool_node::get_availability): Likewise.
Diffstat (limited to 'gcc/cgraph.c')
-rw-r--r--gcc/cgraph.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cgraph.c b/gcc/cgraph.c
index c0b4579..b43adaa 100644
--- a/gcc/cgraph.c
+++ b/gcc/cgraph.c
@@ -2360,7 +2360,7 @@ cgraph_node::get_availability (symtab_node *ref)
ref = cref->inlined_to;
}
enum availability avail;
- if (!analyzed)
+ if (!analyzed && !in_other_partition)
avail = AVAIL_NOT_AVAILABLE;
else if (local)
avail = AVAIL_LOCAL;