From: Marek Polacek Date: Thu, 29 Jun 2023 19:59:29 +0000 (-0400) Subject: i386: add -fno-stack-protector to two tests X-Git-Tag: basepoints/gcc-15~7939 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7599b4fb1c7d71de236388d709c027a8559ffebd;p=thirdparty%2Fgcc.git i386: add -fno-stack-protector to two tests These tests fail when the testsuite is executed with -fstack-protector-strong. To avoid this, this patch adds -fno-stack-protector to dg-options. gcc/testsuite/ChangeLog: * gcc.target/i386/pr104610.c: Use -fno-stack-protector. * gcc.target/i386/pr69482-1.c: Likewise. --- diff --git a/gcc/testsuite/gcc.target/i386/pr104610.c b/gcc/testsuite/gcc.target/i386/pr104610.c index fe39cbe5b8a2..5173fc8898ce 100644 --- a/gcc/testsuite/gcc.target/i386/pr104610.c +++ b/gcc/testsuite/gcc.target/i386/pr104610.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -mavx -mmove-max=256 -mstore-max=256" } */ +/* { dg-options "-O2 -mavx -mmove-max=256 -mstore-max=256 -fno-stack-protector" } */ /* { dg-final { scan-assembler-times {(?n)vptest.*ymm} 1 } } */ /* { dg-final { scan-assembler-times {sete} 1 } } */ /* { dg-final { scan-assembler-not {(?n)je.*L[0-9]} } } */ diff --git a/gcc/testsuite/gcc.target/i386/pr69482-1.c b/gcc/testsuite/gcc.target/i386/pr69482-1.c index f192261b104b..99bb6ad5a377 100644 --- a/gcc/testsuite/gcc.target/i386/pr69482-1.c +++ b/gcc/testsuite/gcc.target/i386/pr69482-1.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O3" } */ +/* { dg-options "-O3 -fno-stack-protector" } */ static inline void memset_s(void* s, int n) { volatile unsigned char * p = s;