From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1734) id B0A5A385841F; Tue, 18 Oct 2022 17:41:18 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B0A5A385841F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1666114878; bh=yKWeJEDl5mAMpM+TWxVB3lmpRmg9/6jWM13MSDQ/KBg=; h=From:To:Subject:Date:From; b=E5qxnuN9q3QpH+hwsK53IMyHwVZAiSo4rVZOPwYUmxHvG6UkyimSQV/oxoRWU3Mv/ TAQokN+bnmH+4zWPNoTkx48/ZjkTZeOBAIpWz3QI8D5QkMfDiK85lFO+QAvLueQIs5 1rp9NBH1vsVGsJbDpiJRUdI/1h3Nkzxr/CsF6wco= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Marek Polacek To: gcc-cvs@gcc.gnu.org Subject: [gcc r13-3365] testsuite: Only run -fcf-protection test on i?86/x86_64 [PR107213] X-Act-Checkin: gcc X-Git-Author: Marek Polacek X-Git-Refname: refs/heads/trunk X-Git-Oldrev: 885b6660c17fb91980b5682514ef54668e544b02 X-Git-Newrev: cc694f45087c892e69ebbb177203c708f00b1bc7 Message-Id: <20221018174118.B0A5A385841F@sourceware.org> Date: Tue, 18 Oct 2022 17:41:18 +0000 (GMT) List-Id: https://gcc.gnu.org/g:cc694f45087c892e69ebbb177203c708f00b1bc7 commit r13-3365-gcc694f45087c892e69ebbb177203c708f00b1bc7 Author: Marek Polacek 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. */