diff options
author | Jason Merrill <jason@redhat.com> | 2012-01-24 13:37:38 +0000 |
---|---|---|
committer | Jason Merrill <jason@redhat.com> | 2012-01-24 13:37:38 +0000 |
commit | 19f282fe27e0a8ae0639f243d8671d4bd7137178 (patch) | |
tree | ddc7240274c757115a71e345f5233558b9f35979 /gcc/cgraphunit.c | |
parent | afc045c833691d26ce747c389f30c000c37d87e7 (diff) |
PR c++/51812
* cgraphunit.c (cgraph_decide_is_function_needed): Don't always
output static aliases.
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@183475 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cgraphunit.c')
-rw-r--r-- | gcc/cgraphunit.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c index 6ea40ce4e52..8f96d3859bf 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) |