aarch64: add -fno-stack-protector to some tests [PR108411]

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.
This commit is contained in:
Christophe Lyon 2023-01-17 13:10:10 +00:00
parent a38c079248
commit 74833b3165
10 changed files with 10 additions and 10 deletions

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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