Commit b9553e20 by Andreas Krebbel Committed by Andreas Krebbel

Revert "Drop excess size used for run time allocated stack variables."

This patch caused a bootstrap failure on AIX.

2016-08-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>

	Revert
	2016-08-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>

	* explow.c (get_dynamic_stack_size): Take known alignment of stack
	pointer + STACK_DYNAMIC_OFFSET into account when calculating the
	size needed.

From-SVN: r239735
parent 0630b8ec
2016-08-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
Revert
2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
* explow.c (get_dynamic_stack_size): Take known alignment of stack
pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
needed.
2016-08-24 Thomas Preud'homme <thomas.preudhomme@arm.com> 2016-08-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
* doc/fragments.texi (MULTILIB_REUSE): Mention that only options in * doc/fragments.texi (MULTILIB_REUSE): Mention that only options in
......
...@@ -1224,15 +1224,9 @@ get_dynamic_stack_size (rtx *psize, unsigned size_align, ...@@ -1224,15 +1224,9 @@ get_dynamic_stack_size (rtx *psize, unsigned size_align,
example), so we must preventively align the value. We leave space example), so we must preventively align the value. We leave space
in SIZE for the hole that might result from the alignment operation. */ in SIZE for the hole that might result from the alignment operation. */
unsigned known_align = REGNO_POINTER_ALIGN (VIRTUAL_STACK_DYNAMIC_REGNUM); extra = (required_align - BITS_PER_UNIT) / BITS_PER_UNIT;
if (known_align == 0) size = plus_constant (Pmode, size, extra);
known_align = BITS_PER_UNIT; size = force_operand (size, NULL_RTX);
if (required_align > known_align)
{
extra = (required_align - known_align) / BITS_PER_UNIT;
size = plus_constant (Pmode, size, extra);
size = force_operand (size, NULL_RTX);
}
if (flag_stack_usage_info && pstack_usage_size) if (flag_stack_usage_info && pstack_usage_size)
*pstack_usage_size += extra; *pstack_usage_size += extra;
......
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