[Bug lto/47798] New: LTO debuginfo for globals wrong
rguenth at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Feb 18 13:23:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47798
Summary: LTO debuginfo for globals wrong
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: lto
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: rguenth@gcc.gnu.org
1) global statics are never put into lto_global_var_decls and thus never end up
being handed to dwarf2out.
2) global statics are also unconditionally mangled leading to odd names.
3) privatized globals are emitted as externs with their original name to
debuginfo, referencing bogus information.
Fixing just 1) makes globals work.
More information about the Gcc-bugs
mailing list