diff options
Diffstat (limited to 'gcc/cgraphunit.c')
-rw-r--r-- | gcc/cgraphunit.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c index 4c44d91af51..781ca4bda5f 100644 --- a/gcc/cgraphunit.c +++ b/gcc/cgraphunit.c @@ -834,6 +834,10 @@ varpool_finalize_decl (tree decl) enqueue_node ((symtab_node)node); if (cgraph_state >= CGRAPH_STATE_IPA_SSA) varpool_analyze_node (node); + /* Some frontends produce various interface variables after compilation + finished. */ + if (cgraph_state == CGRAPH_STATE_FINISHED) + varpool_assemble_decl (node); } /* Discover all functions and variables that are trivially needed, analyze |