aboutsummaryrefslogtreecommitdiff
path: root/gcc/cgraphunit.c
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2012-01-24 08:37:38 -0500
committerJason Merrill <jason@gcc.gnu.org>2012-01-24 08:37:38 -0500
commitc5c90089e6f24e5c3d31a1e70edbe1bbe14a2a61 (patch)
treeddc7240274c757115a71e345f5233558b9f35979 /gcc/cgraphunit.c
parent5460e1fc15f7f0bab22b39e76ae736ca43b7e654 (diff)
downloadgcc-c5c90089e6f24e5c3d31a1e70edbe1bbe14a2a61.zip
gcc-c5c90089e6f24e5c3d31a1e70edbe1bbe14a2a61.tar.gz
gcc-c5c90089e6f24e5c3d31a1e70edbe1bbe14a2a61.tar.bz2
re PR c++/51812 (Virtual public inheritance and thunks leads to "undefined reference" in header files.)
PR c++/51812 * cgraphunit.c (cgraph_decide_is_function_needed): Don't always output static aliases. From-SVN: r183475
Diffstat (limited to 'gcc/cgraphunit.c')
-rw-r--r--gcc/cgraphunit.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c
index 6ea40ce..8f96d38 100644
--- a/gcc/cgraphunit.c
+++ b/gcc/cgraphunit.c
@@ -195,6 +195,7 @@ cgraph_decide_is_function_needed (struct cgraph_node *node, tree decl)
to change the behavior here. */
if (((TREE_PUBLIC (decl)
|| (!optimize
+ && !node->same_body_alias
&& !DECL_DISREGARD_INLINE_LIMITS (decl)
&& !DECL_DECLARED_INLINE_P (decl)
&& !(DECL_CONTEXT (decl)