From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id CTarCR2pX2KCWAAAWB0awg (envelope-from ) for ; Wed, 20 Apr 2022 02:33:01 -0400 Received: by simark.ca (Postfix, from userid 112) id 139571F3B5; Wed, 20 Apr 2022 02:33:01 -0400 (EDT) Authentication-Results: simark.ca; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b="tg8AIe5h"; dkim-atps=neutral X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) 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.2 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 3432A1E150 for ; Wed, 20 Apr 2022 02:33:00 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id B186E3858C83 for ; Wed, 20 Apr 2022 06:32:59 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B186E3858C83 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1650436379; bh=Wx0zlSacEXwjNVcuL979VjQTzEYRnbW9BmPLsJlSgzs=; 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=tg8AIe5hd+lqk/8DF6xForyfdzkEuJuhEunWJjHqko6e/gh/PmRHf5BqnFY3FTzmh tFKTogiKpocaNy6pFeQDFxXU0pSDA1hcj+Vu+xUd7QpVTT5MwOKZYztWoGlEFY5KVp 1Iv8uyp9Yl+ZvbQXbEsHTBIB/yD3QVlJ/tGa2KIo= Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by sourceware.org (Postfix) with ESMTPS id A8A943858D3C for ; Wed, 20 Apr 2022 06:32:37 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org A8A943858D3C X-IronPort-AV: E=McAfee;i="6400,9594,10322"; a="326852567" X-IronPort-AV: E=Sophos;i="5.90,274,1643702400"; d="scan'208";a="326852567" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Apr 2022 23:32:29 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,274,1643702400"; d="scan'208";a="510431816" Received: from orsmsx605.amr.corp.intel.com ([10.22.229.18]) by orsmga003.jf.intel.com with ESMTP; 19 Apr 2022 23:32:29 -0700 Received: from orsmsx605.amr.corp.intel.com (10.22.229.18) by ORSMSX605.amr.corp.intel.com (10.22.229.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.27; Tue, 19 Apr 2022 23:32:28 -0700 Received: from ORSEDG602.ED.cps.intel.com (10.7.248.7) by orsmsx605.amr.corp.intel.com (10.22.229.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.27 via Frontend Transport; Tue, 19 Apr 2022 23:32:28 -0700 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (104.47.55.172) by edgegateway.intel.com (134.134.137.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2308.27; Tue, 19 Apr 2022 23:32:28 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NkWlNCeV8zq5EIqO3joR61JRRzOFEJ9qOfVyI761wMJS1zwfT/KwJxUGQ6lbZevigu1aRkDoI8aRG1sxMJgVNdmua8asxrVi+zaD/6n4TFNFovKDD9S+nFAePK237O3G2cStOrNozyh5QNaaGd6KTJDtcxTzJlVqGnIuwa9Nf5gcE8vidnUH5/UIsL8GY8GJsM5BYClJtxhXJJO57Pm/IX4HBidSq4un9msMphS6aWia6KBEtMx6bHksJZq9MfKlQ44p5Q3ZS3a2ern9ZCi1mJGpzUrOoQkCzqpeZk+KKWG+1+PDarh2UA4/hkMt4zkN0Rpj1TY+oJMmrSp3WdY3+A== 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=82QGWGGztFcFsZi+cDBghFKAPKJQFj+CIZe2yushWTY=; b=O8XYkh5+eVwBD+qUHJLRw0CimThOh83IhmjxcHLMzcc2zYT4YRbhixbut8B3QtKUM06DE+/gcEaSSfauIq3EiRKB7JgedaLgKFXz/AKW6FgetYuibDpQE/RjiXSRUBeYz9AhaDaMySvIWohGbCJz6EpfEt5tf66hWYZgvEVZc6DviTE+dFTjl0f7Kjo9kygk/cdDFNSrakfzPtxtffNXyJEsafxK90eISE6kQCJUmM1JIG5ECZirVt0a0ahhXxytxU6j/G6eep0jBg5GiX0K/0Z0KBH0CupVhbLOQNDTOZYv/OKhXZuR6DpiSSvVB1yQw5GcRI/nXoQi5n6i/7Ky4w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Received: from CY4PR1101MB2071.namprd11.prod.outlook.com (2603:10b6:910:1a::10) by BY5PR11MB4151.namprd11.prod.outlook.com (2603:10b6:a03:18f::22) 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 06:32:25 +0000 Received: from CY4PR1101MB2071.namprd11.prod.outlook.com ([fe80::99b6:62d4:b384:998]) by CY4PR1101MB2071.namprd11.prod.outlook.com ([fe80::99b6:62d4:b384:998%5]) with mapi id 15.20.5164.025; Wed, 20 Apr 2022 06:32:25 +0000 To: "Potharla, Rupesh" , 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+0RUAADZghIAADjpI8AAMw93g Date: Wed, 20 Apr 2022 06:32:25 +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> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.6.401.20 dlp-reaction: no-action msip_labels: MSIP_Label_88914ebd-7e6c-4e12-a031-a9906be2db14_Enabled=true; MSIP_Label_88914ebd-7e6c-4e12-a031-a9906be2db14_SetDate=2022-04-20T00:17:50Z; 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=23d0c338-1a8f-474b-88c2-bb4802d387f3; MSIP_Label_88914ebd-7e6c-4e12-a031-a9906be2db14_ContentBits=1 x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: b361ca1b-bab5-4ff4-b039-08da229788ea x-ms-traffictypediagnostic: BY5PR11MB4151: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: vLmgda2rj9Nxgv4SXTB9Wp3ooe1+oepkQ5CGoNbaTlXrs0V8FkCXdn6SfOgR266czcElmiKtCGOGr664xh97jkLbqIHaoSw5uNbsYqeGQ3QJ8rEqR/9Lxcqm6ThdKcGO2wJY3I7AGtpglyUBcdCReJO9IQjWnyuKoVIXTdbUZHsz6BzsNIMkBh44fTC4N3EXp1MhdZkuFWyjqHQpfvunjSXLg2SfPtAozFFtytyDio2cFWn2YBRr6PaX0PTxYqn6LqbB1JXqaXeGMlEe4JpmLgOe9Tw0kY0avfcSN1+5jJm80w7BsyPUg2eFVohOIfe1kNsFltuug6vMRycEFCe8NyXo6LWlFBupPzo5p480f2lW50TsSyMR5qQBmykjLAnviAGM1oGJnsXNMJuWsnqPeL4hGMWP/UYGA1JLf2R6WnqHqht4CjSGf38yncEu6BL5FsVpWyXh/sz0G5wZsEo1pEomk4z9fOQHi9Yl0Id0raE5vYo5BHuP15xTUlHttxo4Oluji0NhIOZ9vP7dSRlQYl5S3Ji0eEo+Sa7aOX4gWlskWv9IA0F+cxPR/EpEra8iODNIg+y8epsRDIwcnnz9JOwXr/VXCJD4tyDByaEhR/wwJoGWES67Tka0EaysLAWSrCyekaT20+2JCejMBI3emrGjNdJrNlf05idcziG/k8fIIu/OnnZ+ShG6/CQ1QHp7/jy1WCOHKyBGw8yyirGRXpeSyj0NePpzRudzRUj1R2J97yymLOaQCl2AF07feYIw75WyioR1hWJja0vX61uz2S/B06pfettSva55PXQ/nfQ= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CY4PR1101MB2071.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(366004)(2906002)(8936002)(83380400001)(82960400001)(52536014)(9686003)(7696005)(53546011)(6506007)(4326008)(66946007)(38070700005)(38100700002)(5660300002)(110136005)(55016003)(508600001)(54906003)(186003)(66476007)(316002)(66556008)(86362001)(84970400001)(33656002)(71200400001)(64756008)(8676002)(76116006)(66446008)(122000001); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 2 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?mQbfeIwwvzXkBYcz/j9CffxSMz5b3jQ2U/Z9l5dT28sTjvXOs25Pyi+KVPuP?= =?us-ascii?Q?vXzebnCzOnEwhB+Pd/mDVTPgd7JPYRO5c+CIV/Olu917HdgSALKEosjuKOHf?= =?us-ascii?Q?LDei953tBupjfZHI7AAoFjzTDBLq2H9VZyZkOWvHZ5+NARnGoopB0hSU2A20?= =?us-ascii?Q?n3czx/0EpZVC61xO0TAroi6jXwGHtl6f4u3l3PtrTlJ7crJk/2KdLwq5Cz1G?= =?us-ascii?Q?FJidxVsZ+aTcHWtwFgVbufPl0JYdRcLYvqi9ydLRzkP+YxdwDGPsfKqdTCFw?= =?us-ascii?Q?BYElluM4LAK5snFAAX3711t35cWV8u6aonc52IHHnrHHAD3t9nRvSgsX5Epp?= =?us-ascii?Q?1XCuhgyizCtqmSqKKa9jrLWELqhbt4YVeaKrv16pVkFRRht3MzEVAG245knZ?= =?us-ascii?Q?NhWK/yFy1BfcWCVg/jA9otNRF5LzcB2l19eroQtmqMGHqHsBA7HzWHObuhnl?= =?us-ascii?Q?kI7yma9/9XPKAdD/eXtE4dEtdUi598/c4z/TFDH2mc3s38tdpTDnCTMzF1FJ?= =?us-ascii?Q?4r2hM8ks9SF0BM9NV/2365lMPaQdHytEiBEIg3qo0oy8nlrn7lTq50ECOqz4?= =?us-ascii?Q?NNk2MWOHpK6rd1Kpr2wOEuOvIcTGtcyxoZRNIi1qhAvTOQHkeV7E1Z0ULZvi?= =?us-ascii?Q?6+h0yszBDDFLZXVj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ascii?Q?2TmkUUsCvz9Kp6Di/UjF6YD9xGkdLyUFXu88MjFnfhfzSlbp5C9i9j4d+iXd?= =?us-ascii?Q?TqbCHIbgERf8Fq6mMDRsJAbPRk0I2l6l7uTTvnWXdgba9MeHSHmTuGJD9EIY?= =?us-ascii?Q?S2YkhiWWS8VGJlhkhRofZuInGJwfvwp2DJ8freQzHDtjahcpH30UotOEKT9I?= =?us-ascii?Q?UG1qpQrjTCsGW8bkqYanGU6yzl7JL4+1hBhU+GDmWj6NU8b1AwdWKAqVk+fm?= x-ms-exchange-antispam-messagedata-1: apNKEJgkU182OHNHTIJgxBxHCueWWCYuPGk= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CY4PR1101MB2071.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: b361ca1b-bab5-4ff4-b039-08da229788ea X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Apr 2022 06:32:25.7897 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 4BgR5faHlQ/uAr32/vC6i1XVA3DG3KHRxKUvkOCq1XOxzlioUgRZQmEvk24zg58B4pqKli19BzNaHPXdKVoSp78XS6uFpMV5Uy1opyxqrNU= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR11MB4151 X-OriginatorOrg: intel.com Content-Transfer-Encoding: quoted-printable 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: "Kempke, Nils-Christian via Gdb-patches" Reply-To: "Kempke, Nils-Christian" Cc: "George, Jini Susan" , "Parasuraman, Hariharan" , "Sharma, Alok Kumar" Errors-To: gdb-patches-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb-patches" > -----Original Message----- > From: Gdb-patches christian.kempke=3Dintel.com@sourceware.org> On Behalf Of Potharla, > Rupesh via Gdb-patches > Sent: Wednesday, April 20, 2022 2:29 AM > To: Kevin Buettner ; Kevin Buettner via Gdb-patches > > Cc: George, Jini Susan ; Parasuraman, > Hariharan ; Sharma, Alok Kumar > > Subject: RE: GDB/Fortran: Support for Assumed Rank Zero. > = > [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 r= an > 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 agai= nst > >flang. > > > = > = > if {$test_count =3D=3D 1 && [test_compiler_info {clang-*}]} { > setup_xfail "*-*-*" > fail "compiler does not support rank 0" > continue > } > = > I think failing the testcase at the iteration entry and continuing to tes= t next > case is the best way to handle these dismal results. > Please let me know your suggestions/comments on this. > = > Regards, > Rupesh P Please not a problem with this - if one wants to use a Fortran compiler oth= er than gfortran one always has to also supply the respective c-compiler in order f= or it to get recognized properly. This is a shortcoming in the current compiler identification - I'm actually working on a patch for that. But running make check TESTS=3D"gdb.fortran/assumedrank.exp" RUNTESTFLAGS=3D"F90_FOR= _TARGET=3Dflang" and looking at the log will show that the compiler identification actually = identified gcc and gfortran as the compiler used (it will still try to compile with fl= ang but the identified compiler in get_/test_compiler_info is gcc..). From my run in gdb.log: get_compiler_info: gcc-9-3-0 UNTESTED: gdb.fortran/assumedrank.exp: compiler does not support assumed= rank testcase /.../gdb/testsuite/gdb.fortran/assumedrank.exp completed in 0 s= econds =3D=3D=3D gdb Summary =3D=3D=3D # of untested testcases 1 The correct command would probably be make check TESTS=3D"gdb.fortran/assumedrank.exp" RUNTESTFLAGS=3D"F90_FOR= _TARGET=3Dflang CC_FOR_TARGET=3Dclang" which leads to output like: Running .../testsuite/gdb.fortran/pointers.exp ... get_compiler_info: clang-10-0-0 Cheers, Nils Intel Deutschland GmbH Registered Address: Am Campeon 10, 85579 Neubiberg, Germany Tel: +49 89 99 8853-0, www.intel.de Managing Directors: Christin Eisenschmid, Sharon Heck, Tiffany Doon Silva = Chairperson of the Supervisory Board: Nicole Lau Registered Office: Munich Commercial Register: Amtsgericht Muenchen HRB 186928