On 04/01/14 13:54, Mark Wielaard wrote:

What about using the presence of a DW_AT_external attribute on the data
object that has a single location expression to know whether the described
location is valid/visible outside of the enclosing lexical scope?

Using that or some new flag (DW_AT_global_scope) to mark a data object
that has a single location description with global scope might be cheaper
than encoding it with a location list pointer and a default entry.

Both DW_AT_external attribute and a hypothetical DW_AT_global_scope
attribute would describe scope, not the storage life of the object.
C unfortunately has confabulated the two concepts.

Objects which have only a single location can be described with a location
expression.  They don't need a location list with a default entry.

--
Michael Eager    ea...@eagercon.com
1960 Park Blvd., Palo Alto, CA 94306  650-325-8077
_______________________________________________
Dwarf-Discuss mailing list
Dwarf-Discuss@lists.dwarfstd.org
http://lists.dwarfstd.org/listinfo.cgi/dwarf-discuss-dwarfstd.org

Reply via email to