This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [Ada] Integer repesentation in the Ada FE
- From: Bernd Trog <berndtrog at yahoo dot com>
- To: Robert Dewar <dewar at adacore dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Sun, 30 Apr 2006 06:23:01 -0700 (PDT)
- Subject: Re: [Ada] Integer repesentation in the Ada FE
On Sun, 30 Apr 2006, Robert Dewar wrote:
> Bernd Trog wrote:
> > package i is
> > subtype I32767 is Integer range -32767 .. 32767;
> > -- Note: -32767 is in the Uint_Direct range!
>
> This is a host type, not a target type, and this Integer
> is the host integer.
FWIW, if I include -32768 into the Uint_Direct range, the bug (PR10768)
disappears.
This shows, IMHO, that the bug is related to the encoding/decoding of
Integers when the target Integer'Size is 16 bit.
Comments? Ideas?
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com