From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24795 invoked by alias); 12 Dec 2014 13:57:56 -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 24766 invoked by uid 89); 12 Dec 2014 13:57:55 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_RP_MATCHES_RCVD autolearn=unavailable version=3.3.2 X-HELO: e06smtp16.uk.ibm.com Received: from e06smtp16.uk.ibm.com (HELO e06smtp16.uk.ibm.com) (195.75.94.112) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Fri, 12 Dec 2014 13:57:54 +0000 Received: from /spool/local by e06smtp16.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 12 Dec 2014 13:57:51 -0000 Received: from d06dlp01.portsmouth.uk.ibm.com (9.149.20.13) by e06smtp16.uk.ibm.com (192.168.101.146) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Fri, 12 Dec 2014 13:57:50 -0000 Received: from b06cxnps4074.portsmouth.uk.ibm.com (d06relay11.portsmouth.uk.ibm.com [9.149.109.196]) by d06dlp01.portsmouth.uk.ibm.com (Postfix) with ESMTP id F09E217D8042 for ; Fri, 12 Dec 2014 13:58:12 +0000 (GMT) Received: from d06av05.portsmouth.uk.ibm.com (d06av05.portsmouth.uk.ibm.com [9.149.37.229]) by b06cxnps4074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id sBCDvn6h13828302 for ; Fri, 12 Dec 2014 13:57:50 GMT Received: from d06av05.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av05.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id sBCDvnBi015318 for ; Fri, 12 Dec 2014 06:57:49 -0700 Received: from bl3ahm9f.de.ibm.com (sig-9-84-42-139.evts.de.ibm.com [9.84.42.139]) by d06av05.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVin) with ESMTP id sBCDvmoX015274 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO); Fri, 12 Dec 2014 06:57:49 -0700 Received: from dvogt by bl3ahm9f.de.ibm.com with local (Exim 4.76) (envelope-from ) id 1XzQj5-0003yt-U8; Fri, 12 Dec 2014 14:57:47 +0100 Date: Fri, 12 Dec 2014 13:57:00 -0000 From: Dominik Vogt To: libffi-discuss@sourceware.org, gcc-patches@gcc.gnu.org, gofrontend-dev@googlegroups.com Cc: Andreas Krebbel Subject: Re: [gofrontend-dev] Re: [PATCH 00/13] Go closures, libffi, and the static chain Message-ID: <20141212135747.GA14881@linux.vnet.ibm.com> Reply-To: libffi-discuss@sourceware.org Mail-Followup-To: libffi-discuss@sourceware.org, gcc-patches@gcc.gnu.org, gofrontend-dev@googlegroups.com, Andreas Krebbel References: <1412973773-3942-1-git-send-email-rth@redhat.com> <20141211090623.GA30484@linux.vnet.ibm.com> <20141211092144.GE4283@bubble.grove.modra.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="St7VIuEGZ6dlpu13" Content-Disposition: inline In-Reply-To: <20141211092144.GE4283@bubble.grove.modra.org> User-Agent: Mutt/1.5.21 (2010-09-15) X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 14121213-0025-0000-0000-000002DA218D X-IsSubscribed: yes X-SW-Source: 2014/txt/msg00259.txt.bz2 --St7VIuEGZ6dlpu13 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-length: 611 On Thu, Dec 11, 2014 at 07:51:44PM +1030, Alan Modra wrote: > I was worried about exactly the same "problem" on powerpc with r11 > being used for the static chain and also destroyed in linkage stubs. > It turns out we don't traverse any linkage stubs. > > See https://gcc.gnu.org/ml/gcc-patches/2014-11/msg00446.html. I've written a small test suite that tests reflection calls over module boundaries (see attachment). Build with "make" and then just run "./main". The program must not crash; it does not check consistency of the function arguments. Ciao Dominik ^_^ ^_^ -- Dominik Vogt IBM Germany --St7VIuEGZ6dlpu13 Content-Type: application/x-gtar-compressed Content-Disposition: attachment; filename="closure_reflect_tests.tgz" Content-Transfer-Encoding: base64 Content-length: 1493 H4sIAJjzilQAA+1ZbW/bNhD2V/NXEF5aSK0siXpzF6zAtqINAmxIsQbrh2IL FI1WtFAvlmRjQ5H99h1J2ZJTy2/zVBTVASGP5PGOxyMfnpyApcU8pzc5nTIa lDclLcrCGJyUTKCJaw5MQkzPJlVtif6KBsRyHMudENebwLhjmZMBdk+7jM00 L0o/x3iwSMNym9yu8S+Ugo3xn+lhejobPMCe0xp/4tmr+JueycediWcPsHm6 JbTTVx7/zA/u/ZDiGUJRnKV5iUfVURitOqYxNNACtumCpbc+w1FS4pfYMk2E yr8ziq/h0LyZJ8E1b0yBUdAwwEEaZ4z+5TkaGkI3S/3StjQ8rdmwZu9WLBpG 3ADv/HPJ3C8ZtmTiJZNIRsXcZsNiba+VAUtSx85KRYi7hd/m0Fz4rFB4gT/8 Vu2V/qvP5lTFH8FumuNIwwt8/hLnfgJbK0RhZAj7qAsNLFFGeKQJORUNH9BD pZ9vpK1EyaeaH3VwfdlSlZg1AkUyPM+fo2G90CiBgZyW85zv1Jol5yhLzoGW OKK4NyB0sLXVzP0t8kPKF+munclqJZdJVIpBRUQq9u+plIVQiVM7zcqcB5zm Uz+gHx9UGbZExLK5zKupkFX114zGCixiuGjK/Aya3wiFic7tK6pWb4MqVOrv aKnI4NcLUZ6KSgVPurr/m/E/6xL/LRf6VvhvuQL/J6TH/y5oif/ZFvyfbUJ/ shX9j4HwQ5+Jxgsj0H9fMN/3cai1NzCTHIWZZB3BZnqT3wtBraMR1PoUQfe3 v8RTaxueWut4anWGp9Z2PLUknlpq0xN7myf2uid2J57MdGGr3Q9b+mGrx73e 3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