]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR middle-end/41257 (Bogus error '*.LTHUNK0' aliased to undefined symbol '_ZN1CD1Ev')
authorRichard Guenther <rguenther@suse.de>
Thu, 10 Sep 2009 11:42:25 +0000 (11:42 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 10 Sep 2009 11:42:25 +0000 (11:42 +0000)
commit90097c677180701eb96cce0628b50a76e6b36441
tree46d887c0794b9f2103481de10160218783176e36
parentc7a3980a09b3f2d64162f55390ca5156f4dbf4d1
re PR middle-end/41257 (Bogus error '*.LTHUNK0' aliased to undefined symbol '_ZN1CD1Ev')

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.

From-SVN: r151592
gcc/ChangeLog
gcc/cgraphunit.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/torture/pr41257-2.C [new file with mode: 0644]