diff options
author | Xi Ruoyao <xry111@xry111.site> | 2022-09-24 14:38:31 +0800 |
---|---|---|
committer | Xi Ruoyao <xry111@xry111.site> | 2023-03-07 15:37:00 +0800 |
commit | 4c59cfc4a4da579d60bfd82404e3ff51c72aca79 (patch) | |
tree | 53f84520b583b584c10040bd074c22e88eae8337 | |
parent | 2fa31207ea602d48b8f69982e0bde1d143e54ecb (diff) | |
download | gcc-4c59cfc4a4da579d60bfd82404e3ff51c72aca79.zip gcc-4c59cfc4a4da579d60bfd82404e3ff51c72aca79.tar.gz gcc-4c59cfc4a4da579d60bfd82404e3ff51c72aca79.tar.bz2 |
aarch64: testsuite: disable stack protector for auto-init-7.c
The test scans for "const_int 0" in the RTL dump, but stack protector
can produce more "const_int 0". To avoid a failure with
--enable-default-ssp, disable stack protector for this.
gcc/testsuite/ChangeLog:
* gcc.target/aarch64/auto-init-7.c (dg-options): Add
-fno-stack-protector.
-rw-r--r-- | gcc/testsuite/gcc.target/aarch64/auto-init-7.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/testsuite/gcc.target/aarch64/auto-init-7.c b/gcc/testsuite/gcc.target/aarch64/auto-init-7.c index ac27fbe..fde6e56 100644 --- a/gcc/testsuite/gcc.target/aarch64/auto-init-7.c +++ b/gcc/testsuite/gcc.target/aarch64/auto-init-7.c @@ -1,6 +1,6 @@ /* Verify zero initialization for array, union, and structure type automatic variables. */ /* { dg-do compile } */ -/* { dg-options "-ftrivial-auto-var-init=zero -fdump-rtl-expand" } */ +/* { dg-options "-ftrivial-auto-var-init=zero -fdump-rtl-expand -fno-stack-protector" } */ struct S { |