diff options
author | ebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-09-06 09:35:23 +0000 |
---|---|---|
committer | ebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-09-06 09:35:23 +0000 |
commit | ea03e543c51716b7e3e868ca8c54f308cdf59fd5 (patch) | |
tree | 8121b896402c877769568030f5397dcc4147e6bf /gcc/ipa-split.c | |
parent | 79294c79d2c164b42a76f3f52fc8ad7c70857e6a (diff) | |
download | gcc-ea03e543c51716b7e3e868ca8c54f308cdf59fd5.tar.gz |
* ipa-split.c (split_function): Set DECL_NO_INLINE_WARNING_P on the
non-inlinable part.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@202315 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ipa-split.c')
-rw-r--r-- | gcc/ipa-split.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/ipa-split.c b/gcc/ipa-split.c index 5c3ee4fa2ce..5df14ecb703 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) |