From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sergey.Shalnov@intel.com To: gcc-gnats@gcc.gnu.org Subject: bootstrap/3039: Type of variable is wrong in dwarf2 debugging info Date: Sun, 03 Jun 2001 05:36:00 -0000 Message-id: <20010603122815.4272.qmail@sourceware.cygnus.com> X-SW-Source: 2001-06/msg00054.html List-Id: >Number: 3039 >Category: bootstrap >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 Jun 03 05:36:00 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Sergey.Shalnov@intel.com >Release: gcc version 3.0 20010312 >Organization: >Environment: ia64-linux-unknown-gnu Linux itanium003.inn.intel.com 2.4.0test10-001115-58smp #1 SMP >Description: typedef long LO1; typedef double IN1; void main(){ LO1 i=222; i++; } Compiling the test with -gdwarf-2 , we find DW_AT_type of variable "i" points to the DW_TAG_base_type. This is incorrect. Correct is points to the DW_TAG_typedef also represented in that debug information. May be bug report #2971 is the similar problem. Thank you. >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: