]> gcc.gnu.org Git - gcc.git/commit
aarch64: Tweak aarch64_save/restore_callee_saves
authorRichard Sandiford <richard.sandiford@arm.com>
Tue, 12 Sep 2023 15:05:06 +0000 (16:05 +0100)
committerRichard Sandiford <richard.sandiford@arm.com>
Tue, 12 Sep 2023 15:05:06 +0000 (16:05 +0100)
commit38698967268c44991e02aa1e5a2ce9382d6de9db
tree88fe33a48872d8840cd6521fdb839666e1967c04
parent99305f306246079cc57d30dae7c32107f02ff3e8
aarch64: Tweak aarch64_save/restore_callee_saves

aarch64_save_callee_saves and aarch64_restore_callee_saves took
a parameter called start_offset that gives the offset of the
bottom of the saved register area from the current stack pointer.
However, it's more convenient for later patches if we use the
bottom of the entire frame as the reference point, rather than
the bottom of the saved registers.

Doing that removes the need for the callee_offset field.
Other than that, this is not a win on its own.  It only really
makes sense in combination with the follow-on patches.

gcc/
* config/aarch64/aarch64.h (aarch64_frame::callee_offset): Delete.
* config/aarch64/aarch64.cc (aarch64_layout_frame): Remove
callee_offset handling.
(aarch64_save_callee_saves): Replace the start_offset parameter
with a bytes_below_sp parameter.
(aarch64_restore_callee_saves): Likewise.
(aarch64_expand_prologue): Update accordingly.
(aarch64_expand_epilogue): Likewise.
gcc/config/aarch64/aarch64.cc
gcc/config/aarch64/aarch64.h
This page took 0.060099 seconds and 6 git commands to generate.