From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2408 invoked by alias); 5 Oct 2011 14:59:53 -0000 Received: (qmail 2389 invoked by uid 22791); 5 Oct 2011 14:59:52 -0000 X-SWARE-Spam-Status: No, hits=-7.1 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,SPF_HELO_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 05 Oct 2011 14:59:35 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p95ExY6m006552 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 5 Oct 2011 10:59:34 -0400 Received: from [10.11.11.228] (vpn-11-228.rdu.redhat.com [10.11.11.228]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p95ExXq9031367; Wed, 5 Oct 2011 10:59:33 -0400 Message-ID: <4E8C70D4.5030109@redhat.com> Date: Wed, 05 Oct 2011 20:12:00 -0000 From: Andrew MacLeod User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.17) Gecko/20110428 Fedora/3.1.10-1.fc13 Thunderbird/3.1.10 MIME-Version: 1.0 To: Jeffrey Yasskin CC: Lawrence Crowl , Benjamin Kosnik , Richard Henderson , Aldy Hernandez , GCC Subject: Re: C++11 atomic library notes References: <4E862864.2010607@redhat.com> <4E8C5253.5040105@redhat.com> In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org X-SW-Source: 2011-10/txt/msg00076.txt.bz2 On 10/05/2011 10:44 AM, Jeffrey Yasskin wrote: > > Yes, that's what I'm suggesting. The rule for 'volatile' from the > language is just that "Accesses to volatile objects are evaluated > strictly according to the rules of the abstract machine." If the > instruction-level implementation for a 16-byte atomic load is > cmpxchg16b, then that's just how the abstract machine is implemented, > and the rule says you have to do that consistently for volatile > objects rather than sometimes optimizing it away. That's my argument > anyway. If there's another standard you're following beyond "kernel > people tend to ask for it," the situation may be trickier. perfect, I like it. Andrew