This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Ada character types : tree code and DW_AT_encoding
- From: Jerome Guitton <guitton at adacore dot com>
- To: James E Wilson <wilson at specifix dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Thu, 11 Aug 2005 11:05:45 +0200
- Subject: Re: Ada character types : tree code and DW_AT_encoding
- References: <20050705104516.GG28288@adacore.com> <42FAB08F.7090807@specifix.com>
Jim,
Thank you for your answer !
James E Wilson (wilson@specifix.com):
> I think it would be better if the language front ends switched to using
> CHAR_TYPE for character types. Otherwise the debug output routines need
> a lot of code to tell which integer types are actually character types,
> and this is going to be hard to get right. It is easier if the language
> front ends choose the right type to begin with.
Anyway, I will test this approach for Ada. It really seems to be the right way
to go.
> Looking at the gdb code in dwarf2read.c, it looks like the distinction
> between DW_ATE_unsigned and DW_ATE_unsigned_char is irrelevant as it
> handles them the same. So unless you are planning to do some gdb work,
> it doesn't matter which one gcc emits. Or maybe you are using a
> different debugger that does care?
Yes, I am using a different debugger. I do not know if it does care, though.
I will keep you informed !
Jerome