From: Ilya Enkovich Date: Mon, 19 Jan 2015 10:28:34 +0000 (+0000) Subject: tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk callers. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3d36be01e4f9bd4d99750d93f44ef7d8f3a3cc4e;p=gcc.git tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk callers. * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk callers. From-SVN: r219835 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index cc796ac4bce..6f3431b3479 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2015-01-19 Ilya Enkovich + + * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk + callers. + 2015-01-19 Ilya Enkovich * ipa-chkp.c (chkp_produce_thunks): Add early param diff --git a/gcc/tree-sra.c b/gcc/tree-sra.c index 51a1b1a986d..ad9584ed3d6 100644 --- a/gcc/tree-sra.c +++ b/gcc/tree-sra.c @@ -4884,7 +4884,7 @@ some_callers_have_mismatched_arguments_p (struct cgraph_node *node, { struct cgraph_edge *cs; for (cs = node->callers; cs; cs = cs->next_caller) - if (!callsite_arguments_match_p (cs->call_stmt)) + if (!cs->call_stmt || !callsite_arguments_match_p (cs->call_stmt)) return true; return false;