From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id YBc6LChdYGJiNQEAWB0awg (envelope-from ) for ; Wed, 20 Apr 2022 15:21:12 -0400 Received: by simark.ca (Postfix, from userid 112) id A59391E15F; Wed, 20 Apr 2022 15:21:12 -0400 (EDT) Authentication-Results: simark.ca; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=E8KKJ6NR; dkim-atps=neutral X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RDNS_DYNAMIC,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from sourceware.org (ip-8-43-85-97.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id EB50D1E15D for ; Wed, 20 Apr 2022 15:21:11 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 990E53858D1E for ; Wed, 20 Apr 2022 19:21:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 990E53858D1E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1650482471; bh=d8LKAQFK49vsCLRcV38SOdaUNelEa8xyBPeJ4GTGHiA=; h=To:Subject:Date:References:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=E8KKJ6NReYSwXcoSjxAzyhB6U9ObWivWP/+BcSoLXhMiyP/IaKQgKU/jaS50PcCC6 Uz4dr7QWM27HEEOD+TtY6iYpH7zRrp9I5XTndfQeSItopGcammlxt6z3xKxAadwBC+ UaDK3qHMw2DcO4tEohNJA1+8bhiKz8XTKKEhKHrg= Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on2047.outbound.protection.outlook.com [40.107.92.47]) by sourceware.org (Postfix) with ESMTPS id 658BA3858D1E for ; Wed, 20 Apr 2022 19:20:52 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 658BA3858D1E ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ngOXXwmmOpKH+YjYbXj59P4Jht5sJwld7P7bawXJkQqsw+tZdtXz8GJQFEEwqEQURhj962WFCycvsHolTS/69GFkWvxzEU+c/EMotNuEUknuxS46wO+hnfbeB0x8NXtM5rq2U35g7mHSPMlUPPAQ4XWSZslUiQvDNtuBv6F0vCk5amkXtehRWDcp3r0QkypAidarhtzk/IhcW9zRNIPPb/Tyk/gwGQFgDibbLotm/cjbpcvIBQznH7MNdZwxp0FxtFGsxVtu9+aGNoSKqvN6glIrhLbZxgsNOsoSzOr5LwX1g+QSqYkBki7D+4bRCDDuGdodxyUgcoRG8tNM7ZHKbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=d8LKAQFK49vsCLRcV38SOdaUNelEa8xyBPeJ4GTGHiA=; b=K4U29DcWdeIeDFOnHuXn5zkZxPdRiAgJUKQIeBYSdA7SEp+8px38XR8p+3df7hTl/nGlJa1D+WImPg5O+beDdllWhp90WTpevgTZje8uGz8DOlFPXIPZ9tS3yLp/YO4+lrZcjJfrEN5muUkCl+McxWmH9BRYg7slSQdgiuIcetT8j42eqyHl4d+gFpRVmTG1ZyXEugePsNGwkK6aqYxjQY49Cz8hnit02NCVLNzCeoEpFJSieSu19Qtcv1hLDFc6Y814F1i/DoV+8FGLEfNpNWh894GWEvyBIAMyb26lFKnrepekY/Kth+tNkT+S5vrs+S9neCOQoyj3L72zQ/+gtg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none Received: from DM6PR12MB4219.namprd12.prod.outlook.com (2603:10b6:5:217::14) by BN6PR12MB1459.namprd12.prod.outlook.com (2603:10b6:405:e::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5186.14; Wed, 20 Apr 2022 19:20:50 +0000 Received: from DM6PR12MB4219.namprd12.prod.outlook.com ([fe80::1811:c817:6ced:7312]) by DM6PR12MB4219.namprd12.prod.outlook.com ([fe80::1811:c817:6ced:7312%5]) with mapi id 15.20.5186.014; Wed, 20 Apr 2022 19:20:50 +0000 To: Andrew Burgess , Kevin Buettner , Kevin Buettner via Gdb-patches Subject: RE: GDB/Fortran: Support for Assumed Rank Zero. Thread-Topic: GDB/Fortran: Support for Assumed Rank Zero. Thread-Index: AdhPHIhtItVA7FXxR1mxw9qPo/2AqgAR6eyAACFjbwAAFzg+gAAf2jGgAA5VbwAAD8E6UAB+0RUAADZghIAADjpI8AAf2XqAAAepT9A= Date: Wed, 20 Apr 2022 19:20:50 +0000 Message-ID: References: <20220413112753.4c6f1128@f35-zws-1> <20220414142845.281b878d@f35-zws-1> <20220415123112.697ff872@f35-zws-1> <20220418083328.5fb70540@f35-zws-1> <20220419103027.298d8ea5@f35-zws-1> <87pmlbrcwk.fsf@redhat.com> In-Reply-To: <87pmlbrcwk.fsf@redhat.com> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: MSIP_Label_88914ebd-7e6c-4e12-a031-a9906be2db14_Enabled=true; MSIP_Label_88914ebd-7e6c-4e12-a031-a9906be2db14_SetDate=2022-04-20T19:09:09Z; MSIP_Label_88914ebd-7e6c-4e12-a031-a9906be2db14_Method=Standard; MSIP_Label_88914ebd-7e6c-4e12-a031-a9906be2db14_Name=AMD Official Use Only-AIP 2.0; MSIP_Label_88914ebd-7e6c-4e12-a031-a9906be2db14_SiteId=3dd8961f-e488-4e60-8e11-a82d994e183d; MSIP_Label_88914ebd-7e6c-4e12-a031-a9906be2db14_ActionId=f02f3dc3-7b1d-40ee-a3d0-658812427eae; MSIP_Label_88914ebd-7e6c-4e12-a031-a9906be2db14_ContentBits=1 msip_label_88914ebd-7e6c-4e12-a031-a9906be2db14_enabled: true msip_label_88914ebd-7e6c-4e12-a031-a9906be2db14_setdate: 2022-04-20T19:20:47Z msip_label_88914ebd-7e6c-4e12-a031-a9906be2db14_method: Standard msip_label_88914ebd-7e6c-4e12-a031-a9906be2db14_name: AMD Official Use Only-AIP 2.0 msip_label_88914ebd-7e6c-4e12-a031-a9906be2db14_siteid: 3dd8961f-e488-4e60-8e11-a82d994e183d msip_label_88914ebd-7e6c-4e12-a031-a9906be2db14_actionid: 9d196d93-3339-4b98-bd77-cf20316d7612 msip_label_88914ebd-7e6c-4e12-a031-a9906be2db14_contentbits: 0 x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 26f59583-0cfa-4cbd-c0ea-08da2302e136 x-ms-traffictypediagnostic: BN6PR12MB1459:EE_ x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: Y+2APdIjut0OdzRfzhL833YoMatGYkw2h5xyfa3bo317ZE69bcS5Zdy8xUtIIyA8Ng1zOvJIDQW4QGfgo9qOf/0UIjb/V7WzCAxaVPPgmhFeHT5HbGnAqzHv1qsRHYJbJvJBYzqfrioQkSIbdBaqiVjJaObrj5pnw8J5C+QLRAljGw454mMZZPbs9COv8/QrXQZziQ7PnLhcbdkLKweKbCx36ZHrmHlbFLu1QKjXBmE7g2QkANsiTMwj/HGaR+LYFwSfGsS9VPM8wSngoDWF/lIg9lSSAMfLlyv/ODti0Y4pobB4MeHG9XXgOOybbayDCIIDVlbRVCK/66Cd4JdIOEZiONJrryhpILAxEJOZ95w5yl/wIGsE9hBZYueKkCXmQL/Ngx8+05YtF1PIbLnzqN/g4/nH3u2chfaj+ui2thZHtvSBFYFtRS1W+8WDDXNjTmRsvHbQFJIyf+DS2El9sgnqOYSR7tHIwhfSZ8/vE7Rrdv6VAujrnLex1u8yn1ufSgynqvjbZP0ir6sFjyCCi0HFvCSVVXXbn6vPJlYE+o5Mf9XeznUToSspiTM0tVxHN9xUGR3CkADiQwq4XQzJ1jnzJ4fquM+V2ka9Eu1+AZ2/d/fR0uWqv+3zre03Ifx13DfjMjNQ5nIPqk1Nx8pFAMwx4Nzehz7dHxO02ZNp4e5wa8WXP+JbOBXS95mZthhDpuslmgzlyNsSFlkaLezRbXuCMdr4TX7HI98TRrkNGbuWIookumFg+hv+ahV4JDh9hqUDYRx/kJ9/3pwl3tYhsEbAt1fJv05ChNaARGPIOH8= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM6PR12MB4219.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(4636009)(366004)(7696005)(64756008)(55236004)(316002)(54906003)(52536014)(4326008)(71200400001)(66446008)(26005)(5660300002)(9686003)(6506007)(8936002)(8676002)(508600001)(33656002)(2906002)(38100700002)(110136005)(38070700005)(186003)(122000001)(66476007)(83380400001)(66556008)(84970400001)(86362001)(76116006)(66946007)(55016003); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?TpPbVjdtj0FtRd3ZySw/UTfD3cGsON3kfv5uVSKC3rcP5aCmj9X5xI2DS+a4?= =?us-ascii?Q?M5q78jHqSXgKy1NXmYiUhhk0XEhEELd6Up7mvIWh4l2ojg/2E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VEO8GIfcryI7h6OmEU738flzjJyaqyKdeB?= =?us-ascii?Q?heJ/N0anca35lgYj3Qu6B1Ds51cgLWuWwVI5NxH47DIuQmvhe3RZ1Guhpgnw?= =?us-ascii?Q?SrRhxSotCGfiPsl4g0D/V8EVhgq/XSL4rgjm+gmZhTe33fUVkfATK96gSMCZ?= =?us-ascii?Q?1UtA64FM6rpgzeOIAi1QXeqwc/0BuP5GMvlJHhP/yGhT++xm4z3XnQMczbPq?= =?us-ascii?Q?UYf2QQxNEnzi7ogJGLwxwrmFbWqtqyAXr1z3lADJuF+6hCbG7gPpGUShWrGH?= =?us-ascii?Q?o2Kp4TQsV6wDMYKdjXfJlZH5lR5z+bwniisuYqVfPe6FLBP1HloF7vKAVoHU?= =?us-ascii?Q?IEsa68ASGSVWW/V4WV70ytTA+zu6018t5oPR6dDD5+eoFTK4MzvcUotnJ6Dv?= =?us-ascii?Q?soXelA8PVGRBRs/K3ZSrDZUJ0z6I6ywR8Y/ceB8Z17gUSZqK2Tcl9RB7Aq/z?= =?us-ascii?Q?1CiuW8If36hDYFrIjoAIGnab95Deeqf62I9snsEBLzdAZ+dvtcDVGtqK6VC6?= =?us-ascii?Q?e5WO+TAJYgJ1VmcntXVAn6x0oYbg+s4OTI9QcE32zPVG9a+LPYDGICvx8iSW?= =?us-ascii?Q?18qyBXAy57zDexr7U1DnBYo7CzFpnbrx0Q6cA4cwfPBDnkA8Rob/1C6LHEAD?= =?us-ascii?Q?QNcLQKJngrTctsfsajS3xX1oxc6PGyYKtOcme+TSI34Il6ImmbaqfupKgF68?= =?us-ascii?Q?3QuVuH9p0snunhzy067RLFsE9Ju0Rp0Jx3gbAuE0yN3Hlqzi?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM6PR12MB4219.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 26f59583-0cfa-4cbd-c0ea-08da2302e136 X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Apr 2022 19:20:50.1246 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: viLOdhtf0Xjr3AKnTVSEgV4YqHU6mY68trMupbliNdYWjcpc02KlNhoAzw3W4e81o/flk75sfqOdlVMR0Zhvlg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR12MB1459 X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: "Potharla, Rupesh via Gdb-patches" Reply-To: "Potharla, Rupesh" Cc: "George, Jini Susan" , "Parasuraman, Hariharan" , "Sharma, Alok Kumar" Errors-To: gdb-patches-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb-patches" [AMD Official Use Only] >-----Original Message----- >From: Andrew Burgess >Sent: Wednesday, April 20, 2022 9:00 PM >To: Potharla, Rupesh ; Kevin Buettner >; Kevin Buettner via Gdb-patches patches@sourceware.org> >Cc: George, Jini Susan ; Parasuraman, >Hariharan ; Sharma, Alok Kumar > >Subject: RE: GDB/Fortran: Support for Assumed Rank Zero. > >[CAUTION: External Email] > >"Potharla, Rupesh via Gdb-patches" writes: > >> [AMD Official Use Only] >> >> >>>On Mon, 18 Apr 2022 08:33:28 -0700 >>>Kevin Buettner via Gdb-patches wrote: >>> >>>> I'm also (still) wondering how to run the testsuite to use flang >>>> instead of gfortran since it'd be nice to test to see if the >>>> setup_xfail actually works. I spent just enough time looking at it >>>> last week to convince myself that GDB's testing infrastructure >>>> currently lacks the mechanisms to do this. However, I could be >>>> wrong, so if someone knows how it's done, I'd like to learn about it..= . >>> >>>It seems that the answer is to run the test as follows: >>> >>>make check TESTS=3D"gdb.fortran/assumedrank.exp" >>>RUNTESTFLAGS=3D"F90_FOR_TARGET=3Dflang" >>> >>>(I thought that I had tried this last week.) >>> >>>When I run the above command on my Fedora 35 machine, I see: >>> >>># of expected passes 500 >>># of unexpected failures 2503 >>># of unresolved testcases 500 >>> >> But the command should only run assumedrank.exp testcase, looks like it >ran all the tests under gdb.fortran. >> >> gdb summary after running assumedrank.exp with flang: >> >> =3D=3D=3D gdb Summary =3D=3D=3D >> >> # of expected passes 25 >> # of expected failures 1 >> >>>So it seems that this test doesn't work very well with flang at the mome= nt. >>> >>>That being the case, while I'm not against adding setup_xfail for >>>clang, it doesn't seem all that useful due to the dismal results when >>>testing against flang. >>> >> >> >> if {$test_count =3D=3D 1 && [test_compiler_info {clang-*}]} { >> setup_xfail "*-*-*" >> fail "compiler does not support rank 0" >> continue >> } > >It is possible to call 'xfail' directly, so you could just do: > > xfail "compiler does not support rank 0" > >But I don't think that's correct really, xfail should be used when a speci= fic test >is actually being run, so we'd expect to do something >like: > > xfail $test_name > >See gdb.ada/call_pn.exp for examples. > >I wonder if really 'unsupported' would be a better choice here - the >description in the Dejagnu manual says: > > UNSUPPORTED > There is no support for the tested case. This may mean that a > conditional feature of an operating system, or of a compiler, is > not implemented.... > >Which seems to describe this case perfectly, so: > > if {$test_count =3D=3D 1 && [test_compiler_info {clang-*}]} { > unsupported "compiler does not support rank 0" > continue > } > >Thoughts? I started with xfail then realized xfail is not used in fortran testcases. = Unsupported looks like the best option for this case, changing it to unsupp= orted. =20 >Thanks, >Andrew > > >> >> I think failing the testcase at the iteration entry and continuing to te= st next >case is the best way to handle these dismal results. >> Please let me know your suggestions/comments on this. >> >> Regards, >> Rupesh P