public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug lto/47798] New: LTO debuginfo for globals wrong
@ 2011-02-18 13:23 rguenth at gcc dot gnu.org
  2011-02-18 16:35 ` [Bug lto/47798] " rguenth at gcc dot gnu.org
  2011-02-18 16:36 ` rguenth at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-02-18 13:23 UTC (permalink / raw)
  To: gcc-bugs

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.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug lto/47798] LTO debuginfo for globals wrong
  2011-02-18 13:23 [Bug lto/47798] New: LTO debuginfo for globals wrong rguenth at gcc dot gnu.org
@ 2011-02-18 16:35 ` rguenth at gcc dot gnu.org
  2011-02-18 16:36 ` rguenth at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-02-18 16:35 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-02-18 16:24:47 UTC ---
Author: rguenth
Date: Fri Feb 18 16:24:40 2011
New Revision: 170274

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=170274
Log:
2011-02-18  Richard Guenther  <rguenther@suse.de>

    PR lto/47798
    * lto-streamer.h (lto_global_var_decls): Declare.
    * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
    statics for global var processing.

    lto/
    * lto-tree.h (lto_global_var_decls): Do not declare here.
    * lto-lang.c: Include lto-streamer.h.
    * Make-lang.in (lto-lang.o): Adjust dependencies.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/lto-streamer-in.c
    trunk/gcc/lto-streamer.h
    trunk/gcc/lto/ChangeLog
    trunk/gcc/lto/Make-lang.in
    trunk/gcc/lto/lto-lang.c
    trunk/gcc/lto/lto-tree.h


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug lto/47798] LTO debuginfo for globals wrong
  2011-02-18 13:23 [Bug lto/47798] New: LTO debuginfo for globals wrong rguenth at gcc dot gnu.org
  2011-02-18 16:35 ` [Bug lto/47798] " rguenth at gcc dot gnu.org
@ 2011-02-18 16:36 ` rguenth at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-02-18 16:36 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.6.0

--- Comment #2 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-02-18 16:26:42 UTC ---
Fixed.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-02-18 16:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-18 13:23 [Bug lto/47798] New: LTO debuginfo for globals wrong rguenth at gcc dot gnu.org
2011-02-18 16:35 ` [Bug lto/47798] " rguenth at gcc dot gnu.org
2011-02-18 16:36 ` rguenth at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).