From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#50230: Endian problem with native compilation Date: Sat, 04 Sep 2021 12:15:24 +0300 Message-ID: <83pmtowvkj.fsf@gnu.org> References: <87r1eeu6r0.fsf@igel.home> <87wno3i7f3.fsf@igel.home> <87r1ebhy7t.fsf@igel.home> <838s0gqtu4.fsf@gnu.org> <83y28gp9gb.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1856"; mail-complaints-to="usenet@ciao.gmane.io" Cc: schwab@linux-m68k.org, 50230@debbugs.gnu.org To: akrl@sdf.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Sep 04 11:16:15 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 1mMRmZ-0000H6-CD for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 04 Sep 2021 11:16:15 +0200 Original-Received: from localhost ([::1]:54564 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mMRmY-0000P9-BI for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 04 Sep 2021 05:16:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47980) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mMRmM-0000Md-Ij for bug-gnu-emacs@gnu.org; Sat, 04 Sep 2021 05:16:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35085) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mMRmM-0002U0-9L for bug-gnu-emacs@gnu.org; Sat, 04 Sep 2021 05:16:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mMRmM-0000mV-5c for bug-gnu-emacs@gnu.org; Sat, 04 Sep 2021 05:16:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 04 Sep 2021 09:16:02 +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.16307469411686 (code B ref 50230); Sat, 04 Sep 2021 09:16:02 +0000 Original-Received: (at 50230) by debbugs.gnu.org; 4 Sep 2021 09:15:41 +0000 Original-Received: from localhost ([127.0.0.1]:46630 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mMRm0-0000Qm-ED for submit@debbugs.gnu.org; Sat, 04 Sep 2021 05:15:40 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:60018) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mMRly-0000Ju-At for 50230@debbugs.gnu.org; Sat, 04 Sep 2021 05:15:39 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:55540) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mMRlr-00023b-Jt; Sat, 04 Sep 2021 05:15:31 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:2595 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mMRlr-0004j3-6x; Sat, 04 Sep 2021 05:15:31 -0400 In-Reply-To: <83y28gp9gb.fsf@gnu.org> (message from Eli Zaretskii on Wed, 01 Sep 2021 19:05:56 +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:213404 Archived-At: > Date: Wed, 01 Sep 2021 19:05:56 +0300 > From: Eli Zaretskii > Cc: schwab@linux-m68k.org, 50230@debbugs.gnu.org > > > From: Andrea Corallo > > Cc: schwab@linux-m68k.org, 50230@debbugs.gnu.org > > Date: Wed, 01 Sep 2021 15:13:54 +0000 > > > > 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... > > OK, thanks. We'll see how it goes (after you find the problem with > endianness and fix it). I've noticed that building Emacs --with-native-compilation after this change still uses the same subdirectory of native-lisp/ for the preloaded files, and doesn't recompile *.eln files that were native-compiled before the change (unless the corresponding *.el files were updated in the meantime). Shouldn't we recompile all the *.eln files after this change? I don't know if Andreas did recompile all of them, but if not, perhaps that's one reason why the change didn't fix Emacs on big-endian systems?