public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-2200] i386: add -fno-stack-protector to two tests
@ 2023-06-29 20:15 Marek Polacek
  0 siblings, 0 replies; only message in thread
From: Marek Polacek @ 2023-06-29 20:15 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:7599b4fb1c7d71de236388d709c027a8559ffebd

commit r14-2200-g7599b4fb1c7d71de236388d709c027a8559ffebd
Author: Marek Polacek <polacek@redhat.com>
Date:   Thu Jun 29 15:59:29 2023 -0400

    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:
---
 gcc/testsuite/gcc.target/i386/pr104610.c  | 2 +-
 gcc/testsuite/gcc.target/i386/pr69482-1.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/gcc/testsuite/gcc.target/i386/pr104610.c b/gcc/testsuite/gcc.target/i386/pr104610.c
index fe39cbe5b8a..5173fc8898c 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 f192261b104..99bb6ad5a37 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;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-06-29 20:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-29 20:15 [gcc r14-2200] i386: add -fno-stack-protector to two tests Marek Polacek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).