From: Marek Polacek Date: Tue, 11 Oct 2022 16:51:40 +0000 (-0400) Subject: testsuite: Only run -fcf-protection test on i?86/x86_64 [PR107213] X-Git-Tag: basepoints/gcc-14~3842 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cc694f45087c892e69ebbb177203c708f00b1bc7;p=thirdparty%2Fgcc.git 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 --git a/gcc/testsuite/c-c++-common/pointer-to-fn1.c b/gcc/testsuite/c-c++-common/pointer-to-fn1.c index 975885462e99..e2f948d824a4 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. */