summaryrefslogtreecommitdiff
path: root/gcc/lto-cgraph.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/lto-cgraph.c')
-rw-r--r--gcc/lto-cgraph.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/lto-cgraph.c b/gcc/lto-cgraph.c
index ae49ae6543f..7c2582de7be 100644
--- a/gcc/lto-cgraph.c
+++ b/gcc/lto-cgraph.c
@@ -975,6 +975,7 @@ input_overwrite_node (struct lto_file_decl_data *file_data,
|| node->clone_of->decl != node->decl))
{
DECL_EXTERNAL (node->decl) = 1;
+ DECL_ABSTRACT_ORIGIN (node->decl) = NULL_TREE;
TREE_STATIC (node->decl) = 0;
}
node->alias = bp_unpack_value (bp, 1);
@@ -1146,6 +1147,7 @@ input_varpool_node (struct lto_file_decl_data *file_data,
if (node->in_other_partition)
{
DECL_EXTERNAL (node->decl) = 1;
+ DECL_ABSTRACT_ORIGIN (node->decl) = NULL_TREE;
TREE_STATIC (node->decl) = 0;
}
aliases_p = bp_unpack_value (&bp, 1);