From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============7298405630093019433==" MIME-Version: 1.0 From: Todd Allen To: elfutils-devel@lists.fedorahosted.org Subject: Re: [Dwarf-Discuss] Some DWARFv5 draft feedback Date: Thu, 01 Dec 2016 05:59:50 -0700 Message-ID: <20161201125950.GA20117@toad.ccur.com> In-Reply-To: 1480555464.3728.214.camel@redhat.com --===============7298405630093019433== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable > = > Enumeration types. It is allowed to have a DW_AT_byte_size on a > DW_TAG_enumeration_type, but not DW_AT_encoding. To describe both size > and encoding one needs to use a DW_AT_type pointing to a base type that > represents the "underlying type". For languages where enumerations don't > have an underlying type, or for strongly typed enums it is easier to > attach the encoding directly than adding and indirection to a base type. > Add DW_AT_encoding to the attribute list for DW_TAG_enumeration_type. > = FWIW, our Ada compiler always placed DW_AT_encoding attributes directly on DW_TAG_enumeration_type to indicate the underlying signedness. Ada never w= as truly supported, so we just viewed it as part of the Ada support we'd defin= ed. -- = Todd Allen Concurrent Computer Corporation --===============7298405630093019433==--