Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S936091AbXHOVPB (ORCPT ); Wed, 15 Aug 2007 17:15:01 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1765975AbXHOVOp (ORCPT ); Wed, 15 Aug 2007 17:14:45 -0400 Received: from gate.crashing.org ([63.228.1.57]:53838 "EHLO gate.crashing.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1760127AbXHOVOn (ORCPT ); Wed, 15 Aug 2007 17:14:43 -0400 In-Reply-To: <20070815190722.GI9645@linux.vnet.ibm.com> References: <20070809131423.GA9927@shell.boston.redhat.com> <46C2D6F3.3070707@s5r6.in-berlin.de> <46C2FADB.7020407@s5r6.in-berlin.de> <20070815142516.GB9645@linux.vnet.ibm.com> <20070815190722.GI9645@linux.vnet.ibm.com> Mime-Version: 1.0 (Apple Message framework v623) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: Content-Transfer-Encoding: 7bit Cc: Christoph Lameter , heiko.carstens@de.ibm.com, horms@verge.net.au, Stefan Richter , Satyam Sharma , Linux Kernel Mailing List , rpjday@mindspring.com, netdev@vger.kernel.org, ak@suse.de, cfriesen@nortel.com, jesper.juhl@gmail.com, linux-arch@vger.kernel.org, Andrew Morton , zlynx@acm.org, schwidefsky@de.ibm.com, Chris Snook , Herbert Xu , davem@davemloft.net, Linus Torvalds , wensong@linux-vs.org, wjiang@resilience.com From: Segher Boessenkool Subject: Re: [PATCH 0/24] make atomic_read() behave consistently across all architectures Date: Wed, 15 Aug 2007 23:07:47 +0200 To: paulmck@linux.vnet.ibm.com X-Mailer: Apple Mail (2.623) Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 617 Lines: 19 >> Possibly these were too trivial to expose any potential problems that >> you >> may have been referring to, so would be helpful if you could write a >> more >> concrete example / sample code. > > The trick is to have a sufficiently complicated expression to force > the compiler to run out of registers. You can use -ffixed-XXX to keep the testcase simple. Segher - 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/