From: Toon Moene Date: Sat, 31 Oct 2009 13:51:48 +0000 (+0000) Subject: ipa-inline.c (cgraph_decide_inlining): Include reason for not inlining called-once... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2e57e8534f2add636680babbfaebb6fe53fcac00;p=gcc.git ipa-inline.c (cgraph_decide_inlining): Include reason for not inlining called-once functions in dump file. 2009-10-31 Toon Moene * ipa-inline.c (cgraph_decide_inlining): Include reason for not inlining called-once functions in dump file. From-SVN: r153776 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2ba51f254cc..d85370692eb 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2009-10-31 Toon Moene + + * ipa-inline.c (cgraph_decide_inlining): + Include reason for not inlining called-once functions in dump file. + 2009-10-30 Daniel Gutson * config/arm/linux-eabi.h (LINK_SPEC): BE8_LINK_SPEC added. diff --git a/gcc/ipa-inline.c b/gcc/ipa-inline.c index 81c3379ca2e..bc7048f51c6 100644 --- a/gcc/ipa-inline.c +++ b/gcc/ipa-inline.c @@ -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)); } } }