Message ID | 20240127070945.413362-2-yangyujie@loongson.cn |
---|---|
State | Unresolved |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2395:b0:106:343:edcb with SMTP id gw21csp353300dyb; Fri, 26 Jan 2024 23:10:58 -0800 (PST) X-Google-Smtp-Source: AGHT+IFgnh4tbaLS1KeXihAY4Ftj4b1sRVqZgs4goUuqtu9HZpvNwYiSn0VLi9pk79A1XWQhA+a1 X-Received: by 2002:a05:620a:15ae:b0:783:9199:f4ca with SMTP id f14-20020a05620a15ae00b007839199f4camr1189806qkk.93.1706339458053; Fri, 26 Jan 2024 23:10:58 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706339458; cv=pass; d=google.com; s=arc-20160816; b=YytwJIhqU3fWwhf6v6H04jNP1OjVIOg9nmokBpIaVAagnuuvxIDdqrnskCI+7sXQPc HtNGOpxXjCThcLcQV1NPwf+SI6eNI35LH3+FWAiEkMSgXF5psl10rQJ7DZFWP9E7gQsF 905GdcDad2GnD6qev+x0Cqeq7Z7YsSA5V0jrju1Kob3GLW1KpoHzE4sWabya+BxhX8IS DPc1ut8fmwT17iLT4E4ERdFnopdjWtyFVn14XXUWsQYpOQPs5SrwnrXvtg8gG+nbVmV8 h6Z6dj02xONf9jZcpdNVVWLVsN93Hm54UvRnsaxvdjMLUcGmjXXBZmWnJbhKtJc6vUhE APDA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:arc-filter :dmarc-filter:delivered-to; bh=Jgr8j0bq25oV3CEb5tF6fEGqqzKfXRH14BDyED5ZQIE=; fh=nbmRBDXQiSmkggNtQfFaZFttprhikEk8YALzTawIDmw=; b=QJdH28Y4rgYtzHU+MOcgHI2JfUlAcd08Ln8DsACN0iP301bkBW4rqO9wf+aX2HW0ph udDUiC0p1Kjgxj/lmcCxSCBWBFy9/26VYJ58Gaq/OpFgqpfPMX3tXPELJqH+7wGNalx7 EsOBKUvjFIA3Lwleb+xwfVwguO2yRvEGNI3QCE82Nk0aPs/jccCU2m8CUmUPI6/08UEd wX6N77FZjXRNbhUHotVLM3v/vamEJlX4QMTBEZbeoQRBRsOOHHkqBIfvd3WhoKtjAuRY NMbH0ZVwpGFsl/2iw8TgA5KVCkIGWTP5L/IHYfeu2/C/xTAbBSezzgyQ1MZ/TMiGy/Z9 qAng== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id a5-20020a05620a16c500b007839a42c28dsi3053517qkn.320.2024.01.26.23.10.57 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Jan 2024 23:10:58 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id B88C03858C60 for <ouuuleilei@gmail.com>; Sat, 27 Jan 2024 07:10:57 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from eggs.gnu.org (eggs.gnu.org [IPv6:2001:470:142:3::10]) by sourceware.org (Postfix) with ESMTPS id 2F63A3858C2D for <gcc-patches@gcc.gnu.org>; Sat, 27 Jan 2024 07:10:14 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 2F63A3858C2D Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=loongson.cn Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=loongson.cn ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 2F63A3858C2D Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2001:470:142:3::10 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1706339416; cv=none; b=w8RhPge+d2FJLJb76CLwGNvj97Kp12R/1HSjyomso51KdpoKDbY19CjKUPVuNxzV1X9UNZ0TlmQZYERv//76L8LSgqr2j9rjxmTwlNFkKX8T9Ef7ubq398aPGX3jc0ivIs/34d3uMbUHhWubszlDJzyGhv/H7/Zl9ZNsZvisZAI= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1706339416; c=relaxed/simple; bh=WjbN4cJf6OGJSu6Srh+Xo4ptDJG0C/OQrO316mYlL14=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=hNge2pOv7I6MKIZujvUpAlIOR28HOPu+DjWNdmJBQm0AST+8Y9IS971jodsSbPGKr5M91c6vg4k4zRNTzIbOQq+NuKI81sIhkskIRnxwlSNPxq2bkxAbFpJdaSJt3LYF1gF8QQf4mvsaxKeoew0+4WuyWaaMQ9YkXiDTyxN7tgA= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from mail.loongson.cn ([114.242.206.163]) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from <yangyujie@loongson.cn>) id 1rTcpP-00066l-5m for gcc-patches@gcc.gnu.org; Sat, 27 Jan 2024 02:10:13 -0500 Received: from loongson.cn (unknown [114.243.106.119]) by gateway (Coremail) with SMTP id _____8CxF+hHrLRltdoGAA--.3369S3; Sat, 27 Jan 2024 15:10:01 +0800 (CST) Received: from localhost.localdomain (unknown [114.243.106.119]) by localhost.localdomain (Coremail) with SMTP id AQAAf8Cx7xNFrLRlw4seAA--.352S2; Sat, 27 Jan 2024 15:09:57 +0800 (CST) From: Yang Yujie <yangyujie@loongson.cn> To: gcc-patches@gcc.gnu.org Cc: chenglulu@loongson.cn, Yang Yujie <yangyujie@loongson.cn> Subject: [PATCH] LoongArch: Fix soft-float builds of libffi Date: Sat, 27 Jan 2024 15:09:46 +0800 Message-ID: <20240127070945.413362-2-yangyujie@loongson.cn> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: AQAAf8Cx7xNFrLRlw4seAA--.352S2 X-CM-SenderInfo: 51dqw5pxmlvqxorr0wxvrqhubq/1tbiAQAJAGWzbWEGEQAFsA X-Coremail-Antispam: 1Uk129KBj9xXoWrZrW8JF18Xw13tw17WF4UAwc_yoWxCrcEqw 4xJrZ7GrWrCayjya1qgrn0qFy8t3y5ZFnYyrn7JFW3WF17Aw4rJFW8XrnxuF1aqFyYgFZ8 Gw40vFy3Aw1jkosvyTuYvTs0mTUanT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUj1kv1TuYvT s0mT0YCTnIWjqI5I8CrVACY4xI64kE6c02F40Ex7xfYxn0WfASr-VFAUDa7-sFnT9fnUUI cSsGvfJTRUUUb7xYFVCjjxCrM7AC8VAFwI0_Jr0_Gr1l1xkIjI8I6I8E6xAIw20EY4v20x vaj40_Wr0E3s1l1IIY67AEw4v_Jr0_Jr4l8cAvFVAK0II2c7xJM28CjxkF64kEwVA0rcxS w2x7M28EF7xvwVC0I7IYx2IY67AKxVWUJVWUCwA2z4x0Y4vE2Ix0cI8IcVCY1x0267AKxV WUJVW8JwA2z4x0Y4vEx4A2jsIE14v26F4j6r4UJwA2z4x0Y4vEx4A2jsIEc7CjxVAFwI0_ Gr0_Gr1UM2AIxVAIcxkEcVAq07x20xvEncxIr21l57IF6xkI12xvs2x26I8E6xACxx1l5I 8CrVACY4xI64kE6c02F40Ex7xfMcIj6xIIjxv20xvE14v26r1j6r18McIj6I8E87Iv67AK xVWUJVW8JwAm72CE4IkC6x0Yz7v_Jr0_Gr1lF7xvr2IYc2Ij64vIr41l42xK82IYc2Ij64 vIr41l4I8I3I0E4IkC6x0Yz7v_Jr0_Gr1lx2IqxVAqx4xG67AKxVWUJVWUGwC20s026x8G jcxK67AKxVWUGVWUWwC2zVAF1VAY17CE14v26r1Y6r17MIIYrxkI7VAKI48JMIIF0xvE2I x0cI8IcVAFwI0_Jr0_JF4lIxAIcVC0I7IYx2IY6xkF7I0E14v26r1j6r4UMIIF0xvE42xK 8VAvwI8IcIk0rVWUJVWUCwCI42IY6I8E87Iv67AKxVWUJVW8JwCI42IY6I8E87Iv6xkF7I 0E14v26r1j6r4UYxBIdaVFxhVjvjDU0xZFpf9x07UE-erUUUUU= Received-SPF: pass client-ip=114.242.206.163; envelope-from=yangyujie@loongson.cn; helo=mail.loongson.cn X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Status: No, score=-10.4 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, RCVD_IN_BARRACUDACENTRAL, SPF_FAIL, SPF_HELO_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789226603084909911 X-GMAIL-MSGID: 1789226603084909911 |
Series |
LoongArch: Fix soft-float builds of libffi
|
|
Checks
Context | Check | Description |
---|---|---|
snail/gcc-patch-check | warning | Git am fail log |
Commit Message
Yang Yujie
Jan. 27, 2024, 7:09 a.m. UTC
This patch correspond to the upstream PR: https://github.com/libffi/libffi/pull/817 libffi/ChangeLog: * src/loongarch64/ffi.c: Avoid defining floats in struct call_context if the ABI is soft-float. --- libffi/src/loongarch64/ffi.c | 2 ++ 1 file changed, 2 insertions(+)
Comments
On Sat, 2024-01-27 at 15:09 +0800, Yang Yujie wrote: > This patch correspond to the upstream PR: > https://github.com/libffi/libffi/pull/817 > > libffi/ChangeLog: > > * src/loongarch64/ffi.c: Avoid defining floats > in struct call_context if the ABI is soft-float. You need to wait until the PR is accepted by the libffi maintainers. Frankly I don't know what libffi maintainers are busy on and I'm frustrated as well (having a MIPS patch unreviewed there for a month) but this is the procedure :(.
diff --git a/libffi/src/loongarch64/ffi.c b/libffi/src/loongarch64/ffi.c index 140be3bc3dc..01c2e18a395 100644 --- a/libffi/src/loongarch64/ffi.c +++ b/libffi/src/loongarch64/ffi.c @@ -58,7 +58,9 @@ */ typedef struct call_context { +#if !defined(__loongarch_soft_float) ABI_FLOAT fa[8]; +#endif size_t a[10]; } call_context;