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#61880: Native compilation fails to generate trampolines on certain scenarios Date: Tue, 14 Mar 2023 18:13:55 +0200 Message-ID: <83h6uns43g.fsf@gnu.org> References: <87ilf79vl0.fsf@gmail.com> <83356bwbd2.fsf@gnu.org> <875yb3wjqy.fsf@gmail.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19685"; mail-complaints-to="usenet@ciao.gmane.io" Cc: rms@gnu.org, 61880@debbugs.gnu.org, akrl@sdf.org To: Al Haji-Ali Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Mar 14 17:15:12 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 1pc7Iu-0004sR-L2 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 14 Mar 2023 17:15:12 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pc7Im-0000xn-LS; Tue, 14 Mar 2023 12:15:04 -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 1pc7Ik-0000x7-9V for bug-gnu-emacs@gnu.org; Tue, 14 Mar 2023 12:15:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pc7Ij-0005Hb-VJ for bug-gnu-emacs@gnu.org; Tue, 14 Mar 2023 12:15:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pc7Ij-0000r4-MM for bug-gnu-emacs@gnu.org; Tue, 14 Mar 2023 12:15: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: Tue, 14 Mar 2023 16:15:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61880 X-GNU-PR-Package: emacs Original-Received: via spool by 61880-submit@debbugs.gnu.org id=B61880.16788104583198 (code B ref 61880); Tue, 14 Mar 2023 16:15:01 +0000 Original-Received: (at 61880) by debbugs.gnu.org; 14 Mar 2023 16:14:18 +0000 Original-Received: from localhost ([127.0.0.1]:38319 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pc7I1-0000pW-Kk for submit@debbugs.gnu.org; Tue, 14 Mar 2023 12:14:17 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:49252) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pc7Hy-0000pF-KG for 61880@debbugs.gnu.org; Tue, 14 Mar 2023 12:14:15 -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 1pc7Hs-0005AF-Ij; Tue, 14 Mar 2023 12:14:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=I85JBF0UX8oOVlSSBMRYfnlypW5gVXgtrCDa2e+mtnY=; b=mAQDo1yCo9Rl bZl7ta1cxJq6DRCqe6pzbL5yeyK+FKyIsfuQBh8+cNSVdisx60Qf83w7/XuBREjQ3TlCnK79KftDs NFCAs3bqM5VP626mi73YsNHCD+Ai8tEv0DoHXfwP7jEax0RTjW61IxuxuRccMAd6fNpooPImON8RU 8uAggXhBsRtx1PUtX/CBXfPxtJfK/8BUwXuJdBls5QQbG6Z3CeHsRUmVFlFj99eKj7kHufCo4KeMw aIfKAdJZQXfhiFMTHWA+TzR6RNdjx4eRzgJ2p9gsbh441SLiwNmyQluXySoq06iYfXACVfmcQFMn7 7P4iN0eEVtpC7wFcxWHcpg==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pc7Hm-0008PO-8O; Tue, 14 Mar 2023 12:14:02 -0400 In-Reply-To: <875yb3wjqy.fsf@gmail.com> (message from Al Haji-Ali on Tue, 14 Mar 2023 13:22:13 +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:257941 Archived-At: > From: Al Haji-Ali > Cc: 61880@debbugs.gnu.org, akrl@sdf.org > Date: Tue, 14 Mar 2023 13:22:13 +0000 > > > On 13/03/2023, Richard Stallman wrote: > > I'm very glad that we now warn users about this pitfall. > > We have had bug reports over the years from users who fell > > into it. To "fix" it would be a mistake, but a warning > > is fine. > > Connecting this to bug#61917, is the compilation error there perhaps caused by the advice to the primitive function `delete-region`? > > Is it always wrong to advice primitives? Not wrong, but risky. Especially if the advice basically subverts the primitive, like makes it always fail or something -- this is frequently done in various mocking frameworks for testing purposes. > Or only those that are "involved in producing primitives" as Eli put it? Only those, yes. And only in a way that significantly changes what the original primitives do. > If so, how can one tell which is which? The warning knows. It only warns against those we know could be harmful.