From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 7876) id 787123857C6F; Tue, 31 May 2022 14:45:18 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 787123857C6F Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Nils-Christian Kempke To: gdb-cvs@sourceware.org Subject: [binutils-gdb] gdb/testsuite: Use -module option for Intel Fortran compilers X-Act-Checkin: binutils-gdb X-Git-Author: Abdul Basit Ijaz X-Git-Refname: refs/heads/master X-Git-Oldrev: cffe02acaa8396d46aa90831dede24cdd6095ba0 X-Git-Newrev: 7c07eaec49caa6599401e3f27a23ee37862ed7b2 Message-Id: <20220531144518.787123857C6F@sourceware.org> Date: Tue, 31 May 2022 14:45:18 +0000 (GMT) X-BeenThere: gdb-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 May 2022 14:45:18 -0000 https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D7c07eaec49ca= a6599401e3f27a23ee37862ed7b2 commit 7c07eaec49caa6599401e3f27a23ee37862ed7b2 Author: Abdul Basit Ijaz Date: Tue May 31 16:43:43 2022 +0200 gdb/testsuite: Use -module option for Intel Fortran compilers =20 The '-J' option is not supported in Intel compilers (ifx and ifort). The Intel version of the flag is '-module' which serves the same purpos= e. Diff: --- 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 746f0cf779c..6fbf74442c9 100644 --- a/gdb/testsuite/lib/gdb.exp +++ b/gdb/testsuite/lib/gdb.exp @@ -4458,12 +4458,16 @@ proc gdb_compile {source dest type options} { } =20 # 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] !=3D -1 } { # Fortran compile. set mod_path [standard_output_file ""] if [test_compiler_info "gcc-*"] { lappend new_options "additional_flags=3D-J${mod_path}" + } elseif { [test_compiler_info {icc-*}] + || [test_compiler_info {intel-*}] } { + lappend new_options "additional_flags=3D-module ${mod_path}" } }