diff options
author | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-02-19 02:13:17 +0000 |
---|---|---|
committer | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-02-19 02:13:17 +0000 |
commit | 84283c294149f1f0ffcb6a36277b307b6c1bf5dd (patch) | |
tree | 45902cef416c7ddecf15996e212ff5325ed2a1ff /gcc/ipa-inline.c | |
parent | 3c2c63b4ee03955944236aa363a3b9e56438c791 (diff) | |
download | gcc-84283c294149f1f0ffcb6a36277b307b6c1bf5dd.tar.gz |
PR middle-end/47788
* ipa-inline.c (compute_inline_parameters): Clear disregard_inline_limits
when function is not inlinable at all.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@170300 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ipa-inline.c')
-rw-r--r-- | gcc/ipa-inline.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/ipa-inline.c b/gcc/ipa-inline.c index 176f994bb08..10e57a8750e 100644 --- a/gcc/ipa-inline.c +++ b/gcc/ipa-inline.c @@ -1990,6 +1990,8 @@ compute_inline_parameters (struct cgraph_node *node) /* Can this function be inlined at all? */ node->local.inlinable = tree_inlinable_function_p (node->decl); + if (!node->local.inlinable) + node->local.disregard_inline_limits = 0; /* Inlinable functions always can change signature. */ if (node->local.inlinable) |