]> git.ipfire.org Git - thirdparty/gcc.git/commit
aarch64: Simplify probe of final frame allocation
authorRichard Sandiford <richard.sandiford@arm.com>
Tue, 12 Sep 2023 15:19:51 +0000 (16:19 +0100)
committerRichard Sandiford <richard.sandiford@arm.com>
Tue, 12 Sep 2023 15:19:51 +0000 (16:19 +0100)
commite932e11c353be52256dd30d30d924f4e834e3ca3
tree8d19893ed5c1d9fc4db8f35d976073b39aa060b6
parent174a9747491e591ef2abb3e20a0332303f11003a
aarch64: Simplify probe of final frame allocation

Previous patches ensured that the final frame allocation only needs
a probe when the size is strictly greater than 1KiB.  It's therefore
safe to use the normal 1024 probe offset in all cases.

The main motivation for doing this is to simplify the code and
remove the number of special cases.

gcc/
* config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space):
Always probe the residual allocation at offset 1024, asserting
that that is in range.

gcc/testsuite/
* gcc.target/aarch64/stack-check-prologue-17.c: Expect the probe
to be at offset 1024 rather than offset 0.
* gcc.target/aarch64/stack-check-prologue-18.c: Likewise.
gcc/config/aarch64/aarch64.c
gcc/testsuite/gcc.target/aarch64/stack-check-prologue-17.c
gcc/testsuite/gcc.target/aarch64/stack-check-prologue-18.c