From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1448) id 7E7243858439; Thu, 4 Nov 2021 18:40:44 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7E7243858439 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Andreas Krebbel To: gcc-cvs@gcc.gnu.org Subject: [gcc r12-4926] IBM Z: Define STACK_CHECK_MOVING_SP X-Act-Checkin: gcc X-Git-Author: Andreas Krebbel X-Git-Refname: refs/heads/master X-Git-Oldrev: b57899f30f4325a6fe4c791cf01a6a8c94b4ae50 X-Git-Newrev: 79fe28d2c4b78562de095c1843d8d3b1a1e7d2d7 Message-Id: <20211104184044.7E7243858439@sourceware.org> Date: Thu, 4 Nov 2021 18:40:44 +0000 (GMT) X-BeenThere: gcc-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Nov 2021 18:40:44 -0000 https://gcc.gnu.org/g:79fe28d2c4b78562de095c1843d8d3b1a1e7d2d7 commit r12-4926-g79fe28d2c4b78562de095c1843d8d3b1a1e7d2d7 Author: Andreas Krebbel Date: Thu Nov 4 19:37:19 2021 +0100 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. Diff: --- gcc/config/s390/s390.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gcc/config/s390/s390.h b/gcc/config/s390/s390.h index fb16a455a03..186c5c6200b 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). */