From: Xi Ruoyao Date: Tue, 22 Jun 2021 06:57:47 +0000 (+0800) Subject: testsuite: avoid no-stack-protector-attr-3 fail on mips*-*-* X-Git-Tag: upstream/12.2.0~6891 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=607c558804f70af2b8f0c39d4d349b349d56cc84;p=platform%2Fupstream%2Fgcc.git 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. --- diff --git a/gcc/testsuite/g++.dg/no-stack-protector-attr-3.C b/gcc/testsuite/g++.dg/no-stack-protector-attr-3.C index 56a4e74..76a5ec0 100644 --- a/gcc/testsuite/g++.dg/no-stack-protector-attr-3.C +++ b/gcc/testsuite/g++.dg/no-stack-protector-attr-3.C @@ -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*-*-* } } } }*/