summaryrefslogtreecommitdiff
path: root/gcc/cgraphunit.c
diff options
context:
space:
mode:
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2006-08-20 18:46:54 +0000
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2006-08-20 18:46:54 +0000
commit6f30959add9e80d2b49995b248bf7f0357b8c7d4 (patch)
tree5f6853458a71f7068d93f5fe6eb654628397fa00 /gcc/cgraphunit.c
parenta2f032055c9de2863bd889496e6454fc5f52adfe (diff)
downloadgcc-6f30959add9e80d2b49995b248bf7f0357b8c7d4.tar.gz
PR middle-end/28779
* ipa-inline.c (cgraph_decide_inlining, cgraph_early_inlining): Compute function body sizes. * cgraphunit.c (cgraph_analyze_function): Don't do so. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@116274 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cgraphunit.c')
-rw-r--r--gcc/cgraphunit.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c
index 64b3891df7b..00351d25779 100644
--- a/gcc/cgraphunit.c
+++ b/gcc/cgraphunit.c
@@ -928,7 +928,8 @@ cgraph_analyze_function (struct cgraph_node *node)
cgraph_create_edges (node, decl);
node->local.inlinable = tree_inlinable_function_p (decl);
- node->local.self_insns = estimate_num_insns (decl);
+ if (!flag_unit_at_a_time)
+ node->local.self_insns = estimate_num_insns (decl);
if (node->local.inlinable)
node->local.disregard_inline_limits
= lang_hooks.tree_inlining.disregard_inline_limits (decl);