aboutsummaryrefslogtreecommitdiff
path: root/gcc/ipa-prop.c
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2011-11-08 15:16:22 +0000
committerRichard Guenther <rguenther@suse.de>2011-11-08 15:16:22 +0000
commitd7be7dcd87abafb429a14e0ec8629ee16ff5a38e (patch)
treec00e0356ac03d362aa0c47b542073da126813776 /gcc/ipa-prop.c
parent8a5210157cc2076b56a9071c4f22c49a30481638 (diff)
2011-11-08 Richard Guenther <rguenther@suse.de>
PR tree-optimization/51012 * ipa-prop.c (update_indirect_edges_after_inlining): Fixup non-inlinable state. * cgraph.c (cgraph_make_edge_direct): Likewise. * gcc.dg/pr51012-1.c: New testcase. * gcc.dg/pr51012-2.c: Likewise. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@181166 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ipa-prop.c')
-rw-r--r--gcc/ipa-prop.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/ipa-prop.c b/gcc/ipa-prop.c
index 7946aca0bff..69f0453ee4f 100644
--- a/gcc/ipa-prop.c
+++ b/gcc/ipa-prop.c
@@ -1905,6 +1905,13 @@ update_indirect_edges_after_inlining (struct cgraph_edge *cs,
if (new_direct_edge)
{
new_direct_edge->indirect_inlining_edge = 1;
+ if (new_direct_edge->call_stmt
+ && !gimple_check_call_matching_types (new_direct_edge->call_stmt,
+ new_direct_edge->callee->decl))
+ {
+ gimple_call_set_cannot_inline (new_direct_edge->call_stmt, true);
+ new_direct_edge->call_stmt_cannot_inline_p = true;
+ }
if (new_edges)
{
VEC_safe_push (cgraph_edge_p, heap, *new_edges,