diff options
author | Andreas Krebbel <krebbel@linux.ibm.com> | 2021-11-04 19:37:19 +0100 |
---|---|---|
committer | Andreas Krebbel <krebbel@linux.ibm.com> | 2021-11-04 19:40:33 +0100 |
commit | 79fe28d2c4b78562de095c1843d8d3b1a1e7d2d7 (patch) | |
tree | d0bfd90d5fc801dc0c3dcaa652df86ddb8f6c349 /gcc | |
parent | b57899f30f4325a6fe4c791cf01a6a8c94b4ae50 (diff) | |
download | gcc-79fe28d2c4b78562de095c1843d8d3b1a1e7d2d7.zip gcc-79fe28d2c4b78562de095c1843d8d3b1a1e7d2d7.tar.gz gcc-79fe28d2c4b78562de095c1843d8d3b1a1e7d2d7.tar.bz2 |
IBM Z: Define STACK_CHECK_MOVING_SP
With -fstack-check the stack probes emitted access memory below the
stack pointer.
gcc/ChangeLog:
* config/s390/s390.h (STACK_CHECK_MOVING_SP): New macro
definition.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/config/s390/s390.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/config/s390/s390.h b/gcc/config/s390/s390.h index fb16a45..186c5c6 100644 --- a/gcc/config/s390/s390.h +++ b/gcc/config/s390/s390.h @@ -332,6 +332,11 @@ extern const char *s390_host_detect_local_cpu (int argc, const char **argv); #define STACK_SIZE_MODE (Pmode) +/* Make the stack pointer to be moved downwards while issuing stack probes with + -fstack-check. We need this to prevent memory below the stack pointer from + being accessed. */ +#define STACK_CHECK_MOVING_SP 1 + #ifndef IN_LIBGCC2 /* Width of a word, in units (bytes). */ |