[PATCH v2 10/16] testsuite, fortran: Add '-debug-parameters all' when using ifx/ifort
Andrew Burgess
aburgess@redhat.com
Tue May 31 16:03:25 GMT 2022
Nils-Christian Kempke via Gdb-patches <gdb-patches@sourceware.org>
writes:
> 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' flag.
>
> This commit adds it to the ifx-*/ifort-* specific flags in gdb.exp.
LGTM.
Thanks,
Andrew
> ---
> 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 87f0a36fe7..402450152a 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] != -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=-module ${mod_path}"
> + lappend new_options "additional_flags=-debug-parameters all"
> }
> }
>
> --
> 2.25.1
>
> Intel Deutschland GmbH
> Registered Address: Am Campeon 10, 85579 Neubiberg, Germany
> Tel: +49 89 99 8853-0, www.intel.de <http://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
More information about the Gdb-patches
mailing list