diff options
author | Tamar Christina <tamar.christina@arm.com> | 2018-10-01 13:02:21 +0000 |
---|---|---|
committer | Tamar Christina <tnfchris@gcc.gnu.org> | 2018-10-01 13:02:21 +0000 |
commit | 630b1e3a187dc843958e8966345da6191226b8e2 (patch) | |
tree | 57f791624217f9c1c15a4442b9b46dd9072d6f05 /gcc/params.def | |
parent | 8c6e3b2355b0cd245b0a4f802044d8fd885ea03e (diff) | |
download | gcc-630b1e3a187dc843958e8966345da6191226b8e2.zip gcc-630b1e3a187dc843958e8966345da6191226b8e2.tar.gz gcc-630b1e3a187dc843958e8966345da6191226b8e2.tar.bz2 |
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
Diffstat (limited to 'gcc/params.def')
-rw-r--r-- | gcc/params.def | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/params.def b/gcc/params.def index 9f06973..4a5f204 100644 --- a/gcc/params.def +++ b/gcc/params.def @@ -213,14 +213,15 @@ DEFPARAM(PARAM_STACK_FRAME_GROWTH, "Maximal stack frame growth due to inlining (in percent).", 1000, 0, 0) +/* Keep these up to date with those in configure.ac. */ DEFPARAM(PARAM_STACK_CLASH_PROTECTION_GUARD_SIZE, "stack-clash-protection-guard-size", - "Size of the stack guard expressed as a power of two.", + "Size of the stack guard expressed as a power of two in bytes.", 12, 12, 30) DEFPARAM(PARAM_STACK_CLASH_PROTECTION_PROBE_INTERVAL, "stack-clash-protection-probe-interval", - "Interval in which to probe the stack expressed as a power of two.", + "Interval in which to probe the stack expressed as a power of two in bytes.", 12, 10, 16) /* The GCSE optimization will be disabled if it would require |