From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Ken Raeburn Newsgroups: gmane.emacs.devel Subject: Re: Skipping unexec via a big .elc file Date: Mon, 6 Feb 2017 14:08:06 -0500 Message-ID: <5AF6553B-9ECD-4F0B-8841-55656D4D1B99@raeburn.org> References: <15CF14CC-C7DE-44BA-AC7D-F0BF1F160979@raeburn.org> <9463F91F-DB82-48E1-BE01-1E2BC8DA0766@raeburn.org> <831swxzbw8.fsf@gnu.org> <83y3z2wphb.fsf@gnu.org> <83tw9bb42m.fsf@gnu.org> <349ED8B9-C34B-495B-9FB5-E72CE6EFCA38@raeburn.org> <87inpni6xa.fsf@linux-m68k.org> <8360lmesso.fsf@gnu.org> <3B044D64-7C94-42D7-BE1B-7A9CA76C5A67@raeburn.org> <83k29xc49v.fsf@gnu.org> <2C5C5C6E-9D73-4613-948B-C15B93968717@raeburn.org> <83poiy8cnv.fsf@gnu.org> <83y3xk7i07.fsf@gnu.org> <7DB61BDC-41C5-41A5-BB01-B15F2B03A81E@raeburn.org> <491113AD-F03F-4E9D-8005-F4C430E60A16@raeburn.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1486408106 9000 195.159.176.226 (6 Feb 2017 19:08:26 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 6 Feb 2017 19:08:26 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 06 20:08:23 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1caoeE-00028Z-6C for ged-emacs-devel@m.gmane.org; Mon, 06 Feb 2017 20:08:22 +0100 Original-Received: from localhost ([::1]:50309 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1caoeG-0005oE-PW for ged-emacs-devel@m.gmane.org; Mon, 06 Feb 2017 14:08:24 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41593) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1caoe4-0005lC-UC for emacs-devel@gnu.org; Mon, 06 Feb 2017 14:08:13 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1caoe1-0002rL-OZ for emacs-devel@gnu.org; Mon, 06 Feb 2017 14:08:12 -0500 Original-Received: from mail-qk0-x231.google.com ([2607:f8b0:400d:c09::231]:33186) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1caoe1-0002rD-J3 for emacs-devel@gnu.org; Mon, 06 Feb 2017 14:08:09 -0500 Original-Received: by mail-qk0-x231.google.com with SMTP id s140so65250693qke.0 for ; Mon, 06 Feb 2017 11:08:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raeburn-org.20150623.gappssmtp.com; s=20150623; h=subject:mime-version:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=mLIqxokLAvts0M7OfkTWmeeczfTw0if4aTZbQKxeP14=; b=SFDaJA9+avgBGbYdFwyFpc6c7X9gtSuZaLYLB58Xo4Xw64o0egTVqh2wmu/ojQbrxC 4y8i5kXV002DmWn9hmF46WgSpEYe9827/1EMTJz6zNWM4SYm0XMVRosm5iA3tyqmnRE1 Oxibap1bx6Y//1Ow56HIGl/3nI6WlNAWFctp9UYeiIdXAPq6IhrzkMsEb85pn8xdnnwJ l/clynJaeTO1dSdS1eowynpssitnfpoZYfNthVwV5BRdnd2BqlUA12atyLVGugZxFH1+ oU8ivDUyWMeKfF2TtA28BA1alpe3WeQ/RGIScFGzxQcyt3MDesln7OU/Y/SKeSnn9mj2 VBRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:mime-version:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=mLIqxokLAvts0M7OfkTWmeeczfTw0if4aTZbQKxeP14=; b=Noc70Su4guhdIcmT2h3g7j9lt0YeEcXCwSz5j06HqHNYggCbLDIFZQoVIRWOFrIYZL ixKIzJRphd2VnRtzPMlKsDAyGCumhPVymKVUU579Ife7iHHu94PwBDMQ3FHeGWiV58jq fbvDBDoBFN9ZYAxOPvIUUdblM3nasWyp3DU7+tV26aEAp9rUpulSE0fjL6lO8b/L4qOn hxwuhCNlT5wAlmhmdO1Ex5Bg3AFwwiyaTcdWU1Oxxt3AesFhG1DZioLLI0FuS2eBnnsz kn8XXmy/cCNyWO0hcSiHM2NueWFlb+R/CF0kQcAmJFb8yvY+l+RE1T1RstrsYyi1i/ht PR1w== X-Gm-Message-State: AMke39lUysMUUpYWja4+rVpRKtBfu+UKOHlfCvwkQLzPkxkMFdJkqgIf/Of33y0/r0NytA== X-Received: by 10.55.25.94 with SMTP id k91mr11062669qkh.202.1486408088831; Mon, 06 Feb 2017 11:08:08 -0800 (PST) Original-Received: from [192.168.23.52] (c-50-138-183-136.hsd1.ma.comcast.net. [50.138.183.136]) by smtp.gmail.com with ESMTPSA id 126sm1250371qkl.24.2017.02.06.11.08.07 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 06 Feb 2017 11:08:07 -0800 (PST) In-Reply-To: X-Mailer: Apple Mail (2.3124) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400d:c09::231 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:212057 Archived-At: > On Feb 6, 2017, at 10:39, Stefan Monnier = wrote: >=20 >> It appears that the .elc output can vary depending on whether other = loaded >> Lisp code was compiled or not. >=20 > Indeed: the culprit is the defsubst implementation. Currently, if > a function is byte-compiled, the optimizer inlines its byte-codes > and when it's not yet byte-compiled, then it inlines the source code. >=20 > We should probably change that so that when it finds that the defsubst > function is not yet byte-compiled, it byte-compiles it and then = inlines > the resulting byte-codes. Is this a known (and filed) bug? A quick search for defsubst in debbugs = only finds me one unrelated report. In any case, doing =E2=80=9Cmake bootstrap=E2=80=9D from clean trees = (which I=E2=80=99m assuming will byte-compile files in the same order = each time) still gets me a few differences between the branch point and = the branch, including python.elc differing in use of dynamic docstrings, = and url-handler.elc file-name-handler wrappers saying =E2=80=9Cno = original documentation=E2=80=9D. Still more to debug, I guess. Ken=