LoongArch: testsuite: Disable stack protector for some tests
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.
This commit is contained in:
parent
75eccddef5
commit
67401d4597
3 changed files with 3 additions and 3 deletions
|
@ -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 *, ...);
|
||||
|
|
|
@ -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" } { "" } } */
|
||||
|
||||
|
|
|
@ -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" } { "" } } */
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue