summaryrefslogtreecommitdiff
path: root/gcc/ipa-inline.c
diff options
context:
space:
mode:
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2010-05-09 14:13:25 +0000
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2010-05-09 14:13:25 +0000
commit868357d3b0cfd84e11ca3b966294914b8a6b0664 (patch)
treec5d2b511af454b1d30c2f32c46c6173217d567a9 /gcc/ipa-inline.c
parent116613c4b46dde0eb96592d3e120f874adbb4906 (diff)
downloadgcc-868357d3b0cfd84e11ca3b966294914b8a6b0664.tar.gz
2010-05-09 Richard Guenther <rguenther@suse.de>
PR middle-end/44043 * ipa-inline.c (estimate_function_body_sizes): Return after disregarding inline limits. * gcc.c-torture/compile/pr44043.c: New testcase. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159200 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ipa-inline.c')
-rw-r--r--gcc/ipa-inline.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/ipa-inline.c b/gcc/ipa-inline.c
index 5f9fe102ba1..8b73210c34d 100644
--- a/gcc/ipa-inline.c
+++ b/gcc/ipa-inline.c
@@ -1835,10 +1835,13 @@ estimate_function_body_sizes (struct cgraph_node *node)
if (node->local.disregard_inline_limits)
{
+ if (dump_file)
+ fprintf (dump_file, "Disregarding inline limits.\n");
inline_summary (node)->self_time = 0;
inline_summary (node)->self_size = 0;
inline_summary (node)->time_inlining_benefit = 0;
inline_summary (node)->size_inlining_benefit = 0;
+ return;
}
if (dump_file)