Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934347AbXHLJz3 (ORCPT ); Sun, 12 Aug 2007 05:55:29 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754405AbXHLJzH (ORCPT ); Sun, 12 Aug 2007 05:55:07 -0400 Received: from smtp2.linux-foundation.org ([207.189.120.14]:44630 "EHLO smtp2.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755298AbXHLJzE (ORCPT ); Sun, 12 Aug 2007 05:55:04 -0400 Date: Sun, 12 Aug 2007 02:54:16 -0700 (PDT) From: Linus Torvalds To: Martin Schwidefsky cc: Segher Boessenkool , wjiang@resilience.com, wensong@linux-vs.org, heiko.carstens@de.ibm.com, linux-kernel@vger.kernel.org, ak@suse.de, cfriesen@nortel.com, netdev@vger.kernel.org, horms@verge.net.au, akpm@linux-foundation.org, Chuck Ebbert , davem@davemloft.net, zlynx@acm.org, Chris Snook Subject: Re: [PATCH] make atomic_t volatile on all architectures In-Reply-To: <1186912098.3852.11.camel@localhost> Message-ID: References: <20070808230733.GA17270@shell.boston.redhat.com> <46BAC2BE.1090106@redhat.com> <46BB508B.7050601@redhat.com> <1186683646.9669.20.camel@localhost> <1186912098.3852.11.camel@localhost> 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: 734 Lines: 21 On Sun, 12 Aug 2007, Martin Schwidefsky wrote: > > The duplication "=m" and "m" with the same constraint is rather > annoying. It's not only annoying, it causes gcc to generate bad code too. At least certain versions of gcc will generate the address *twice*, even if there is obviously only one address used. If you have problems with "+m", you are often actually better off using just "m" and then adding a memory clobber. But that has other code generation downsides. Linus - 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/