This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Ping2: [PATCH] PR debug/16063. Add DW_AT_type to DW_TAG_enumeration.
- From: Eric Botcazou <ebotcazou at adacore dot com>
- To: Jason Merrill <jason at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org, Mark Wielaard <mjw at redhat dot com>, Jakub Jelinek <jakub at redhat dot com>, Cary Coutant <ccoutant at google dot com>, Tom Tromey <tromey at redhat dot com>, Richard Henderson <rth at redhat dot com>
- Date: Wed, 21 May 2014 00:18:53 +0200
- Subject: Re: Ping2: [PATCH] PR debug/16063. Add DW_AT_type to DW_TAG_enumeration.
- Authentication-results: sourceware.org; auth=none
- References: <1397202952 dot 8924 dot 1 dot camel at bordewijk dot wildebeest dot org> <20140520065546 dot GB2916 at toonder dot wildebeest dot org> <537B6A0A dot 1080409 at redhat dot com>
> Yes, but why is that better than providing them directly? The latter
> would seem to work better with non-C-family languages like Ada.
That's correct, enumeration types don't have base types in Ada, i.e. they
are their own base types. But if the attributes cannot be expressed in DWARF,
then synthesizing a base type on the fly would probably be OK.
--
Eric Botcazou