This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/40998] Source with routine in CONTAINS section and a local variable: No symbol "nerr" in current context



------- Comment #3 from burnus at gcc dot gnu dot org  2009-08-07 14:32 -------
The result of eu-readelf looks OK, however, since I read "module" for item 175,
I wonder whether this is a problem that gdb is too old. There was a change (I
think in the later stages of 4.4.0) which wrote the proper DWARF_MODULE* to the
ELF binary. However, gdb did ignore that bit. There was a fix for the gdb trunk
which allows to handle those DWARF_MODULEs in some way. (The patches on the
Fedora branch added the proper handling of module variables.)

I am not sure whether this is the real problem since "nerr" is not a module
variable but a local variable of a module procedure, but I wonder whether
nevertheless this could be the problem.


 [   175]    module
             decl_line            1
 [   180]      subprogram
               external
               name                 "dummy"
               decl_line            4
 [   19c]        variable
                 name                 "nerr"

The Fedora branch can be found at
http://sourceware.org/git/?p=archer.git;a=summary and the patches also support
Fortran 95 style arrays (i.e. those using an array descriptor).


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40998


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]