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: Fri, 03 Mar 2023 09:10:52 +0200 Message-ID: <83mt4ucnsz.fsf@gnu.org> References: <877cw1l455.fsf@sergiodj.net> <83sfeofyi6.fsf@gnu.org> <87edq8hxom.fsf@sergiodj.net> <83v8jjeiq0.fsf@gnu.org> <875ybiemkm.fsf@sergiodj.net> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36490"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 61880@debbugs.gnu.org, akrl@sdf.org To: Sergio Durigan Junior Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Mar 03 08:12:31 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 1pXzah-0009IO-Hf for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 03 Mar 2023 08:12:31 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pXzaM-0002zd-JA; Fri, 03 Mar 2023 02:12:10 -0500 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 1pXzaF-0002xe-Az for bug-gnu-emacs@gnu.org; Fri, 03 Mar 2023 02:12:04 -0500 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 1pXzaE-0008L7-3m for bug-gnu-emacs@gnu.org; Fri, 03 Mar 2023 02:12:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pXzaD-0001fu-Qu for bug-gnu-emacs@gnu.org; Fri, 03 Mar 2023 02:12:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 03 Mar 2023 07:12: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.16778274756363 (code B ref 61880); Fri, 03 Mar 2023 07:12:01 +0000 Original-Received: (at 61880) by debbugs.gnu.org; 3 Mar 2023 07:11:15 +0000 Original-Received: from localhost ([127.0.0.1]:59494 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pXzZT-0001eZ-2C for submit@debbugs.gnu.org; Fri, 03 Mar 2023 02:11:15 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:50198) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pXzZR-0001eF-Ik for 61880@debbugs.gnu.org; Fri, 03 Mar 2023 02:11:14 -0500 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 1pXzZL-0008A8-RS; Fri, 03 Mar 2023 02:11:07 -0500 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=OtlsdxpA6nUDCI+RwY99imCDWqWbJlnGDqvyY279kHo=; b=B5g9DSaJAVA5 AnJwiezGwoudeRgZ0y8GlupD2cFSzNeBoWxd/TsKl05OFiZZrjVpxTnAzGZBSautwH3aceOloFHcs /m2yQpGYce15ka9hwypD35xQ1K9JKzEpAE9R0UtpSpeKFgm08p5LStx41a8sWUHQRI1WPNI0XbQoZ EmgfpyNZ1UYflVjk0bKNhlqTXWZh1FdZULKzNvbzSawYGkzXEKvtjAjEvr0BQN60vEchhPsW+hz/r eRlSpotVbUtcNqcxhf29DpFaoH+hWDMEQBbDlZFtiVtQt93mwF0kFfYBqG2wbPkuR7kc4Qad6+EjA mGiL4piwHmh09bAYaJ65tg==; 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 1pXzZK-0003k8-WC; Fri, 03 Mar 2023 02:11:07 -0500 In-Reply-To: <875ybiemkm.fsf@sergiodj.net> (message from Sergio Durigan Junior on Thu, 02 Mar 2023 18:54:33 -0500) 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:257195 Archived-At: > From: Sergio Durigan Junior > Cc: akrl@sdf.org, 61880@debbugs.gnu.org > Date: Thu, 02 Mar 2023 18:54:33 -0500 > > On Thursday, March 02 2023, Eli Zaretskii wrote: > > > I can come up with documentation of this subtlety, including a list of > > primitives whose redefinition could trigger these issues, if this is > > an acceptable solution. > > Yes, this would be a great first step. I wonder if there's some warning > Emacs can print when it detects that a primitive is being redefined and > native compilation is enabled. On the one hand, Emacs would be a bit > more verbose than perhaps desirable; on the other, I think this scenario > is particular enough that having a warning is OK-ish. Emitting such a warning for every primitive that is redefined or advised could be annoying indeed, but maybe we should warn only about the few primitives that might disrupt compilation of trampolines, and only when a trampoline is compiled? Andrea, can we do something like that?