From patchwork Wed Jan 11 13:09:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Kewen.Lin" X-Patchwork-Id: 41973 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp3309501wrt; Wed, 11 Jan 2023 05:10:32 -0800 (PST) X-Google-Smtp-Source: AMrXdXsegV/k00cnbtQWuvjcs6NAhwg7LSeWFKjLcYa/qD1m1xLL8Vq4MqlWC4TgRl+YdpcZJC7X X-Received: by 2002:a17:907:2c6c:b0:828:7581:f01f with SMTP id ib12-20020a1709072c6c00b008287581f01fmr54534106ejc.23.1673442632188; Wed, 11 Jan 2023 05:10:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673442632; cv=none; d=google.com; s=arc-20160816; b=t/SNsw2Wa8gNlb/WHu3ROokDmXHSnoGJvc6c+ri5QlcQuakXTa1H6oOBaJdGVNQH8C 1PBwNtS2Se4eBsg1CIyVAZI75GtU4gTkwCPwSdZaUmUtpPVldvFlLKOdUR0apwBVbPuj A4kDD9wT3HPjZcexEzEYxpawblnli0RcuizmvqLSpcsd6FmCO8UBOuZ8231sR4wfZI49 KVo1pD1jZvQx1lIOylzc9xy0G25M4wZ9FEE/SZpfTUhdvL0YP73iSJdl9IxOHlYNhWLI lqU6QR5r99hz00lguTqDAI3ttvF3yBipUnXSpBd72hR6GVlsRzoUB8rjl3TkdCqPCtnw 0vjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence :content-transfer-encoding:subject:cc:to:content-language:user-agent :mime-version:date:message-id:dmarc-filter:delivered-to :dkim-signature:dkim-filter; bh=J9LL4gczW57DdXn2vXRYoHcdwRsMueUwsznTj4xKgag=; b=bMq+2e1HA/iNspu9qb96jLErChJ6X9UKudn6vSzpTtqnPmgrf9/lTo20BC6xU4nNWV Li466vp+1qSG9oDde1Aw784/vTNavqI2ii1ZiW3fpSYa1IUEh/Pk1wxbKBLKzW/DIDhf rXGc2MP2YbV6gAwurtvGHqwhY5bqMyV1/PBAdG9SFuI9S9MZQPm5wVBmR4fSxkNKmrpW cHAfKI7dadpDwBdrdPa95MgShtguHUcSQ2b8JWvcTMPa/c/0MHF+aOd94384uSkFr7RC 9PBF2kXQsNDLQvYTVxftynoUhtOj+0otzOStOnc1bAUsOBU4JFHHqLkqpaV07R7zP4vS rcuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b="hbPNss7/"; 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"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id dm8-20020a170907948800b007c08000a65esi16625925ejc.756.2023.01.11.05.10.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Jan 2023 05:10:32 -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; dkim=pass header.i=@gcc.gnu.org header.s=default header.b="hbPNss7/"; 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"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 147B23857C44 for ; Wed, 11 Jan 2023 13:10:31 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 147B23857C44 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1673442631; bh=J9LL4gczW57DdXn2vXRYoHcdwRsMueUwsznTj4xKgag=; h=Date:To:Cc:Subject:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=hbPNss7/ao1uQGzaYay7VZ04iEv35f0DubB7k2ye9+9flahCUhxZtD9T9IE7trHYh VV8stn5k5/q5CTfQ5HZl49YZhYXx2Ux5naBIZ534rrHS9nQOXyhGaUQbwloqUUsitG hCEOJcO2ZClZJphdnmEquG+1f3gRkPyaNiGyauns= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by sourceware.org (Postfix) with ESMTPS id 14A553858D38 for ; Wed, 11 Jan 2023 13:09:46 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 14A553858D38 Received: from pps.filterd (m0098421.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 30BBhWeU023809; Wed, 11 Jan 2023 13:09:45 GMT Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3n1qrh0j0c-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 11 Jan 2023 13:09:45 +0000 Received: from m0098421.ppops.net (m0098421.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 30BCjCWl030136; Wed, 11 Jan 2023 13:09:45 GMT Received: from ppma03ams.nl.ibm.com (62.31.33a9.ip4.static.sl-reverse.com [169.51.49.98]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3n1qrh0hyw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 11 Jan 2023 13:09:45 +0000 Received: from pps.filterd (ppma03ams.nl.ibm.com [127.0.0.1]) by ppma03ams.nl.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 30BCgJFr030779; Wed, 11 Jan 2023 13:09:43 GMT Received: from smtprelay06.fra02v.mail.ibm.com ([9.218.2.230]) by ppma03ams.nl.ibm.com (PPS) with ESMTPS id 3n1kf7gw9g-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 11 Jan 2023 13:09:43 +0000 Received: from smtpav04.fra02v.mail.ibm.com (smtpav04.fra02v.mail.ibm.com [10.20.54.103]) by smtprelay06.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 30BD9ejs20185550 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 11 Jan 2023 13:09:41 GMT Received: from smtpav04.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id D42FA2004D; Wed, 11 Jan 2023 13:09:40 +0000 (GMT) Received: from smtpav04.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 178E320040; Wed, 11 Jan 2023 13:09:39 +0000 (GMT) Received: from [9.197.230.44] (unknown [9.197.230.44]) by smtpav04.fra02v.mail.ibm.com (Postfix) with ESMTP; Wed, 11 Jan 2023 13:09:38 +0000 (GMT) Message-ID: <8cfd3eeb-9e68-9fcf-631b-18f2971fd85d@linux.ibm.com> Date: Wed, 11 Jan 2023 21:09:37 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.6.1 Content-Language: en-US To: GCC Patches Cc: Segher Boessenkool , David Edelsohn , Peter Bergner Subject: [PATCH, committed] rs6000/test: Make ppc-fortran.exp only available for PowerPC target X-TM-AS-GCONF: 00 X-Proofpoint-GUID: 3bes6ewvdEdp1z5F0IpUHnMGM4s08uM4 X-Proofpoint-ORIG-GUID: Ye-reGXIENkt0JnVkaQfOa4E7-crpODA X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.923,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2023-01-11_05,2023-01-11_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 malwarescore=0 mlxscore=0 suspectscore=0 mlxlogscore=961 adultscore=0 clxscore=1015 spamscore=0 phishscore=0 bulkscore=0 priorityscore=1501 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2301110092 X-Spam-Status: No, score=-10.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_EF, GIT_PATCH_0, KAM_SHORT, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, 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: , X-Patchwork-Original-From: "Kewen.Lin via Gcc-patches" From: "Kewen.Lin" Reply-To: "Kewen.Lin" 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?1754731781049018002?= X-GMAIL-MSGID: =?utf-8?q?1754731781049018002?= Hi, When testing one patch which adds a fortran test case into test bucket powerpc/ppc-fortran/, I found one unexpected failure on a non-PowerPC target. It's due to that ppc-fortran.exp does not exit early if the testing target isn't a PowerPC target. This patch is to make it exit immediately if the testing target isn't a PowerPC target. Tested on x86_64-redhat-linux and powerpc64{,le}-linux-gnu. Committed in r13-5108-gde99049f6fe534. BR, Kewen ----- gcc/testsuite/ChangeLog: * gcc.target/powerpc/ppc-fortran/ppc-fortran.exp: Exit immediately if the testing target isn't a PowerPC target. --- gcc/testsuite/gcc.target/powerpc/ppc-fortran/ppc-fortran.exp | 5 +++++ 1 file changed, 5 insertions(+) -- 2.34.1 diff --git a/gcc/testsuite/gcc.target/powerpc/ppc-fortran/ppc-fortran.exp b/gcc/testsuite/gcc.target/powerpc/ppc-fortran/ppc-fortran.exp index bd7ad95ad0d..ded643b56bf 100644 --- a/gcc/testsuite/gcc.target/powerpc/ppc-fortran/ppc-fortran.exp +++ b/gcc/testsuite/gcc.target/powerpc/ppc-fortran/ppc-fortran.exp @@ -16,6 +16,11 @@ # GCC testsuite that uses the `dg.exp' driver. +# Exit immediately if this isn't a PowerPC target. +if { ![istarget powerpc*-*-*] && ![istarget rs6000-*-*] } then { + return +} + # Load support procs. load_lib gfortran-dg.exp