aboutsummaryrefslogtreecommitdiff
path: root/gcc/go
diff options
context:
space:
mode:
authorRichard Sandiford <richard.sandiford@arm.com>2023-09-12 16:05:06 +0100
committerRichard Sandiford <richard.sandiford@arm.com>2023-09-12 16:05:06 +0100
commit38698967268c44991e02aa1e5a2ce9382d6de9db (patch)
tree88fe33a48872d8840cd6521fdb839666e1967c04 /gcc/go
parent99305f306246079cc57d30dae7c32107f02ff3e8 (diff)
downloadgcc-38698967268c44991e02aa1e5a2ce9382d6de9db.zip
gcc-38698967268c44991e02aa1e5a2ce9382d6de9db.tar.gz
gcc-38698967268c44991e02aa1e5a2ce9382d6de9db.tar.bz2
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.
Diffstat (limited to 'gcc/go')
0 files changed, 0 insertions, 0 deletions