From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Newsgroups: gmane.emacs.bugs Subject: bug#62537: Error compiling emacs master with native compilation activated Date: Wed, 5 Apr 2023 22:51:01 +0200 Message-ID: <8CD7FA80-0E05-4112-A063-8F49F6A28CD4@acm.org> References: <664DC8F8-EEEC-4A90-A4F5-86C11378486C@acm.org> Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.15\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27707"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , 62537@debbugs.gnu.org, Pedro Andres Aranda Gutierrez To: Andrea Corallo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Apr 05 22:52:17 2023 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 1pkA76-0006wo-R7 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 05 Apr 2023 22:52:16 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pkA6t-00062H-S0; Wed, 05 Apr 2023 16:52:03 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pkA6s-000625-Dj for bug-gnu-emacs@gnu.org; Wed, 05 Apr 2023 16:52:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pkA6s-0004Uq-52 for bug-gnu-emacs@gnu.org; Wed, 05 Apr 2023 16:52:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pkA6r-0000Z7-UT for bug-gnu-emacs@gnu.org; Wed, 05 Apr 2023 16:52:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 05 Apr 2023 20:52:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62537 X-GNU-PR-Package: emacs Original-Received: via spool by 62537-submit@debbugs.gnu.org id=B62537.16807278762031 (code B ref 62537); Wed, 05 Apr 2023 20:52:01 +0000 Original-Received: (at 62537) by debbugs.gnu.org; 5 Apr 2023 20:51:16 +0000 Original-Received: from localhost ([127.0.0.1]:52761 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pkA68-0000Wf-1J for submit@debbugs.gnu.org; Wed, 05 Apr 2023 16:51:16 -0400 Original-Received: from mail1476c50.megamailservers.eu ([91.136.14.76]:56856 helo=mail118c50.megamailservers.eu) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pkA64-0000VW-Is for 62537@debbugs.gnu.org; Wed, 05 Apr 2023 16:51:14 -0400 X-Authenticated-User: mattiase@bredband.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megamailservers.eu; s=maildub; t=1680727865; bh=V5qrp858U86uJgN4icnJ8u8GIPGadzF2B8ex2JZj0jc=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=g/CfH6GZdNMR50oPugMLoWZM92Eocm7j9i5YuwifBivoHKY236myG8ZkF9PA6m5SH 4osn4kWcOFm+2PPUFiOEjXcExmlbxOexios+wS78kw0O2SKh1ZIx8HqpfbTarxsSyP o3TmRc/rVrMXRKY5Qk4ks4G4ZjbCt8gJfemwGqWw= Feedback-ID: mattiase@acm.or Original-Received: from smtpclient.apple (c188-150-165-235.bredband.tele2.se [188.150.165.235]) (authenticated bits=0) by mail118c50.megamailservers.eu (8.14.9/8.13.1) with ESMTP id 335Kp2mW072781; Wed, 5 Apr 2023 20:51:04 +0000 In-Reply-To: X-Mailer: Apple Mail (2.3654.120.0.1.15) X-VADE-SPAMSTATE: clean X-VADE-SPAMSCORE: -100 X-VADE-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvhedrvdejuddgudehhecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfjqffuvffqrffktedpqfgfvfdpgffpggdqveehtdenuceurghilhhouhhtmecufedtudenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurheptggguffhjgffvefgkfhfvffosehtqhhmtdhhtddvnecuhfhrohhmpeforghtthhirghsucfgnhhguggvghonrhguuceomhgrthhtihgrshgvsegrtghmrdhorhhgqeenucggtffrrghtthgvrhhnpeevkeffudejhfekhedvgfffieekgffhfedvkeeuffelgeefkeeulefhjeeifeekgfenucfkphepudekkedrudehtddrudeihedrvdefheenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpedukeekrdduhedtrdduieehrddvfeehpdhhvghlohepshhmthhptghlihgvnhhtrdgrphhplhgvpdhmrghilhhfrhhomhepmhgrthhtihgrshgvsegrtghmrdhorhhgpdhnsggprhgtphhtthhopeegpdhrtghpthhtoheprghkrhhlsehsughfrdhorhhgpdhrtghpthhtohepiedvheefjeesuggvsggsuhhgshdrghhnuhdrohhrghdprhgtph htthhopehprggrghhuthhisehgmhgrihhlrdgtohhmpdhrtghpthhtohepvghlihiisehgnhhurdhorhhg X-Origin-Country: SE 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:259289 Archived-At: 5 apr. 2023 kl. 19.19 skrev Andrea Corallo : > As we suspected was a bug in the native compiler limplification pass > triggered by the new LAP emitted. >=20 > fa669c4b17c fixes bootstrap --with-native-compilation=3Daot here and = adds > a test, is now pushed to master. In 29 the bug never showed up > (probably because the new LAP tweak is not it) so I guess it's better = to > leave the code as it is. Nice! So the bug was that we optimised away switches where all jump = targets are the same, without considering the fall-through case? (Perhaps we should do something like that in the LAP optimiser. Wonder = how common the opportunity is though.) By the way, the bulk of `comp-jump-table-optimizable` should be = equivalent to something like (apply #'=3D (hash-table-values jmp-table)) which is arguably clearer and definitely shorter.