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: Thu, 02 Mar 2023 14:55:55 +0200 Message-ID: <834jr3e2hw.fsf@gnu.org> References: <877cw1l455.fsf@sergiodj.net> <83sfeofyi6.fsf@gnu.org> <87edq8hxom.fsf@sergiodj.net> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34551"; mail-complaints-to="usenet@ciao.gmane.io" Cc: sergiodj@sergiodj.net, 61880@debbugs.gnu.org To: Andrea Corallo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Mar 02 13:59:53 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 1pXiXJ-0008lO-C5 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 02 Mar 2023 13:59:53 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pXiUd-0005kt-57; Thu, 02 Mar 2023 07:57:07 -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 1pXiUY-0005Sm-Vd for bug-gnu-emacs@gnu.org; Thu, 02 Mar 2023 07:57:03 -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 1pXiUY-0005te-I7 for bug-gnu-emacs@gnu.org; Thu, 02 Mar 2023 07:57:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pXiUY-0007F7-35 for bug-gnu-emacs@gnu.org; Thu, 02 Mar 2023 07:57:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 02 Mar 2023 12:57:02 +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.167776179127801 (code B ref 61880); Thu, 02 Mar 2023 12:57:02 +0000 Original-Received: (at 61880) by debbugs.gnu.org; 2 Mar 2023 12:56:31 +0000 Original-Received: from localhost ([127.0.0.1]:56096 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pXiU2-0007EL-So for submit@debbugs.gnu.org; Thu, 02 Mar 2023 07:56:31 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:45496) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pXiU0-0007E6-Jt for 61880@debbugs.gnu.org; Thu, 02 Mar 2023 07:56:29 -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 1pXiTu-0005OU-6Z; Thu, 02 Mar 2023 07:56:22 -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=MEhrPpVpzmonG9mwQi7C8EPasj7t/0Ep8RGfiCFUNVI=; b=Es4fP+Qxa9VK iMH8MLamRGMzatpxdWyXMfJQFk449tI5kdjSN0RfYNqgIgVCKgpEbX++CwjxIkFSD7q12ynnkI8v+ XMNvWIGyYM9fJwAx8zLcjpIL9I6COK+qkc15GOI1iaM1dHuQP3sC8ZVWRfE5SHzxPOL0bYqBFfbcQ qgFS5PM8e5PBX3bMvZWfT3mEUwBbn1nuS54RN1+9NB90WYjww9s92eOx/mjfoT4yAUdYr6mBDPq/I 8/1piEo/RsSoZLrj6SD5ayBZ+gMkn/+4pwF1z7GapOyTLA72mHt4Dz2CEIVS0Hjy29YzkT0UwH2VF AhDcudUv0mIDy+YX5NTu6A==; 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 1pXiTl-0004F3-QZ; Thu, 02 Mar 2023 07:56:21 -0500 In-Reply-To: (message from Andrea Corallo on Thu, 02 Mar 2023 11:47:43 +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:257151 Archived-At: > From: Andrea Corallo > Cc: Eli Zaretskii , 61880@debbugs.gnu.org > Date: Thu, 02 Mar 2023 11:47:43 +0000 > > >> * The redefinition of `file-exists-p' is tipically done for test > >> purposes only, we accept that and for this case we suggest to run > >> these specific tests setting `native-comp-enable-subr-trampolines' to > >> nil > > > > This is what I'm currently doing in Debian/Ubuntu, and will start > > suggesting upstream maintainers to do the same. > > Note, I think this should be suggested only for tests redefining > `file-exists-p'. Are you saying that file-exists-p is the only primitive whose redefinition could screw generation of trampolines that follows? I though redefinition of additional primitives could potentially cause similar problems. Basically, any primitives that are called by the code which is involved in producing a trampoline. Was I mistaken?