aboutsummaryrefslogtreecommitdiff
path: root/gcc/ipa-split.c
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2013-09-06 09:35:23 +0000
committerEric Botcazou <ebotcazou@gcc.gnu.org>2013-09-06 09:35:23 +0000
commit9a6af4504b8bc9b03020b1e96a3bad56d9929916 (patch)
tree8121b896402c877769568030f5397dcc4147e6bf /gcc/ipa-split.c
parent6660b45f391fa4e549dbf7aeb2fe7ce271dc84ae (diff)
downloadgcc-9a6af4504b8bc9b03020b1e96a3bad56d9929916.zip
gcc-9a6af4504b8bc9b03020b1e96a3bad56d9929916.tar.gz
gcc-9a6af4504b8bc9b03020b1e96a3bad56d9929916.tar.bz2
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
Diffstat (limited to 'gcc/ipa-split.c')
-rw-r--r--gcc/ipa-split.c3
1 files changed, 3 insertions, 0 deletions
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)