[flang-commits] [flang] [flang] Add debug information for module variables. (PR #91582)

Kiran Chandramohan via flang-commits flang-commits at lists.llvm.org
Wed May 15 05:11:25 PDT 2024


https://github.com/kiranchandramohan commented:

The patch adds debug info for other kind of globals (besides module variables) like for eg. `x` in the following case. Is that the intention? If so a test would be good.
```
subroutine abc
  integer :: x = 2
  print *, x
end subroutine
```
Commonblocks also are globals but I did not see debug for them. 

I am guessing the following points will come in future patches.
-> Renamed module variables using `use` statement.
-> Private module variables. Can they be distinguished in DWARF?
-> Submodules

https://github.com/llvm/llvm-project/pull/91582


More information about the flang-commits mailing list