Skip to content
Snippets Groups Projects
Unverified Commit 59a72acb authored by Xi Ruoyao's avatar Xi Ruoyao
Browse files

aarch64: testsuite: disable stack protector for tests relying on stack offset

Stack protector needs a guard value on the stack and change the stack
layout.  So we need to disable it for those tests, to avoid test failure
with --enable-default-ssp.

gcc/testsuite/ChangeLog:

	* gcc.target/aarch64/shrink_wrap_1.c (dg-options): Add
	-fno-stack-protector.
	* gcc.target/aarch64/stack-check-cfa-1.c (dg-options): Add
	-fno-stack-protector.
	* gcc.target/aarch64/stack-check-cfa-2.c (dg-options): Add
	-fno-stack-protector.
	* gcc.target/aarch64/test_frame_17.c (dg-options): Add
	-fno-stack-protector.
parent 5937cfb9
No related branches found
No related tags found
No related merge requests found
/* { dg-do compile { target { aarch64*-*-* } } } */ /* { dg-do compile { target { aarch64*-*-* } } } */
/* { dg-options "-O2" } */ /* { dg-options "-O2 -fno-stack-protector" } */
/* { dg-final { check-function-bodies "**" "" } } */ /* { dg-final { check-function-bodies "**" "" } } */
/* /*
......
/* { dg-do compile } */ /* { 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-require-effective-target supports_stack_clash_protection } */
#define SIZE 128*1024 #define SIZE 128*1024
......
/* { dg-do compile } */ /* { 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-require-effective-target supports_stack_clash_protection } */
#define SIZE 1280*1024 + 512 #define SIZE 1280*1024 + 512
......
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-options "-O2" } */ /* { dg-options "-O2 -fno-stack-protector" } */
/* Test reuse of stack adjustment temporaries. */ /* Test reuse of stack adjustment temporaries. */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment