]> git.ipfire.org Git - thirdparty/gcc.git/commit
LoongArch: testsuite: Disable stack protector for got-load.C
authorXi Ruoyao <xry111@xry111.site>
Tue, 23 Jan 2024 11:32:38 +0000 (19:32 +0800)
committerXi Ruoyao <xry111@xry111.site>
Tue, 23 Jan 2024 15:44:26 +0000 (23:44 +0800)
commit46f3ba56c47f002153d23334348dadea206dae79
tree13124783bbc27f6f64977cfb565b52a26c3d6261
parentc608ada288ced0268bbbbc1fd4136f56c34b24d4
LoongArch: testsuite: Disable stack protector for got-load.C

When building GCC with --enable-default-ssp, the stack protector is
enabled for got-load.C, causing additional GOT loads for
__stack_chk_guard.  So mem/u will be matched more than 2 times and the
test will fail.

Disable stack protector to fix this issue.

gcc/testsuite:

* g++.target/loongarch/got-load.C (dg-options): Add
-fno-stack-protector.
gcc/testsuite/g++.target/loongarch/got-load.C