This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/45153] DWARF DW_AT_external flag set for undefined variables
- From: "pj dot pandit at yahoo dot co dot in" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 13 Aug 2010 05:52:59 -0000
- Subject: [Bug c++/45153] DWARF DW_AT_external flag set for undefined variables
- References: <bug-45153-19509@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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