From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Towards a cleaner build Date: Mon, 10 Jun 2019 09:36:40 -0400 Message-ID: References: <83zhn6zkgf.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="149412"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Lars Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jun 10 15:38:03 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1haKUs-000cZD-8E for ged-emacs-devel@m.gmane.org; Mon, 10 Jun 2019 15:38:03 +0200 Original-Received: from localhost ([::1]:46560 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1haKUk-0008Ip-2y for ged-emacs-devel@m.gmane.org; Mon, 10 Jun 2019 09:37:54 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47694) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1haKTj-0008IR-7Y for emacs-devel@gnu.org; Mon, 10 Jun 2019 09:36:53 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1haKTh-0001AR-E2 for emacs-devel@gnu.org; Mon, 10 Jun 2019 09:36:51 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:1995) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1haKTg-00018F-0V for emacs-devel@gnu.org; Mon, 10 Jun 2019 09:36:49 -0400 Original-Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id E91D78116A; Mon, 10 Jun 2019 09:36:44 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 1773680D86; Mon, 10 Jun 2019 09:36:43 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1560173803; bh=lUfN/wMmbcmwIpL6yihYZza3TBvTL9X0ZZVxxQtUlnI=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=knOQJZTTSmGkUZdZ96gzHuLikFaPp5/pSJ7dXiVPy7eecb8zUNF3E1RGe951h/LBn LGCFBopOkGMFUR3XQAITGdobF2QqZER5jli0ZqhHO5GEeEMcuHe3tFvVQxiOheKgF7 /uAWo53DUkKJWBrhoJtBnlSS7v+mKP2kYnLu8mx/q3Y8xSkr4zmSvsv3aW2WWdLInk t/oOYV3VhUrTvlCvsCwy0OCPIj4pXhDOzdEdI0SKk/oOjT2H8SV4cyYaiVI038NRdt VPlXt8jITcCiZsqL1CFCmsGgd4AXfxfBvwtNF/033nb3HxOGCwal7omUlz5kPKrSjO CZmNphGZO8N4Q== Original-Received: from alfajor (unknown [216.154.16.220]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id A0ABC1204F8; Mon, 10 Jun 2019 09:36:42 -0400 (EDT) In-Reply-To: (Lars Ingebrigtsen's message of "Mon, 10 Jun 2019 10:44:54 +0200") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 132.204.25.50 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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:237401 Archived-At: > Oooh. Huh. Isn't that... a bug? :-) I mean -- the reference to the > variable isn't in the compiled code, so shouldn't the analysis catch > that and still warn about the variable? That's the usual tension with warnings: OT1H you want warnings to be about the source code rather than about the compiled/optimized code, but then you also don't want warning about things which the programmer knows will be optimized away (e.g. within a (featurep 'xemacs) branch), so ordering of "warning-detection" and optimization phases is sometimes delicate. For `ignore` things just happen to work. Stefan