From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm1-x32c.google.com (mail-wm1-x32c.google.com [IPv6:2a00:1450:4864:20::32c]) by sourceware.org (Postfix) with ESMTPS id 5D831385840B for ; Sun, 18 Sep 2022 22:25:38 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 5D831385840B Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=moxielogic.com Authentication-Results: sourceware.org; spf=none smtp.mailfrom=moxielogic.com Received: by mail-wm1-x32c.google.com with SMTP id v185-20020a1cacc2000000b003b42e4f278cso3452174wme.5 for ; Sun, 18 Sep 2022 15:25:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=moxielogic-com.20210112.gappssmtp.com; s=20210112; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date; bh=Sd4Rmn5yewMpOPHD1+ODiybvxHRcPK1JPhI3ydgntlw=; b=AUpGeFgVtvnljqjxbP0E5YcwfTYH+Gg0Y/HhFPqWfC21E7s3/Sxju7svely+TdH3C0 5fprLhpmzDuXFxTqwHrKeetZOe4JtQBq+jg349LbruJhrL3A5cd1GPL+ocSAQQwkfMul 3pfzLGcz9XKwfcMrzNHxP0Z57b5til5c3tPkt9t3kylefjIE+5kvU/iP9vlHOOfPYumo N8+8e8NjwVKx9OyP3bKooaqiEGnRPFMUMBqj87llJy2EyfgBTk5QjanShXVpig+2DFQ/ +XF2NkPjkj2aRbcDmVfOE58K8dOkyz2oGJmVLnOPEfaes/SZ3qw8UvpLKVhf9jdlD5aH Js4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date; bh=Sd4Rmn5yewMpOPHD1+ODiybvxHRcPK1JPhI3ydgntlw=; b=JMtGkL37PPWsaS8dCRDKWn+QFd3mUbrT9mCmbq6TuQQWsxl2Y29tfMgThQeHquISuz 2Ey022BNicHTqhIty4YID0jtnC0z9KCj3nelXpgbwQovPcE4VSDi5hmRrLObevOoLf6O rGj/PE9dEuO1LlgZaqtTN6iKyX0jf9LNWWjseswEtFzarYAo2qtSgWQ0Zy0EMFo0l64C unbYDYZzcD/XoH5+ngYdYIURu8c4n78hIzZcmKOxzx8QIS0HnsLSv2AoeqvCSBYuiC1y PI1u3yHK5oxc7cfCbN2+0WP3hex5xU438Gw0GNroFTt6kcHo72c4b3lU1vLIp5kScbsr VcOA== X-Gm-Message-State: ACrzQf2Y5h5hKNoQHqDWM0GW8q1GoAoSLAfkwnmOr5rRdFtv1u20vXaA /8I68aB7zehpEJTT/BuiJBJt/OwzIR+zi3XKpXYKT2Wbb9m8VRB1 X-Google-Smtp-Source: AMsMyM4Rk45gQPeSqOhQ7UC2AdX/u6PsRqyUtHZZYIf8gnK9JP7xrlRTOtZmb2/a44KWapF7ODrU0Q6RErurh39vGmI= X-Received: by 2002:a05:600c:34d2:b0:3b4:a617:f3b9 with SMTP id d18-20020a05600c34d200b003b4a617f3b9mr10071039wmq.204.1663539937074; Sun, 18 Sep 2022 15:25:37 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Anthony Green Date: Sun, 18 Sep 2022 18:25:26 -0400 Message-ID: Subject: Re: Please help prep for a new libffi release To: libffi-discuss Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,KAM_SHORT,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: I spent some time trying to fix the 32-bit x86 results. As it happens, libffi is doing things mostly right. It's GCC that can't return small structs (<= 16 byte) properly for any of the MS ABIs. https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105932 I'm just going to ignore this for now and force the CI tests to pass with new rlgl policy. I'll probably spin out the new release in the next day or two. As far as I can tell there are no regressions. These are the highlights: All struct args are passed by value, regardless of size, as per ABIs. Enable static trampolines for Cygwin. Add support for Loongson's LoonArch64 architecture. Fix x32 static trampolines. Fix 32-bit x86 stdcall stack corruption. Fix ILP32 aarch64 support. AG On Mon, Sep 12, 2022 at 10:19 AM Anthony Green wrote: > > On Wed, Sep 7, 2022 at 9:44 AM Anthony Green wrote: > > > > the Cygwin results are a mess > > I fixed this porting static trampolines to Cygwin. Cygwin emulates > Linux enough (eg. /proc filesystem), that turning on static > trampolines was easy. The Cygwin results are pretty clean now. > > AG