aboutsummaryrefslogtreecommitdiff
path: root/gcc/ipa-inline.c
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2011-02-15 18:36:44 +0000
committerAlexandre Oliva <aoliva@gcc.gnu.org>2011-02-15 18:36:44 +0000
commit30925d946aa6b2bf93cc9f090ca517f3622df1ff (patch)
tree9313ad3b545e7a4daed208b127cfbe5ded452723 /gcc/ipa-inline.c
parent1b9a784a8988c08979949b85fcf9746574a72ae0 (diff)
downloadgcc-30925d946aa6b2bf93cc9f090ca517f3622df1ff.zip
gcc-30925d946aa6b2bf93cc9f090ca517f3622df1ff.tar.gz
gcc-30925d946aa6b2bf93cc9f090ca517f3622df1ff.tar.bz2
re PR debug/47106 (-fcompare-debug failure (length) with -fpartial-inlining -flto -fconserve-stack)
PR debug/47106 PR debug/47402 * tree-inline.h (estimated_stack_frame_size): Take cgraph node rather than decl. * cfgexpand.c (estimated_stack_frame_size): Likewise. * ipa-inline.c (compute_inline_parameters): Adjust. From-SVN: r170187
Diffstat (limited to 'gcc/ipa-inline.c')
-rw-r--r--gcc/ipa-inline.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/ipa-inline.c b/gcc/ipa-inline.c
index d611d11..595d476 100644
--- a/gcc/ipa-inline.c
+++ b/gcc/ipa-inline.c
@@ -1982,9 +1982,8 @@ compute_inline_parameters (struct cgraph_node *node)
gcc_assert (!node->global.inlined_to);
- /* Estimate the stack size for the function. But not at -O0
- because estimated_stack_frame_size is a quadratic problem. */
- self_stack_size = optimize ? estimated_stack_frame_size (node->decl) : 0;
+ /* Estimate the stack size for the function if we're optimizing. */
+ self_stack_size = optimize ? estimated_stack_frame_size (node) : 0;
inline_summary (node)->estimated_self_stack_size = self_stack_size;
node->global.estimated_stack_size = self_stack_size;
node->global.stack_frame_offset = 0;