]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
LoongArch: testsuite: Disable stack protector for some tests
authorXi Ruoyao <xry111@xry111.site>
Fri, 3 Mar 2023 08:32:41 +0000 (16:32 +0800)
committerXi Ruoyao <xry111@xry111.site>
Mon, 6 Mar 2023 07:56:05 +0000 (15:56 +0800)
Stack protector will affect stack layout and break the expectation of
these tests, causing test failures if GCC is configured with
--enable-default-ssp.

gcc/testsuite/ChangeLog:

* gcc.target/loongarch/prolog-opt.c (dg-options): Add
-fno-stack-protector.
* gcc.target/loongarch/stack-check-cfa-1.c (dg-options):
Likewise.
* gcc.target/loongarch/stack-check-cfa-2.c (dg-options):
Likewise.

gcc/testsuite/gcc.target/loongarch/prolog-opt.c
gcc/testsuite/gcc.target/loongarch/stack-check-cfa-1.c
gcc/testsuite/gcc.target/loongarch/stack-check-cfa-2.c

index 0470a1f1eeecb56def847d89f559101487de0fa8..e6a642633842182c137fa1c6a7ff65bd49f9b54c 100644 (file)
@@ -1,7 +1,7 @@
 /* Test that LoongArch backend stack drop operation optimized.  */
 
 /* { dg-do compile } */
-/* { dg-options "-O2 -mabi=lp64d" } */
+/* { dg-options "-O2 -mabi=lp64d -fno-stack-protector" } */
 /* { dg-final { scan-assembler "addi.d\t\\\$r3,\\\$r3,-16" } } */
 
 extern int printf (char *, ...);
index f0c6877fc258a11bb8ef765a0b7000e0ad6104a6..3533fe7b685dbaa8e13d7575e02d7b864e0886ed 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-options "-O2 -fstack-clash-protection --param stack-clash-protection-guard-size=16 -funwind-tables" } */
+/* { dg-options "-O2 -fstack-clash-protection --param stack-clash-protection-guard-size=16 -funwind-tables -fno-stack-protector" } */
 /* { dg-require-effective-target supports_stack_clash_protection } */
 /* { dg-skip-if "" { *-*-* } { "-fstack-check" } { "" } } */
 
index c6e07bc561a6b2be0e568a73570319608b59895c..e5e711105ac19537d9f21624d34bef80926e9a30 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-options "-O2 -fstack-clash-protection --param stack-clash-protection-guard-size=16 -funwind-tables" } */
+/* { dg-options "-O2 -fstack-clash-protection --param stack-clash-protection-guard-size=16 -funwind-tables -fno-stack-protector" } */
 /* { dg-require-effective-target supports_stack_clash_protection } */
 /* { dg-skip-if "" { *-*-* } { "-fstack-check" } { "" } } */