Allow setting of stack-clash via configure options

Programming / Compilers / GCC - tnfchris [138bc75d-0d04-0410-961f-82ee72b054a4] - 1 October 2018 13:02 EDT

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=

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.

de2dc831067 Allow setting of stack-clash via configure options.
gcc/ChangeLog | 11 +++++++++++
gcc/config.in | 7 +++++++
gcc/configure | 36 ++++++++++++++++++++++++++++++++++--
gcc/configure.ac | 23 +++++++++++++++++++++++
gcc/doc/install.texi | 5 +++++
gcc/params.def | 5 +++--
6 files changed, 83 insertions(+), 4 deletions(-)

Upstream: gcc.gnu.org


  • Share