This is the mail archive of the
mailing list for the GCC project.
Re: [RFA/DWARF2] Emit enumeration_type DIE for enum subtypes
On Thu, Jan 08, 2004 at 01:36:53PM +0400, Joel Brobecker wrote:
> If you like, I can also tweak subrange_type_die() to handle nameless
> types, and then remove the test against TYPE_NAME. I don't see why
> this wouldn't work. If this is something you'd like me to have a look
> at, maybe we should do it independently of this patch
You still havn't answered the question of Ada or TREE_UNSIGNED.
I don't see anything Ada specific about this. It seems to me that
if GNU Pascal ever gets integrated into the tree we'd just have
to remove the Ada checks in order to support Pascal subranges.
As for TREE_UNSIGNED, it would seem to me that the fact that the
Ada front end only uses unsigned base types is simply a quirk of
the front end implementation. There should be nothing wrong with
creating subtypes of signed types.
The patch is ok for now though.