public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-1806] testsuite: avoid no-stack-protector-attr-3 fail on mips*-*-*
@ 2021-06-25 2:52 Xi Ruoyao
0 siblings, 0 replies; only message in thread
From: Xi Ruoyao @ 2021-06-25 2:52 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:607c558804f70af2b8f0c39d4d349b349d56cc84
commit r12-1806-g607c558804f70af2b8f0c39d4d349b349d56cc84
Author: Xi Ruoyao <xry111@mengyan1223.wang>
Date: Tue Jun 22 14:57:47 2021 +0800
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:
---
gcc/testsuite/g++.dg/no-stack-protector-attr-3.C | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
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 56a4e74da50..76a5ec08681 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*-*-* } } } }*/
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-06-25 2:52 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-25 2:52 [gcc r12-1806] testsuite: avoid no-stack-protector-attr-3 fail on mips*-*-* Xi Ruoyao
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).