From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id 8PclH1p3emIidAUAWB0awg (envelope-from ) for ; Tue, 10 May 2022 10:31:54 -0400 Received: by simark.ca (Postfix, from userid 112) id 7CA3F1E21F; Tue, 10 May 2022 10:31:54 -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=N5+KCCAA; 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 1AF0E1E01D for ; Tue, 10 May 2022 10:31:54 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 98C4E395446A for ; Tue, 10 May 2022 14:31:53 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 98C4E395446A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1652193113; bh=UraLKvUHnXdfnEgwuqZz7SrYQxfM+DixdD9jhD0dnUM=; h=To:Subject:Date:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=N5+KCCAAVhT8sF6QhDWCEqecRIEHXYyDSbSQGef5JScufvoh6IwViCmO4SXKPGtpo WVqQD9hNzX2sLfBKPbL8eCPmQkFJ7bumoNueDTOFfe0JHk+ZX/nJVLPetznduKMFnZ qYzz9utzmt4+UoZ1mholcvytZwe2cGCEGbqZ4KEw= Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by sourceware.org (Postfix) with ESMTPS id 1E1CB3954409 for ; Tue, 10 May 2022 14:25:52 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 1E1CB3954409 X-IronPort-AV: E=McAfee;i="6400,9594,10342"; a="256926227" X-IronPort-AV: E=Sophos;i="5.91,214,1647327600"; d="scan'208";a="256926227" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 May 2022 07:25:51 -0700 X-IronPort-AV: E=Sophos;i="5.91,214,1647327600"; d="scan'208";a="623480276" Received: from labpcdell3650-003.iul.intel.com (HELO localhost) ([172.28.49.87]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 May 2022 07:25:49 -0700 To: gdb-patches@sourceware.org Subject: [PATCH 14/18] testsuite, fortran: Add type info of formal parameter for Intel compilers. Date: Tue, 10 May 2022 16:24:33 +0200 Message-Id: <20220510142437.1397399-15-nils-christian.kempke@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220510142437.1397399-1-nils-christian.kempke@intel.com> References: <20220510142437.1397399-1-nils-christian.kempke@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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: Nils-Christian Kempke via Gdb-patches Reply-To: Nils-Christian Kempke Cc: JiniSusan.George@amd.com, aburgess@redhat.com Errors-To: gdb-patches-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb-patches" The type info emitted by ifx and ifort is different for some_module::get_number and some_module::set_number. A new case is added for the Intel compilers to remove false FAILs in the test. --- gdb/testsuite/gdb.fortran/ptype-on-functions.exp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gdb/testsuite/gdb.fortran/ptype-on-functions.exp b/gdb/testsuite/gdb.fortran/ptype-on-functions.exp index 021ad83ff1..f97bff957b 100644 --- a/gdb/testsuite/gdb.fortran/ptype-on-functions.exp +++ b/gdb/testsuite/gdb.fortran/ptype-on-functions.exp @@ -43,6 +43,12 @@ set stringlen ($integer8|$integer4) if { [test_compiler_info {flang-*} f90] } { set some_module_class_type "Type number" set some_module_aux_info ", $integer8 \\(10\\)" +} elseif { [test_compiler_info {ifx-*} f90] + || [test_compiler_info {ifort-*} f90] } { + # Ifx/ifort debug info reveals the implicit Fortran pass by reference for + # function arguments. + set some_module_class_type "PTR TO -> \\( Type number \\)" + set some_module_aux_info "" } else { set some_module_class_type "Type __class_some_module_Number(_t)?" set some_module_aux_info "" -- 2.25.1 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