[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Tinycc-devel] Ready for Release 0.9.27

From: Daniel Glöckner
Subject: Re: [Tinycc-devel] Ready for Release 0.9.27
Date: Thu, 9 Feb 2017 23:28:46 +0100
User-agent: Mutt/1.5.20 (2009-06-14)

On Thu, Feb 09, 2017 at 01:35:31PM +0100, Vincent Lefevre wrote:
>   If an int can represent all values of the original type (as
>   restricted by the width, for a bit-field), the value is converted
>   to an int; otherwise, it is converted to an unsigned int. These are
>   called the integer promotions.58) All other types are unchanged by
>   the integer promotions.

I've had a look at the code. We can easily change gv() to cast
unsigned bitfields < 32 bits to signed int, but there are lots of
places where the code just looks at the VT_UNSIGNED flag or the
VT_LLONG basic type and doesn't notice that VT_BITFIELD is set as
well (and the size is < 32 bits).

Best regards,


reply via email to

[Prev in Thread] Current Thread [Next in Thread]