public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* debug/9499: GCC no longer emits DWARF-2 locations for variables in global regs
@ 2003-01-29 15:06 drow
  0 siblings, 0 replies; only message in thread
From: drow @ 2003-01-29 15:06 UTC (permalink / raw)
  To: gcc-gnats


>Number:         9499
>Category:       debug
>Synopsis:       GCC no longer emits DWARF-2 locations for variables in global regs
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jan 29 15:06:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     drow@mvista.com
>Release:        3.2 and HEAD
>Organization:
>Environment:
powerpc-unknown-linux-gnu
>Description:
The function rtl_for_decl_location only handles constants
and memory references if it is called "before reload is completed".

If a global variable is in a fixed register, i.e.:
register int *current asm ("r2");
then debug information is emitted for it without any DW_AT_location tag.  This is because reload_completed is cleared at the end of rest_of_compilation.

Should dwarf2out_global_decl be setting another flag
for this code to check?
>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-01-29 15:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-29 15:06 debug/9499: GCC no longer emits DWARF-2 locations for variables in global regs drow

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).