ipa-inline.c (cgraph_decide_inlining_of_small_function): Fix typo in last commit.
authorJan Hubicka <jh@suse.cz>
Tue, 4 Mar 2008 07:01:39 +0000 (08:01 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Tue, 4 Mar 2008 07:01:39 +0000 (07:01 +0000)
* ipa-inline.c (cgraph_decide_inlining_of_small_function): Fix typo
in last commit.

From-SVN: r132854

gcc/ChangeLog
gcc/ipa-inline.c

index e630fafed7d638c8f7519ba3afe2634fa9249c1d..541fe3036f326f8d7e0165082b9d48d37722958f 100644 (file)
@@ -1,3 +1,9 @@
+2008-03-04  Jan Hubicka  <jh@suse.cz>
+
+       PR c++/35262
+       * ipa-inline.c (cgraph_decide_inlining_of_small_function): Fix typo
+       in last commit.
+
 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
 
        * gthr-win32.h [__GTHREAD_HIDE_WIN32API]
index b5ac1dc777d4f01dc7d10a8068e3581eed562847..06d00e355dd8877351906fded844301d829932e0 100644 (file)
@@ -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))