Backport revision 186252 to 4.7 branchheads/hjl/gcc-4_7-branch/pr53768
commit1dcff820d765036642bb3acc3c43cfa6b4ba0379
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 9 Apr 2012 23:39:11 +0000 (9 23:39 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Thu, 28 Jun 2012 16:54:05 +0000 (28 09:54 -0700)
treea5d72352d8081b360cbde993422bf8b79815026e
parent4d025e72b3cb3539fb3d8c152ab9597f547450d9
Backport revision 186252 to 4.7 branch

PR lto/52722
PR lto/51765
PR lto/52634
* lto-cgraph.c (compute_ltrans_boundary): When alias is in the boundary,
add its target too.
* lto.c (add_references_to_partition): Add also aliased nodes.
(add_cgraph_node_to_partition,
add_varpool_node_to_partition): Work on nodes, not functions/variables;
when adding alias, add also the aliased object.

* gcc.dg/lto/pr52634_1.c: New testcase.
* gcc.dg/lto/pr52634_0.c: New testcase.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186252 138bc75d-0d04-0410-961f-82ee72b054a4

Conflicts:

gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/ChangeLog.pr53768 [new file with mode: 0644]
gcc/lto-cgraph.c
gcc/lto/lto.c
gcc/testsuite/ChangeLog.pr53768 [new file with mode: 0644]
gcc/testsuite/gcc.dg/lto/pr52634_0.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/lto/pr52634_1.c [new file with mode: 0644]