From 4c59cfc4a4da579d60bfd82404e3ff51c72aca79 Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Sat, 24 Sep 2022 14:38:31 +0800 Subject: [PATCH] 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. --- gcc/testsuite/gcc.target/aarch64/auto-init-7.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- 2.7.4