ipa-inline.c (cgraph_decide_inlining): Include reason for not inlining called-once...
authorToon Moene <toon@moene.org>
Sat, 31 Oct 2009 13:51:48 +0000 (13:51 +0000)
committerToon Moene <toon@gcc.gnu.org>
Sat, 31 Oct 2009 13:51:48 +0000 (13:51 +0000)
2009-10-31  Toon Moene  <toon@moene.org>

* ipa-inline.c (cgraph_decide_inlining):
Include reason for not inlining called-once functions in dump file.

From-SVN: r153776

gcc/ChangeLog
gcc/ipa-inline.c

index 2ba51f254cc093a1700f0499d16e0dc3974d78e1..d85370692eb0cdf640a622f0151d659c819a1b6f 100644 (file)
@@ -1,3 +1,8 @@
+2009-10-31  Toon Moene  <toon@moene.org>
+
+       * ipa-inline.c (cgraph_decide_inlining):
+       Include reason for not inlining called-once functions in dump file.
+
 2009-10-30  Daniel Gutson  <dgutson@codesourcery.com>
 
        * config/arm/linux-eabi.h (LINK_SPEC): BE8_LINK_SPEC added.
index 81c3379ca2ec77cecb1daa76fc4b5148627afbdf..bc7048f51c6cc6c0e3abed09dcbc6dd847d90976 100644 (file)
@@ -1233,6 +1233,7 @@ cgraph_decide_inlining (void)
              && !DECL_EXTERNAL (node->decl)
              && !DECL_COMDAT (node->decl))
            {
+             cgraph_inline_failed_t reason;
              old_size = overall_size;
              if (dump_file)
                {
@@ -1246,7 +1247,7 @@ cgraph_decide_inlining (void)
                }
 
              if (cgraph_check_inline_limits (node->callers->caller, node,
-                                             NULL, false))
+                                             &reason, false))
                {
                  cgraph_mark_inline (node->callers);
                  if (dump_file)
@@ -1261,7 +1262,8 @@ cgraph_decide_inlining (void)
                {
                  if (dump_file)
                    fprintf (dump_file,
-                            " Inline limit reached, not inlined.\n");
+                            " Not inlining: %s.\n",
+                             cgraph_inline_failed_string (reason));
                }
            }
        }