This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
debug/9499: GCC no longer emits DWARF-2 locations for variables in global regs
- From: drow at mvista dot com
- To: gcc-gnats at gcc dot gnu dot org
- Date: 29 Jan 2003 15:03:17 -0000
- Subject: debug/9499: GCC no longer emits DWARF-2 locations for variables in global regs
- Reply-to: drow at mvista dot com
>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: