]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[AArch64] Clarify stack layout comment.
authorMarcus Shawcroft <marcus.shawcroft@arm.com>
Thu, 5 Jun 2014 11:37:44 +0000 (11:37 +0000)
committerMarcus Shawcroft <mshawcroft@gcc.gnu.org>
Thu, 5 Jun 2014 11:37:44 +0000 (11:37 +0000)
From-SVN: r211268

gcc/ChangeLog
gcc/config/aarch64/aarch64.c

index be92e0f5c0952e9a91077c19f95cbd6426fb3a52..e2b856287d2afe9813383439314cf41c75941bed 100644 (file)
@@ -1,3 +1,8 @@
+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>
            Prachi Godbole  <Prachi.Godbole@imgtec.com>
 
index b26e5f54fae40c65f46f4a644391a9eb460262e3..7c59e8bcac32c376566806cfd4daaafeda70cc93 100644 (file)
@@ -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