Commit 34834420 by Marcus Shawcroft Committed by Marcus Shawcroft

[AArch64] Clarify stack layout comment.

From-SVN: r211268
parent 98ba7482
2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
* config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
layout comment.
2014-06-05 Jaydeep Patil <Jaydeep.Patil@imgtec.com> 2014-06-05 Jaydeep Patil <Jaydeep.Patil@imgtec.com>
Prachi Godbole <Prachi.Godbole@imgtec.com> Prachi Godbole <Prachi.Godbole@imgtec.com>
......
...@@ -2078,37 +2078,35 @@ aarch64_save_or_restore_callee_save_registers (HOST_WIDE_INT offset, ...@@ -2078,37 +2078,35 @@ aarch64_save_or_restore_callee_save_registers (HOST_WIDE_INT offset,
| | | |
| incoming stack arguments | | incoming stack arguments |
| | | |
+-------------------------------+ <-- arg_pointer_rtx +-------------------------------+
| | | | <-- incoming stack pointer (aligned)
| callee-allocated save area | | callee-allocated save area |
| for register varargs | | for register varargs |
| | | |
+-------------------------------+ <-- frame_pointer_rtx +-------------------------------+
| | | local variables | <-- frame_pointer_rtx
| local variables |
| | | |
+-------------------------------+ +-------------------------------+
| padding0 | \ | padding0 | \
+-------------------------------+ | +-------------------------------+ |
| | |
| | |
| callee-saved registers | | frame.saved_regs_size | callee-saved registers | | frame.saved_regs_size
| | |
+-------------------------------+ | +-------------------------------+ |
| LR' | | | LR' | |
+-------------------------------+ | +-------------------------------+ |
| FP' | / | FP' | / <- hard_frame_pointer_rtx (aligned)
P +-------------------------------+ <-- hard_frame_pointer_rtx +-------------------------------+
| dynamic allocation | | dynamic allocation |
+-------------------------------+ +-------------------------------+
| | | padding |
| outgoing stack arguments | +-------------------------------+
| | | outgoing stack arguments | <-- arg_pointer
+-------------------------------+ <-- stack_pointer_rtx | |
+-------------------------------+
| | <-- stack_pointer_rtx (aligned)
Dynamic stack allocations such as alloca insert data at point P. Dynamic stack allocations via alloca() decrease stack_pointer_rtx
They decrease stack_pointer_rtx but leave frame_pointer_rtx and but leave frame_pointer_rtx and hard_frame_pointer_rtx
hard_frame_pointer_rtx unchanged. */ unchanged. */
/* Generate the prologue instructions for entry into a function. /* Generate the prologue instructions for entry into a function.
Establish the stack frame by decreasing the stack pointer with a Establish the stack frame by decreasing the stack pointer with a
......
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