From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=44894 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Om4iT-0006IW-Ti for qemu-devel@nongnu.org; Thu, 19 Aug 2010 08:59:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Om4iS-0005uM-9K for qemu-devel@nongnu.org; Thu, 19 Aug 2010 08:59:33 -0400 Received: from mx1.redhat.com ([209.132.183.28]:58666) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Om4iS-0005u7-2e for qemu-devel@nongnu.org; Thu, 19 Aug 2010 08:59:32 -0400 Message-ID: <4C6D2AAB.2050101@redhat.com> Date: Thu, 19 Aug 2010 15:59:23 +0300 From: Avi Kivity MIME-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH 2/5] CODING_STYLE: add C type rules References: <4C6A43B5.40809@redhat.com> <4C6AD744.1070009@twiddle.net> <4C6ADFED.5020703@redhat.com> <4C6C0E4D.6040607@redhat.com> <4C6CE416.1050902@redhat.com> <4C6CE6F4.20804@redhat.com> <4C6CE88C.9050100@redhat.com> <4C6D2294.60304@redhat.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: malc Cc: Blue Swirl , Jes Sorensen , qemu-devel , Richard Henderson On 08/19/2010 03:52 PM, malc wrote: > >> Not at all, _Bool is smaller or equal to int and thus can only improve >> packing. > That's not what standard says: > > 6.2.5#2 > > An object declared as type _Bool is large enough to store the values 0 and > > It later goes on to say (6.7.2.1 fn120): > > While the number of bits in a _Bool object is at least CHAR_BIT, the width > (number of sign and value bits) of a _Bool may be just 1 bit. > That's not in conflict (well, the standard allows sizeof(_Bool) > sizeof(int), but that's unlikely). -- error compiling committee.c: too many arguments to function