This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug debug/43762] VLA artificial length var loclist is missing DW_OP_stack_value
- From: "jakub at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Apr 2010 07:02:26 -0000
- Subject: [Bug debug/43762] VLA artificial length var loclist is missing DW_OP_stack_value
- References: <bug-43762-12292@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from jakub at gcc dot gnu dot org 2010-04-16 07:02 -------
Probably you are right, though I think clarification on dwarf-discuss wouldn't
hurt. Can you raise it there?
I think 2.19 Static and Dynamic Values of Attributes is what matters here:
The value of these attributes is determined based on the class as follows:
- For a constant, the value of the constant is the value of the attribute.
- For a reference, the value is a reference to another entity which specifies
the value of the attribute.
- For an exprloc, the value is interpreted as a DWARF expression or location
description; evaluation of the expression yields the value of the attribute.
The "or location description" confuses me, either it is a DWARF expression, or
location description, but leaving in both options is ambiguous, given that a
DWARF expression is also a memory location description and differ in a
dereference.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43762