From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#42360: [feature/native-comp] miscompilation(?) of functions with non local exits Date: Wed, 15 Jul 2020 17:25:11 +0300 Message-ID: <83v9iolut4.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7057"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 42360@debbugs.gnu.org, monnier@iro.umontreal.ca To: Andrea Corallo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jul 15 16:26:17 2020 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 1jviMQ-0001Vs-UP for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 15 Jul 2020 16:26:14 +0200 Original-Received: from localhost ([::1]:59460 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jviMP-0006HD-S3 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 15 Jul 2020 10:26:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50700) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jviME-0006FV-4R for bug-gnu-emacs@gnu.org; Wed, 15 Jul 2020 10:26:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41787) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jviMD-00032i-RU for bug-gnu-emacs@gnu.org; Wed, 15 Jul 2020 10:26:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jviMD-0000i9-OU for bug-gnu-emacs@gnu.org; Wed, 15 Jul 2020 10:26:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 15 Jul 2020 14:26:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42360 X-GNU-PR-Package: emacs X-Debbugs-Original-Cc: bug-gnu-emacs@gnu.org, monnier@iro.umontreal.ca Original-Received: via spool by submit@debbugs.gnu.org id=B.15948231172658 (code B ref -1); Wed, 15 Jul 2020 14:26:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 15 Jul 2020 14:25:17 +0000 Original-Received: from localhost ([127.0.0.1]:53324 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jviLU-0000go-Pd for submit@debbugs.gnu.org; Wed, 15 Jul 2020 10:25:17 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:46620) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jviLT-0000gi-1B for submit@debbugs.gnu.org; Wed, 15 Jul 2020 10:25:15 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50484) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jviLS-00061c-Rn for bug-gnu-emacs@gnu.org; Wed, 15 Jul 2020 10:25:14 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:58374) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jviLR-0002n5-8h; Wed, 15 Jul 2020 10:25:13 -0400 Original-Received: from [176.228.60.248] (port=1954 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jviLP-0005AZ-DT; Wed, 15 Jul 2020 10:25:12 -0400 In-Reply-To: (message from Andrea Corallo on Wed, 15 Jul 2020 08:24:00 +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" Xref: news.gmane.io gmane.emacs.bugs:183017 Archived-At: > From: Andrea Corallo > Cc: Eli Zaretskii , Stefan Monnier > Date: Wed, 15 Jul 2020 08:24:00 +0000 > > === > (let (x) > (ignore-errors > (setq x t) > (error "foo")) > x) > === > > Three options: > > 1- Because setq is evaluated the expression should always evaluate to > t. > > 2- Unwinding the original state of the stack is restored, when it was > saved 'x' was nil so the expression should evaluate to nil. > > 3- This is unspecified. > > The current stock implementaion does always 1 so I'm prone to just go > for it but I wanted to double check to be on the safe side. I tend to alternative 1 as well.