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: 61365 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id DBE77383236F for ; Fri, 2 Dec 2022 12:05:59 +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+patchwork=sourceware.org@gcc.gnu.org Sender: "Gcc-patches" ..., 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]