]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
i386: add -fno-stack-protector to two tests
authorMarek Polacek <polacek@redhat.com>
Thu, 29 Jun 2023 19:59:29 +0000 (15:59 -0400)
committerMarek Polacek <polacek@redhat.com>
Thu, 29 Jun 2023 20:15:06 +0000 (16:15 -0400)
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.

gcc/testsuite/gcc.target/i386/pr104610.c
gcc/testsuite/gcc.target/i386/pr69482-1.c

index fe39cbe5b8a272477aa9084c1f3833fc88318f09..5173fc8898ce3e0fed9594820fa9efe6d6dbd28e 100644 (file)
@@ -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]} } } */
index f192261b104baefc10e61b4dfcc22dafa2d5eabe..99bb6ad5a377b831e5c0071f14c3a1e8f7d16a95 100644 (file)
@@ -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;