Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757637AbXELLwq (ORCPT ); Sat, 12 May 2007 07:52:46 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756177AbXELLwk (ORCPT ); Sat, 12 May 2007 07:52:40 -0400 Received: from zakalwe.fi ([80.83.5.154]:60190 "EHLO zakalwe.fi" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754068AbXELLwj (ORCPT ); Sat, 12 May 2007 07:52:39 -0400 Date: Sat, 12 May 2007 14:51:51 +0300 From: Heikki Orsila To: Stefan Richter Cc: "H. Peter Anvin" , Satyam Sharma , Jonathan Corbet , akpm@linux-foundation.org, linux-kernel@vger.kernel.org, Johannes Stezenbach , Jesper Juhl , Randy Dunlap , jimmy bahuleyan Subject: Re: [PATCH] "volatile considered harmful", take 3 Message-ID: <20070512115151.GB10873@zakalwe.fi> References: <12700.1178905000@lwn.net> <464551D5.2050709@zytor.com> <46455CD9.7010205@zytor.com> <4645691C.5090408@zytor.com> <4645725F.3060809@s5r6.in-berlin.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <4645725F.3060809@s5r6.in-berlin.de> User-Agent: Mutt/1.5.11 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1041 Lines: 24 On Sat, May 12, 2007 at 09:53:03AM +0200, Stefan Richter wrote: > H. Peter Anvin wrote: > [slightly off topic: GCCisms in Linux kernel] > > It contains *many* constructs that are not defined in, for > > example, C99, and it would in fact be impossible to write the Linux > > kernel using only C99-compliant constructs. > > True. On the other hand, it is possible to keep large parts of the > kernel independent of compiler implementation details. And it is not > only possible but also beneficial, e.g. because the compiler's > implementation changes over time. I think the most important reason for portable code is that new readers are more familiar with effects of the code. -- Heikki Orsila Barbie's law: heikki.orsila@iki.fi "Math is hard, let's go shopping!" http://www.iki.fi/shd - 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/