aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc')
-rw-r--r--gcc/cgraph.c2
-rw-r--r--gcc/varpool.c2
2 files changed, 2 insertions, 2 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;
diff --git a/gcc/varpool.c b/gcc/varpool.c
index 458cdf1..31ea213 100644
--- a/gcc/varpool.c
+++ b/gcc/varpool.c
@@ -479,7 +479,7 @@ varpool_node::add (tree decl)
enum availability
varpool_node::get_availability (symtab_node *ref)
{
- if (!definition)
+ if (!definition && !in_other_partition)
return AVAIL_NOT_AVAILABLE;
if (!TREE_PUBLIC (decl))
return AVAIL_AVAILABLE;