From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Newsgroups: gmane.emacs.bugs Subject: bug#35770: [PATCH] Broken duplicate case elimination in switch byte-compilation Date: Mon, 27 May 2019 13:27:38 +0200 Message-ID: <93E5062E-4D87-4C36-A44E-2F17D665080B@acm.org> References: <91DFE4D0-BDB6-4365-BA51-A2A3F209177C@acm.org> <752237291204505cd6b3fb98f667c2718fa6361f.camel@acm.org> <7C514C39-A204-44F4-A806-0B7DC3F4E6B4@acm.org> <83sgt67o2x.fsf@gnu.org> <87d0kaag5z.fsf@gmail.com> <83r28q7mxo.fsf@gnu.org> <838sut2h1e.fsf@gnu.org> Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="269568"; mail-complaints-to="usenet@blaine.gmane.org" Cc: Noam Postavsky , vibhavp@gmail.com, 35770@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon May 27 13:28:11 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hVDnX-0017za-GB for geb-bug-gnu-emacs@m.gmane.org; Mon, 27 May 2019 13:28:11 +0200 Original-Received: from localhost ([127.0.0.1]:43855 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hVDnW-0008Fl-HW for geb-bug-gnu-emacs@m.gmane.org; Mon, 27 May 2019 07:28:10 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:35573) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hVDnP-0008Fd-V7 for bug-gnu-emacs@gnu.org; Mon, 27 May 2019 07:28:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hVDnP-0006C5-1v for bug-gnu-emacs@gnu.org; Mon, 27 May 2019 07:28:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39282) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hVDnO-0006Bq-OL for bug-gnu-emacs@gnu.org; Mon, 27 May 2019 07:28:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hVDnO-0006de-Fz for bug-gnu-emacs@gnu.org; Mon, 27 May 2019 07:28:02 -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: Mon, 27 May 2019 11:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 35770 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 35770-submit@debbugs.gnu.org id=B35770.155895646725490 (code B ref 35770); Mon, 27 May 2019 11:28:02 +0000 Original-Received: (at 35770) by debbugs.gnu.org; 27 May 2019 11:27:47 +0000 Original-Received: from localhost ([127.0.0.1]:52826 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hVDn8-0006d3-S7 for submit@debbugs.gnu.org; Mon, 27 May 2019 07:27:47 -0400 Original-Received: from mail200c50.megamailservers.eu ([91.136.10.210]:36740 helo=mail193c50.megamailservers.eu) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hVDn5-0006cn-OJ for 35770@debbugs.gnu.org; Mon, 27 May 2019 07:27:45 -0400 X-Authenticated-User: mattiase@bredband.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megamailservers.eu; s=maildub; t=1558956461; bh=d3CLOnbKDNLuQZnLMr2m09vjPQdZdFfkS8Y2avrqzgk=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=ffM5OkLoI1mbhLFeKfbN9dGA3QjNXJOoKIMCgIau8xK9ocReJtqNEYP2Wn3PrOa79 iKijnmim39bpMbvG/DMVt3/dqj4YxwUXmojBl0PnmlR5cNCMeCSgea9auFUFMa0HEf Apm2CFFKl8GKS3FIdSEvO3REuyxb3ADmzyxUFsag= Feedback-ID: mattiase@acm.or Original-Received: from [192.168.1.65] (c-e636e253.032-75-73746f71.bbcust.telenor.se [83.226.54.230]) (authenticated bits=0) by mail193c50.megamailservers.eu (8.14.9/8.13.1) with ESMTP id x4RBRcFt005997; Mon, 27 May 2019 11:27:40 +0000 In-Reply-To: X-Mailer: Apple Mail (2.3445.104.11) X-CTCH-RefID: str=0001.0A0B0212.5CEBC9AD.004C, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0 X-CTCH-VOD: Unknown X-CTCH-Spam: Unknown X-CTCH-Score: 0.000 X-CTCH-Flags: 0 X-CTCH-ScoreCust: 0.000 X-CSC: 0 X-CHA: v=2.3 cv=PM8hB8iC c=1 sm=1 tr=0 a=M+GU/qJco4WXjv8D6jB2IA==:117 a=M+GU/qJco4WXjv8D6jB2IA==:17 a=jpOVt7BSZ2e4Z31A5e1TngXxSK0=:19 a=kj9zAlcOel0A:10 a=iRZporoAAAAA:8 a=LRcMwS-MsR4utHErEbUA:9 a=CjuIK1q_8ugA:10 a=NOBgFS-JBQ2l-kSd6-zu:22 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:159807 Archived-At: 27 maj 2019 kl. 00.06 skrev Stefan Monnier : >=20 > I personally don't have a preference. I find reverting the change to = be > a more intrusive change with more risks of errors, but it's likely > a wash either way. >=20 > FWIW I also think it's generally good to introduce new byte-codes in = one > version and only enable the compiler to use them in the next version > (that's what I did for the condition-case byte codes, for example). Trying to revert 'the rest' (the switch code generation) while keeping = the switch op itself seems indeed to be risky and a lot of work compared = to just turning off the generation. It is not a matter of finding a few = commits to revert; there are fixes upon fixes, and changes that need to = be untangled. It does not sound very practical. Since nobody complained about the actual bug fix, I'm boldly pushing it = to master.