]> git.ipfire.org Git - thirdparty/gcc.git/commit
[AArch64] Add an assert to aarch64_layout_frame
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 16 Oct 2019 10:48:00 +0000 (10:48 +0000)
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 16 Oct 2019 10:48:00 +0000 (10:48 +0000)
commit2c6099c2c51b6bd6ac1f724f1e9152b037843a60
tree1e0cbd25323b44168468d6a6081b6937129bfe37
parent9c12da9a81ce71c85b58206f547c80003a0253e3
[AArch64] Add an assert to aarch64_layout_frame

This patch adds an assert that all the individual *_adjust allocations
add up to the full frame size.  With that safety net, it seemed slightly
clearer to use crtl->outgoing_args_size as the final adjustment where
appropriate, to match what's used in the comments.

This is a bit overkill on its own, but I need to add more cases for SVE.

2019-10-16  Richard Sandiford  <richard.sandiford@arm.com>

gcc/
* config/aarch64/aarch64.c (aarch64_layout_frame): Assert
that all the adjustments add up to the full frame size.
Use crtl->outgoing_args_size directly as the final adjustment
where appropriate.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@277060 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/config/aarch64/aarch64.c