From 9a6af4504b8bc9b03020b1e96a3bad56d9929916 Mon Sep 17 00:00:00 2001 From: Eric Botcazou Date: Fri, 6 Sep 2013 09:35:23 +0000 Subject: ipa-split.c (split_function): Set DECL_NO_INLINE_WARNING_P on the non-inlinable part. * ipa-split.c (split_function): Set DECL_NO_INLINE_WARNING_P on the non-inlinable part. From-SVN: r202315 --- gcc/ipa-split.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gcc/ipa-split.c') diff --git a/gcc/ipa-split.c b/gcc/ipa-split.c index 5c3ee4f..5df14ec 100644 --- a/gcc/ipa-split.c +++ b/gcc/ipa-split.c @@ -1222,6 +1222,9 @@ split_function (struct split_point *split_point) DECL_BUILT_IN_CLASS (node->symbol.decl) = NOT_BUILT_IN; DECL_FUNCTION_CODE (node->symbol.decl) = (enum built_in_function) 0; } + /* If the original function is declared inline, there is no point in issuing + a warning for the non-inlinable part. */ + DECL_NO_INLINE_WARNING_P (node->symbol.decl) = 1; cgraph_node_remove_callees (cur_node); ipa_remove_all_references (&cur_node->symbol.ref_list); if (!split_part_return_p) -- cgit v1.1