From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 7876) id 0C1B4395A011; Tue, 31 May 2022 14:45:59 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0C1B4395A011 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] testsuite, fortran: Add '-debug-parameters all' when using ifx/ifort X-Act-Checkin: binutils-gdb X-Git-Author: Nils-Christian Kempke X-Git-Refname: refs/heads/master X-Git-Oldrev: 15868bc88317eac5c8995d3208f939a79d352561 X-Git-Newrev: 4212a8c90777ba7c5fdc09d4022a1fb353851b4f Message-Id: <20220531144559.0C1B4395A011@sourceware.org> Date: Tue, 31 May 2022 14:45:59 +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:59 -0000 https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D4212a8c90777= ba7c5fdc09d4022a1fb353851b4f commit 4212a8c90777ba7c5fdc09d4022a1fb353851b4f Author: Nils-Christian Kempke Date: Tue May 31 16:43:44 2022 +0200 testsuite, fortran: Add '-debug-parameters all' when using ifx/ifort =20 In order for ifx and ifort to emit all debug entries, even for unused parameters in modules we have to define the '-debug-parameters all' fla= g. =20 This commit adds it to the ifx-*/ifort-* specific flags in gdb.exp. Diff: --- gdb/testsuite/lib/gdb.exp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp index 87f0a36fe7d..402450152ac 100644 --- a/gdb/testsuite/lib/gdb.exp +++ b/gdb/testsuite/lib/gdb.exp @@ -4473,6 +4473,8 @@ proc gdb_compile {source dest type options} { # Place (and look for) Fortran `.mod` files in the output # directory for this specific test. For Intel compilers the -J # option is not supported so instead use the -module flag. + # Additionally, Intel compilers need the -debug-parameters flag set to + # emit debug info for all parameters in modules. if { !$getting_compiler_info && [lsearch -exact $options f90] !=3D -1 = } { # Fortran compile. set mod_path [standard_output_file ""] @@ -4481,6 +4483,7 @@ proc gdb_compile {source dest type options} { } elseif { [test_compiler_info {ifort-*} f90] || [test_compiler_info {ifx-*} f90] } { lappend new_options "additional_flags=3D-module ${mod_path}" + lappend new_options "additional_flags=3D-debug-parameters all" } }