Allow setting of stack-clash via configure options.
authorTamar Christina <tamar.christina@arm.com>
Mon, 1 Oct 2018 13:02:21 +0000 (13:02 +0000)
committerTamar Christina <tnfchris@gcc.gnu.org>
Mon, 1 Oct 2018 13:02:21 +0000 (13:02 +0000)
commit630b1e3a187dc843958e8966345da6191226b8e2
tree57f791624217f9c1c15a4442b9b46dd9072d6f05
parent8c6e3b2355b0cd245b0a4f802044d8fd885ea03e
Allow setting of stack-clash via configure options.

This patch defines a configure option to allow the setting of the default
guard size via configure flags when building the target.

The new flag is:

 * --with-stack-clash-protection-guard-size=<num>

The patch defines a new macro DEFAULT_STK_CLASH_GUARD_SIZE which targets need
to use explicitly is they want to support this configure flag and values that
users may have set.

gcc/

PR target/86486
* configure.ac: Add stack-clash-protection-guard-size.
* doc/install.texi: Document it.
* config.in (DEFAULT_STK_CLASH_GUARD_SIZE): New.
* params.def: Update comment for guard-size.
(PARAM_STACK_CLASH_PROTECTION_GUARD_SIZE,
PARAM_STACK_CLASH_PROTECTION_PROBE_INTERVAL): Update description.
* configure: Regenerate.

From-SVN: r264752
gcc/ChangeLog
gcc/config.in
gcc/configure
gcc/configure.ac
gcc/doc/install.texi
gcc/params.def