This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]