From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7950 invoked by alias); 13 Oct 2014 18:46:27 -0000 Mailing-List: contact libffi-discuss-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libffi-discuss-owner@sourceware.org Received: (qmail 7814 invoked by uid 89); 13 Oct 2014 18:46:26 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.1 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: mail-vc0-f170.google.com Received: from mail-vc0-f170.google.com (HELO mail-vc0-f170.google.com) (209.85.220.170) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Mon, 13 Oct 2014 18:46:25 +0000 Received: by mail-vc0-f170.google.com with SMTP id hy10so6310843vcb.15 for ; Mon, 13 Oct 2014 11:46:23 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=Nh7YcdQZc+a0Jqv4VuJdUYJqCBPxwZvC3m53tX4Es3I=; b=GKsshSCW53zKu9y6M24Az55MkrhK8xfTmkBrOsdGI/awPRD5pZnAsXSybDrcoCehsu X6cXM2XNyTHvNDiMTmmm9fgeMMY6TFrameGOVhdvBUsuqbt4M2LNxZmzx4vMuMF0hVrA mwjiTNntHVtiKv2YnSq9z1UpZvbxBTkL/WObIZbSXAbk4GyLX5IbwmYasAuzSYHIGTY2 wK0FK41yFq9ORRVjS5zzJBn1B8BFIhgwkNj99pa2mshc+bBKDrkNB5BJota9T34UvTkz bVJ4F1UToebZatKjYBA8DT0W7+jv2lirq7qg7j8VC1XlEW5jHup+8NcsDFIBJ057Xwyc g8ug== X-Gm-Message-State: ALoCoQmHPaISW4pcAsWK4IwFmYQyE4djmWwkg08QziVSclB6Eu9GFiBG1y7qTisdS1x0VbBQocB1 MIME-Version: 1.0 X-Received: by 10.220.87.68 with SMTP id v4mr687470vcl.8.1413225983115; Mon, 13 Oct 2014 11:46:23 -0700 (PDT) Received: by 10.52.137.15 with HTTP; Mon, 13 Oct 2014 11:46:23 -0700 (PDT) In-Reply-To: References: <1412973773-3942-1-git-send-email-rth@redhat.com> <1412973773-3942-4-git-send-email-rth@redhat.com> <5438B0DD.70309@redhat.com> Date: Mon, 13 Oct 2014 18:46:00 -0000 Message-ID: Subject: Re: [gofrontend-dev] Re: [PATCH 03/13] HACK! Allow the static chain to be set from C From: Peter Collingbourne To: Richard Biener Cc: Richard Henderson , Ian Lance Taylor , gcc-patches , "libffi-discuss@sourceware.org" , "gofrontend-dev@googlegroups.com" Content-Type: text/plain; charset=UTF-8 X-SW-Source: 2014/txt/msg00115.txt.bz2 On Mon, Oct 13, 2014 at 1:10 AM, Richard Biener wrote: > On Sat, Oct 11, 2014 at 6:23 AM, Richard Henderson wrote: >> On 10/10/2014 06:42 PM, Peter Collingbourne wrote: >>> A colleague has suggested a perhaps nicer syntax: >>> >>> __builtin_call_chain(pointer, call) where call must be a call expression >> >> I like this. >> >> Unlike the other suggestions, it doesn't mess with the parsing of the "regular" >> part of the function call. And, depending on what point the builtin is lowered >> and applied to the AST, it might not require any parsing changes at all. >> >> I'll have a look at this next week. Thanks. > > Does the frontend know that the call expects a static chain? The chain is not part of the function type, so no. Peter