re PR lto/53572 (Some public symbols don't get to serialized LTO)
PR lto/53572 * cgraph.h (varpool_can_remove_if_no_refs): Fix handling of used symbols. From-SVN: r188982
This commit is contained in:
parent
035775c8b3
commit
3d2e04fdee
|
@ -1,3 +1,9 @@
|
|||
2012-06-26 Jan Hubicka <jh@suse.cz>
|
||||
|
||||
PR lto/53572
|
||||
* cgraph.h (varpool_can_remove_if_no_refs): Fix handling of
|
||||
used symbols.
|
||||
|
||||
2012-06-26 Dehao Chen <dehao@google.com>
|
||||
|
||||
* tree-inline.c: (expand_call_inline): Ensure that lexical block's
|
||||
|
|
|
@ -1126,7 +1126,8 @@ varpool_can_remove_if_no_refs (struct varpool_node *node)
|
|||
if (DECL_EXTERNAL (node->symbol.decl))
|
||||
return true;
|
||||
return (!node->symbol.force_output && !node->symbol.used_from_other_partition
|
||||
&& (DECL_COMDAT (node->symbol.decl)
|
||||
&& ((DECL_COMDAT (node->symbol.decl)
|
||||
&& !symtab_used_from_object_file_p ((symtab_node) node))
|
||||
|| !node->symbol.externally_visible
|
||||
|| DECL_HAS_VALUE_EXPR_P (node->symbol.decl)));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue