summaryrefslogtreecommitdiff
path: root/gcc/cgraph.c
diff options
context:
space:
mode:
authorDehao Chen <dehao@google.com>2013-06-15 16:56:01 +0000
committerDehao Chen <dehao@gcc.gnu.org>2013-06-15 16:56:01 +0000
commit4de09b857ea83e17912dad82a2dddc1047376d41 (patch)
tree0d27f935f2366cda4b8120bd06b4c6a9c25ca62d /gcc/cgraph.c
parent58aee036e81d53cfb0c9de70369270633a042c42 (diff)
downloadgcc-4de09b857ea83e17912dad82a2dddc1047376d41.tar.gz
tree-flow.h (gimple_check_call_matching_types): Add new argument.
2013-06-15 Dehao Chen <dehao@google.com> * tree-flow.h (gimple_check_call_matching_types): Add new argument. * gimple-low.c (gimple_check_call_matching_types): Likewise. (gimple_check_call_args): Likewise. * value-prof.c (check_ic_target): Likewise. * ipa-inline.c (early_inliner): Likewise. * ipa-prop.c (update_indirect_edges_after_inlining): Likewise. * cgraph.c (cgraph_create_edge_1): Likewise. (cgraph_make_edge_direct): Likewise. From-SVN: r200125
Diffstat (limited to 'gcc/cgraph.c')
-rw-r--r--gcc/cgraph.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/cgraph.c b/gcc/cgraph.c
index 797d58a0020..a2ec60221e9 100644
--- a/gcc/cgraph.c
+++ b/gcc/cgraph.c
@@ -818,7 +818,8 @@ cgraph_create_edge_1 (struct cgraph_node *caller, struct cgraph_node *callee,
pop_cfun ();
if (call_stmt
&& callee && callee->symbol.decl
- && !gimple_check_call_matching_types (call_stmt, callee->symbol.decl))
+ && !gimple_check_call_matching_types (call_stmt, callee->symbol.decl,
+ false))
edge->call_stmt_cannot_inline_p = true;
else
edge->call_stmt_cannot_inline_p = false;
@@ -1018,7 +1019,8 @@ cgraph_make_edge_direct (struct cgraph_edge *edge, struct cgraph_node *callee)
if (edge->call_stmt)
edge->call_stmt_cannot_inline_p
- = !gimple_check_call_matching_types (edge->call_stmt, callee->symbol.decl);
+ = !gimple_check_call_matching_types (edge->call_stmt, callee->symbol.decl,
+ false);
/* We need to re-determine the inlining status of the edge. */
initialize_inline_failed (edge);