]> git.ipfire.org Git - thirdparty/gcc.git/commit
Set default values for stack-clash and do basic validation in back-end.
authortnfchris <tnfchris@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 1 Oct 2018 13:03:31 +0000 (13:03 +0000)
committertnfchris <tnfchris@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 1 Oct 2018 13:03:31 +0000 (13:03 +0000)
commit0e7cfaa13efa1efc4c4537f6b977399af5e8f2f3
treeff7274453dc6ffacd117f066e0a1eebb7e81e800
parentde2dc8310672362e597f7436f04ea0ef1d67ea49
Set default values for stack-clash and do basic validation in back-end.

This patch enforces that the default guard size for stack-clash protection for
AArch64 be 64KB unless the user has overriden it via configure in which case
the user value is used as long as that value is within the valid range.

It also does some basic validation to ensure that the guard size is only 4KB or
64KB and also enforces that for aarch64 the stack-clash probing interval is
equal to the guard size.

gcc/

PR target/86486
* config/aarch64/aarch64.c (aarch64_override_options_internal):
Add validation for stack-clash parameters and set defaults.

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