]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
aarch64: testsuite: disable stack protector for auto-init-7.c
authorXi Ruoyao <xry111@xry111.site>
Sat, 24 Sep 2022 06:38:31 +0000 (14:38 +0800)
committerXi Ruoyao <xry111@xry111.site>
Thu, 15 Jun 2023 10:20:14 +0000 (18:20 +0800)
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.

(cherry picked from commit 4c59cfc4a4da579d60bfd82404e3ff51c72aca79)

gcc/testsuite/gcc.target/aarch64/auto-init-7.c

index ac27fbe92f4a369913183853efb67e07a34d7b11..fde6e5685328ba41585d60f7e1c2c8627f5d5b30 100644 (file)
@@ -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
 {