From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 80906 invoked by alias); 13 May 2016 04:23:10 -0000 Mailing-List: contact jit-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Subscribe: Sender: jit-owner@gcc.gnu.org Received: (qmail 80892 invoked by uid 89); 13 May 2016 04:23:09 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Checked: by ClamAV 0.99.1 on sourceware.org X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:1123, france, les, France X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on sourceware.org X-Spam-Level: X-HELO: ovh.starynkevitch.net Authentication-Results: ovh.starynkevitch.net (amavisd-new); dkim=pass reason="pass (just generated, assumed good)" header.d=starynkevitch.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d= starynkevitch.net; h=content-transfer-encoding:content-type :content-type:in-reply-to:mime-version:user-agent:date:date :message-id:from:from:references:to:subject:subject; s=dkim; t= 1463113370; x=1463977371; bh=Tl0z69AJsuXi7dZ1zh/rEzl4pvCYIAQHpPM A3u1gf8U=; b=PSlgvVBhkcHGKzjJchxxn8Tyx4e2F3b6T/pvloFOGtecIHtIde0 pE4oZhFkTl0dNnV0y9i9ZQyKa2wWZNBnksUxW/3FCVAF4/9bM8ui4HgrP7Ub5Rnf BRfiCWHuYQkNE9FeOs2JfnAlroHH8aNsVS3LMIKASdalHdc76izoMRuw= X-Virus-Scanned: Debian amavisd-new at ovh.starynkevitch.net Subject: Re: wish: gcc_jit_type_get_atomic To: David Malcolm , jit@gcc.gnu.org References: <5734193A.2040903@starynkevitch.net> <1463083609.11310.81.camel@redhat.com> From: Basile Starynkevitch Message-ID: <57355699.7050701@starynkevitch.net> Date: Fri, 01 Jan 2016 00:00:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Icedove/38.7.2 MIME-Version: 1.0 In-Reply-To: <1463083609.11310.81.camel@redhat.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2016-q2/txt/msg00015.txt.bz2 On 05/12/2016 10:06 PM, David Malcolm wrote: > On Thu, 2016-05-12 at 07:48 +0200, Basile Starynkevitch wrote: >> Hello all, >> >> GCC JIT has gcc_jit_type_get_volatile to support the volatile >> qualifier. >> >> But shouldn't it also have a gcc_jit_type_get_atomic to support the >> C11 >> _Atomic qualifier? >> http://en.cppreference.com/w/c/atomic [...] >> >> Client code might be able to implement it without explicit libgccjit support by generating calls to the relevant builtins "by hand". Then perhaps at least that should be a relevant example in the documentation about how to actually use GCC builtins in GCCJIT. Notice that gcc_jit_context_get_builtin_function is barely document, and it would be nice to have, in https://gcc.gnu.org/onlinedocs/jit/topics/functions.html notably, a small example (which could be some atomic thing). Cheers. -- Basile STARYNKEVITCH http://starynkevitch.net/Basile/ email: basilestarynkevitchnet mobile: +33 6 8501 2359 8, rue de la Faiencerie, 92340 Bourg La Reine, France *** opinions {are only mine, sont seulement les miennes} ***