Skip to content

[flang][debug] Duplicate module information. #160907

@abidh

Description

@abidh

Consider the following 2 files.

PROGRAM  test
  use mod
  integer c
  var1 = 20
  call get(c)
  print *, c
END PROGRAM test

module mod
  integer var1
contains 
  subroutine get(a)
    integer a
    a = var1
  end subroutine
end module

Compile them as follows:
$ flang -g -O0 test1.f90 test.f9 -o test

In GDB, you can see that there is duplicate information about the module.

$ gdb -q test
Reading symbols from test...
(gdb) start
...
Temporary breakpoint 1, TEST () at test.f90:5
5         var1 = 20
(gdb) info modules
All defined modules:

File test.f90:
2:      mod

File test1.f90:
3:      mod

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions