aboutsummaryrefslogtreecommitdiff
path: root/gcc/cgraphunit.c
diff options
context:
space:
mode:
authorjamborm <jamborm@138bc75d-0d04-0410-961f-82ee72b054a4>2011-08-31 16:32:47 +0000
committerjamborm <jamborm@138bc75d-0d04-0410-961f-82ee72b054a4>2011-08-31 16:32:47 +0000
commit0a31490eb184a86a9a05a144cf8c6b6f1769d1ad (patch)
tree00faf6845cdde67ac66f7a20e8370fa8bab0be20 /gcc/cgraphunit.c
parent0960499e4ce29d1d32ce1553270f3876c633589e (diff)
2011-08-31 Martin Jambor <mjambor@suse.cz>
* cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Alias check removed. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@178384 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cgraphunit.c')
-rw-r--r--gcc/cgraphunit.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c
index 5e368f87208..f8cbea33292 100644
--- a/gcc/cgraphunit.c
+++ b/gcc/cgraphunit.c
@@ -2373,9 +2373,7 @@ cgraph_redirect_edge_call_stmt_to_callee (struct cgraph_edge *e)
#endif
if (e->indirect_unknown_callee
- || decl == e->callee->decl
- /* Don't update call from same body alias to the real function. */
- || (decl && cgraph_get_node (decl) == cgraph_get_node (e->callee->decl)))
+ || decl == e->callee->decl)
return e->call_stmt;
#ifdef ENABLE_CHECKING