OSDN Git Service

* cgraph.h (cgraph_node, cgraph_varpool_node): Update docmentation of
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 5 Jul 2010 18:25:04 +0000 (18:25 +0000)
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 5 Jul 2010 18:25:04 +0000 (18:25 +0000)
commit7550e1d169bd31dd06508c252f3962e94b46cb16
tree1ae95da0182acf8c922d2c36bf583ce953dc8ba6
parentf501ee2341402fbc44d163673e2403637f1e4a69
* cgraph.h (cgraph_node, cgraph_varpool_node): Update docmentation of
in_other_partition.
* lto-cgraph.c (referenced_from_other_partition_p,
reachable_from_other_partition_p): Use in_other_partition flags.
(output_node, output_varpool_node): COMDAT nodes always have private
copies and thus are never used from other partition.

* lto.c (add_cgraph_node_to_partition): Forward declare; walk also
nodes from same comdat group as well as all comdat functions referenced
here.
(add_varpool_node_to_partition, add_references_to_partition): New function.
(lto_1_1_map): Skip COMDAT fnctions/variables; use add_varpool_node_to_partition;
clear aux flags when done.
(lto_promote_cross_file_statics): Do not promote stuff that gets duplicated to
each ltrans.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@161846 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/cgraph.h
gcc/lto-cgraph.c
gcc/lto/ChangeLog
gcc/lto/lto.c