This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
debug/2813: Type of variable is wrong in dwarf2 debugging info
- To: gcc-gnats at gcc dot gnu dot org
- Subject: debug/2813: Type of variable is wrong in dwarf2 debugging info
- From: aoliva at redhat dot com
- Date: 14 May 2001 06:16:57 -0000
- Reply-To: aoliva at redhat dot com
>Number: 2813
>Category: debug
>Synopsis: Type of variable is wrong in dwarf2 debugging info
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun May 13 23:26:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: aoliva@redhat.com
>Release: GCC 3.0 20010507 and 3.1 20010513
>Organization:
>Environment:
alpha-unknown-linux-gnu and i686-pc-linux-gnu, native and x-mn10300-elf
>Description:
Compiling the attached test with -gdwarf-2 -dA, we find DW_AT_type of variable lave points at the DW_TAG_const_type die constructed for the argument cc, instead of pointing directly to the DW_TAG_base_type that represents type char.
This is a regression from GCC 2.95.2.
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="t.c"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="t.c"
aW50CnF1eDEgKGNvbnN0IGNoYXIgY2MpCnsKICBjaGFyIGxhdmUgPSAnQic7Cn0K