testsuite: avoid no-stack-protector-attr-3 fail on mips*-*-*

On MIPS a call to __stack_chk_fail needs an additional .reloc pseudo-op,
so "stack_chk_fail" will appear two times.

gcc/testsuite/

	* g++.dg/no-stack-protector-attr-3.C (dg-final): Adjust for MIPS.
This commit is contained in:
Xi Ruoyao 2021-06-22 14:57:47 +08:00
parent e9e2bad725
commit 607c558804
No known key found for this signature in database
GPG key ID: D95E4716CCBB34DC

View file

@ -20,4 +20,5 @@ int __attribute__((stack_protect)) bar()
return 0;
}
/* { dg-final { scan-assembler-times "stack_chk_fail" 1 } } */
/* { dg-final { scan-assembler-times "stack_chk_fail" 1 { target { ! mips*-*-* } } } }*/
/* { dg-final { scan-assembler-times "stack_chk_fail" 2 { target { mips*-*-* } } } }*/