re PR lto/52722 (ICE in lto_output_varpool_node)
authorJan Hubicka <jh@suse.cz>
Mon, 9 Apr 2012 23:39:11 +0000 (01:39 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Mon, 9 Apr 2012 23:39:11 +0000 (23:39 +0000)
commit3c56b037d3517192aeb66c7dde1e893c5a20fd99
treef3f75fa5d40c0187f09c5fb152838f703f00c122
parent3cb2b15b6c800aa7afef5b427978371aabb6d20a
re PR lto/52722 (ICE in lto_output_varpool_node)

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.

From-SVN: r186252
gcc/ChangeLog
gcc/lto-cgraph.c
gcc/lto/lto.c
gcc/testsuite/ChangeLog
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]