Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1945967AbXBIBSc (ORCPT ); Thu, 8 Feb 2007 20:18:32 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1945974AbXBIBSc (ORCPT ); Thu, 8 Feb 2007 20:18:32 -0500 Received: from smtp-out.google.com ([216.239.45.13]:27020 "EHLO smtp-out.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1945967AbXBIBSb (ORCPT ); Thu, 8 Feb 2007 20:18:31 -0500 DomainKey-Signature: a=rsa-sha1; s=beta; d=google.com; c=nofws; q=dns; h=received:date:from:x-x-sender:to:cc:subject:in-reply-to: message-id:references:mime-version:content-type; b=NSJRJHn1g9zLH1b7a4guppVn0MvWJV7SPQ4JymnE6ImhVRh+mIGG0AINVzNlWOAeZ I6ODX6qARH5OcY86BEFLg== Date: Thu, 8 Feb 2007 17:18:13 -0800 (PST) From: David Rientjes X-X-Sender: rientjes@chino.kir.corp.google.com To: Linus Torvalds cc: Jan Engelhardt , Jeff Garzik , Linux Kernel Mailing List , Andrew Morton Subject: Re: somebody dropped a (warning) bomb In-Reply-To: Message-ID: References: <45CB3B28.60102@garzik.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 909 Lines: 25 On Thu, 8 Feb 2007, Linus Torvalds wrote: > Even gcc DOES DIFFERENT THINGS! Have you even read the docs? > > By default it is treated as signed int but this may be changed by > the -funsigned-bitfields option. > Yes, I read the 4.1.1 docs: By default, such a bit-field is signed, because this is consistent: the basic integer types such as int are signed types. That is the whole basis for my argument, when you declare something "int," most programmers would consider that to be SIGNED regardless of whether it is 32 bits, 13 bits, or 1 bit. No doubt it is configurable because of the existance of brain-dead compilers that treat them as unsigned. - 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/