===================================================================
@@ -1793,7 +1793,7 @@ ipa_inline (void)
}
inline_small_functions ();
- symtab_remove_unreachable_nodes (true, dump_file);
+ symtab_remove_unreachable_nodes (false, dump_file);
free (order);
/* Inline functions with a property that after inlining into all callers the
===================================================================
@@ -3215,6 +3215,7 @@ do_whole_program_analysis (void)
cgraph_state = CGRAPH_STATE_IPA_SSA;
execute_ipa_pass_list (all_regular_ipa_passes);
+ symtab_remove_unreachable_nodes (false, dump_file);
if (cgraph_dump_file)
{
===================================================================
@@ -184,6 +184,7 @@ cgraph_clone_node (struct cgraph_node *n
new_node->symbol.decl = decl;
symtab_register_node ((symtab_node)new_node);
new_node->origin = n->origin;
+ new_node->symbol.lto_file_data = n->symbol.lto_file_data;
if (new_node->origin)
{
new_node->next_nested = new_node->origin->nested;