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:
parent
e9e2bad725
commit
607c558804
1 changed files with 2 additions and 1 deletions
|
@ -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*-*-* } } } }*/
|
||||
|
|
Loading…
Add table
Reference in a new issue