This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug debug/6885] Incorrect DWARF2 emitted for C VLA constructs
- From: "jcownie at etnus dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 Jun 2003 09:30:39 -0000
- Subject: [Bug debug/6885] Incorrect DWARF2 emitted for C VLA constructs
- References: <20020531045601.6885.jcownie@etnus.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=6885
------- Additional Comments From jcownie@etnus.com 2003-06-02 09:30 -------
Subject: Re: Incorrect DWARF2 emitted for C VLA constructs
> would it be possible for you to check whether this problem still
> occurs with gcc 3.3 and/or mainline.
Sure, I don't have the mainline, but I have checked 3.3
The summary is that the bug is still present.
Here are the details (from readelf -wi)
<2><db3>: Abbrev Number: 29 (DW_TAG_formal_parameter)
DW_AT_name : (indirect string, offset: 0x24b): adjustable
DW_AT_decl_file : 1
DW_AT_decl_line : 12
DW_AT_type : <e0a>
DW_AT_location : 2 byte block: 91 10 (DW_OP_fbreg: 16; )
adjustable is of type <e0a>
<1><e0a>: Abbrev Number: 5 (DW_TAG_pointer_type)
DW_AT_byte_size : 4
DW_AT_type : <df2>
type <e0a> is apointer to a type <df2>
<1><df2>: Abbrev Number: 8 (DW_TAG_array_type)
DW_AT_sibling : <e05>
DW_AT_type : <e1>
<2><dfb>: Abbrev Number: 33 (DW_TAG_subrange_type)
DW_AT_type : <1d7>
DW_AT_upper_bound : <daa>
<df2> is an array of type <1d7> with an upper bound of <daa>
<1><1d7>: Abbrev Number: 3 (DW_TAG_base_type)
DW_AT_name : (indirect string, offset: 0x4f0): unsigned int
DW_AT_byte_size : 4
DW_AT_encoding : 7 (unsigned)
<1d7> is a 4 byte unsigned int
<2><daa>: Abbrev Number: 30 (DW_TAG_variable)
DW_AT_artificial : 1
DW_AT_type : <e05>
DW_AT_location : 2 byte block: 91 70 (DW_OP_fbreg: -16; )
<daa> is a store location.
Since the array "adjustable" is supposed to be two dimensional the problem is still
present.
Enjoy
-- Jim
James Cownie <jcownie@etnus.com>
Etnus, LLC. +44 117 9071438
http://www.etnus.com
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.