From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15558 invoked by alias); 3 Oct 2011 17:54:35 -0000 Received: (qmail 15549 invoked by uid 22791); 3 Oct 2011 17:54:34 -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; Mon, 03 Oct 2011 17:54:16 +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 p93HsF20031830 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 3 Oct 2011 13:54:16 -0400 Received: from [10.11.8.206] (vpn-8-206.rdu.redhat.com [10.11.8.206]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p93HsESh005660; Mon, 3 Oct 2011 13:54:15 -0400 Message-ID: <4E89F6C6.8050504@redhat.com> Date: Mon, 03 Oct 2011 17:54: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: Richard Henderson CC: Lawrence Crowl , Benjamin Kosnik , Aldy Hernandez , GCC Subject: Re: C++11 atomic library notes References: <4E862864.2010607@redhat.com> <4E89F171.4060808@redhat.com> In-Reply-To: <4E89F171.4060808@redhat.com> Content-Type: text/plain; charset=ISO-8859-1; 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/msg00014.txt.bz2 On 10/03/2011 01:31 PM, Richard Henderson wrote: > On 09/30/2011 01:36 PM, Andrew MacLeod wrote: >> http://gcc.gnu.org/wiki/Atomic/GCCMM/LIbrary > >> __atomic_store (size_t obj_size, T *mem, T val, enum memory_model model) > I don't like this. I really cannot imagine any situation for which the > compiler can't resolve SIZE to a compile-time constant. I think it's > pointless to have a dispatch routine that just calls all of > its a library call for arbitrary sized objects... C++ can have any class declared atomic, so it doesn't have to map to one of those optimized lock-free routines. Andrew