From 3d36be01e4f9bd4d99750d93f44ef7d8f3a3cc4e Mon Sep 17 00:00:00 2001 From: Ilya Enkovich Date: Mon, 19 Jan 2015 10:28:34 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/tree-sra.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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; -- 2.30.2