From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andrea Corallo via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#50230: Endian problem with native compilation Date: Wed, 01 Sep 2021 15:13:54 +0000 Message-ID: References: <87r1eeu6r0.fsf@igel.home> <87wno3i7f3.fsf@igel.home> <87r1ebhy7t.fsf@igel.home> <838s0gqtu4.fsf@gnu.org> Reply-To: Andrea Corallo Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17865"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: schwab@linux-m68k.org, 50230@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Sep 01 17:14:10 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mLRwH-0004P8-Ku for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 01 Sep 2021 17:14:09 +0200 Original-Received: from localhost ([::1]:32794 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mLRwG-0000tw-If for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 01 Sep 2021 11:14:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48480) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mLRw9-0000ta-VL for bug-gnu-emacs@gnu.org; Wed, 01 Sep 2021 11:14:01 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55518) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mLRw9-0000tc-Na for bug-gnu-emacs@gnu.org; Wed, 01 Sep 2021 11:14:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mLRw9-0005sW-Iy for bug-gnu-emacs@gnu.org; Wed, 01 Sep 2021 11:14:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andrea Corallo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 01 Sep 2021 15:14:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50230 X-GNU-PR-Package: emacs Original-Received: via spool by 50230-submit@debbugs.gnu.org id=B50230.163050923822577 (code B ref 50230); Wed, 01 Sep 2021 15:14:01 +0000 Original-Received: (at 50230) by debbugs.gnu.org; 1 Sep 2021 15:13:58 +0000 Original-Received: from localhost ([127.0.0.1]:38831 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mLRw6-0005s4-93 for submit@debbugs.gnu.org; Wed, 01 Sep 2021 11:13:58 -0400 Original-Received: from mx.sdf.org ([205.166.94.24]:63015) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mLRw3-0005rv-LR for 50230@debbugs.gnu.org; Wed, 01 Sep 2021 11:13:56 -0400 Original-Received: from ma.sdf.org (ma.sdf.org [205.166.94.33]) by mx.sdf.org (8.15.2/8.14.5) with ESMTPS id 181FDshZ020553 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO); Wed, 1 Sep 2021 15:13:54 GMT In-Reply-To: <838s0gqtu4.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 01 Sep 2021 17:00:19 +0300") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:213198 Archived-At: Eli Zaretskii writes: >> Cc: 50230@debbugs.gnu.org >> Date: Wed, 01 Sep 2021 12:28:59 +0000 >> From: Andrea Corallo via "Bug reports for GNU Emacs, >> the Swiss army knife of text editors" >> >> Andreas Schwab writes: >> >> > define_cast_functions contains all the horrible mess. >> > >> > Andreas. >> >> Hi Andreas, >> >> is this bug fixed with 6767e5565? > > Andrea, > > Regardless of whether the big-endian bugs are solved with this, could > you please try to give us an idea of how this change could affect the > native code produced by Emacs, and whether it could destabilize Emacs > with natively-compiled Lisp code to any significant degree? This is changing the cast functions we synthesize and use in all the code we generate, so yes it is potentially destabilizing. That said the generated code looks correct to me (and considerably cleaner). Also, given these functions are really the foundation of a lot of other code we generate I guess would be unlikely to have these wrong but still have the testsuite passing clean and Emacs booting up correctly. Call me optimistic but I'd be pretty confident with this change... Not sure I can say more than this, hope it helps. Regards Andrea