From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id WKp4KgZ2emIAdAUAWB0awg (envelope-from ) for ; Tue, 10 May 2022 10:26:14 -0400 Received: by simark.ca (Postfix, from userid 112) id AB2241E21F; Tue, 10 May 2022 10:26:14 -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=KldZN1nW; 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=-3.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from sourceware.org (server2.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 48D731E01D for ; Tue, 10 May 2022 10:26:14 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id CD5F2395440B for ; Tue, 10 May 2022 14:26:13 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CD5F2395440B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1652192773; bh=qujyr52uj6A+xRePfiC/e+hfISrGtsuht9sUAgV0wg8=; 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=KldZN1nW/hah8+ObD5Hk84pLE6xOSiVIJ1tzeuZZCK08NFe9XNNeUeyRbVJXJwJRM bpn1ecKdcfSBNNEoIGaggwg6Hr3NehwM10tT6INUHb3H6UhaZbIXyO4RR6XROVZNXU UPGhVJ/+8zq4aNGjYCR5yfxt6fJRkXScip49JOa4= Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by sourceware.org (Postfix) with ESMTPS id 9011339540B8 for ; Tue, 10 May 2022 14:25:01 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 9011339540B8 X-IronPort-AV: E=McAfee;i="6400,9594,10342"; a="294620821" X-IronPort-AV: E=Sophos;i="5.91,214,1647327600"; d="scan'208";a="294620821" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 May 2022 07:25:00 -0700 X-IronPort-AV: E=Sophos;i="5.91,214,1647327600"; d="scan'208";a="697103034" Received: from labpcdell3650-003.iul.intel.com (HELO localhost) ([172.28.49.87]) by orsmga004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 May 2022 07:24:57 -0700 To: gdb-patches@sourceware.org Subject: [PATCH 02/18] gdb/testsuite: Use -module option for Intel Fortran compilers Date: Tue, 10 May 2022 16:24:21 +0200 Message-Id: <20220510142437.1397399-3-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, Abdul Basit Ijaz , aburgess@redhat.com Errors-To: gdb-patches-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb-patches" From: Abdul Basit Ijaz The '-J' option is not supported in Intel compilers (ifx and ifort). The Intel version of the flag is '-module' which serves the same purpose. --- gdb/testsuite/lib/gdb.exp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp index 75e2d5a697..a6f2d847a5 100644 --- a/gdb/testsuite/lib/gdb.exp +++ b/gdb/testsuite/lib/gdb.exp @@ -4424,12 +4424,16 @@ proc gdb_compile {source dest type options} { } # Place (and look for) Fortran `.mod` files in the output - # directory for this specific test. + # directory for this specific test. For Intel compilers the -J + # option is not supported so instead use the -module flag. if { [lsearch -exact $options f90] != -1 } { # Fortran compile. set mod_path [standard_output_file ""] if [test_compiler_info "gcc-*"] { lappend new_options "additional_flags=-J${mod_path}" + } elseif { [test_compiler_info {icc-*}] + || [test_compiler_info {intel-*}] } { + lappend new_options "additional_flags=-module ${mod_path}" } } -- 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