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 c++/45153] DWARF DW_AT_external flag set for undefined variables



------- Comment #7 from pj dot pandit at yahoo dot co dot in  2010-08-13 05:52 -------
You got me confused. What do you mean - "DW_AT_external is correct for anything
that has "global" linkage, whether or not is defined." - ?

How do you define "global" linkage, here?

DIEs for static variables/functions don't have DW_AT_external set, though you
say they've global linkage.

Also, how does on locate the DIEs for variables/functions that are listed in
the .debug_pubnames section($ eu-readelf -wpubnames <file>). The list of
variables/functions that are *defined* in the same compilation unit and are
*visible/accessible from outside* of it.


-- 


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


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