]> git.ipfire.org Git - thirdparty/gcc.git/commit
cgraph.h (cgraph_node, [...]): Update docmentation of in_other_partition.
authorJan Hubicka <jh@suse.cz>
Mon, 5 Jul 2010 18:25:04 +0000 (20:25 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Mon, 5 Jul 2010 18:25:04 +0000 (18:25 +0000)
commit92eb4438684a217e0f6968d0ab996424c7af055f
tree1ae95da0182acf8c922d2c36bf583ce953dc8ba6
parent69e18c0985d5e4488b30ccae1e242e004bf274ed
cgraph.h (cgraph_node, [...]): Update docmentation of in_other_partition.

* 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.

From-SVN: r161846
gcc/ChangeLog
gcc/cgraph.h
gcc/lto-cgraph.c
gcc/lto/ChangeLog
gcc/lto/lto.c