Message ID | 60621672-5c9e-ddb3-51fa-5565d678899c@linux.ibm.com |
---|---|
State | Accepted |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp1742022wrd; Mon, 6 Mar 2023 01:28:48 -0800 (PST) X-Google-Smtp-Source: AK7set8hRCTPal0tCDD/YKQodLg1HWZuQGSWzw6aqvLf0sERycgnueCupfvdZYEfyFv/639AwYwk X-Received: by 2002:aa7:d6d8:0:b0:4a0:af87:b3ab with SMTP id x24-20020aa7d6d8000000b004a0af87b3abmr8078248edr.36.1678094928023; Mon, 06 Mar 2023 01:28:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1678094928; cv=none; d=google.com; s=arc-20160816; b=PKg/nF7fgUodYD8QGYn42zcnztXpeEx5NTgnzLhx5yufyKCq1qjIsCK5KmCLJMY6Ks hr+JU06IMEqzcMQvCS9LOdjVIhFAxhRxX3fXCD803HA20Y0H/Iu8kpO8RYCuVFXbYlLj TlnDid6NY9mteNTwKx2uGDW+jGtfs8MvlLllBUT2Cy1S0S6K1gKO86NO9OxlCWFn3FmQ oD686u6urTr2WWnX+t7cMO+jgRUEFM71jg8wt3/HyObo4eRyJl/dJqWYCL3NqxoCs+4g cigYkkfWRDBCLbmryaL630aTgJlR2eZiMEiSbZG5poKTMZJRxJP+EeO8Wnvg9+oqAroz iLIA== 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:mime-version :content-transfer-encoding:subject:cc:to:content-language:user-agent :date:message-id:dmarc-filter:delivered-to:dkim-signature :dkim-filter; bh=MhI6ezO5Y67C1t1ZNwvfKr0FAV6wQjihWqHx3rBhimw=; b=IfUM4FvPumcPhjBE618V+x6ntlHCq+8ojBVtK7E9rDAPZ2AY3Qo4U4GdjbCxvhpSCY esOosPv064J4I9mnDH+aIuIkjhDYOwm7JVfYvikzkUbK+WMG36G8fZ5ViMrxuM5/9ZDL 45TkR1V0c/0dGN04ik9LsyY54Oec5fJtT87TAVjveGqySWBQmOQIW+uNURo9/G6UvkGn hyM9yRMIuInb3D68AMyv1OVRpZi11T2eSMQC0RRN/YTBAEclXRzgPE9BQx/XCvbZ4Aea TtKAk6CtH0oN5H3TvVWfWtgHGilAxOIEPgXY6I9Ai89mz155ByljEpI25SgggMcUJfMm rnCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=cSWYnpid; 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 (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id f3-20020a05640214c300b004ad7203a2c6si10384351edx.230.2023.03.06.01.28.47 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Mar 2023 01:28:48 -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=cSWYnpid; 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 19C9E3858035 for <ouuuleilei@gmail.com>; Mon, 6 Mar 2023 09:28:47 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 19C9E3858035 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1678094927; bh=MhI6ezO5Y67C1t1ZNwvfKr0FAV6wQjihWqHx3rBhimw=; h=Date:To:Cc:Subject:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=cSWYnpide1fEW+o5itSOV8Kx1pMZZuDqpZXLjkAU2pOZwAHgeIj4qJuqyQEoF3o1d SibEH/rzJ9IjK0jF3synxsWMQ9YxntG8dPOgYFzxb328hEjDyot6p5hGbGaJFmAr/w xF5Nqm58zVzx1156Da2v7sjyYn2VCHneij+G2n7c= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mx0a-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by sourceware.org (Postfix) with ESMTPS id DE699385735E for <gcc-patches@gcc.gnu.org>; Mon, 6 Mar 2023 09:27:59 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org DE699385735E Received: from pps.filterd (m0098416.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3268M7sw032334; Mon, 6 Mar 2023 09:27:59 GMT Received: from pps.reinject (localhost [127.0.0.1]) by mx0b-001b2d01.pphosted.com (PPS) with ESMTPS id 3p4x1hgx6q-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 06 Mar 2023 09:27:59 +0000 Received: from m0098416.ppops.net (m0098416.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 3269NSCX028402; Mon, 6 Mar 2023 09:27:58 GMT Received: from ppma03fra.de.ibm.com (6b.4a.5195.ip4.static.sl-reverse.com [149.81.74.107]) by mx0b-001b2d01.pphosted.com (PPS) with ESMTPS id 3p4x1hgx65-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 06 Mar 2023 09:27:58 +0000 Received: from pps.filterd (ppma03fra.de.ibm.com [127.0.0.1]) by ppma03fra.de.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 3265gIJo002548; Mon, 6 Mar 2023 09:27:57 GMT Received: from smtprelay01.fra02v.mail.ibm.com ([9.218.2.227]) by ppma03fra.de.ibm.com (PPS) with ESMTPS id 3p41c3sypu-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 06 Mar 2023 09:27:56 +0000 Received: from smtpav05.fra02v.mail.ibm.com (smtpav05.fra02v.mail.ibm.com [10.20.54.104]) by smtprelay01.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 3269RrQ31049204 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 6 Mar 2023 09:27:53 GMT Received: from smtpav05.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 5404E20043; Mon, 6 Mar 2023 09:27:53 +0000 (GMT) Received: from smtpav05.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 6586A20049; Mon, 6 Mar 2023 09:27:51 +0000 (GMT) Received: from [9.197.230.12] (unknown [9.197.230.12]) by smtpav05.fra02v.mail.ibm.com (Postfix) with ESMTP; Mon, 6 Mar 2023 09:27:51 +0000 (GMT) Message-ID: <60621672-5c9e-ddb3-51fa-5565d678899c@linux.ibm.com> Date: Mon, 6 Mar 2023 17:27:49 +0800 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 <gcc-patches@gcc.gnu.org> Cc: Segher Boessenkool <segher@kernel.crashing.org>, David Edelsohn <dje.gcc@gmail.com>, Peter Bergner <bergner@linux.ibm.com>, HAO CHEN GUI <guihaoc@linux.ibm.com> Subject: [PATCH] testsuite, rs6000: Adjust ppc-fortran.exp to support dg-{warning,error} Content-Type: text/plain; charset=UTF-8 X-TM-AS-GCONF: 00 X-Proofpoint-GUID: W-SGsYjiizvB8mjRF5ZHRmT_TygJW7Wk X-Proofpoint-ORIG-GUID: e0nbi8EEUknXjfntkHgabmfayPK4ScBJ Content-Transfer-Encoding: 7bit X-Proofpoint-UnRewURL: 0 URL was un-rewritten MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-03-06_02,2023-03-03_01,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 mlxlogscore=999 spamscore=0 lowpriorityscore=0 suspectscore=0 clxscore=1015 adultscore=0 phishscore=0 mlxscore=0 bulkscore=0 impostorscore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2303060078 X-Spam-Status: No, score=-11.7 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 <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> From: "Kewen.Lin via Gcc-patches" <gcc-patches@gcc.gnu.org> Reply-To: "Kewen.Lin" <linkw@linux.ibm.com> Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1759610067447042824?= X-GMAIL-MSGID: =?utf-8?q?1759610067447042824?= |
Series |
testsuite, rs6000: Adjust ppc-fortran.exp to support dg-{warning,error}
|
|
Checks
Context | Check | Description |
---|---|---|
snail/gcc-patch-check | success | Github commit url |
Commit Message
Kewen.Lin
March 6, 2023, 9:27 a.m. UTC
Hi, According to Haochen's finding in [1], currently ppc-fortran.exp doesn't support Fortran specific warning or error messages well. By looking into it, it's due to that gfortran uses some different warning/error prefixes as follows: set gcc_warning_prefix "\[Ww\]arning:" set gcc_error_prefix "(Fatal )?\[Ee\]rror:" comparing to: set gcc_warning_prefix "warning:" set gcc_error_prefix "(fatal )?error:" So this is to override these two prefixes and make it support dg-{warning,error} checks. Tested on powerpc64-linux-gnu P7/P8/P9 and powerpc64le-linux-gnu P9/P10. [1] https://gcc.gnu.org/pipermail/gcc-patches/2023-March/613302.html BR, Kewen ----- gcc/testsuite/ChangeLog: * gcc.target/powerpc/ppc-fortran/ppc-fortran.exp: Override gcc_{warning,error}_prefix with Fortran specific one used in gfortran_init. --- gcc/testsuite/gcc.target/powerpc/ppc-fortran/ppc-fortran.exp | 5 +++++ 1 file changed, 5 insertions(+) -- 2.39.1
Comments
Hi Kewen, I tested it with my fortran test case. It works. Thanks a lot. Gui Haochen 在 2023/3/6 17:27, Kewen.Lin 写道: > Hi, > > According to Haochen's finding in [1], currently ppc-fortran.exp > doesn't support Fortran specific warning or error messages well. > By looking into it, it's due to that gfortran uses some different > warning/error prefixes as follows: > > set gcc_warning_prefix "\[Ww\]arning:" > set gcc_error_prefix "(Fatal )?\[Ee\]rror:" > > comparing to: > > set gcc_warning_prefix "warning:" > set gcc_error_prefix "(fatal )?error:" > > So this is to override these two prefixes and make it support > dg-{warning,error} checks. > > Tested on powerpc64-linux-gnu P7/P8/P9 and > powerpc64le-linux-gnu P9/P10. > > [1] https://gcc.gnu.org/pipermail/gcc-patches/2023-March/613302.html > > BR, > Kewen > ----- > > gcc/testsuite/ChangeLog: > > * gcc.target/powerpc/ppc-fortran/ppc-fortran.exp: Override > gcc_{warning,error}_prefix with Fortran specific one used in > gfortran_init. > --- > gcc/testsuite/gcc.target/powerpc/ppc-fortran/ppc-fortran.exp | 5 +++++ > 1 file changed, 5 insertions(+) > > 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 a556d7b48a3..f7e99ac8487 100644 > --- a/gcc/testsuite/gcc.target/powerpc/ppc-fortran/ppc-fortran.exp > +++ b/gcc/testsuite/gcc.target/powerpc/ppc-fortran/ppc-fortran.exp > @@ -58,6 +58,11 @@ proc dg-compile-aux-modules { args } { > } > } > > +# Override gcc_{warning,error}_prefix with Fortran specific prefixes used > +# in gfortran_init to support dg-{warning,error} checks. > +set gcc_warning_prefix "\[Ww\]arning:" > +set gcc_error_prefix "(Fatal )?\[Ee\]rror:" > + > # Main loop. > gfortran-dg-runtest [lsort \ > [glob -nocomplain $srcdir/$subdir/*.\[fF\]{,90,95,03,08} ] ] "" $DEFAULT_FFLAGS > -- > 2.39.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 a556d7b48a3..f7e99ac8487 100644 --- a/gcc/testsuite/gcc.target/powerpc/ppc-fortran/ppc-fortran.exp +++ b/gcc/testsuite/gcc.target/powerpc/ppc-fortran/ppc-fortran.exp @@ -58,6 +58,11 @@ proc dg-compile-aux-modules { args } { } } +# Override gcc_{warning,error}_prefix with Fortran specific prefixes used +# in gfortran_init to support dg-{warning,error} checks. +set gcc_warning_prefix "\[Ww\]arning:" +set gcc_error_prefix "(Fatal )?\[Ee\]rror:" + # Main loop. gfortran-dg-runtest [lsort \ [glob -nocomplain $srcdir/$subdir/*.\[fF\]{,90,95,03,08} ] ] "" $DEFAULT_FFLAGS