Proposal for merging scalar-storage-order branch into mainline

Jakub Jelinek
Tue Jun 9 10:33:00 GMT 2015

On Tue, Jun 09, 2015 at 12:17:49PM +0200, Eric Botcazou wrote:
> > How is this represented in DWARF?
> This is not represented on the branch, because this cannot be done in pure 
> DWARF.  DW_AT_endianity only applies to base types or stand-alone objects and 
> we would need it for DW_TAG_member (and even DW_TAG_array_type in Ada).  But 
> this could easily be implemented once the representation is agreed on.

DW_AT_endianity attribute is listed in DWARF4 for:
Not really sure how to interpret it e.g. on DW_TAG_variable (or
formal_parameter) if it has DW_TAG_reference_type type - does it talk
about the endianity of what it refers to, or the reference itself, both? 
Anyway, the DWARF standard doesn't forbid using it on other kinds of DIEs
and I think emitting it on DW_TAG_member would be natural.
Not sure why you would want it on DW_TAG_array_type, the endianity for
arrays should be specified on the element type, shouldn't it?
Or is array indexing endian dependent?


More information about the Gcc mailing list