41f8b9fc27
Resolves: #2217498
47 lines
1.7 KiB
Diff
47 lines
1.7 KiB
Diff
From b964d2647b0da15543faed5add5044fd79a85c5c Mon Sep 17 00:00:00 2001
|
|
From: Marek Polacek <polacek@redhat.com>
|
|
Date: Thu, 29 Jun 2023 15:59:29 -0400
|
|
Subject: [PATCH] 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.
|
|
|
|
Tested on x86_64-pc-linux-gnu, ok for trunk?
|
|
|
|
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 | 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;
|
|
|
|
base-commit: 070a6bf0bdc6761ad77ac97404c98f00a7007d54
|
|
--
|
|
2.41.0
|
|
|