This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug debug/49047] New: DW_AT_linkage_name missing for constructors and destructors
- From: "tromey at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 18 May 2011 17:37:48 +0000
- Subject: [Bug debug/49047] New: DW_AT_linkage_name missing for constructors and destructors
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49047
Summary: DW_AT_linkage_name missing for constructors and
destructors
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: debug
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: tromey@gcc.gnu.org
Compile this with -g:
struct K
{
K () { }
~K () { }
int m () { return 5; }
};
K k;
If you run 'readelf -wi' on it, you will see that 'm' has a linkage name:
<2><66>: Abbrev Number: 5 (DW_TAG_subprogram)
<67> DW_AT_external : 1
<68> DW_AT_name : m
<6a> DW_AT_decl_file : 1
<6b> DW_AT_decl_line : 6
<6c> DW_AT_MIPS_linkage_name: (indirect string, offset: 0x76): _ZN1K1mEv
However, the constructors and destructor do not.