From f84ae14c4eeb561868722929e229213348d81dc9 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Sat, 19 Feb 2011 03:13:17 +0100 Subject: [PATCH] re PR lto/47788 (New LTO failures) PR middle-end/47788 * ipa-inline.c (compute_inline_parameters): Clear disregard_inline_limits when function is not inlinable at all. From-SVN: r170300 --- gcc/ChangeLog | 6 ++++++ gcc/ipa-inline.c | 2 ++ 2 files changed, 8 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 43d065c12a0..f59306b7927 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2011-02-18 Jan Hubicka + + PR middle-end/47788 + * ipa-inline.c (compute_inline_parameters): Clear disregard_inline_limits + when function is not inlinable at all. + 2011-02-18 John David Anglin * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts. 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) -- 2.30.2