From b7884852fd73823f77e1cc112c9016f8a6fd6aaa Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Tue, 4 Mar 2008 08:01:39 +0100 Subject: [PATCH] ipa-inline.c (cgraph_decide_inlining_of_small_function): Fix typo in last commit. * ipa-inline.c (cgraph_decide_inlining_of_small_function): Fix typo in last commit. From-SVN: r132854 --- gcc/ChangeLog | 6 ++++++ gcc/ipa-inline.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e630fafed7d..541fe3036f3 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2008-03-04 Jan Hubicka + + PR c++/35262 + * ipa-inline.c (cgraph_decide_inlining_of_small_function): Fix typo + in last commit. + 2008-03-04 Danny Smith * gthr-win32.h [__GTHREAD_HIDE_WIN32API] diff --git a/gcc/ipa-inline.c b/gcc/ipa-inline.c index b5ac1dc777d..06d00e355dd 100644 --- a/gcc/ipa-inline.c +++ b/gcc/ipa-inline.c @@ -925,7 +925,7 @@ cgraph_decide_inlining_of_small_functions (void) not_good = N_("function not declared inline and code size would grow"); if (optimize_size) not_good = N_("optimizing for size and code size would grow"); - if (not_good && growth > 0 && cgraph_estimate_growth (edge->callee)) + if (not_good && growth > 0 && cgraph_estimate_growth (edge->callee) > 0) { if (!cgraph_recursive_inlining_p (edge->caller, edge->callee, &edge->inline_failed)) -- 2.30.2