[PATCH] D67563: Debug Info: Add support for named constants
Sourabh Singh Tomar via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 9 23:23:07 PST 2021
SouraVX added a comment.
Herald added subscribers: dexonsmith, jdoerfert.
In D67563#1675361 <https://reviews.llvm.org/D67563#1675361>, @aprantl wrote:
> In D67563#1675356 <https://reviews.llvm.org/D67563#1675356>, @aprantl wrote:
>
>> How do Fortran compilers represent regular versus inout arguments in DWARF?
>
> According to godbolt.org, gfortran 8.2 emits the same DWARF for in and inout parameters. That doesn't help :-)
For Fortran snippet:
module foo
integer, parameter :: bar = 200
end module foo
$gfortran -c module.f90
DWARF:
0x00000055: DW_TAG_constant
DW_AT_name ("bar")
DW_AT_decl_file ("mod.f90")
DW_AT_decl_line (3)
DW_AT_decl_column (0x27)
DW_AT_type (0x0000006a "const integer(kind=4)")
DW_AT_external (true)
DW_AT_const_value (0xc8)
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D67563/new/
https://reviews.llvm.org/D67563
More information about the llvm-commits
mailing list