From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Pip Cet Newsgroups: gmane.emacs.bugs Subject: bug#46834: 28.0.50; byte-compiling the standard counter closure fails Date: Sun, 28 Feb 2021 20:34:36 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="00000000000024d1fa05bc6b70cb" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33517"; mail-complaints-to="usenet@ciao.gmane.io" To: 46834@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Feb 28 22:05:12 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 1lGTFY-0008Zc-DQ for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 28 Feb 2021 22:05:12 +0100 Original-Received: from localhost ([::1]:43816 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lGTFX-0006gM-7o for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 28 Feb 2021 16:05:11 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38024) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lGSnQ-0006do-5Z for bug-gnu-emacs@gnu.org; Sun, 28 Feb 2021 15:36:23 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35791) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lGSnK-0005tE-Gz for bug-gnu-emacs@gnu.org; Sun, 28 Feb 2021 15:36:06 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lGSnK-0007sO-CT for bug-gnu-emacs@gnu.org; Sun, 28 Feb 2021 15:36:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Pip Cet Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 28 Feb 2021 20:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46834 X-GNU-PR-Package: emacs Original-Received: via spool by 46834-submit@debbugs.gnu.org id=B46834.161454452030223 (code B ref 46834); Sun, 28 Feb 2021 20:36:02 +0000 Original-Received: (at 46834) by debbugs.gnu.org; 28 Feb 2021 20:35:20 +0000 Original-Received: from localhost ([127.0.0.1]:47337 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lGSmd-0007rO-KI for submit@debbugs.gnu.org; Sun, 28 Feb 2021 15:35:19 -0500 Original-Received: from mail-oi1-f178.google.com ([209.85.167.178]:36372) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lGSmc-0007rA-BW for 46834@debbugs.gnu.org; Sun, 28 Feb 2021 15:35:18 -0500 Original-Received: by mail-oi1-f178.google.com with SMTP id j1so16020316oiw.3 for <46834@debbugs.gnu.org>; Sun, 28 Feb 2021 12:35:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=rDfbYhuKOjditTU9azgpN3hkSVmeNpYlRF7IsFROxws=; b=oM+/ROBnt70ldi30xxHr0VZ+FHzRzzrZI+jXqBvOtAWhtny+mv+VdQ6lflUbmFFD8+ kBnQC5p32zAO1MW7q8+rvrQo+PClPkCHZFpccTSzGMZ4bt3vdE7HoAX7ysZEWZ3SLl89 1jBrT16StEbt+leVcD/We5lI6angkNdVcSlkeHwn60XAUpA1q/xSkI76zGvG487J+Yyt 6JYIE9afyH7kz2NW8vSLIioPSBGs0WNMHbqyxLzT6FF7edJefvwOKpUHU5CKuDuDBLSx dk/niAxz8htt9T9Ch74hXH55BU14JYoN2qJtaPAUmTVAkW2T4IeD7M1FETMdQWVSO4yz LeGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=rDfbYhuKOjditTU9azgpN3hkSVmeNpYlRF7IsFROxws=; b=MH2sN8mC1CYm3zDb5BRRc6hs46aonxFTo2pvFxc9br6QUtAGY5lNbWmCNpdmBEa9kB dmSf2TxJ53VYuczyr72fk4/YTUiR+zve2l+uGaWjZKb7/V4Otrk4mkY0s65OMG45SHH8 DjwFc3m0uFqIhJAWeejBv/VTm9fHBU/y1aeJcdvnrpXMYjEokRtbhcExnjjS+P7sXyNZ nxt9Gc4rJ8zPrh5MAYOSG83F1Dz2rDI78xqCp2CY5IGV6RpGOxs9HM5CIfrx+n4BLExm /F0E0VX7q44tOOO5Rh/bQ1iFR5QFoecVrFS0qoPP6pq5h04iC2YilP3Zvaw7fTzWf2bT is9w== X-Gm-Message-State: AOAM5305bO8TFyXoTfjOo4OpWFB3Q61WEDjNj1ysz9QBqzoYpd8arra2 1nyx5PSivLnQ8u2VY+vorsCD3/lrwLTGlCtWpd2zvPO+Uqk= X-Google-Smtp-Source: ABdhPJyHWgPR66xtWSE+FEQRjqhV8LC6KNjshJwmmDKaKgd5Ko+z1W1euGDnZkvCbkd5MTybDlLklvfDBUzD40a/UDA= X-Received: by 2002:aca:aad6:: with SMTP id t205mr7380471oie.122.1614544512529; Sun, 28 Feb 2021 12:35:12 -0800 (PST) In-Reply-To: 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:201027 Archived-At: --00000000000024d1fa05bc6b70cb Content-Type: text/plain; charset="UTF-8" On Sun, Feb 28, 2021 at 7:57 PM Pip Cet wrote: > Patch attached. I've looked through the generated bytecode for all of > lisp/ and there appear to be no significant differences. And I suppose we have to test it, too. Pip --00000000000024d1fa05bc6b70cb Content-Type: text/x-patch; charset="US-ASCII"; name="0001-Compile-closures-that-modify-their-bound-vars-correc.patch" Content-Disposition: attachment; filename="0001-Compile-closures-that-modify-their-bound-vars-correc.patch" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_klpm35ut0 RnJvbSA3Y2RiNTliMzdiMjc4ZDVmM2U5NWIyYjViMWI4NzU4ZGVmZTcwYWNmIE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBQaXAgQ2V0IDxwaXBjZXRAZ21haWwuY29tPgpEYXRlOiBTdW4s IDI4IEZlYiAyMDIxIDE5OjQzOjA5ICswMDAwClN1YmplY3Q6IFtQQVRDSF0gQ29tcGlsZSBjbG9z dXJlcyB0aGF0IG1vZGlmeSB0aGVpciBib3VuZCB2YXJzIGNvcnJlY3RseQogKEJ1ZyM0NjgzNCkK CiogbGlzcC9lbWFjcy1saXNwL2J5dGVjb21wLmVsIChieXRlLWNvbXBpbGUtLXJlaWZ5LWZ1bmN0 aW9uKToKRG9uJ3QgbW92ZSBsZXQgYmluZGluZ3MgaW50byB0aGUgbGFtYmRhLiBEb24ndCByZXZl cnNlIGxpc3Qgb2YKYmluZGluZ3MuCiogdGVzdC9saXNwL2VtYWNzLWxpc3AvYnl0ZWNvbXAtdGVz dHMuZWwgKGJ5dGVjb21wLXJlaWZ5LWZ1bmN0aW9uKToKQWRkIHRlc3RzLgotLS0KIGxpc3AvZW1h Y3MtbGlzcC9ieXRlY29tcC5lbCAgICAgICAgICAgIH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iIKKyAgKGNsLWxldGYgKChsZXhpY2FsLWJpbmRpbmcgdCkKKyAgICAgICAgICAgICgoc3ltYm9s LWZ1bmN0aW9uICdjb3VudGVyKSBuaWwpKQorICAgIChsZXQgKCh4IDApKQorICAgICAgKGRlZnVu IGNvdW50ZXIgKCkgKGNsLWluY2YgeCkpCisgICAgICAoc2hvdWxkIChlcXVhbCAoY291bnRlcikg MSkpCisgICAgICAoc2hvdWxkIChlcXVhbCAoY291bnRlcikgMikpCisgICAgICA7OyBieXRlIGNv bXBpbGluZyBzaG91bGQgbm90IGNhdXNlIGNvdW50ZXIgdG8gYWx3YXlzIHJldHVybiB0aGUKKyAg ICAgIDs7IHNhbWUgdmFsdWUgKGJ1ZyM0NjgzNCkKKyAgICAgIChieXRlLWNvbXBpbGUgJ2NvdW50 ZXIpCisgICAgICAoc2hvdWxkIChlcXVhbCAoY291bnRlcikgMykpCisgICAgICAoc2hvdWxkIChl cXVhbCAoY291bnRlcikgNCkpKQorICAgIChsZXQgKCh4IDApKQorICAgICAgKGxldCAoKHggMSkp CisgICAgICAgIChkZWZ1biBjb3VudGVyICgpIHgpCisgICAgICAgIChzaG91bGQgKGVxdWFsIChj b3VudGVyKSAxKSkKKyAgICAgICAgOzsgYnl0ZSBjb21waWxpbmcgc2hvdWxkIG5vdCBjYXVzZSB0 aGUgb3V0ZXIgYmluZGluZyB0byBzaGFkb3cKKyAgICAgICAgOzsgdGhlIGlubmVyIG9uZSAoYnVn IzQ2ODM0KQorICAgICAgICAoYnl0ZS1jb21waWxlICdjb3VudGVyKQorICAgICAgICAoc2hvdWxk IChlcXVhbCAoY291bnRlcikgMSkpKSkpKQorCiA7OyBMb2NhbCBWYXJpYWJsZXM6CiA7OyBuby1i eXRlLWNvbXBpbGU6IHQKIDs7IEVuZDoKLS0gCjIuMzAuMQoK --00000000000024d1fa05bc6b70cb--