]> git.ipfire.org Git - thirdparty/gcc.git/commit
aarch64: Rename hard_fp_offset to bytes_above_hard_fp
authorRichard Sandiford <richard.sandiford@arm.com>
Tue, 12 Sep 2023 15:19:47 +0000 (16:19 +0100)
committerRichard Sandiford <richard.sandiford@arm.com>
Tue, 12 Sep 2023 15:19:47 +0000 (16:19 +0100)
commitfa6600b55b49ee14d8288f13719ceea2a75eea60
treea9d83b80703af30ea9ca171ce4a96dbe59669d15
parent82fb69e75c21010f7afc72bb842751164fe8fc72
aarch64: Rename hard_fp_offset to bytes_above_hard_fp

Similarly to the previous locals_offset patch, hard_fp_offset
was described as:

  /* Offset from the base of the frame (incomming SP) to the
     hard_frame_pointer.  This value is always a multiple of
     STACK_BOUNDARY.  */
  poly_int64 hard_fp_offset;

which again took an “upside-down” view: higher offsets meant lower
addresses.  This patch renames the field to bytes_above_hard_fp instead.

gcc/
* config/aarch64/aarch64.h (aarch64_frame::hard_fp_offset): Rename
to...
(aarch64_frame::bytes_above_hard_fp): ...this.
* config/aarch64/aarch64.c (aarch64_layout_frame)
(aarch64_expand_prologue): Update accordingly.
(aarch64_initial_elimination_offset): Likewise.
gcc/config/aarch64/aarch64.c
gcc/config/aarch64/aarch64.h