aarch64: testsuite: disable stack protector for tests relying on stack offset
authorXi Ruoyao <xry111@xry111.site>
Sat, 24 Sep 2022 07:16:57 +0000 (15:16 +0800)
committerXi Ruoyao <xry111@xry111.site>
Tue, 7 Mar 2023 07:37:01 +0000 (15:37 +0800)
commit59a72acbccf4c81a04b4d09760fc8b16992de106
treecf49e1ae79f356fffa113a9c2f3019bcfa110e33
parent5937cfb981debb2aeb72a1ed255fc3ed5a5835c4
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.
gcc/testsuite/gcc.target/aarch64/shrink_wrap_1.c
gcc/testsuite/gcc.target/aarch64/stack-check-cfa-1.c
gcc/testsuite/gcc.target/aarch64/stack-check-cfa-2.c
gcc/testsuite/gcc.target/aarch64/test_frame_17.c