]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
aarch64: add -fno-stack-protector to some tests [PR108411]
authorChristophe Lyon <christophe.lyon@arm.com>
Tue, 17 Jan 2023 13:10:10 +0000 (13:10 +0000)
committerChristophe Lyon <christophe.lyon@arm.com>
Thu, 19 Jan 2023 14:18:14 +0000 (14:18 +0000)
As discussed in the PR, these recently added tests fail when the
testsuite is executed with -fstack-protector-strong.  To avoid this,
this patch adds -fno-stack-protector to dg-options.

PR target/108411
gcc/testsuite
* g++.target/aarch64/bitfield-abi-warning-align16-O2-extra.C: Add
-fno-stack-protector.
* g++.target/aarch64/bitfield-abi-warning-align16-O2.C: Likewise.
* g++.target/aarch64/bitfield-abi-warning-align32-O2-extra.C: Likewise.
* g++.target/aarch64/bitfield-abi-warning-align32-O2.C: Likewise.
* g++.target/aarch64/bitfield-abi-warning-align8-O2.C: Likewise.
* gcc.target/aarch64/bitfield-abi-warning-align16-O2-extra.c: Likewise.
* gcc.target/aarch64/bitfield-abi-warning-align16-O2.c: Likewise.
* gcc.target/aarch64/bitfield-abi-warning-align32-O2-extra.c: Likewise.
* gcc.target/aarch64/bitfield-abi-warning-align32-O2.c: Likewise.
* gcc.target/aarch64/bitfield-abi-warning-align8-O2.c: Likewise.

gcc/testsuite/g++.target/aarch64/bitfield-abi-warning-align16-O2-extra.C
gcc/testsuite/g++.target/aarch64/bitfield-abi-warning-align16-O2.C
gcc/testsuite/g++.target/aarch64/bitfield-abi-warning-align32-O2-extra.C
gcc/testsuite/g++.target/aarch64/bitfield-abi-warning-align32-O2.C
gcc/testsuite/g++.target/aarch64/bitfield-abi-warning-align8-O2.C
gcc/testsuite/gcc.target/aarch64/bitfield-abi-warning-align16-O2-extra.c
gcc/testsuite/gcc.target/aarch64/bitfield-abi-warning-align16-O2.c
gcc/testsuite/gcc.target/aarch64/bitfield-abi-warning-align32-O2-extra.c
gcc/testsuite/gcc.target/aarch64/bitfield-abi-warning-align32-O2.c
gcc/testsuite/gcc.target/aarch64/bitfield-abi-warning-align8-O2.c

index 443cd458b4c0ae7915ac4d12aee88cb8e2aa5840..52f9cdd1ee92b934b73c365e2e836d012ff8b5b2 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-options "-O2 -save-temps -Wno-narrowing" } */
+/* { dg-options "-O2 -fno-stack-protector -save-temps -Wno-narrowing" } */
 
 #define ALIGN 16
 //#define EXTRA
index 76a7e3d0ad4b98a492545b8d42d412517d76104b..9ff4e46645b0e39de40fb0d8d9671ddc64e02293 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-options "-O2 -save-temps -Wno-narrowing" } */
+/* { dg-options "-O2 -fno-stack-protector -save-temps -Wno-narrowing" } */
 
 #define ALIGN 16
 #define EXTRA
index 6f8f54f41ff080672e10e18188b371fc88cc0694..55dcbfe4b7c5f0d4ddd7a83a12534b2ddb6c2d27 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-options "-O2 -save-temps -Wno-narrowing" } */
+/* { dg-options "-O2 -fno-stack-protector -save-temps -Wno-narrowing" } */
 
 #define ALIGN 32
 //#define EXTRA
index 6b8ad5fbea186ffded4c4ffe24b47b41b7926032..6bb8778ee904bf866bd50ddfd5d0c1cc0c78cb00 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-options "-O2 -save-temps -Wno-narrowing" } */
+/* { dg-options "-O2 -fno-stack-protector -save-temps -Wno-narrowing" } */
 
 #define ALIGN 32
 #define EXTRA
index b1764d97ea0d9335a5367dde110eae9f75ec058b..41bcc894a2b414640a114680d9c26abd9fc8f0dc 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-options "-O2 -save-temps -Wno-narrowing" } */
+/* { dg-options "-O2 -fno-stack-protector -save-temps -Wno-narrowing" } */
 
 #define ALIGN 8
 #define EXTRA
index f248a12950980762f4a6f38b45054378c2da1b9f..3b2c932ac231b9ff60b413040ced7ccc2eb8f272 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-options "-O2 -save-temps" } */
+/* { dg-options "-O2 -fno-stack-protector -save-temps" } */
 
 #define ALIGN 16
 //#define EXTRA
index 22ee5ec4c92314ec1ac5a6bd0ba608fe35841b8b..ee5d6faa428892ed31b2911ba1cac70a50afb23c 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-options "-O2 -save-temps" } */
+/* { dg-options "-O2 -fno-stack-protector -save-temps" } */
 
 #define ALIGN 16
 #define EXTRA
index a8a50b35e8efcbd4a4e391001a5e4b45cdf8d0fe..6d4a883a96ed4f171d7007cfe6378d9d19f76206 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-options "-O2 -save-temps" } */
+/* { dg-options "-O2 -fno-stack-protector -save-temps" } */
 
 #define ALIGN 32
 //#define EXTRA
index e872de3dbe0a506798296e5971602b4d7183b4fc..331daba354c0d746a7533daa919d8d6e3989b6e3 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-options "-O2 -save-temps" } */
+/* { dg-options "-O2 -fno-stack-protector -save-temps" } */
 
 #define ALIGN 32
 #define EXTRA
index cb2a945a81982bc1397e2a316ade6b307593c884..e6d45f5dd5cce8092cbbc812954ff8198cde8aa6 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-options "-O2 -save-temps" } */
+/* { dg-options "-O2 -fno-stack-protector -save-temps" } */
 
 #define ALIGN 8
 #define EXTRA