This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

debug/9499: GCC no longer emits DWARF-2 locations for variables in global regs


>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:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]