Commit 55256000 by Thomas Klein Committed by Ian Lance Taylor

arm.c (arm_expand_prologue): Report the static stack size if -fstack-usage is used.

	* config/arm/arm.c (arm_expand_prologue): Report the static stack
	size if -fstack-usage is used.
	(thumb1_expand_prologue): Likewise.

From-SVN: r167805
parent f5b77e7d
2010-12-14 Thomas Klein <th.r.klein@web.de>
* config/arm/arm.c (arm_expand_prologue): Report the static stack
size if -fstack-usage is used.
(thumb1_expand_prologue): Likewise.
2010-12-14 Jakub Jelinek <jakub@redhat.com>
PR debug/46885
......@@ -15816,6 +15816,10 @@ arm_expand_prologue (void)
}
}
if (flag_stack_usage)
current_function_static_stack_size
= offsets->outgoing_args - offsets->saved_args;
if (offsets->outgoing_args != offsets->saved_args + saved_regs)
{
/* This add can produce multiple insns for a large constant, so we
......@@ -20628,6 +20632,10 @@ thumb1_expand_prologue (void)
emit_move_insn (gen_rtx_REG (Pmode, ARM_HARD_FRAME_POINTER_REGNUM),
stack_pointer_rtx);
if (flag_stack_usage)
current_function_static_stack_size
= offsets->outgoing_args - offsets->saved_args;
amount = offsets->outgoing_args - offsets->saved_regs;
amount -= 4 * thumb1_extra_regs_pushed (offsets, true);
if (amount)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment