On 12/09/2016 02:00 PM, Mark Wielaard wrote:
BTW. I think it should also be possible to simply attach a
DW_AT_encoding directly to the DW_TAG_enumeration_type. It seems a
simple oversight that option isn't listed in the current DWARF spec.
I filed an issue about it:
http://dwarfstd.org/ShowIssue.php?issue=161130.2
I haven't heard back from the committee. But Todd Allen from Concurrent
said their Ada compiler already does this when generating DWARF
Yes, thank you for opening this issue. :-)
Hm… I’m not comfortable with attaching a DW_AT_encoding on
DW_TAG_enumeration_type DIE’s because this association is not listed in
appendix A (Attributes by Tag Value). Now, this appendix is only
informative, so doing so would not be a violation of the standard, I
guess. Do you think we would need to protect this association with
!dwarf_strict?
At this point I’m fine with all options, it’s just that I’m not
confident enough that it will be fine for DWARF consumers.
--
Pierre-Marie de Rodat