From: Martin Jambor Date: Wed, 31 Aug 2011 16:32:47 +0000 (+0200) Subject: cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Alias check removed. X-Git-Tag: upstream/12.2.0~81649 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=51093fca4c6add337ed31fe13b96d9712ab16743;p=platform%2Fupstream%2Fgcc.git cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Alias check removed. 2011-08-31 Martin Jambor * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Alias check removed. From-SVN: r178384 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 084ddd244b4..60bb4b53047 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2011-08-31 Martin Jambor + + * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Alias + check removed. + 2011-08-31 Richard Guenther * fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE 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