aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorMartin Jambor <mjambor@suse.cz>2011-08-31 18:32:47 +0200
committerMartin Jambor <jamborm@gcc.gnu.org>2011-08-31 18:32:47 +0200
commit51093fca4c6add337ed31fe13b96d9712ab16743 (patch)
tree00faf6845cdde67ac66f7a20e8370fa8bab0be20 /gcc
parent32950a5d853b26880702b3ae471492dce637da8f (diff)
downloadgcc-51093fca4c6add337ed31fe13b96d9712ab16743.zip
gcc-51093fca4c6add337ed31fe13b96d9712ab16743.tar.gz
gcc-51093fca4c6add337ed31fe13b96d9712ab16743.tar.bz2
cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Alias check removed.
2011-08-31 Martin Jambor <mjambor@suse.cz> * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Alias check removed. From-SVN: r178384
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/cgraphunit.c4
2 files changed, 6 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 084ddd2..60bb4b5 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c
index 5e368f8..f8cbea3 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