From patchwork Fri Dec 2 12:03:15 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Thomas Schwinge X-Patchwork-Id: 28899 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp800493wrr; Fri, 2 Dec 2022 04:09:23 -0800 (PST) X-Google-Smtp-Source: AA0mqf73yF5out47nzLvwDwYuodvIbJQzE/9iZqVFWt9iU12FZX4z1FVzd9GNHpe1yTHOQH099vb X-Received: by 2002:a17:906:2604:b0:78a:d0a4:176 with SMTP id h4-20020a170906260400b0078ad0a40176mr61408584ejc.720.1669982963105; Fri, 02 Dec 2022 04:09:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669982963; cv=none; d=google.com; s=arc-20160816; b=JvCyEmJnceX9CMtUyAjlmYwiwjSw5PrXmD+Ua0t+cId31e7gmZ83KHbEYfGiKqUj1+ KLPAk44HVDsEiHs5emkFYjfTV+/ft5f0/3duLHceHCmb2SXYMjgyTTlTRIi3kfJfoGZ5 Pl0jYS+gUQH2KjJmnmgs8oGYW6S9hTwP0Ef+HwenEcqrW/Fy4h988pg52atgVs7v9VzP tZfQnxFbexWT7muVlvOYR7pomT97qbnRdoRBVTJQTJrkt1jxv2Y/V3jbjEmGbtYiDEE3 Q0xzsswLizn4BjUhRg43SsN50lT8cGHEUGVUUHuV95WonJsZ4PU84KHVPO8x6u7qZKZc Ikjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :ironport-sdr:dmarc-filter:delivered-to; bh=fsann8Bs+rXBd7/Axsg2iJa6eFm+fFn7TI6BPJwktaY=; b=oIc0jWiXKTIP72h7o/r41H4WzUiAKpSWuv/taTzRDqaLsRCuKvMCBQR8ltDspP2mA3 36qjOmtBQoQsVS9GXBm5A+1JbCXvKcukuueZ9Y5WpL/EYft1dDgfqo6oOhApVjxJCLMe OqSa5+49nrNl8Vuoz0H+c00iaX938wN1dmaU7VwbUDjtPhCPSGdqzjgyagwrPbYycOuX ZjwT51yPqoCgPTBpi/vYhjpX3Wqm+rA1243Lon6dmPadpTwcIIRAQbggfh4PIU1t6vS6 //fSB3K98N27i67N6sYRHZyEiW768sTyYKzXPq1kQE/N7J0XJrmIFUlax8jJQiac/csX iVCA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id y2-20020a056402440200b004692b547022si6546835eda.526.2022.12.02.04.09.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Dec 2022 04:09:23 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 8D5CE385B53F for ; Fri, 2 Dec 2022 12:06:07 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from esa1.mentor.iphmx.com (esa1.mentor.iphmx.com [68.232.129.153]) by sourceware.org (Postfix) with ESMTPS id 5D6A33853D74 for ; Fri, 2 Dec 2022 12:03:51 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 5D6A33853D74 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=codesourcery.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=mentor.com X-IronPort-AV: E=Sophos;i="5.96,212,1665475200"; d="scan'208";a="91487290" Received: from orw-gwy-01-in.mentorg.com ([192.94.38.165]) by esa1.mentor.iphmx.com with ESMTP; 02 Dec 2022 04:03:51 -0800 IronPort-SDR: dhHTMt5t/uhLdcFN1p/jPCw0kQSB53dPussmjqxKCLKKF8X4sZI3oaTu7ivCEunK/mHy9Th8KS d7NZMH/sTs9lStFZD0pQ+MIeJF8svtEo7nchH/zUHGdZ3WXQy8ldaSETSDs1SRlx/u7F0p9lg4 3I7aLUrcPZnHpwlstP9JywwUf4xY+Gaz89TW9dw9e+eASHUlz34bkFFk1OU5CyJdYEdzY++1XH EgP51VN4AUPo+CL/ztRvMEEcBwKGvXKPMg2uxH2bbSvgTVSoMfBPo0yW2x8cqQECDmMSO7iu27 2JA= From: Thomas Schwinge To: , Subject: [PATCH 9/9] nvptx: Re-enable 'gcc.misc-tests/options.exp' Date: Fri, 2 Dec 2022 13:03:15 +0100 Message-ID: <20221202120315.803120-10-thomas@codesourcery.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20221202120315.803120-1-thomas@codesourcery.com> References: <20221202120315.803120-1-thomas@codesourcery.com> MIME-Version: 1.0 X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: svr-ies-mbx-14.mgc.mentorg.com (139.181.222.14) To svr-ies-mbx-10.mgc.mentorg.com (139.181.222.10) X-Spam-Status: No, score=-11.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, SPF_HELO_PASS, SPF_PASS, 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 X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1751104055194948740?= X-GMAIL-MSGID: =?utf-8?q?1751104055194948740?= ..., just conditionalize its profiling test (as done elsewhere). gcc/testsuite/ * gcc.misc-tests/options.exp: Re-enable for nvptx. --- gcc/testsuite/gcc.misc-tests/options.exp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) -- 2.35.1 ----------------- Siemens Electronic Design Automation GmbH; Anschrift: Arnulfstraße 201, 80634 München; Gesellschaft mit beschränkter Haftung; Geschäftsführer: Thomas Heurung, Frank Thürauf; Sitz der Gesellschaft: München; Registergericht München, HRB 106955 diff --git a/gcc/testsuite/gcc.misc-tests/options.exp b/gcc/testsuite/gcc.misc-tests/options.exp index c939aef1f4bc..a055786ea0c1 100644 --- a/gcc/testsuite/gcc.misc-tests/options.exp +++ b/gcc/testsuite/gcc.misc-tests/options.exp @@ -21,12 +21,6 @@ load_lib gcc-defs.exp -# disable for non-profile targets explitly, rather than -# rely on check-effective target. We're explicitly trying to check -# profiling works, and if it doesn't check-effective-target will -# simply skip the tests, rather than have this test shout at us. -if [ istarget "nvptx-*-*" ] { return 0 } - # These tests don't run runtest_file_p consistently if it # doesn't return the same values, so disable parallelization # of this *.exp file. The first parallel runtest to reach @@ -73,7 +67,9 @@ proc check_for_all_options {language gcc_options compiler_pattern as_pattern ld_ pass $test } -check_for_all_options c {--coverage} {-fprofile-arcs -ftest-coverage} {} {-lgcov} +if { [check_profiling_available "-fprofile-arcs"] } { + check_for_all_options c {--coverage} {-fprofile-arcs -ftest-coverage} {} {-lgcov} +} proc get_dump_flags {} { set res [list]