From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andrea Corallo Newsgroups: gmane.emacs.bugs Subject: bug#65527: 30.0.50; native compilation: type optimization does not always work for `lisp' return value Date: Fri, 25 Aug 2023 07:44:50 -0400 Message-ID: References: <87jztjbdd1.fsf@localhost> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27118"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 65527@debbugs.gnu.org To: Ihor Radchenko Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Aug 25 13:46:22 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 1qZVGe-0006mH-JR for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 25 Aug 2023 13:46:20 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qZVGJ-0004Dm-KH; Fri, 25 Aug 2023 07:45:59 -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 1qZVGI-0004D5-Ep for bug-gnu-emacs@gnu.org; Fri, 25 Aug 2023 07:45:58 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qZVGH-0005wf-KI for bug-gnu-emacs@gnu.org; Fri, 25 Aug 2023 07:45:58 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qZVGM-0000er-4G for bug-gnu-emacs@gnu.org; Fri, 25 Aug 2023 07:46:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andrea Corallo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 25 Aug 2023 11:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65527 X-GNU-PR-Package: emacs Original-Received: via spool by 65527-submit@debbugs.gnu.org id=B65527.16929639052423 (code B ref 65527); Fri, 25 Aug 2023 11:46:02 +0000 Original-Received: (at 65527) by debbugs.gnu.org; 25 Aug 2023 11:45:05 +0000 Original-Received: from localhost ([127.0.0.1]:39466 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qZVFR-0000d1-Cy for submit@debbugs.gnu.org; Fri, 25 Aug 2023 07:45:05 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39110) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qZVFN-0000c9-AJ for 65527@debbugs.gnu.org; Fri, 25 Aug 2023 07:45:03 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qZVFD-0005fH-A4; Fri, 25 Aug 2023 07:44:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=iUXytz+SzmchvRnYHPSIk87+zVwLw2+cvjKE7oDjR70=; b=rqSK7A6s13rzn25Cej5n 0IA3RiiUlXQkxRwSsbfwd4zvsuBvUtT9J7jgT76Z/WJdHpDWlK5sd3D9oZ2FK+bGLKBLRQ2ETW2x1 LZZhd/aykI/cWIPBcGf2LMEge4pbxJymplbr/lJRCd4U49dwg9/j3T5vm1+nJxT1vKtraTx/UadS2 WMl8ddKsI3wXw7NNgaZf6JjUasV2YjW4G16gYgusVaXTnrDmnewwXuBW7p0xxl7u2GRCB3Ru4RMdA QdAeiTTvsfKwh1YNvz61dVrdvwkhM2APtMIdONWp0GniSoGS3WdUJh+LX5WYnpjT4reCEawaLtT/k /oG1exGYteGQsQ==; Original-Received: from acorallo by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1qZVFC-0003nV-2Q; Fri, 25 Aug 2023 07:44:50 -0400 In-Reply-To: <87jztjbdd1.fsf@localhost> (Ihor Radchenko's message of "Fri, 25 Aug 2023 10:55:22 +0000") 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:268426 Archived-At: Ihor Radchenko writes: > X-Debbugs-CC: acorallo@gnu.org > > Hi, > > Following up https://yhetil.org/emacs-devel/yp1pm3b7a2x.fsf@fencepost.gnu.org > > When we have > > (defun test1 () > (let ((x (list 'a 'b 'c))) > (when (listp x) "Return value"))) > > native compilation, fails to optimize away the `listp' return value > despite it is known that x is a list at compile time. > Thanks, will look at. Andrea