public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-3365] testsuite: Only run -fcf-protection test on i?86/x86_64 [PR107213]
@ 2022-10-18 17:41 Marek Polacek
0 siblings, 0 replies; only message in thread
From: Marek Polacek @ 2022-10-18 17:41 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:cc694f45087c892e69ebbb177203c708f00b1bc7
commit r13-3365-gcc694f45087c892e69ebbb177203c708f00b1bc7
Author: Marek Polacek <polacek@redhat.com>
Date: Tue Oct 11 12:51:40 2022 -0400
testsuite: Only run -fcf-protection test on i?86/x86_64 [PR107213]
This test fails on non-i?86/x86_64 targets because on those targets
we get
error: '-fcf-protection=full' is not supported for this target
so this patch limits where the test is run.
PR testsuite/107213
gcc/testsuite/ChangeLog:
* c-c++-common/pointer-to-fn1.c: Only run on i?86/x86_64.
Diff:
---
gcc/testsuite/c-c++-common/pointer-to-fn1.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/gcc/testsuite/c-c++-common/pointer-to-fn1.c b/gcc/testsuite/c-c++-common/pointer-to-fn1.c
index 975885462e9..e2f948d824a 100644
--- a/gcc/testsuite/c-c++-common/pointer-to-fn1.c
+++ b/gcc/testsuite/c-c++-common/pointer-to-fn1.c
@@ -1,4 +1,5 @@
/* PR c++/106937 */
+/* { dg-do compile { target i?86-*-* x86_64-*-* } } */
/* { dg-options "-fcf-protection" } */
/* { dg-additional-options "-std=c++11 -fpermissive" { target c++ } } */
/* Test printing a pointer to function with attribute. */
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-10-18 17:41 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-18 17:41 [gcc r13-3365] testsuite: Only run -fcf-protection test on i?86/x86_64 [PR107213] Marek Polacek
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).