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: unassig...@gcc.gnu.org
        ReportedBy: rgue...@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.

Reply via email to