From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13989 invoked by alias); 27 Feb 2018 16:16:09 -0000 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 Received: (qmail 13785 invoked by uid 89); 27 Feb 2018 16:16:02 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.7 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW,T_RP_MATCHES_RCVD autolearn=no version=3.3.2 spammy=H*Ad:D*yahoo.com X-HELO: mx1.redhat.com Received: from mx3-rdu2.redhat.com (HELO mx1.redhat.com) (66.187.233.73) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 27 Feb 2018 16:16:01 +0000 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id CDE91818AAF4; Tue, 27 Feb 2018 16:15:59 +0000 (UTC) Received: from ovpn-118-0.ams2.redhat.com (unknown [10.36.118.0]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 600FD1C73A; Tue, 27 Feb 2018 16:15:57 +0000 (UTC) Message-ID: <1519748155.15077.764.camel@redhat.com> Subject: Re: Fw: GCC interpretation of C11 atomics (DR 459) From: Torvald Riegel To: Szabolcs Nagy Cc: Ruslan Nikolaev , nd@arm.com, Alexander Monakov , Florian Weimer , "gcc@gcc.gnu.org" Date: Tue, 27 Feb 2018 16:21:00 -0000 In-Reply-To: <4b2ab132-63e7-ce20-90e0-58632c60e07a@arm.com> References: <1615980330.4453149.1519617655582.ref@mail.yahoo.com> <1615980330.4453149.1519617655582@mail.yahoo.com> <108651736.4493788.1519629845236@mail.yahoo.com> <1519672046.15077.675.camel@redhat.com> <1175928742.4904141.1519673957549@mail.yahoo.com> <487848793.5030239.1519685142961@mail.yahoo.com> <1519730046.15077.736.camel@redhat.com> <1425399437.5330155.1519736166191@mail.yahoo.com> <4b2ab132-63e7-ce20-90e0-58632c60e07a@arm.com> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2018-02/txt/msg00236.txt.bz2 On Tue, 2018-02-27 at 13:04 +0000, Szabolcs Nagy wrote: > the solutions is to add a language extension I think this only needs a library interface, at least when we're just considering the __atomic builtins. On the C/C++ level, it might amount to just another atomic type, which only has a CAS however; this could be probably modelled entirely through default atomics (not implemented though), and so wouldn't need a language or memory model extension.