2009-09-10 Richard Guenther <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 10 Sep 2009 11:42:25 +0000 (11:42 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 10 Sep 2009 11:42:25 +0000 (11:42 +0000)
commit9929334ecabba70bce26430b39604247fd93a77a
tree46d887c0794b9f2103481de10160218783176e36
parent969443c44523194ff4a6759420190e16ff130563
2009-09-10  Richard Guenther  <rguenther@suse.de>

PR middle-end/41257
* cgraphunit.c (cgraph_emit_thunks): Emit thunks only for
reachable nodes.
(cgraph_finalize_compilation_unit): Compute reachability
before emitting thunks.  Properly process aliases before
possibly removing unreachable nodes.

* g++.dg/torture/pr41257-2.C: New testcase.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@151592 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/cgraphunit.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/torture/pr41257-2.C [new file with mode: 0644]