OSDN Git Service

2011-08-31 Martin Jambor <mjambor@suse.cz>
authorjamborm <jamborm@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 31 Aug 2011 16:32:47 +0000 (16:32 +0000)
committerjamborm <jamborm@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 31 Aug 2011 16:32:47 +0000 (16:32 +0000)
* 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

gcc/ChangeLog
gcc/cgraphunit.c

index 084ddd2..60bb4b5 100644 (file)
@@ -1,3 +1,8 @@
+2011-08-31  Martin Jambor  <mjambor@suse.cz>
+
+       * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Alias
+       check removed.
+
 2011-08-31  Richard Guenther  <rguenther@suse.de>
 
        * fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE
index 5e368f8..f8cbea3 100644 (file)
@@ -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