From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 119155 invoked by alias); 18 Dec 2015 15:09:21 -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 119142 invoked by uid 89); 18 Dec 2015 15:09:20 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.6 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=actively, H*Ad:U*libffi-discuss, HTo:U*libffi-discuss X-HELO: gproxy9-pub.mail.unifiedlayer.com Received: from gproxy9-pub.mail.unifiedlayer.com (HELO gproxy9-pub.mail.unifiedlayer.com) (69.89.20.122) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with SMTP; Fri, 18 Dec 2015 15:09:19 +0000 Received: (qmail 11107 invoked by uid 0); 18 Dec 2015 15:09:17 -0000 Received: from unknown (HELO cmgw4) (10.0.90.85) by gproxy9.mail.unifiedlayer.com with SMTP; 18 Dec 2015 15:09:17 -0000 Received: from box522.bluehost.com ([74.220.219.122]) by cmgw4 with id v39C1r00u2f2jeq0139F4r; Fri, 18 Dec 2015 08:09:17 -0700 X-Authority-Analysis: v=2.1 cv=IekUBwaa c=1 sm=1 tr=0 a=GsOEXm/OWkKvwdLVJsfwcA==:117 a=GsOEXm/OWkKvwdLVJsfwcA==:17 a=cNaOj0WVAAAA:8 a=f5113yIGAAAA:8 a=zstS-IiYAAAA:8 a=PnD2wP_eR3oA:10 a=s8ekr2260t4A:10 a=wUQvQvOEmiQA:10 a=TSbVqHtbAAAA:8 a=WWf1mWZ0Jrj2JxIUrQAA:9 Received: from [65.128.63.94] (port=54996 helo=pokyo) by box522.bluehost.com with esmtpsa (TLSv1.2:AES128-GCM-SHA256:128) (Exim 4.84) (envelope-from ) id 1a9wee-0007Vz-Hm; Fri, 18 Dec 2015 08:09:12 -0700 From: Tom Tromey To: libffi-discuss@sourceware.org Subject: Re: s390x ffi_closure_helper_SYSV References: <5672CF2D.2030401@gmail.com> <20151217153018.CDD291513@oc7340732750.ibm.com> Date: Fri, 18 Dec 2015 15:09:00 -0000 In-Reply-To: <20151217153018.CDD291513@oc7340732750.ibm.com> (Ulrich Weigand's message of "Thu, 17 Dec 2015 16:30:18 +0100 (CET)") Message-ID: <87y4craj56.fsf@tromey.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Identified-User: {36111:box522.bluehost.com:elynrobi:tromey.com} {sentby:smtp auth 65.128.63.94 authed with tom+tromey.com} X-SW-Source: 2015/txt/msg00107.txt.bz2 >>>>> "Ulrich" == Ulrich Weigand writes: Ulrich> While this is not explicitly mentioned in the closure docs, the Ulrich> code makes the assumption that this is handled likewise for closure Ulrich> return values. This is also explicitly checked for in the libffi Ulrich> test suite, e.g. testsuite/libffi.call/cls_sshort.c Actually the closure docs are actively wrong right now. I didn't realize this same widening behavior applied to closures (in fact I thought I asked about this and got the answer I documented, but I can't find the email, so it was probably just my error). I sent a github PR to correct the closure documentation. Tom