From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs Subject: bug#54990: Byte compiler bug Date: Thu, 21 Apr 2022 09:49:58 +0000 Message-ID: References: <1417691E-D86C-4318-9320-BA5B0E162C55@acm.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22572"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Lars Ingebrigtsen , 54990@debbugs.gnu.org To: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Apr 21 11:51:54 2022 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 1nhTTd-0005dQ-Gn for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 21 Apr 2022 11:51:53 +0200 Original-Received: from localhost ([::1]:34450 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nhTTc-0004pY-4M for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 21 Apr 2022 05:51:52 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36332) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nhTSo-0004A3-8N for bug-gnu-emacs@gnu.org; Thu, 21 Apr 2022 05:51:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54548) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nhTSn-0004cY-VM for bug-gnu-emacs@gnu.org; Thu, 21 Apr 2022 05:51:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nhTSn-0006hA-Tw for bug-gnu-emacs@gnu.org; Thu, 21 Apr 2022 05:51:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 21 Apr 2022 09:51:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54990 X-GNU-PR-Package: emacs Original-Received: via spool by 54990-submit@debbugs.gnu.org id=B54990.165053461225663 (code B ref 54990); Thu, 21 Apr 2022 09:51:01 +0000 Original-Received: (at 54990) by debbugs.gnu.org; 21 Apr 2022 09:50:12 +0000 Original-Received: from localhost ([127.0.0.1]:48445 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nhTS0-0006fr-0k for submit@debbugs.gnu.org; Thu, 21 Apr 2022 05:50:12 -0400 Original-Received: from colin.muc.de ([193.149.48.1]:19334 helo=mail.muc.de) by debbugs.gnu.org with smtp (Exim 4.84_2) (envelope-from ) id 1nhTRu-0006f7-J3 for 54990@debbugs.gnu.org; Thu, 21 Apr 2022 05:50:10 -0400 Original-Received: (qmail 52924 invoked by uid 3782); 21 Apr 2022 09:49:59 -0000 Original-Received: from acm.muc.de (p4fe15a1f.dip0.t-ipconnect.de [79.225.90.31]) (using STARTTLS) by colin.muc.de (tmda-ofmipd) with ESMTP; Thu, 21 Apr 2022 11:49:58 +0200 Original-Received: (qmail 3561 invoked by uid 1000); 21 Apr 2022 09:49:58 -0000 Content-Disposition: inline In-Reply-To: X-Submission-Agent: TMDA/1.3.x (Ph3nix) X-Primary-Address: acm@muc.de 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:230349 Archived-At: Hello again, Mattias. On Wed, Apr 20, 2022 at 19:33:41 +0000, Alan Mackenzie wrote: > On Mon, Apr 18, 2022 at 17:43:46 +0200, Mattias Engdegård wrote: > > 18 apr. 2022 kl. 12.48 skrev Alan Mackenzie : [ .... ] > > Why did this bug only affect `compile-defun`, not `byte-compile` or > > `byte-compile-file`? The change is in code common to all three. > Yes, I find that intriguing, too. I'm meaning to try to find out why > that was the case. The first priority was to fix the bug. The > differences between the ways the compiler was called might hide further > bugs, though. This is now clear. byte-compile is compiling a form, not source code, so unless the form was read with symbol positions, it won't have them. In byte-compile-file, symbol positions are stripped as the byte code gets output to the file.elc. So the symbol positions were not in the ..elc. Only in compile-defun were there positions, and they "survived". So I don't think there is a problem here. -- Alan Mackenzie (Nuremberg, Germany).