This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[AArch64][COMMITTED] Update stack layout comment.
- From: Marcus Shawcroft <marcus dot shawcroft at arm dot com>
- To: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 05 Jun 2014 12:37:24 +0100
- Subject: [AArch64][COMMITTED] Update stack layout comment.
- Authentication-results: sourceware.org; auth=none
I've committed to the attached to clarify the stack layout comment.
/Marcus
diff --git a/gcc/config/aarch64/aarch64.c b/gcc/config/aarch64/aarch64.c
index 961e5c9..3348cf2 100644
--- a/gcc/config/aarch64/aarch64.c
+++ b/gcc/config/aarch64/aarch64.c
@@ -2078,37 +2078,35 @@ aarch64_save_or_restore_callee_save_registers (HOST_WIDE_INT offset,
| |
| incoming stack arguments |
| |
- +-------------------------------+ <-- arg_pointer_rtx
- | |
+ +-------------------------------+
+ | | <-- incoming stack pointer (aligned)
| callee-allocated save area |
| for register varargs |
| |
- +-------------------------------+ <-- frame_pointer_rtx
- | |
- | local variables |
+ +-------------------------------+
+ | local variables | <-- frame_pointer_rtx
| |
+-------------------------------+
| padding0 | \
+-------------------------------+ |
- | | |
- | | |
| callee-saved registers | | frame.saved_regs_size
- | | |
+-------------------------------+ |
| LR' | |
+-------------------------------+ |
- | FP' | /
- P +-------------------------------+ <-- hard_frame_pointer_rtx
+ | FP' | / <- hard_frame_pointer_rtx (aligned)
+ +-------------------------------+
| dynamic allocation |
+-------------------------------+
- | |
- | outgoing stack arguments |
- | |
- +-------------------------------+ <-- stack_pointer_rtx
+ | padding |
+ +-------------------------------+
+ | outgoing stack arguments | <-- arg_pointer
+ | |
+ +-------------------------------+
+ | | <-- stack_pointer_rtx (aligned)
- Dynamic stack allocations such as alloca insert data at point P.
- They decrease stack_pointer_rtx but leave frame_pointer_rtx and
- hard_frame_pointer_rtx unchanged. */
+ Dynamic stack allocations via alloca() decrease stack_pointer_rtx
+ but leave frame_pointer_rtx and hard_frame_pointer_rtx
+ unchanged. */
/* Generate the prologue instructions for entry into a function.
Establish the stack frame by decreasing the stack pointer with a
--
1.7.9.5