From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTPS id 6DDA93858D28 for ; Tue, 11 Oct 2022 16:57:58 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 6DDA93858D28 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1665507478; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=b6edgkwmcjT1u+LC9pET7gHpmAuvNFmYPd2F0RP16X4=; b=UAq8nqkuY2T159g8bWcM35G28smOsS56kDfT65Jq1ZzuixFUvxF9M73hKDqbEdtUjeEniB nSFSYzhFfuwhpRgJwEdZYR3na8PfNyFj6JuDLLWrdS9mxhvVCct+rCQymPORBpiYXT957r dHqsNCPBzyYEaNYeH1NkequmiMOOSRc= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-531-sQJAJLEHP-C3gtL2pl30yA-1; Tue, 11 Oct 2022 12:57:56 -0400 X-MC-Unique: sQJAJLEHP-C3gtL2pl30yA-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id CAB043C1104A for ; Tue, 11 Oct 2022 16:57:55 +0000 (UTC) Received: from pdp-11.redhat.com (unknown [10.22.17.139]) by smtp.corp.redhat.com (Postfix) with ESMTP id B3CAAC2C8D8 for ; Tue, 11 Oct 2022 16:57:55 +0000 (UTC) From: Marek Polacek To: GCC Patches Subject: [PATCH] testsuite: Only run -fcf-protection test on i?86/x86_64 [PR107213] Date: Tue, 11 Oct 2022 12:57:50 -0400 Message-Id: <20221011165750.328974-1-polacek@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.8 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII"; x-default=true X-Spam-Status: No, score=-12.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,GIT_PATCH_0,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: 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. Tested on x86_64-pc-linux-gnu, ok for trunk? gcc/testsuite/ChangeLog: * c-c++-common/pointer-to-fn1.c: Only run on i?86/x86_64. --- 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. */ base-commit: 637e3668fdc17c4e226538fb14f9fab225433d01 -- 2.37.3