Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1161262AbWHDPzY (ORCPT ); Fri, 4 Aug 2006 11:55:24 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1161266AbWHDPzY (ORCPT ); Fri, 4 Aug 2006 11:55:24 -0400 Received: from omx1-ext.sgi.com ([192.48.179.11]:18871 "EHLO omx1.americas.sgi.com") by vger.kernel.org with ESMTP id S1161262AbWHDPzW (ORCPT ); Fri, 4 Aug 2006 11:55:22 -0400 Message-ID: <44D36E8B.4040705@sgi.com> Date: Fri, 04 Aug 2006 17:58:03 +0200 From: Jes Sorensen User-Agent: Thunderbird 1.5.0.4 (X11/20060614) MIME-Version: 1.0 To: Alan Cox Cc: Jeff Garzik , ricknu-0@student.ltu.se, linux-kernel@vger.kernel.org, Andrew Morton Subject: Re: [RFC][PATCH] A generic boolean References: <1153341500.44be983ca1407@portal.student.luth.se> <44BE9E78.3010409@garzik.org> <1154702572.23655.226.camel@localhost.localdomain> <44D35B25.9090004@sgi.com> <1154706687.23655.234.camel@localhost.localdomain> In-Reply-To: <1154706687.23655.234.camel@localhost.localdomain> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1041 Lines: 26 Alan Cox wrote: > Ar Gwe, 2006-08-04 am 16:35 +0200, ysgrifennodd Jes Sorensen: >> The proposed patch makes it u1 - if we end up with arch specific >> defines, as the patch is proposing, developers won't know for sure what >> the size is and will get alignment wrong. That is not fine. > > The _Bool type is up to gcc implementation details. Which is even worse :( >> If we really have to introduce a bool type, at least it has to be the >> same size on all 32 bit archs and the same size on all 64 bit archs. > > You don't use bool for talking to hardware, you use it for the most > efficient compiler behaviour when working with true/false values. Thats the problem, people will start putting them into structs, and voila all alignment predictability has gone out the window. Regards, Jes - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/