aboutsummaryrefslogtreecommitdiff
path: root/gcc/cgraph.c
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2013-09-25 11:48:55 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2013-09-25 09:48:55 +0000
commit123485ca222611b71c63f0f54777cceaf23883a3 (patch)
tree91b1914f231ad8049552478f134c621deee31914 /gcc/cgraph.c
parentd70b0f1f2212a900b8547b288a7c3d2ae89ac267 (diff)
downloadgcc-123485ca222611b71c63f0f54777cceaf23883a3.zip
gcc-123485ca222611b71c63f0f54777cceaf23883a3.tar.gz
gcc-123485ca222611b71c63f0f54777cceaf23883a3.tar.bz2
cgraph.c (cgraph_resolve_speculation): Use semantical equivalency test.
* cgraph.c (cgraph_resolve_speculation): Use semantical equivalency test. From-SVN: r202888
Diffstat (limited to 'gcc/cgraph.c')
-rw-r--r--gcc/cgraph.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/cgraph.c b/gcc/cgraph.c
index 722f8ca..e84ce94 100644
--- a/gcc/cgraph.c
+++ b/gcc/cgraph.c
@@ -1188,7 +1188,9 @@ cgraph_resolve_speculation (struct cgraph_edge *edge, tree callee_decl)
gcc_assert (edge->speculative);
cgraph_speculative_call_info (edge, e2, edge, ref);
- if (ref->referred->symbol.decl != callee_decl)
+ if (!callee_decl
+ || !symtab_semantically_equivalent_p ((symtab_node) ref->referred,
+ symtab_get_node (callee_decl)))
{
if (dump_file)
{