[Bug fortran/96158] New: Symbols not emitted for module common variables

2020-07-10 Thread amelvill at umich dot edu
: fortran Assignee: unassigned at gcc dot gnu.org Reporter: amelvill at umich dot edu Target Milestone: --- Created attachment 48859 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48859&action=edit A tarball archive demonstrating the problem I am trying to debug a

[Bug fortran/96158] Symbols not emitted for module common variables

2020-07-13 Thread amelvill at umich dot edu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96158 --- Comment #4 from AJM --- >> I won't comment on the questionable programming idiom of placing >> a common block in a module, which kind of defeats the niceties of >> a module. > If somebody wants to transition your code from using common blocks

[Bug fortran/96158] Symbols not emitted for module common variables

2020-07-13 Thread amelvill at umich dot edu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96158 --- Comment #5 from AJM --- Also, in case it wasn't clear, > Breakpoint 2, boo () at a.f90:9 > 9 write(*, '(A, I3)') "moduleVar=", n > (gdb) p n > $2 = 123 > (gdb) p moduleVar > No symbol "moduleVar" in current context. > (gdb) p (integ

[Bug fortran/96158] Debug symbols not emitted for module common variables

2020-07-13 Thread amelvill at umich dot edu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96158 --- Comment #8 from AJM --- > > >> I won't comment on the questionable programming idiom of placing > > >> a common block in a module, which kind of defeats the niceties of > > >> a module. > > > If somebody wants to transition your code from usi

[Bug fortran/96158] Debug symbols not emitted for module common variables

2020-07-13 Thread amelvill at umich dot edu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96158 --- Comment #11 from AJM --- Thanks for all your suggestions, they're very helpful! >'-falign-commons' > By default, 'gfortran' enforces **proper** alignment of all variables > in a 'COMMON' block by padding them as needed... I am not s