]> git.ipfire.org Git - thirdparty/gcc.git/commit
Set default values for stack-clash and do basic validation in back-end.
authorTamar Christina <tamar.christina@arm.com>
Mon, 1 Oct 2018 13:03:31 +0000 (13:03 +0000)
committerTamar Christina <tnfchris@gcc.gnu.org>
Mon, 1 Oct 2018 13:03:31 +0000 (13:03 +0000)
commitfbe9af5042f7c09bc00c105ef1a30ac7149171e4
treeff7274453dc6ffacd117f066e0a1eebb7e81e800
parent630b1e3a187dc843958e8966345da6191226b8e2
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.

From-SVN: r264753
gcc/ChangeLog
gcc/config/aarch64/aarch64.c